/* HISTORICAL BACKGROUND BANNER */

        .community-section5 {
            position: relative;

            width: 100%;
            height: 420px;

            display: flex;
            justify-content: center;
            align-items: center;

            text-align: center;

            overflow: hidden;
            isolation: isolate;

            background:
                linear-gradient(
                    rgba(0, 0, 0, 0.25),
                    rgba(0, 0, 0, 0.25)
                ),
                url('../images/4.png');

            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }

        /* BACKGROUND IMAGE ZOOM ANIMATION */

        .community-section5::before {
            content: "";
            position: absolute;
            inset: 0;

            background:
                linear-gradient(
                    rgba(0, 0, 0, 0.25),
                    rgba(0, 0, 0, 0.25)
                ),
                url('../images/4.png');

            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;

            z-index: -1;

            animation: bannerZoom 7s ease-out both;
        }

        @keyframes bannerZoom {

            0% {
                transform: scale(1.12);
            }

            100% {
                transform: scale(1);
            }

        }

        /* BANNER TITLE */

        .community-section5 h2 {
            color: #ffffff;

            font-family: 'Noto Sans Sinhala', sans-serif;

            font-size: 65px;
            font-weight: 700;

            line-height: 1.5;

            margin: 0;
            padding: 0 20px;

            position: relative;
            z-index: 2;

            animation: titleFadeUp 1.2s ease-out both;
        }
/* 
   HISTORICAL PAGE - FULL CSS
   PANNALA PRADESHIYA SABHA
 */

/* GLOBAL */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}


/*  HISTORICAL BANNER */

.community-section6 {
    position: relative;

    width: 100%;
    height: 420px;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.25),
            rgba(0, 0, 0, 0.25)
        ),
        url('../images/history-banner.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    overflow: hidden;
    isolation: isolate;

    font-family: 'Noto Sans Sinhala', sans-serif;
}


/* BANNER BACKGROUND ANIMATION */

.community-section6::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-section6 h2 {
    color: #ffffff;

    font-size: 60px;
    font-weight: 700;
    line-height: 1.5;

    margin: 0;
    padding: 0 15px;

    animation: bannerTitleFade 1.2s ease-out both;
}

