/********** Template CSS **********/
:root {
    --primary: #348E38;
    --secondary: #525368;
    --light: #E8F5E9;
    --dark: #0F4229;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

h1,
.h1,
h2,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
.h3,
h4,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
.h5,
h6,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 80px
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /*background: rgba(15, 66, 41, .25);*/
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}


/*** Top Feature ***/
@media (min-width: 991.98px) {
    .top-feature {
        position: relative;
        margin-top: -80px;
        z-index: 1;
    }
}


/*** Facts & Quote ***/
.facts,
.quote {
    background: rgba(15, 66, 41, .6);
}


/*** Service ***/
.service-item {
    position: relative;
    text-align: center;
}

.service-item .service-img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

.service-item .service-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    object-fit: cover;
    transform: scale(1.2);
    transition: .3s;
    z-index: -1;
}

.service-item:hover .service-img img {
    transform: scale(1);
}

.service-item .service-text {
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .3s;
}

.service-item:hover .service-text {
    background: rgba(15, 66, 41, .6);
}

.service-item .service-text h4,
.service-item .service-text p {
    transition: .3;
}

.service-item:hover .service-text h4 {
    color: #FFFFFF;
}

.service-item:hover .service-text p {
    color: var(--light);
}

.service-item .service-text .btn-square {
    width: 100px;
    height: 100px;
    background: transparent;
    transition: .5s;
}

.service-item:hover .service-text .btn-square {
    background: var(--light);
}

.service-item .service-text .btn {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    color: var(--dark);
    background: var(--light);
    white-space: nowrap;
    overflow: hidden;
    transition: .3s;
}

.service-item:hover .service-text .btn {
    width: 112px;
}


/*** Project Portfolio ***/
#portfolio-flters {
    display: inline-block;
    background: var(--light);
    padding: 10px 15px;
}

#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--dark);
    border-color: var(--dark);
}

.portfolio-inner {
    position: relative;
    overflow: hidden;
}

.portfolio-inner::before,
.portfolio-inner::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(15, 66, 41, .6);
    transition: .5s;
}

.portfolio-inner::after {
    left: auto;
    right: 0;
}

.portfolio-inner:hover::before,
.portfolio-inner:hover::after {
    width: 50%;
}

.portfolio-inner .portfolio-text {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .5s;
    z-index: 3;
    opacity: 0;
}

.portfolio-inner:hover .portfolio-text {
    transition-delay: .3s;
    opacity: 1;
}

.portfolio-inner .portfolio-text .btn {
    background: var(--light);
    color: var(--primary);
}

.portfolio-inner .portfolio-text .btn:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Team ***/
.team-item {
    position: relative;
    overflow: hidden;
}

.team-item .team-text {
    position: absolute;
    width: calc(100% - 45px);
    left: -100%;
    bottom: 45px;
    padding: 1.5rem;
    background: #FFFFFF;
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text {
    left: 0;
    opacity: 1;
}

.team-item .team-social .btn {
    background: var(--light);
    color: var(--primary);
}

.team-item .team-social .btn:hover {
    background: var(--primary);
    color: var(--light);
}

.team-item .team-img .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
    z-index: 3;
    opacity: 0;
}

.team-item:hover .team-img .team-social {
    transition-delay: .3s;
    opacity: 1;
}


/*** Testimonial ***/

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 15px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--light);
    border-radius: 4px;
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: var(--light);
    background: #072A19;
}

.copyright a {
    color: #FFFFFF;
}

.copyright a:hover {
    color: var(--primary);
}

.nav_active {
    color: blue;
}

table {
    border-collapse: collapse; /* removes double borders */
    width: 50%;               /* optional width */
    margin: 20px auto;        /* centers table */
}

/* --- Accordion Base --- */
details {
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 10px 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ✨ Hover glow */
details:hover {
    box-shadow: 0 0 10px rgba(139, 195, 74, 0.3);
    transform: translateY(-1px);
}

/* --- Summary --- */
summary {
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    outline: none;
    list-style: none;
    transition: color 0.3s ease;
}

summary:hover {
    color: #3b873e;
}

summary::marker {
    display: none;
}

summary::after {
    content: "›";
    float: right;
    transition: transform 0.3s ease;
}

details[open] summary::after {
    transform: rotate(90deg);
}

/* --- Animated Content --- */
details > div {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition:
            max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1),
            opacity 0.4s ease,
            transform 0.4s ease;
}

/* When open → smoothly slide & fade in */
details[open] > div {
    max-height: 8000px; /* large enough for your content */
    opacity: 1;
    transform: translateY(0);
}

/* --- Open Look --- */
details[open] {
    background: #e8f7e8;
    border-color: #8bc34a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* .image-row-two {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
} */

.image-row {
    display: flex;
    justify-content: center;   /* centers the images horizontally */
    gap: 15px;                 /* space between images */
    flex-wrap: wrap;           /* allows wrapping on small screens */
    margin: 20px 0;
}

