* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.community-section2 {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.community-section2::before {
    content: "";
    position: absolute;
    inset: 0;

    background: inherit;

    z-index: -1;

    animation: bannerZoom 7s ease-out both;
}

@keyframes bannerZoom {

    from {
        transform: scale(1.12);
    }

    to {
        transform: scale(1);
    }

}

/* Banner Title */
.community-section2 h2 {
    animation: titleFadeUp 1.2s ease-out both;
}

@keyframes titleFadeUp {

    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* Breadcrumb Animation */

.community-section2 .breadcrumb {
    animation: breadcrumbFade 1.3s ease-out 0.3s both;
}

@keyframes breadcrumbFade {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.secretary-section {
    width: 100%;
    min-height: 600px;

    background:
        linear-gradient(
            rgba(255, 255, 255, 0.78),
            rgba(255, 255, 255, 0.78)
        ),
        url('../images/community-bg.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    text-align: center;

    padding: 65px 30px 50px;

    font-family:
        'Noto Sans Sinhala',
        sans-serif;

    overflow: hidden;
}

.secretary-title {
    color: #14213d;

    font-size: 38px;
    font-weight: 700;
    line-height: 1.5;

    margin: 0 0 20px;
}

.secretary-divider {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 12px;

    color: #dda66c;

    margin-bottom: 30px;
}

.secretary-divider .divider-line {
    width: 40px;
    height: 3px;

    background-color: #dda66c;

    transform: scaleX(0);

    transition: transform 1s ease 0.3s;
}

.secretary-divider.show-animation .divider-line {
    transform: scaleX(1);
}

.secretary-divider i {
    font-size: 22px;

    transition:
        transform 0.5s ease,
        color 0.5s ease;
}

.secretary-divider:hover i {
    transform: rotate(15deg) scale(1.2);

    color: #c58a48;
}
.secretary-image {
    width: 100%;
    max-width: 400px;

    margin: 0 auto 30px;

    overflow: hidden;

    border-radius: 8px;

    box-shadow:
        0 5px 25px rgba(0, 0, 0, 0.25);

    transition:
        box-shadow 0.5s ease;
}


/* Full Image Display */

.secretary-image img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;

    border-radius: 8px;

    transition:
        transform 0.7s ease,
        filter 0.7s ease;
}


/* Image Hover Animation */

.secretary-image:hover img {
    transform: scale(1.04);

    filter: brightness(1.05);
}

.secretary-image:hover {
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.22);
}


/* SECRETARY DESCRIPTION */

.secretary-description {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
}


/* Paragraph Styling */

.secretary-description > p {
    color: #000000;

    font-size: 16px;
    font-weight: 700;

    line-height: 1.9;

    text-align: center;

    margin: 0 0 25px;

    transition: color 0.3s ease;
}


/* Paragraph Hover */

.secretary-description > p:hover {
    color: #14213d;
}


/* SECRETARY SIGNATURE */

.secretary-signature {
    margin-top: 35px;

    padding-top: 25px;

    border-top:
        2px solid rgba(221, 166, 108, 0.5);
}

.secretary-signature h3 {
    color: #14213d;

    font-size: 20px;
    font-weight: 700;

    margin: 0 0 12px;
}

.secretary-signature p {
    color: #333333;

    font-size: 16px;
    font-weight: 600;

    line-height: 1.8;

    margin: 0 0 5px;
}


/*  GENERAL SCROLL REVEAL */

.reveal {
    opacity: 0;

    transform: translateY(50px);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}


/* When Element Is Visible */

.reveal.show-animation {
    opacity: 1;

    transform: translateY(0);
}


/*  SECRETARY IMAGE REVEA */

.secretary-image.reveal {
    opacity: 0;

    transform:
        translateY(60px)
        scale(0.92);

    transition:
        opacity 1.2s ease,
        transform 1.2s ease,
        box-shadow 0.5s ease;
}

.secretary-image.reveal.show-animation {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


/* DIVIDER REVEAL */

.secretary-divider.reveal {
    opacity: 0;

    transform: scale(0.8);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.secretary-divider.reveal.show-animation {
    opacity: 1;

    transform: scale(1);
}


/* PARAGRAPH REVEAL */

.secretary-description > p.reveal {
    opacity: 0;

    transform: translateY(40px);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease,
        color 0.3s ease;
}

.secretary-description > p.reveal.show-animation {
    opacity: 1;

    transform: translateY(0);
}


/* SIGNATURE ANIMATION */

.secretary-signature.reveal {
    opacity: 0;

    transform: translateY(40px);

    transition:
        opacity 1s ease,
        transform 1s ease;
}

.secretary-signature.reveal.show-animation {
    opacity: 1;

    transform: translateY(0);
}


/*  COMMUNITY CONTACT SECTION */

.community {
    position: relative;

    overflow: hidden;
}


/* Community Content Animation */

.community .community-content.reveal {
    opacity: 0;

    transform: translateY(50px);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.community .community-content.reveal.show-animation {
    opacity: 1;

    transform: translateY(0);
}


/*  CONTACT BUTTON */

.community .contact-btn {
    display: inline-block;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        background-color 0.35s ease;
}


/* Hover Animation */

.community .contact-btn:hover {
    transform: translateY(-6px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.2);
}


/* Click Animation */

.community .contact-btn:active {
    transform: scale(0.96);
}


/* TABLET RESPONSIVE */

@media (max-width: 992px) {

    .secretary-section {
        padding: 50px 25px 40px;
    }

    .secretary-title {
        font-size: 32px;
    }

    .secretary-image {
        max-width: 350px;
    }

    .secretary-description {
        max-width: 95%;
    }

    .secretary-description > p {
        font-size: 15px;

        line-height: 1.8;
    }

}


/* MOBILE RESPONSIVE */

@media (max-width: 768px) {

    .secretary-section {
        padding: 40px 18px 30px;
    }

    .secretary-title {
        font-size: 26px;

        line-height: 1.5;
    }

    .secretary-divider {
        margin-bottom: 25px;
    }

    .secretary-image {
        max-width: 300px;

        margin-bottom: 25px;
    }

    .secretary-image img {
        height: auto;
    }

    .secretary-description {
        max-width: 100%;
    }

    .secretary-description > p {
        font-size: 14px;

        line-height: 1.9;

        margin-bottom: 20px;
    }

    .secretary-signature h3 {
        font-size: 18px;
    }

    .secretary-signature p {
        font-size: 14px;
    }

}


/*  SMALL MOBILE */

@media (max-width: 480px) {

    .secretary-section {
        padding: 35px 15px 25px;
    }

    .secretary-title {
        font-size: 23px;
    }

    .secretary-image {
        max-width: 260px;
    }

    .secretary-description > p {
        font-size: 13px;

        line-height: 1.8;
    }

    .secretary-signature h3 {
        font-size: 16px;
    }

    .secretary-signature p {
        font-size: 13px;
    }

    .secretary-divider .divider-line {
        width: 30px;
    }

}


/* REDUCED MOTION ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .community-section2::before,
    .community-section2 h2,
    .community-section2 .breadcrumb {
        animation: none !important;
    }

    .reveal,
    .reveal.show-animation,
    .secretary-image.reveal,
    .secretary-image.reveal.show-animation,
    .secretary-divider.reveal,
    .secretary-divider.reveal.show-animation,
    .secretary-description > p.reveal,
    .secretary-description > p.reveal.show-animation,
    .secretary-signature.reveal,
    .secretary-signature.reveal.show-animation,
    .community .community-content.reveal,
    .community .community-content.reveal.show-animation {
        opacity: 1 !important;

        transform: none !important;

        transition: none !important;
    }

    .secretary-divider .divider-line {
        transform: none !important;
    }

    .secretary-image img,
    .community .contact-btn {
        transition: none !important;
    }

}

/*  ADMINISTRATION ACCORDION SECTION */

.admin-structure {
    width: 100%;
    padding: 65px 4.5% 90px;
    background: #ffffff;
    font-family: 'Noto Sans Sinhala', sans-serif;
}

/* MAIN TITLE */

.admin-main-title {
    text-align: center;
    color: #14213d;
    font-size: 45px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 35px;
}

.admin-main-title span {
    color: #dda66c;
}

/* ACCORDION CONTAINER */

.admin-accordion {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
}

/* EACH ITEM */

.admin-item {
    margin-bottom: 5px;
    overflow: hidden;
    border-radius: 9px;
}

/* HEADER */

.admin-header {
    width: 100%;
    min-height: 47px;
    padding: 12px 15px;

    display: flex;
    align-items: center;
    gap: 13px;

    background: #ebbe91;
    border: none;
    border-radius: 9px;

    color: #111111;
    font-family: 'Noto Sans Sinhala', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;

    text-align: left;
    cursor: pointer;

    transition:
        background 0.35s ease,
        box-shadow 0.35s ease;
}

.admin-header:hover {
    background: #e4af7b;
}

.admin-header:focus-visible {
    outline: 3px solid #14213d;
    outline-offset: -3px;
}

/* HOME ICON */

.admin-header .fa-house {
    font-size: 15px;
    flex-shrink: 0;
}

/* TOGGLE ICON */

.admin-toggle {
    margin-left: auto;
    font-size: 15px;

    transition: transform 0.35s ease;
}

/* ACTIVE HEADER */

.admin-item.active .admin-header {
    border-radius: 9px 9px 0 0;
    background: #ebbe91;
}

.admin-item.active .admin-toggle {
    transform: rotate(180deg);
}

/* ACCORDION SLIDE ANIMATION */

.admin-panel {
    display: grid;
    grid-template-rows: 0fr;

    visibility: hidden;
    transition:
        grid-template-rows 0.55s ease,
        visibility 0.55s;
}

.admin-item.active .admin-panel {
    grid-template-rows: 1fr;
    visibility: visible;
}

.admin-panel-inner {
    min-height: 0;
    overflow: hidden;
    background: #ffffff;
}

.admin-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;

    padding: 25px 20px 30px;
    border: 1px solid #d6d6d6;
    border-top: none;

    opacity: 0;
    transform: translateY(-18px);

    transition:
        opacity 0.4s ease,
        transform 0.45s ease;
}

.admin-item.active .admin-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.12s;
}

/* LEFT SIDE */

.admin-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.admin-left img {
    width: 190px;
    height: 200px;
    object-fit: cover;
    display: block;

    margin-bottom: 28px;

    transition:
        transform 0.5s ease,
        box-shadow 0.5s ease;
}

.admin-left img:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.admin-left h3 {
    color: #14213d;
    font-size: 29px;
    font-weight: 700;
    line-height: 1.6;

    margin: 0 0 22px;
}

.admin-left p {
    color: #526d8e;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;

    margin: 0;
}

/* RIGHT SIDE */

.admin-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.admin-right > p {
    color: #526d8e;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;

    margin: 0 0 25px;
    text-align: left;
}

/* IMAGE GALLERY */

.admin-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
}

.admin-gallery img {
    width: 100%;
    height: 250px;

    object-fit: cover;
    display: block;

    transition:
        transform 0.5s ease,
        filter 0.5s ease,
        box-shadow 0.5s ease;
}

.admin-gallery img:hover {
    transform: scale(1.035);
    filter: brightness(1.06);

    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

/* TABLET RESPONSIVE */

@media (max-width: 992px) {

    .admin-structure {
        padding: 50px 4% 65px;
    }

    .admin-main-title {
        font-size: 36px;
    }

    .admin-content {
        gap: 22px;
        padding: 22px 16px;
    }

    .admin-left h3 {
        font-size: 23px;
    }

    .admin-gallery img {
        height: 180px;
    }
}

/*  MOBILE RESPONSIVE */

@media (max-width: 768px) {

    .admin-structure {
        padding: 40px 15px 55px;
    }

    .admin-main-title {
        font-size: 29px;
        margin-bottom: 25px;
    }

    .admin-header {
        font-size: 14px;
        padding: 13px 12px;
    }

    .admin-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 25px 15px;
    }

    .admin-left img {
        width: 180px;
        height: 140px;
        margin-bottom: 20px;
    }

    .admin-left h3 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .admin-left p {
        font-size: 14px;
    }

    .admin-right > p {
        font-size: 14px;
        text-align: center;
    }

    .admin-gallery {
        gap: 10px;
    }

    .admin-gallery img {
        height: 160px;
    }
}

/* SMALL MOBILE */

@media (max-width: 480px) {

    .admin-main-title {
        font-size: 25px;
    }

    .admin-header {
        font-size: 13px;
        gap: 10px;
    }

    .admin-left h3 {
        font-size: 19px;
    }

    .admin-gallery {
        grid-template-columns: 1fr;
    }

    .admin-gallery img {
        height: auto;
        max-height: 260px;
        object-fit: contain;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .admin-panel,
    .admin-content,
    .admin-toggle,
    .admin-header,
    .admin-left img,
    .admin-gallery img {
        transition: none !important;
    }

    .admin-item.active .admin-content {
        transform: none;
    }
}
