/* ============================================
   HERO SECTION STYLES
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    /* Push content from the top instead of centering */
    overflow: hidden;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 160px 0 var(--space-20);
    /* Significant top padding for safe distance on desktop */
}

.hero__text {
    max-width: 900px;
    background: rgba(255, 255, 255, 0.15);
    /* Light translucent background to protect text */
    backdrop-filter: blur(4px);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.hero__title {
    color: var(--color-black);
    font-size: var(--text-6xl);
    font-weight: var(--font-extrabold);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-6);
    text-shadow: none;
}

.hero__description {
    color: var(--color-black);
    font-size: var(--text-xl);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-10);
    max-width: 700px;
    text-shadow: none;
}

.hero__text-blue {
    color: var(--color-blue);
}

.hero__actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero__content {
        padding-top: 120px;
        /* Safe distance on mobile to avoid header overlap */
    }

    .hero__text {
        padding: var(--space-6);
        margin: 0 auto;
        width: calc(100% - 40px);
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero__title {
        font-size: calc(var(--text-3xl) + 2px);
        word-break: break-word;
    }

    .hero__description {
        font-size: var(--text-base);
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
    }
}

/* ============================================
   SNAPSHOT SECTION
   ============================================ */

.snapshot {
    margin-top: calc(var(--space-20) * -1);
    position: relative;
    z-index: 3;
}

.snapshot .card {
    background-color: #808182;
    border: none;
}

.snapshot .service-card__description {
    color: var(--color-white);
    /* Ensure text visibility on gray background */
}

.snapshot .service-card__title {
    color: var(--color-white);
    /* Consistent visibility */
}

/* ============================================
   ARMS SECTION
   ============================================ */

.arms-section {
    position: relative;
}

.arm-card {
    min-height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.arm-card .btn {
    margin-top: auto;
}

/* ============================================
   SERVICES HIGHLIGHT
   ============================================ */

.services-highlight .service-card {
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

/* ============================================
   TRAINING SECTION
   ============================================ */

/* ============================================
   TRAINING SECTION
   ============================================ */

.training-section {
    position: relative;
    background-image: url('../images/training.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect for protection */
    padding: var(--space-32) 0;
}

.training-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    /* Overlay to protect text from background */
    z-index: 1;
}

.training-section .container {
    position: relative;
    z-index: 2;
}

.training-grid {
    display: block;
    /* Simplified layout */
    max-width: 800px;
    margin: 0 auto;
}

.training-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
}

.feature-item {
    background: rgba(255, 255, 255, 0.9);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.feature-item__image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-sm);
}

.feature-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-normal) var(--ease-out);
}

.feature-item:hover .feature-item__image {
    transform: scale(1.05);
}

.feature-item__content h4 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-2);
    color: var(--color-blue);
}

.feature-item__content p {
    font-size: var(--text-base);
    color: var(--color-gray-700);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* ============================================
   JOURNAL PREVIEW
   ============================================ */

.journal-preview .article-card {
    min-height: 380px;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    padding: var(--space-24) 0;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-blue);
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.cta-content h2 {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-6);
}

@media (max-width: 768px) {
    .cta-content h2 {
        font-size: var(--text-3xl);
    }
}

/* ============================================
   SECTION HEADER
   ============================================ */

.section-header h2 {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    color: var(--color-black);
    margin-bottom: var(--space-4);
}

.section-header p {
    font-size: var(--text-xl);
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: var(--text-3xl);
    }

    .section-header p {
        font-size: var(--text-lg);
    }
}

/* ============================================
   FOOTER REFINEMENT
   ============================================ */

.footer {
    background-color: var(--color-gray-900);
    color: var(--color-white);
    padding: var(--space-16) 0 var(--space-8);
}

.footer__center {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-bottom: var(--space-12);
}

.footer__brand {
    max-width: 600px;
}

.footer__logo {
    height: 80px;
    margin-bottom: var(--space-6);
    filter: brightness(0) invert(1);
    /* Ensure visibility on dark bg */
}

.footer__description {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--color-gray-400);
}

.footer__bottom {
    border-top: 1px solid var(--color-gray-800);
    padding-top: var(--space-8);
    text-align: center;
}

.footer__bottom p {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}