/* ==========================================
General Section Utilities
========================================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
1. Hero Slider (5 Slides)
========================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: calc(100vh - 80px); /* Fills available screen height minus header */
    min-height: 500px;
    overflow: hidden;
    background-color: #0f172a;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75); /* Dark blue/slate overlay */
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 850px;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
}

.slide.active .hero-overlay {
    opacity: 1;
    transform: translateY(0);
}

.hero-overlay h1 {
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.hero-overlay p {
    font-size: 20px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 30px;
}

.hero-cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.hero-btn {
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.primary-btn {
    background-color: #1e3a8a;
    color: #ffffff;
}

.primary-btn:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.secondary-btn:hover {
    background-color: #ffffff;
    color: #1e3a8a;
    transform: translateY(-2px);
}

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: #ffffff;
    transform: scale(1.25);
}

/* ==========================================
2. What We Are / What We Do
========================================== */
.what-we-are {
    background-color: #ffffff;
    padding: 80px 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.intro-text h2 {
    color: #1e3a8a;
    font-size: 32px;
    margin-bottom: 15px;
}

.lead-text {
    font-size: 18px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.6;
    margin-bottom: 15px;
}

.intro-text p {
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
}

.intro-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-item {
    background: #f7f7f7;
    padding: 25px;
    border-left: 4px solid #1e3a8a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.highlight-icon {
    width: 48px;
    height: 48px;
    background-color: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.highlight-item h3 {
    color: #1e3a8a;
    font-size: 19px;
}

.highlight-item p {
    color: #434e5d;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================
3. Core Values (Dark Background & White Text)
========================================== */
.core-values-dark {
    background-color: #03123a; /* Deep black / navy background */
    color: #ffffff;
    padding: 80px 0;
}

.core-values-dark h2 {
    text-align: center;
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 10px;
}

.values-subtitle {
    text-align: center;
    color: #94a3b8;
    font-size: 16px;
    margin-bottom: 50px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.value-box-dark {
    background: #04184e;
    padding: 35px 25px;
    border-radius: 12px;
    border: 1px solid #03123a;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.value-box-dark:hover {
    transform: translateY(-8px);
    border-color: #3b82f6;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.value-number {
    font-size: 28px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 12px;
}

.value-box-dark h3 {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 10px;
}

.value-box-dark p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
4. Our Services Overview
========================================== */
.home-services {
    background-color: #f8fafc;
    padding: 80px 0;
}

.home-services h2 {
    text-align: center;
    color: #1e3a8a;
    font-size: 32px;
    margin-bottom: 10px;
}

.services-intro {
    text-align: center;
    color: #64748b;
    font-size: 16px;
    margin-bottom: 45px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: #ffffff;
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    text-align: center;
    border-top: 4px solid #1e3a8a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    color: #1e3a8a;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    color: #555555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-link {
    color: #1e3a8a;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    margin-top: auto;
    transition: color 0.2s ease;
}

.card-link:hover {
    color: #2563eb;
}

/* Shared Card Icon Sizing & Alignment */
.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    max-width: 100%;
    max-height: 100%;
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.service-card:hover .card-icon img {
    transform: scale(1.15);
}

.services-grid .service-card:nth-child(3) .card-icon img {
    transform: translateY(4px);
}

.services-grid .service-card:nth-child(3):hover .card-icon img {
    transform: translateY(4px) scale(1.15);
}

/* ==========================================
Responsive Adjustments
========================================== */
@media (max-width: 768px) {
    .hero-slider {
        height: 520px;        
        min-height: 520px;
        padding: 0;
        position: relative;
    }

    .slide {
        display: flex;
        align-items: center;  
        justify-content: center;
        padding: 20px 0;
    }

    .hero-overlay {
        padding: 0 20px;
        margin-top: 0;
    }

    .hero-overlay h1 {
        font-size: 24px;     
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .hero-overlay p {
        font-size: 14px;      
        line-height: 1.5;
        margin-bottom: 24px;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero-btn {
        width: 100%;
        max-width: 260px;
        text-align: center;
        padding: 10px 18px;
        font-size: 14px;
    }

    .slider-dots {
        bottom: 15px;
        z-index: 20;
    }

    /* 1. Force intro-grid to stack vertically and take 100% width */
    .intro-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 25px;
        padding: 0 20px;
        box-sizing: border-box;
    }

    /* 2. Prevent title wrapping into single words */
    .what-we-are h2, 
    .intro-grid h2 {
        font-size: 28px !important;
        white-space: nowrap !important; /* Forces "What We Are" onto 1 line */
        margin-bottom: 15px;
    }

    /* 3. Ensure text paragraphs use full mobile width */
    .intro-grid p,
    .what-we-are p {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 15px;
        line-height: 1.6;
    }

    /* 4. Fix card styling so it stacks below text smoothly */
    .intro-grid .card,
    .what-we-are .card,
    .intro-grid > div {
        width: 100% !important;
        box-sizing: border-box;
    }
}