
.community-section7 {
    position: relative;
    width: 100%;
    height: 420px;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
    overflow: hidden;
    isolation: isolate;

    background: #142344;

    border: none;
    outline: none;
    box-shadow: none;
}



/* BANNER BACKGROUND IMAGE */

.community-section7 .banner-background {
    position: absolute;
    inset: 0;
    background-image: url('../images/banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: -2;

    animation: factoryBannerZoom 7s ease-out both;
}


/* BANNER CONTENT */

.community-section7 .banner-content {
    position: relative;
    z-index: 2;

    width: 100%;
    padding: 0 20px;

    border: none;
    box-shadow: none;
    background: transparent;
}

/* BANNER HEADING */

.community-section7 .banner-content h2 {
    color: #ffffff;

    font-size: 65px;
    font-weight: 700;
    line-height: 1.5;

    margin: 0;

    border: none;
    background: transparent;
    box-shadow: none;

    animation: factoryTitleFadeUp 1.2s ease-out both;
}


/* ==========================================
   2. BREADCRUMB
========================================== */

.community-section7 .factory-breadcrumb {
    position: absolute;

    bottom: 25px;
    left: 0;

    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 15px;

    z-index: 3;

    font-size: 15px;
    font-weight: 500;

    border: none;
    background: transparent;
    box-shadow: none;

    animation: factoryBreadcrumbFade 1.3s ease-out 0.3s both;
}

.factory-breadcrumb a {
    color: #ffffff;
    text-decoration: none;

    transition: color 0.3s ease;
}

.factory-breadcrumb a:hover {
    color: #f0bc6a;
}

.factory-breadcrumb .arrow {
    color: #ffffff;
    font-size: 13px;
}

.factory-breadcrumb .current-page {
    color: #e4ae63;
}


/* ==========================================
   3. BANNER ANIMATIONS
========================================== */

/* IMAGE ZOOM */

@keyframes factoryBannerZoom {

    from {
        transform: scale(1.12);
    }

    to {
        transform: scale(1);
    }

}


/* HEADING FADE UP */

@keyframes factoryTitleFadeUp {

    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* BREADCRUMB FADE */

@keyframes factoryBreadcrumbFade {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* ==========================================
   4. FUNCTIONS SECTION
========================================== */

.functions-section {
    width: 100%;

    background: #ffffff;

    padding: 55px 5% 90px;

    font-family: 'Noto Sans Sinhala', sans-serif;

    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}


/* MAIN CONTAINER */

.functions-section .functions-container {
    width: 100%;
    max-width: 1350px;

    margin: 0 auto;

    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}


/* ==========================================
   5. SECTION HEADING - NO RECTANGLE
========================================== */

.functions-section .functions-title {
    font-size: 32px;
    font-weight: 500;

    color: #142344;

    text-align: center;

    margin: 0 0 55px;
    padding: 0;

    line-height: 1.8;

    width: 100%;

    /* REMOVE RECTANGLE */

    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}


/* ==========================================
   6. TWO COLUMN LAYOUT
========================================== */

.functions-section .functions-content {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 45px;

    align-items: start;

    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}


/* ==========================================
   7. LEFT SIDE TEXT - NO RECTANGLE
========================================== */

.functions-section .functions-text {
    width: 100%;

    padding: 11px 0 0;

    /* REMOVE RECTANGLE */

    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}


/* NUMBERED LIST */

.functions-section .functions-list {
    margin: 0;

    padding: 0 0 0 25px;

    color: #52678a;

    list-style-type: decimal;

    /* REMOVE RECTANGLE */

    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}


/* LIST ITEMS */

.functions-section .functions-list li {
    font-size: 15px;
    font-weight: 400;

    line-height: 1.9;

    margin-bottom: 3px;
    padding-left: 2px;

    color: #52678a;

    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}


/* LIST NUMBER COLOR */

.functions-list li::marker {
    color: #52678a;
}


/* ==========================================
   8. RIGHT SIDE IMAGES
========================================== */

.functions-section .functions-images {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 20px;

    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}


/* IMAGE WRAPPER */

.functions-section .function-image {
    width: 100%;

    overflow: hidden;

    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}


/* IMAGE */

.functions-section .function-image img {
    width: 100%;
    height: auto;

    display: block;

    object-fit: contain;

    border: none !important;
    outline: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    transition: transform 0.6s ease;
}


/* IMAGE HOVER ANIMATION */

.functions-section .function-image:hover img {
    transform: scale(1.04);
}


/* ==========================================
   9. SCROLL REVEAL ANIMATIONS
========================================== */

.reveal {
    opacity: 0;
    transform: translateY(45px);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-55px);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(55px);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}


/* ACTIVE ANIMATION */

.reveal.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}


/* ==========================================
   10. BACK TO TOP BUTTON
========================================== */

#backToTop {
    position: fixed;

    bottom: 30px;
    right: 30px;

    width: 45px;
    height: 45px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(20, 30, 45, 0.85);

    color: #ffffff;

    border: none;
    border-radius: 0;

    cursor: pointer;

    z-index: 999;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        background 0.3s ease;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background: #193c68;
}