@keyframes bannerTitleFade {

    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* BREADCRUMB */

.community-section6 .breadcrumb {
    position: absolute;

    bottom: 0;
    left: 0;

    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 15px;

    font-size: 15px;

    animation:
        breadcrumbFade 1.3s ease-out 0.3s both;
}

.community-section6 .breadcrumb a {
    color: #ffffff;

    text-decoration: none;

    padding-bottom: 18px;

    transition: color 0.3s ease;
}

.community-section6 .breadcrumb a:hover {
    color: #dda66c;
}

.community-section6 .breadcrumb .arrow {
    color: #ffffff;

    padding-bottom: 18px;
}

.community-section6 .breadcrumb .current-page {
    color: #dda66c;

    border-bottom: 3px solid #dda66c;
}

@keyframes breadcrumbFade {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* HISTORICAL SECTION*/ 
.historical-section {
    width: 100%;

    background: #ffffff;

    padding: 65px 3% 85px;

    font-family:
        'Noto Sans Sinhala',
        sans-serif;

    overflow: hidden;
}


/* SMALL HEADING */

.historical-small-title {
    color: #292d3b;

    font-size: 22px;
    font-weight: 700;
    line-height: 1.6;

    text-align: center;

    margin: 0 0 15px;
}


/*  MAIN HEADING */

.historical-main-title {
    color: #292d3b;

    font-size: 56px;
    font-weight: 700;
    line-height: 1.5;

    text-align: center;

    margin: 0 0 35px;
}

.historical-main-title span {
    color: #dda66c;
}


/* HISTORICAL CONTENT */

.historical-content {
    width: 100%;
    max-width: 1300px;

    margin: 0 auto;
}


/* PARAGRAPHS */

.historical-content p {
    color: #60758a;

    font-size: 16px;
    font-weight: 400;

    line-height: 2;

    text-align: left;

    margin: 0 0 25px;
}


/* HISTORICAL PLACES BULLET LIST */

.historical-list {
    list-style-type: disc;
    list-style-position: outside;

    padding-left: 45px;

    margin: 25px 0 45px;

    color: #60758a;

    font-size: 16px;
    font-weight: 400;

    line-height: 2.2;
}


/* EACH BULLET POINT */

.historical-list li {
    display: list-item;

    padding-left: 8px;
    margin-bottom: 7px;

    opacity: 0;

    transform: translateX(-30px);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease,
        color 0.3s ease;
}


/* BULLET COLOR */

.historical-list li::marker {
    color: #dda66c;
    font-size: 18px;
}


/* BULLET ANIMATION */

.historical-list.show-animation li {
    opacity: 1;

    transform: translateX(0);
}


/* STAGGER ANIMATION */

.historical-list li:nth-child(1) {
    transition-delay: 0.1s;
}

.historical-list li:nth-child(2) {
    transition-delay: 0.2s;
}

.historical-list li:nth-child(3) {
    transition-delay: 0.3s;
}

.historical-list li:nth-child(4) {
    transition-delay: 0.4s;
}

.historical-list li:nth-child(5) {
    transition-delay: 0.5s;
}

.historical-list li:nth-child(6) {
    transition-delay: 0.6s;
}

.historical-list li:nth-child(7) {
    transition-delay: 0.7s;
}

.historical-list li:nth-child(8) {
    transition-delay: 0.8s;
}

.historical-list li:nth-child(9) {
    transition-delay: 0.9s;
}

.historical-list li:nth-child(10) {
    transition-delay: 1s;
}


/* BULLET HOVER */

.historical-list li:hover {
    color: #dda66c;

    transform: translateX(8px);
}


/*  GENERAL SCROLL REVEAL */

.reveal {
    opacity: 0;

    transform: translateY(45px);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.reveal.show-animation {
    opacity: 1;

    transform: translateY(0);
}


/* SMALL HEADING ANIMATION */

.historical-small-title.reveal {
    opacity: 0;

    transform: translateY(-35px);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.historical-small-title.reveal.show-animation {
    opacity: 1;

    transform: translateY(0);
}


/*  MAIN HEADING ANIMATION */

.historical-main-title.reveal {
    opacity: 0;

    transform: scale(0.85);

    transition:
        opacity 1s ease,
        transform 1s ease;
}

.historical-main-title.reveal.show-animation {
    opacity: 1;

    transform: scale(1);
}


/* PARAGRAPH ANIMATION */

.historical-content p.reveal {
    opacity: 0;

    transform: translateY(35px);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.historical-content p.reveal.show-animation {
    opacity: 1;

    transform: translateY(0);
}


/* BULLET LIST REVEAL */

.historical-list.reveal {
    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.historical-list.reveal.show-animation {
    opacity: 1;

    transform: translateY(0);
}


/* COMMUNITY CONTACT ANIMATION */

.community {
    position: relative;
    overflow: hidden;
}

.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;
}

.community .contact-btn:hover {
    transform: translateY(-6px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.2);
}

.community .contact-btn:active {
    transform: scale(0.96);
}


/* TABLET RESPONSIVE */

@media (max-width: 992px) {

    .community-section6 {
        height: 350px;
    }

    .community-section6 h2 {
        font-size: 48px;
    }

    .historical-section {
        padding: 50px 4% 65px;
    }

    .historical-small-title {
        font-size: 20px;
    }

    .historical-main-title {
        font-size: 43px;
    }

    .historical-content p {
        font-size: 15px;
    }

    .historical-list {
        font-size: 15px;
    }
}


/* MOBILE RESPONSIVE */

@media (max-width: 768px) {

    .community-section6 {
        height: 300px;
    }

    .community-section6 h2 {
        font-size: 35px;
    }

    .community-section6 .breadcrumb {
        font-size: 12px;
        gap: 10px;
    }

    .historical-section {
        padding: 40px 18px 55px;
    }

    .historical-small-title {
        font-size: 18px;
    }

    .historical-main-title {
        font-size: 34px;

        margin-bottom: 25px;
    }

    .historical-content p {
        font-size: 14px;

        line-height: 1.9;
    }

    .historical-list {
        font-size: 14px;

        padding-left: 28px;

        line-height: 2;
    }

    .historical-list li {
        padding-left: 5px;

        margin-bottom: 10px;
    }
}


/* SMALL MOBILE */

@media (max-width: 480px) {

    .community-section6 {
        height: 260px;
    }

    .community-section6 h2 {
        font-size: 28px;
    }

    .historical-section {
        padding: 35px 15px 45px;
    }

    .historical-small-title {
        font-size: 16px;
    }

    .historical-main-title {
        font-size: 27px;
    }

    .historical-content p {
        font-size: 13px;

        line-height: 1.85;
    }

    .historical-list {
        font-size: 13px;

        padding-left: 25px;
    }
}


/*  ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .community-section6::before,
    .community-section6 h2,
    .community-section6 .breadcrumb {
        animation: none !important;
    }

    .reveal,
    .reveal.show-animation,
    .historical-small-title.reveal,
    .historical-small-title.reveal.show-animation,
    .historical-main-title.reveal,
    .historical-main-title.reveal.show-animation,
    .historical-content p.reveal,
    .historical-content p.reveal.show-animation,
    .historical-list.reveal,
    .historical-list.reveal.show-animation,
    .community .community-content.reveal,
    .community .community-content.reveal.show-animation {
        opacity: 1 !important;

        transform: none !important;

        transition: none !important;
    }

    .historical-list li {
        opacity: 1 !important;

        transform: none !important;

        transition: none !important;
    }

    .community .contact-btn {
        transition: none !important;
    }
}

/* HISTORICAL IMAGE BELOW BULLET LIST */

.historical-list {
    margin-bottom: 20px;
}

.historical-image-container {
    width: 100%;
    max-width: 800px;
    margin: 25px auto 60px;
}

.historical-place-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}
