/* =====================================================
   PAGE-SPECIFIC ENHANCEMENTS
   Enhancements for specific pages like programs, news, gallery
   ===================================================== */

/* =====================================================
   PROGRAMS/UNITS ACCORDION ENHANCEMENTS (Index.aspx)
   ===================================================== */

.programs-section {
    position: relative;
    padding: 60px 0;
}

.programs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(11, 169, 110, 0.05) 0%, rgba(40, 145, 205, 0.05) 100%);
    z-index: 0;
}

.programs-accordion {
    position: relative;
    z-index: 1;
}

.programs-accordion .card {
    margin-bottom: 20px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.programs-accordion .card:hover {
    box-shadow: 0 8px 24px rgba(11, 169, 110, 0.2);
    border-left-color: #0ba96e;
    transform: translateX(-5px);
}

.programs-accordion .card-header {
    padding: 0;
    background: none;
    border: none;
}

.programs-accordion .card-header button {
    display: block;
    width: 100%;
    text-align: right;
    background: linear-gradient(135deg, #0ba96e 0%, #089e5f 100%);
    color: white;
    padding: 20px 25px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 12px 12px 0 0;
    transition: all 0.3s ease;
    position: relative;
}

.programs-accordion .card-header button::after {
    content: '';
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.programs-accordion .card-header button:hover {
    background: linear-gradient(135deg, #089e5f 0%, #067a4a 100%);
    padding-bottom: 22px;
    padding-top: 18px;
}

.programs-accordion .card-header button:hover::after {
    background: rgba(255, 255, 255, 0.6);
    width: 30px;
    height: 30px;
}

.programs-accordion .card-header button.collapsed {
    background: linear-gradient(135deg, #f5f5f5 0%, #efefef 100%);
    color: var(--dark-color);
    border-radius: 12px;
}

.programs-accordion .card-header button.collapsed::after {
    background: var(--primary-color);
}

.programs-accordion .card-header button.collapsed:hover {
    background: linear-gradient(135deg, #efefef 0%, #e8e8e8 100%);
}

.programs-accordion .card-body {
    background: #fafafa;
    padding: 30px;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #e0e0e0;
}

.programs-accordion .card-text {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.programs-icon-container {
    text-align: center;
    margin-bottom: 20px;
}

.programs-icon-container-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(11, 169, 110, 0.15) 0%, rgba(40, 145, 205, 0.15) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(11, 169, 110, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(11, 169, 110, 0.3);
}

.programs-accordion .card:hover .programs-icon-container-circle {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 24px rgba(11, 169, 110, 0.4);
    border-color: rgba(11, 169, 110, 0.6);
}

.programs-icon-container-circle img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

/* =====================================================
   NEWS PAGE ENHANCEMENTS (news.aspx)
   ===================================================== */

.news-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    padding: 60px 0;
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.news-tabs .nav-link {
    background: #f0f0f0;
    color: var(--text-color);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 12px 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.news-tabs .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 8px 8px 0 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.news-tabs .nav-link:hover {
    background: linear-gradient(135deg, rgba(11, 169, 110, 0.1) 0%, rgba(40, 145, 205, 0.1) 100%);
    border-color: var(--primary-color);
}

.news-tabs .nav-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.news-tabs .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-color: transparent;
}

.news-tabs .nav-link.active::before {
    transform: scaleX(1);
}

/* News Item Card */
.news-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 30px rgba(11, 169, 110, 0.2);
}

.news-item-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e0e0 0%, #f0f0f0 100%);
    position: relative;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-item:hover .news-item-image img {
    transform: scale(1.1) rotate(2deg);
}

.news-item-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.news-item-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-item-date {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-item-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-item:hover .news-item-title {
    color: var(--primary-color);
}

.news-item-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.news-item-author {
    font-size: 12px;
    color: var(--text-light);
}

.news-item-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-item-link:hover {
    color: var(--accent-color);
    gap: 12px;
}

.news-item-link i {
    transition: transform 0.3s ease;
}

.news-item:hover .news-item-link i {
    transform: translateX(5px);
}

/* =====================================================
   GALLERY PAGE ENHANCEMENTS
   ===================================================== */

.gallery-section {
    padding: 60px 0;
    background: var(--light-color);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 280px;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(11, 169, 110, 0.25);
}

.gallery-item-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-item-image img {
    transform: scale(1.15) rotate(3deg);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(11, 169, 110, 0.9) 0%, rgba(40, 145, 205, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-action {
    display: flex;
    gap: 15px;
}

.gallery-item-action a {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.gallery-item-action a:hover {
    transform: scale(1.15);
    background: var(--accent-color);
    color: white;
}

/* =====================================================
   SERVICE DETAILS PAGE ENHANCEMENTS
   ===================================================== */

.service-details-section {
    padding: 60px 0;
}

.service-details-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin-bottom: 40px;
}

.service-details-image img {
    width: 100%;
    height: auto;
    display: block;
}

.service-details-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 25px;
}

.service-details-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.service-details-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 15px;
}

.service-features {
    background: var(--light-color);
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
}

.service-features ul {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 12px 0;
    padding-right: 30px;
    color: var(--text-color);
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
}

/* =====================================================
   NEWS DETAILS PAGE ENHANCEMENTS
   ===================================================== */

.news-details-header {
    background: linear-gradient(135deg, rgba(11, 169, 110, 0.1) 0%, rgba(40, 145, 205, 0.1) 100%);
    padding: 40px 0;
    margin-bottom: 40px;
}

.news-details-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-details-meta {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.news-details-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 14px;
}

.news-details-meta-item i {
    color: var(--primary-color);
    font-size: 16px;
}

.news-details-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin: 40px 0;
}

.news-details-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-details-content {
    font-size: 15px;
    line-height: 2;
    color: var(--text-color);
}

.news-details-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.news-details-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 35px;
    margin-bottom: 20px;
}

.news-details-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    padding-right: 0;
    margin: 30px 0;
    background: var(--light-color);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    font-style: italic;
}

.news-details-tags {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.news-details-tags h5 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark-color);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.news-details-tags-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.news-tag {
    background: var(--light-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.news-tag:hover {
    background: var(--primary-color);
    color: white;
}

.news-related {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.news-related-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 30px;
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
   ===================================================== */

@media (max-width: 768px) {
    .programs-accordion .card-header button {
        padding: 15px 20px;
        font-size: 14px;
    }

    .news-details-title {
        font-size: 28px;
    }

    .service-details-content h2 {
        font-size: 24px;
    }

    .news-item {
        margin-bottom: 20px;
    }

    .gallery-item {
        height: 220px;
    }

    .news-details-meta {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .programs-accordion .card-header button {
        padding: 12px 15px;
        font-size: 13px;
    }

    .programs-icon-container-circle {
        width: 100px;
        height: 100px;
    }

    .news-tabs {
        gap: 8px;
    }

    .news-tabs .nav-link {
        padding: 10px 16px;
        font-size: 12px;
    }

    .news-details-title {
        font-size: 22px;
    }

    .service-details-content h2 {
        font-size: 20px;
    }

    .gallery-item {
        height: 180px;
    }

    .news-item-content {
        padding: 18px;
    }

    .news-item-title {
        font-size: 15px;
    }

    .news-item-desc {
        font-size: 13px;
    }
}
