/* --- 1. GLOBAL RESET & BASE STYLES --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #fff; color: #1f2933; overflow-x: hidden; }

/* --- 2. HEADER & NAVIGATION --- */
.main-header { position: sticky; top: 0; z-index: 2000; width: 100%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

/* --- ANNOUNCEMENT BAR --- */
.top-announcement-bar { 
    background: #437b82; 
    color: white; 
    padding: 10px 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 13px; 
    min-height: 40px; 
}

/* Updated: Using flex to create two distinct columns */
.announcement-content {
    display: flex;
    align-items: flex-start; /* Aligns badge to the top of the first line */
    justify-content: center;
    max-width: 80%;
}

/* The text wrapper that handles the wrapping/indentation */
.announcement-text {
    display: inline-block;
    text-align: left;
    line-height: 1.4;
}

.top-announcement-bar a:link { color: #10b981; text-decoration: underline; font-weight: 600; }
.top-announcement-bar a:visited { color: #ffffff; text-decoration: underline; }
.top-announcement-bar a:hover { opacity: 0.8; }

.announcement-spacer { width: 30px; }

.badge { 
    background: #e63946; 
    color: #ffffff;
    padding: 0 10px; 
    border-radius: 4px; 
    font-weight: bold; 
    margin-right: 15px; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px; 
    text-transform: uppercase;
    flex-shrink: 0; /* Keeps badge from squishing */
    font-size: 11px;
}

.close-announcement { 
    background: transparent; border: none; color: #ffffff;         
    font-size: 22px; font-weight: 300; cursor: pointer; 
    width: 30px; display: flex; justify-content: flex-end; align-items: center; outline: none;          
}

.navbar { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; padding: 0 25px; height: 80px; }
.logo img { height: 50px; }
.nav-links { display: flex; list-style: none; margin-left: auto; align-items: center; }
.nav-item { position: relative; padding: 0 15px; height: 80px; display: flex; align-items: center; }

.nav-item > a { 
    text-decoration: none; color: #002745; font-weight: 700; font-size: 15px; 
    white-space: nowrap; transition: color 0.3s ease;
}

.dropdown-menu { 
    display: none; position: absolute; top: 80px; left: 0; background: #fff; 
    min-width: 240px; border-top: 3px solid #437b82; box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
}

.nav-item:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 12px 20px; text-decoration: none; color: #002745; font-size: 14px; font-weight: 500; }
.btn-cta a { background: #00aaff; color: #fff !important; padding: 10px 22px; border-radius: 6px; text-decoration: none; font-weight: 700; }

/* --- 3. DYNAMIC CAROUSEL --- */
.promo-section { padding: 40px 0; text-align: center; width: 100%; }
.carousel-container { width: 95%; max-width: 1200px; height: 550px; margin: 0 auto; overflow: hidden; position: relative; border-radius: 30px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; display: flex; align-items: flex-end; justify-content: flex-start; z-index: 1; }
.slide.active { opacity: 1; z-index: 10; }
.slide img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; z-index: -1; }
.slide::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top right, rgba(0, 39, 69, 0.9) 0%, rgba(0, 39, 69, 0.2) 50%, transparent 100%); z-index: 2; }
.slide-overlay { position: relative; z-index: 12; color: #fff; padding: 0 60px 60px 60px; max-width: 650px; text-align: left; }
.slide-overlay h2 { font-size: 42px; margin-bottom: 15px; font-weight: 800; line-height: 1.1; }
.slide-btn { display: inline-block; background: #10b981; color: #fff !important; padding: 14px 35px; border-radius: 8px; text-decoration: none; font-weight: 700; }

/* --- 4. INTRO SECTION --- */
.intro-container { width: 100%; padding: 80px 0; }
.intro-text { max-width: 850px; margin: 0 auto; text-align: center; padding: 0 25px; }
.sub-label { display: block; color: #00aaff; font-weight: 700; letter-spacing: 2px; margin-bottom: 10px; text-transform: uppercase; }
.intro-text h1 { font-size: 44px; color: #002745; margin-bottom: 25px; font-weight: 800; }

/* --- 5. MODERN MASTERY CARDS --- */
.content-blocks { padding: 60px 0; max-width: 1300px; margin: 0 auto; }
.content-block-wrapper { display: flex; gap: 30px; justify-content: center; padding: 0 25px; flex-wrap: wrap; }
.mastery-card { flex: 1; min-width: 320px; padding: 40px; background: #fff; border-radius: 28px; border: 1px solid #f0f0f0; transition: 0.3s; text-align: center; }
.card-icon { font-size: 45px; margin-bottom: 20px; }
.mastery-card h2 { font-size: 24px; color: #002745; margin-bottom: 15px; }
.mastery-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(0,0,0,0.07); }
.blue-glow:hover { border-bottom: 6px solid #3b82f6; }
.green-glow:hover { border-bottom: 6px solid #10b981; }
.gold-glow:hover { border-bottom: 6px solid #f59e0b; }

/* --- 6. FOOTER SITEMAP --- */
.footer-sitemap { background: #f6f9fc; padding: 80px 20px; margin-top: 50px; }
.sitemap-wrapper { display: flex; justify-content: space-between; align-items: stretch; max-width: 1400px; margin: 0 auto; gap: 15px; }
.sitemap-box { flex: 1; padding: 30px 20px; border-radius: 20px; min-width: 180px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 6px solid transparent; transition: all 0.3s ease; }
.sitemap-box h4 { margin-bottom: 20px; font-size: 17px; font-weight: 800; color: #002745; }
.sitemap-box ul { list-style: none; }
.sitemap-box li { margin-bottom: 12px; }
.sitemap-box a { color: #4b5563; font-size: 14px; text-decoration: none; transition: 0.2s; font-weight: 500; }
.footer-bottom { margin-top: 60px; text-align: center; font-size: 13px; color: #9ca3af; }

/* --- 7. SERVICES PAGE SPECIFIC --- */
.services-page .content-blocks { padding: 15px 0; }
.services-page .intro-container { padding: 40px 0; }
.services-page .mastery-card { margin-bottom: 0; }
.services-page section[id] { scroll-margin-top: 100px; }

/* --- 8. MOBILE RESPONSIVE STYLES --- */
@media (max-width: 768px) {
    .top-announcement-bar { padding: 10px 10px; }
    .announcement-spacer { display: none; }
    
    /* This creates the "column" effect for the text lane */
    .announcement-content {
        justify-content: flex-start;
        max-width: 90%;
    }
    .badge {
        margin-right: 12px;
        font-size: 9px;
        height: 18px;
        margin-top: 2px; /* Tiny adjustment to align with first line text */
    }
    .announcement-text {
        font-size: 12px;
    }

    .navbar { height: auto; padding: 15px; flex-direction: column; }
    .nav-links { display: flex; flex-wrap: wrap; justify-content: center; width: 100%; margin-top: 15px; }
    .nav-item { height: auto; padding: 8px 10px; }
    .intro-text h1 { font-size: 28px; }
    .content-block-wrapper { flex-direction: column; gap: 20px; padding: 0 15px; }
    .mastery-card { min-width: 100%; }
    .carousel-container { height: 400px; }
    .sitemap-wrapper { flex-direction: column; }
}