.image-row img {
    width: 25%;              /* square size */
    height: auto;             /* square size */
    object-fit: cover;         /* crops image nicely */
    border-radius: 10px;       /* optional: rounded corners */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* optional: soft shadow */
    transition: transform 0.3s ease;
}

.image-row-two img {
    width: 20%;              /* square size */
    height: auto;             /* square size */
    object-fit: cover;         /* crops image nicely */
    border-radius: 10px;       /* optional: rounded corners */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* optional: soft shadow */
    transition: transform 0.3s ease;
}

.image-row img:hover {
    transform: scale(1.05);    /* subtle zoom on hover */
}

.membership-section {
    text-align: center;
    width: 70%;
    margin: 40px auto;
    font-family: Arial, sans-serif;
    color: #333;
}

.membership-section > p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 30px;
}

.membership-card {
    background: #f7f7f7;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.membership-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.membership-card h4 {
    color: #2a7a2a;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.membership-card p {
    font-size: 1em;
    line-height: 1.6;
    margin: 0;
}

/* Optional color accents for each card */
.full-member {
    border-left: 5px solid #4caf50;
}

.social-member {
    border-left: 5px solid #316e32;
}

.membership-image {
    text-align: center;
    margin: 40px 0;
}

.membership-image img {
    width: 80%;
    max-width: 700px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    object-fit: cover;
}

/* Hover animation */
.membership-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

/* Optional: subtle fade-in animation if WOW.js isn’t handling it */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.membership-image img {
    animation: fadeSlideUp 1s ease forwards;
    animation-delay: 0.2s;
}

.events-section {
    text-align: center;
    padding: 40px 20px;
    color: lightgray;
}

.events-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
    color: black;
}

/* ✅ Layout for the two schedules */
.schedule-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap; /* allows stacking on small screens */
}

/*.schedule {*/
/*    flex: 1 1 400px; !* grow/shrink, min width 400px *!*/
/*    min-width: 300px;*/
/*}*/

.schedule h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #65c56a;
}

.schedule-image > img {
    width: 100%;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: #1f1f1f;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.schedule-table th,
.schedule-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #333;
    text-align: center;
    vertical-align: middle;
}

.schedule-table th {
    background: #2a2a2a;
    color: #65c56a;
    font-weight: 600;
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.schedule-table tbody tr:nth-child(even) {
    background: #252525;
}

.schedule-table tbody tr:hover {
    background: #333;
    transition: background 0.3s ease;
}

.schedule-table em {
    color: #bbb;
    font-size: 0.9rem;
}

/* ✅ Responsive tweak for small screens */
@media (max-width: 900px) {
    .schedule-container {
        flex-direction: column;
        align-items: center;
    }
}

/* Optional: smooth fade-in-up custom effect if WOW.js isn’t active */
@keyframes fadeUpSmooth {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.schedule {
    animation: fadeUpSmooth 0.8s ease forwards;
    opacity: 0;
}

/* Animate each schedule with slight delay (if WOW.js not triggering) */
.schedule:nth-child(1) {
    animation-delay: 0.2s;
}
.schedule:nth-child(2) {
    animation-delay: 0.4s;
}

/* Once in view, WOW.js or scroll animation sets opacity to 1 */
.wow.animate__animated {
    opacity: 1 !important;
}

.map-container {
    width: 100%;
    max-width: 800px;
    height: 450px;
    margin: 40px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.map-wrapper {
    max-width: 800px;
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

#home_page_title {
    /*-webkit-text-stroke: 1px black;*/
    text-shadow:
            -3px -3px 0 black,
            3px -3px 0 black,
            -3px  3px 0 black,
            3px  3px 0 black;
}

.croquet-info {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.croquet-info h5 {
    color: #348e38;
    font-weight: 600;
    margin-bottom: 10px;
}

.croquet-info ul li {
    font-size: 1rem;
    margin-bottom: 8px;
}

.croquet-info a {
    color: #348e38;
    text-decoration: none;
}

.croquet-info a:hover {
    text-decoration: underline;
}

/* --- Base footer container --- */
.footer {
    background-color: #003300; /* dark green background (keep whatever yours is) */
    min-height: 220px; /* adjustable if needed */
}

/* Let Bootstrap's grid control layout; no flex needed on .footer or .container */
.footer-row {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
}

/* --- Logo column --- */
.footer-logos {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    height: 100%;
}

/* Logos fill the column height proportionally */
.footer-logo {
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
}

/* --- Responsive: stack horizontally on small screens --- */
@media (max-width: 991px) {
    .footer-row {
        flex-direction: column;
        align-items: center;
    }

    .footer-logos {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 1.5rem;
        height: auto;
        gap: 1rem;
    }

    .footer-logo {
        height: auto;
        max-height: 120px;
    }
}
