:root {
    --navbar-height: 72px;
}

body {
    margin: 0;
    padding-top: var(--navbar-height, 72px);
}

@media (min-width: 992px) {
    .page-content {
        padding: 0 40px; /* add side breathing room on desktop */
    }
}

/* HERO SECTION */
.hero-container {
    position: relative;
    overflow: hidden;
    height: 72vh;
    min-height: 400px;
    max-height: 520px;
}

/* Dark gradient overlay to improve readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0, 0, 0, 0.6),
        rgba(0, 0, 0, 0.2)
    );
    z-index: 1;
}

.hero-container img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08); /* slight zoom to remove edges on mobile */
}

/* Text styling */
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero-text h1 {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

.hero-text p {
    font-size: 1.1rem;
    margin-top: 8px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

/* Centered hero button */
.hero-btn {
    position: static;
    transform: none;
    padding: 12px 32px;
    font-size: 18px;
    z-index: auto;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

@media (max-width: 576px) {
    .hero-text {
        width: 90%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .hero-btn {
        width: 100%;
        max-width: 260px;
        font-size: 16px;
        padding: 12px 20px;
    }
}

/* Mobile spacing fixes */
@media (max-width: 767.98px) {
    body {
        padding-top: calc(var(--navbar-height, 72px) + 8px);
    }

    .hero-text {
        top: 52%;
        padding: 0 12px;
    }
}

.card {
    width: 250px;          /* fixed width for uniform cards */
    height: auto;
}

.card-img-top {
    width: 100%;
    aspect-ratio: 1 / 1;   /* keeps square */
    object-fit: cover;
    display: block;
}

/* Responsive: make cards wider on mobile */
@media (max-width: 768px) {
    .card {
        width: 90%;         /* nearly full width on mobile */
    }
}

.mission-section {
    background: linear-gradient(135deg, #f6f8fb 0%, #e3ecf7 100%);
    color: #1f2933;
}

.mission-section .mission-title {
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contact-section {
    background-color: #111827;
    color: #f9fafb;
}

.contact-section .contact-email {
    font-weight: 600;
    color: #60a5fa;
    text-decoration: none;
}

.contact-section .contact-email:hover {
    text-decoration: underline;
}

/* Navbar behavior */
.navbar-scroll {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.navbar-scroll.nav-hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

/* Navbar text links */
.nav-links .nav-link-text {
    color: #f9fafb;
    text-decoration: none;
    font-weight: 600;
    transition: text-decoration-color 0.2s ease;
}

.nav-links .nav-link-text:hover,
.nav-links .nav-link-text:focus {
    text-decoration: underline;
    text-decoration-color: #f9fafb;
}

/* Mobile nav */
@media (max-width: 767.98px) {
    .navbar-collapse {
        background-color: #111827;
        padding: 12px 4px 16px;
        margin: 8px -12px -12px; /* extends dropdown edge-to-edge under navbar */
        border-radius: 0 0 10px 10px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .nav-links .nav-link-text {
        width: 100%;
    }
}