/* ==========================================
   11. TABLET RESPONSIVE
========================================== */

@media (max-width: 992px) {

    .community-section7 {
        height: 350px;
    }

    .community-section7 .banner-content h2 {
        font-size: 48px;
    }

    .functions-section {
        padding: 45px 4% 70px;
    }

    .functions-section .functions-content {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);

        gap: 25px;
    }

    .functions-section .functions-text {
        padding-top: 40px;
    }

    .functions-section .functions-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .functions-section .functions-list li {
        font-size: 14px;
    }

}


/* ==========================================
   12. MOBILE RESPONSIVE
========================================== */

@media (max-width: 768px) {

    /* BANNER */

    .community-section7 {
        height: 280px;
    }

    .community-section7 .banner-content h2 {
        font-size: 34px;
        line-height: 1.6;
    }

    /* BREADCRUMB */

    .community-section7 .factory-breadcrumb {
        bottom: 18px;
        gap: 10px;
        font-size: 12px;
    }

    /* FUNCTIONS SECTION */

    .functions-section {
        padding: 35px 5% 55px;
    }

    .functions-section .functions-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    /* SINGLE COLUMN */

    .functions-section .functions-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* LEFT TEXT */

    .functions-section .functions-text {
        padding-top: 0;
    }

    .functions-section .functions-list {
        padding-left: 23px;
    }

    .functions-section .functions-list li {
        font-size: 14px;
        line-height: 1.9;
        margin-bottom: 6px;
    }

    /* IMAGES */

    .functions-section .functions-images {
        gap: 15px;
    }

    .functions-section .function-image img {
        width: 100%;
        height: auto;
    }

    /* BACK TO TOP */

    #backToTop {
        right: 15px;
        bottom: 20px;

        width: 40px;
        height: 40px;
    }

}


/* ==========================================
   13. SMALL MOBILE
========================================== */

@media (max-width: 480px) {

    .community-section7 {
        height: 230px;
    }

    .community-section7 .banner-content h2 {
        font-size: 27px;
    }

    .functions-section .functions-title {
        font-size: 21px;
    }

    .functions-section .functions-list li {
        font-size: 13px;
    }

    .functions-section {
        padding: 30px 4% 45px;
    }

}


/* ==========================================
   14. ACCESSIBILITY
========================================== */

@media (prefers-reduced-motion: reduce) {

    .community-section7 .banner-background,
    .community-section7 .banner-content h2,
    .community-section7 .factory-breadcrumb {
        animation: none;
    }

    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .function-image img {
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }

}


/* FINAL RECTANGLE REMOVAL */

/* REMOVE HEADING RECTANGLE */

.functions-section h2.functions-title {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}


/* REMOVE TEXT RECTANGLE */

.functions-section .functions-text,
.functions-section .functions-text ol,
.functions-section .functions-text li {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}


/* REMOVE CONTAINER RECTANGLES */

.functions-section .functions-container,
.functions-section .functions-content {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}


/* REMOVE PSEUDO-ELEMENT BORDERS */

.functions-section .functions-title::before,
.functions-section .functions-title::after,
.functions-section .functions-text::before,
.functions-section .functions-text::after {
    content: none !important;
    display: none !important;
}
