/* Landing Page Styles */
:root {
    --royal-green: #2E7D32;
    --off-white: #F8F9FA;
    --white: #FFFFFF;
    --light-green: #17BF60;
    --hover-green: #1ED96F;
}

body {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    background-color: var(--off-white);
}

/* Hero Section */
.hero-section {
    padding-top: 5rem;
}



.center {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    padding: 2rem 0;
}

.wrapper {
    display: flex;
    gap: 1em;
    overflow: hidden;
    width: 55em;
    max-width: 100%;
}

.wrapper > .inner {
    display: flex;
    gap: 1em;
    transition: all 1s ease-in-out;
}

.card {
    border-radius: 0.5em;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.card > img {
    border-top-right-radius: inherit;
    border-top-left-radius: inherit;
    display: block;
    width: 17.5em;
    height: 12em;
    object-fit: cover;
}

.card > .content {
    background: var(--card-blue);
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
    padding: 1em;
    text-align: center;
}

.card > .content > h1 {
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    margin: 0.35em 0;
}

.card > .content > h3 {
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 300;
    margin: 0.35em 0;
}

.map {
    margin-top: 2em;
}

.map > button {
    all: unset;
    background: var(--card-blue);
    cursor: pointer;
    margin: 0 0.125em;
    position: relative;
    user-select: none;
    border-radius: 50%;
    height: 1em;
    width: 1em;
}

.map > button.active:after {
    background: var(--bg-blue);
    content: "";
    left: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    border-radius: 50%;
    height: 0.5em;
    width: 0.5em;
}

@media (max-width: 768px) {
    .wrapper {
        width: 90%;
    }
    
    .card > img {
        width: 100%;
    }
}
    

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 600;
    color: var(--royal-green) !important;
}

/* Hero Section */
.hero-section {
    padding-top: 80px;
    background-color: var(--white);
}

/* Feature Cards Carousel */
.feature-card {
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--white);
}

