/* Fonts: Elegant serif for heritage + clean sans for UI */
        @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* Variables */
:root {
    --brand-primary: #123b32; /* Dark green */
    --brand-dark: #0b1f1a; /* Even darker green */
    --brand-accent: #c0e6db; /* Light green/teal */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --text-muted: #6c757d;
    --text-muted-2: #495057; /* Slightly darker muted text */
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--brand-dark);
    line-height: 1.2;
}

.font-heritage {
    font-family: 'Cormorant Garamond', serif;
}

.text-muted-2 {
    color: var(--text-muted-2) !important;
}

/* Navbar */
.navbar {
    background-color: transparent;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    transition: background-color 0.3s ease-in-out;
}

.navbar.scrolled {
    background-color: var(--brand-dark);
}

.navbar-brand img {
    height: 60px;
    transition: height 0.3s ease-in-out;
}

.navbar-nav .nav-link {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
    color: var(--brand-accent);
}

.navbar-nav .nav-link.active {
    color: var(--brand-accent);
    font-weight: 600;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse.show {
    background-color: var(--brand-dark);
}

/* Hero Section */
.hero {
    position: relative;
    color: var(--white);
    padding: 10rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background-slider > div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-background-slider > div.active {
    opacity: 1;
}



.hero .content {
    position: relative;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero .content {
    max-width: 900px;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem; /* Larger font size for impact */
    margin-bottom: 1.5rem;
}

.hero .lead {
    font-size: 1.25rem;
    max-width: 700px;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero .badge {
    background-color: var(--brand-accent);
    color: var(--brand-dark);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* About Hero Background */
.about-hero {
    background-image: url('../images/About-page/new-parliament-building-scaled-1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 31, 26, 0.5); /* Brand dark with opacity */
    z-index: 1;
}

.about-hero .content {
    position: relative;
    z-index: 2;
}

/* Projects Hero Background */
.projects-hero {
    background-image: url('../images/hero-background/bg2.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.projects-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 31, 26, 0.5); /* Brand dark with opacity */
    z-index: 1;
}

.projects-hero .content {
    position: relative;
    z-index: 2;
}

.membership-process-box {
    border: 1px solid var(--brand-primary) !important;
}

.membership-process-box .icon-circle {
    background-color: var(--brand-primary) !important;
}

.membership-process-box .icon-circle i {
    font-size: 2.5rem;
    color: var(--white);
}

.membership-process-box p {
    word-wrap: break-word;
}

.membership-process-box .icon-circle {
    width: 80px !important;
    height: 80px !important;
}

.membership-process-box .icon-circle i {
    font-size: 2rem !important;
}

#why-join .bi {
    color: var(--brand-primary) !important;
}


/* Membership Hero Background */
.membership-hero {
    background-image: url('../images/hero-background/bg3.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.membership-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 31, 26, 0.5); /* Brand dark with opacity */
    z-index: 1;
}

.membership-hero .content {
    position: relative;
    z-index: 2;
}

/* Events Hero Background */
.events-hero {
    background-image: url('../images/hero-background/bg4.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.events-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 31, 26, 0.5); /* Brand dark with opacity */
    z-index: 1;
}

.events-hero .content {
    position: relative;
    z-index: 2;
}

.highlight-item {
    max-width: 300px; /* Adjust as needed for desired wrapping */
    flex-basis: auto; /* Allow flex items to size based on content */
    text-align: center; /* Center text within the item */
}

.cta-highlight-item {
    max-width: 300px; /* Adjust as needed for desired wrapping */
    flex-basis: auto; /* Allow flex items to size based on content */
    text-align: center; /* Center text within the item */
}

/* Gallery Hero Background */
.gallery-hero {
    background-image: url('../images/hero-background/bg4.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 31, 26, 0.5); /* Brand dark with opacity */
    z-index: 1;
}

.gallery-hero .content {
    position: relative;
    z-index: 2;
}

/* News Hero Background */
.news-hero {
    background-image: url('../images/hero-background/bg4.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 31, 26, 0.5); /* Brand dark with opacity */
    z-index: 1;
}

.news-hero .content {
    position: relative;
    z-index: 2;
}

/* Contact Hero Background */
.contact-hero {
    background-image: url('../images/hero-background/bg4.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 31, 26, 0.5); /* Brand dark with opacity */
    z-index: 1;
}

.contact-hero .content {
    position: relative;
    z-index: 2;
}

/* Buttons */
.btn {
    border-radius: 0.375rem; /* Bootstrap's default */
    font-weight: 500;
    padding: 0.625rem 1.25rem; /* Adjust padding for a slightly larger button */
    transition: all 0.2s ease-in-out;
}

.btn-brand {
    background-color: var(--brand-primary);
    color: var(--white);
    border: 1px solid var(--brand-primary);
}

.btn-brand:hover {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: var(--white);
}

.btn-outline-brand {
    border: 1px solid var(--white);
    color: var(--white);
    background-color: transparent;
}

.btn-outline-brand:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: var(--white);
}

/* Specific for large buttons (if needed elsewhere) */
.btn-lg {
    padding: 0.75rem 1.5rem; /* Larger padding for .btn-lg */
    font-size: 1.125rem; /* Larger font size for .btn-lg */
}

/* Section Headers */
.section-eyebrow {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Cards */
.card-heritage {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease-in-out;
    height: 100%;
    min-height: 280px; /* Consistent minimum height for all heritage cards */
    display: flex;
    flex-direction: column;
}

.card-heritage:hover {
    transform: translateY(-5px);
}

.card-heritage img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0; /* Prevent image from shrinking */
}

.card-heritage .p-3 {
    flex-grow: 1; /* Allow content area to grow to fill remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Wetlands Card */
.wetlands-card {
    position: relative;
    height: 100%;
    min-height: 280px; /* Ensure minimum height similar to other cards */
}

.wetlands-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
}

.wetlands-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.wetlands-slide.active {
    opacity: 1;
}

.wetlands-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: 0.5rem;
    z-index: 10;
}

.wetlands-card:hover .wetlands-overlay {
    opacity: 1;
}

.wetlands-content {
    text-align: center;
    padding: 1rem;
}

.wetlands-content h6 {
    color: white !important;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.wetlands-content p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Fortifications Card */
.fortifications-card {
    position: relative;
    height: 100%;
    min-height: 280px; /* Ensure minimum height similar to other cards */
}

.fortifications-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
}

.fortifications-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fortifications-slide.active {
    opacity: 1;
}

.fortifications-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: 0.5rem;
    z-index: 10;
}

.fortifications-card:hover .fortifications-overlay {
    opacity: 1;
}

.fortifications-content {
    text-align: center;
    padding: 1rem;
}

.fortifications-content h6 {
    color: white !important;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.fortifications-content p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Living Arts Card */
.living-arts-card {
    position: relative;
    height: 100%;
    min-height: 280px; /* Ensure minimum height similar to other cards */
}

.living-arts-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
}

.living-arts-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.living-arts-slide.active {
    opacity: 1;
}

.living-arts-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: 0.5rem;
    z-index: 10;
}

.living-arts-card:hover .living-arts-overlay {
    opacity: 1;
}

.living-arts-content {
    text-align: center;
    padding: 1rem;
}

.living-arts-content h6 {
    color: white !important;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.living-arts-content p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Culinary Journeys Card */
.culinary-journeys-card {
    position: relative;
    height: 100%;
    min-height: 280px; /* Ensure minimum height similar to other cards */
}

.culinary-journeys-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
}

.culinary-journeys-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.culinary-journeys-slide.active {
    opacity: 1;
}

.culinary-journeys-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: 0.5rem;
    z-index: 10;
}

.culinary-journeys-card:hover .culinary-journeys-overlay {
    opacity: 1;
}

.culinary-journeys-content {
    text-align: center;
    padding: 1rem;
}

.culinary-journeys-content h6 {
    color: white !important;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.culinary-journeys-content p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Featured Stops Cards */
.card-heritage.featured-stop {
    position: relative;
    min-height: 350px;
    overflow: hidden;
    border-radius: 0.75rem;
}

.card-heritage.featured-stop img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.card-heritage.featured-stop:hover img {
    transform: scale(1.05);
}

.featured-stop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 31, 26, 0.6) 0%, rgba(11, 31, 26, 0.2) 40%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: background 0.3s ease-in-out;
}

.card-heritage.featured-stop:hover .featured-stop-overlay {
    background: linear-gradient(to top, rgba(11, 31, 26, 0.9) 0%, rgba(11, 31, 26, 0.7) 70%, rgba(11, 31, 26, 0.3) 100%);
}

.featured-stop-title {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: rgba(11, 31, 26, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(192, 230, 219, 0.3);
    z-index: 2;
    transition: all 0.5s ease-in-out;
}

.card-heritage.featured-stop:hover .featured-stop-title {
    transform: translateY(-8rem);
}

.featured-stop-content {
    position: absolute;
    bottom: 3rem;
    left: 1.5rem;
    right: 1.5rem;
    color: white;
    z-index: 1;
}

.featured-stop-description {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s ease-in-out 0.2s;
}

.card-heritage.featured-stop:hover .featured-stop-description {
    transform: translateY(0);
    opacity: 1;
}

.featured-stop-badge {
    background: var(--brand-accent);
    color: var(--brand-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s ease-in-out 0.4s;
    display: inline-block;
}

.card-heritage.featured-stop:hover .featured-stop-badge {
    transform: translateY(0);
    opacity: 1;
}

/* Values Section */
.value {
    border-left: 4px solid var(--brand-primary);
}

/* Map Placeholder */
.map-holder {
    background-color: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
footer {
    background-color: var(--brand-dark);
    color: var(--white);
}

footer h5, footer h6 {
    color: var(--white);
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

footer a:hover {
    color: var(--brand-accent);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Initial hidden states for animated elements */
.animate-hidden {
    opacity: 0;
    transform: translateY(20px);
}

.animate-fade-in {
    opacity: 0;
}

/* Animation classes */
.animated.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animated.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Trail Map Styling */
.map-container {
    position: relative;
}

#trail-map {
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 3px solid var(--brand-accent);
}

/* Custom map control styling */
.leaflet-control-container .leaflet-top.leaflet-right {
    margin-top: 20px;
    margin-right: 20px;
}

.trail-info {
    font-family: 'Inter', sans-serif;
}

.trail-info h6 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--brand-dark);
    margin: 0 0 5px 0;
}

/* Heritage marker styling */
.heritage-marker {
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.number-label {
    pointer-events: none;
}

/* Custom popup styling */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
}

.leaflet-popup-content h6 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--brand-dark);
    margin-bottom: 8px;
}

/* Heritage tooltip styling */
.heritage-tooltip {
    background: var(--brand-dark) !important;
    color: white !important;
    border: 2px solid var(--brand-accent) !important;
    border-radius: 8px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 6px 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

.heritage-tooltip:before {
    border-top-color: var(--brand-dark) !important;
}

/* Responsive map adjustments */
@media (max-width: 768px) {
    #trail-map {
        height: 300px !important;
    }
    
    .leaflet-control-container .leaflet-top.leaflet-right {
        margin-top: 10px;
        margin-right: 10px;
    }
    
    .heritage-tooltip {
        font-size: 12px !important;
        padding: 4px 8px !important;
    }
}

@media (max-width: 576px) { /* Extra small devices (phones, 576px and down) */
    .hero h1 {
        font-size: 2.5rem; /* Smaller font size for h1 on mobile */
    }
    .hero .lead {
        font-size: 1rem; /* Smaller font size for lead on mobile */
    }
    .card-heritage {
        min-height: auto; /* Allow height to adjust on mobile */
    }
    .card-heritage img {
        height: 150px; /* Smaller image height for cards on mobile */
    }
    #trail-map {
        height: 250px !important; /* Smaller map height on mobile */
    }
    .featured-stop-title {
        font-size: 1rem; /* Smaller font size for featured stop titles */
    }
    .featured-stop-description {
        font-size: 0.85rem; /* Smaller font size for featured stop descriptions */
    }
    .hero .badge {
        font-size: 0.75rem; /* Smaller font size for badge on mobile */
        padding: 0.5rem 0.75rem; /* Adjust padding for smaller size */
        white-space: normal; /* Allow text to wrap */
    }
}

/* Stakeholder Logo Carousel */
.stakeholder-carousel-container {
    overflow: hidden;
    position: relative;
    margin: 2rem 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.9) 10%, rgba(255,255,255,0.9) 90%, transparent 100%);
    padding: 2rem 0;
}

.stakeholder-carousel-container::before,
.stakeholder-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.stakeholder-carousel-container::before {
    left: 0;
    background: linear-gradient(90deg, white 0%, transparent 100%);
}

.stakeholder-carousel-container::after {
    right: 0;
    background: linear-gradient(270deg, white 0%, transparent 100%);
}

.stakeholder-carousel {
    display: flex;
    animation: scroll-logos 30s linear infinite;
    gap: 4rem;
    align-items: center;
}

.stakeholder-logo {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    filter: grayscale(1);
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.stakeholder-logo:hover {
    opacity: 1;
    filter: grayscale(0);
}

.stakeholder-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.stakeholder-carousel:hover {
    animation-play-state: paused;
}

/* Responsive adjustments for carousel */
@media (max-width: 768px) {
    .stakeholder-carousel {
        gap: 2rem;
    }
    
    .stakeholder-logo {
        width: 100px;
        height: 60px;
    }
    
    .stakeholder-carousel-container::before,
    .stakeholder-carousel-container::after {
        width: 50px;
    }
}

/* Team Cards */
.team-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 320px; /* Adjusted fixed height for consistent cards */
    border: 1px solid rgba(192, 230, 219, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align items from the start */
    padding: 1.5rem; /* Overall uniform padding for the card */
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(18, 59, 50, 0.15);
}

.team-card-image {
    position: relative;
    width: 250px; /* New: Set width for square ratio */
    height: 250px; /* New: Set height for square ratio */
    overflow: hidden;
    border-radius: 8px; /* Match card border-radius */
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .team-card-image img {
    transform: scale(1.05);
}

.team-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(18, 59, 50, 0.1) 0%, rgba(192, 230, 219, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-card-overlay {
    opacity: 1;
}

.team-card-content {
    padding: 0; /* Adjusted padding */
    text-align: center;
    margin-top: 1rem; /* Spacing between image and name */
    width: 100%; /* Ensure it takes full width for centering */
}

.team-card-content h6 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-dark);
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.3;
}

/* Responsive adjustments for team cards */
@media (max-width: 768px) {
    .team-card {
        height: 300px; /* Adjusted fixed height for consistent cards on tablet */
        padding: 1rem; /* Uniform padding for the card on tablet */
    }
    
    .team-card-image {
        width: 250px; /* Larger width for square ratio on tablet */
        height: 250px; /* Larger height for square ratio on tablet */
    }
    
    .team-card-content {
        margin-top: 0.75rem; /* Spacing between image and name for mobile */
        padding: 0; /* Let card padding handle it */
    }
    
    .team-card-content h6 {
        font-size: 0.9rem;
    }
}

/* Toast Popup */
.toast-container {
    z-index: 1100;
}

#bookingToast {
    background-color: var(--brand-dark);
    color: var(--white);
    border-radius: 0.5rem;
    border: 1px solid var(--brand-accent);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#bookingToast .toast-header {
    background-color: var(--brand-primary);
    color: var(--white);
    border-bottom: 1px solid var(--brand-accent);
}

#bookingToast .toast-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

#bookingToast .toast-body p {
    color: rgba(255, 255, 255, 0.8);
}

#bookingToast .btn-brand {
    width: 100%;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.toast.showing {
    animation: slideIn 0.5s;
}

/* Gallery Styles */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.375rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-image:hover {
    filter: brightness(1.1);
}

/* Modal Enhancements */
#imageModal .modal-dialog {
    max-width: 90vw;
    margin: 1.75rem auto;
}

#imageModal .modal-body {
    padding: 0;
}

#imageModal .btn-close-white {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 0.5rem;
    opacity: 0.8;
}

#imageModal .btn-close-white:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.7);
}

#imageModal .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

#imageModal .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
}

#imageCounter {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
}

/* Load More Button */
#loadMore {
    min-width: 150px;
    transition: all 0.3s ease;
    /* Override btn-outline-brand for light backgrounds */
    border: 1px solid var(--brand-primary) !important;
    color: var(--brand-primary) !important;
    background-color: transparent !important;
}

#loadMore:hover {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive Gallery Grid */
@media (max-width: 576px) {
    .gallery-image {
        height: 180px !important;
    }
}

@media (max-width: 768px) {
    #imageModal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }
    
    #imageModal .btn-outline-light {
        font-size: 0.875rem;
        padding: 0.25rem 0.5rem;
    }
}