.carousel-item {
    padding: 1rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    height: 50px;
    width: 50px;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

.badge {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Images */
.feature-card img {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
}

/* Button Styles */
.btn-success {
    background-color: var(--royal-green);
    border-color: var(--royal-green);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .feature-card {
        text-align: center;
    }
    
    .feature-card img {
        margin-top: 2rem;
        max-height: 300px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}
/* Navigation Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    color: var(--royal-green) !important;
}

.nav-link {
    color: #333 !important;
    font-weight: 500;
}

.nav-link.btn-success {
    background-color: var(--royal-green) !important;
    border-color: var(--royal-green) !important;
    color: var(--white) !important;
}

/* Hero Section Styles */
.hero-section {
    background-color: var(--off-white);
    padding-top: 80px;
}

.hero-section h1 {
    color: #333;
}

.hero-section .btn-success {
    background-color: var(--royal-green);
    border-color: var(--royal-green);
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.hero-section .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(46,125,50,0.2);
}

/* Features Section Styles */
.features-section {
    background-color: var(--white);
}

.feature-card {
    background: var(--off-white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--royal-green);
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Footer Styles */
.footer {
    border-top: 1px solid #eee;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section img {
        margin-top: 2rem;
    }
}

/* Overrides for carousel: three-up layout, larger cards, no shadows, indicators */
.card {
    /* make three cards fit the container (2 gaps of 16px)
       flex-basis used so the cards fill the visible width exactly */
    flex: 0 0 calc((100% - 32px) / 3);
    min-width: 0; /* allow flex-basis to control width */
    height: 260px; /* larger cards */
    box-shadow: none !important; /* remove shadows */
}

.card:hover {
    transform: none !important;
    box-shadow: none !important;
    background: var(--hover-green); /* keep the color change if desired */
}

.card-container {
    gap: 16px; /* spacing between cards */
    padding-left: 8px;
    padding-right: 8px;
}

.carousel-indicators {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    padding: 0;
}

.carousel-indicators button.active {
    background: var(--royal-green);
}

@media (max-width: 768px) {
    .card { flex: 0 0 calc((100% - 16px) / 1); height: 220px; }
}

/* Apple-style carousel styles */
.apple-carousel {
    position: relative;
    overflow: hidden;
}

/* space under fixed navbar so the carousel isn't hidden */
.apple-carousel { margin-top: 72px; }

.apple-track {
    display: flex;
    gap: 20px;
    transition: transform 500ms cubic-bezier(.22,.9,.36,1);
    will-change: transform;
}

.apple-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    flex: 0 0 calc((100% - 40px) / 3);
    box-shadow: none; /* explicitly remove shadows */
    display: flex;
    flex-direction: column;
}

.apple-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    display: block;
    background: #f8f9fa;
}

.card-meta { display: none; }

/* image-only cards */
.apple-card { padding: 0; }
.apple-card img { height: 280px; width: 100%; object-fit: contain; display: block; background: #f8f9fa; }
@media (min-width: 1200px) { .apple-card img { height: 400px; } }

.apple-prev,
.apple-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.04);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.apple-prev { left: 8px; }
.apple-next { right: 8px; }

.apple-indicators {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.apple-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #e9ecef;
    padding: 0;
    cursor: pointer;
}

.apple-indicators button.active {
    background: var(--royal-green);
}

@media (max-width: 992px) {
    .apple-card { flex: 0 0 calc((100% - 20px) / 2); }
}

@media (max-width: 576px) {
    .apple-card { flex: 0 0 100%; }
    .apple-card img { height: 240px; object-fit: contain; }
    .apple-prev, .apple-next { display: none; }
}

/* Unified Mobile Navbar Styling (all mobile screens) */
@media (max-width: 991px) {
    .navbar {
        height: auto;
        padding: 0.5rem 1rem;
    }

    .navbar-brand {
        font-size: 1rem;
        padding: 0;
        display: inline-flex;
        align-items: center;
        height: auto;
    }

    .navbar .navbar-toggler {
        padding: 0.25rem 0.35rem;
        border: none;
        background-color: var(--off-white);
        border-radius: 6px;
        transition: all 0.3s ease;
    }

    .navbar .navbar-toggler:focus {
        box-shadow: none;
    }

    .navbar .navbar-toggler:active,
    .navbar .navbar-toggler[aria-expanded="true"] {
        background-color: var(--royal-green);
    }

    .navbar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        filter: brightness(0) invert(1);
    }

    .navbar-collapse {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
        border-top: 2px solid var(--royal-green);
        margin-top: 0.75rem;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(46, 125, 50, 0.12);
        padding: 1rem;
    }

    .navbar-collapse.show {
        animation: slideDown 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .navbar-nav {
        gap: 0.5rem;
        flex-direction: column;
        width: 100%;
    }

    .navbar-nav .nav-link {
        border-radius: 8px;
        transition: all 0.3s ease;
        padding: 0.75rem 1rem !important;
        color: #333 !important;
        width: 100%;
        text-align: left;
    }

    .navbar-nav .nav-link:hover {
        background-color: var(--off-white);
        padding-left: 1.25rem !important;
    }

    .navbar-nav .nav-link.btn {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
        background-color: var(--royal-green) !important;
        color: white !important;
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem;
        height: auto;
        display: inline-flex !important;
        align-items: center;
    }

    .navbar-nav .nav-link.btn:hover {
        background-color: #1B5E20 !important;
        padding-left: 1rem !important;
        box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
    }

    .navbar-nav .nav-link.fs-5 {
        font-size: 1rem;
        padding: 0.75rem 1rem !important;
        display: inline-flex !important;
        align-items: center;
        height: auto;
        color: #333 !important;
    }

    .navbar-nav .nav-link.fs-5:hover {
        background-color: var(--off-white);
        padding-left: 1.25rem !important;
    }

    .navbar-nav .nav-link.fs-5 i {
        font-size: 1.25rem;
        margin-right: 0.5rem;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-15px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Modal styling for navbar help */
.report-modal .modal-content {
    border-radius: 14px;
    overflow: hidden;
}
.report-modal .modal-header {
    background: linear-gradient(90deg, rgba(46,125,50,0.08), rgba(46,125,50,0.02));
}
.report-modal .modal-title {
    font-weight: 700;
}
.report-modal .modal-body p.lead { margin-bottom: 1rem; }
.report-modal ul { margin: 0; padding-left: 1.1rem; }
.report-modal .modal-footer { gap: .5rem; }