/* * KLTA Homepage Styles v11.63 - REACTION SWAP & PRECISION UI
 */

:root {
    --klta-deep-blue: #002b5c;
    --klta-gold: #fcc200;
    --klta-green: #4f9d3d;
    --klta-bg: #f8fafc;
}

html { scroll-behavior: smooth !important; }
body { margin: 0; padding: 0; width: 100%; background: var(--klta-bg); font-family: 'Inter', sans-serif; overflow-x: hidden; }

/* 🐢 TOP BAR (CENTERED) */
.klta-top-bar { background: #f8fafc; padding: 12px; text-align: center; font-size: 13px; border-bottom: 1px solid #e2e8f0; }

/* 🏢 NAVIGATION PILL */
.klta-nav-card-wrapper { position: sticky; top: 20px; width: 100%; z-index: 99999; margin-bottom: -45px; display: flex; justify-content: center; }
.klta-menu-card { 
    background: white; border-radius: 100px; padding: 10px 45px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); 
    display: flex; gap: 30px; align-items: center; border: 1px solid #f1f5f9;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.klta-menu-card:hover { transform: translateY(2px) scale(1.02); }

.klta-logo-text { font-weight: 900; font-size: 24px; color: var(--klta-deep-blue); text-decoration: none; transition: 0.3s; }
.klta-nav-links { display: flex; list-style: none; padding: 0; margin: 0; align-items: center; }
.klta-nav-links a { color: var(--klta-deep-blue); text-decoration: none; font-weight: 800; font-size: 13px; margin: 0 12px; text-transform: uppercase; transition: 0.3s; padding: 8px 15px; border-radius: 50px; }
.klta-nav-links a:hover { background: rgba(0, 43, 92, 0.05); color: var(--klta-green); }
.klta-portal-btn { color: var(--klta-gold) !important; border-left: 2px solid #e2e8f0; padding-left: 25px !important; }

/* 🌊 HERO BACKDROP */
.klta-hero-fused-container { width: 100%; position: relative; background: linear-gradient(rgba(0,43,92,0.85), rgba(0,43,92,0.75)), url('https://klta.gov.ki/wp-content/uploads/2026/05/Road-block-Tarawa.jpeg'); background-size: cover; background-position: center; display: flex; flex-direction: column; }
.hero-nz { width: 100%; padding: 120px 0 520px; text-align: center; color: white; }
.hero-nz h1 { font-size: 44px; font-weight: 900; margin: 0; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }

/* 🔍 COMMAND CENTER (PRECISION DOCKED) */
.klta-task-stack { width: 95%; max-width: 1100px; margin: -380px auto -24px; position: relative; z-index: 1002; }
.search-card-top { background: white; padding: 30px 40px; border-radius: 24px 24px 0 0; box-shadow: 0 30px 60px rgba(0,0,0,0.3); text-align: left; }
.action-bar-bottom { background: var(--klta-deep-blue); border-radius: 0 0 24px 24px; overflow: hidden; display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }

/* 🖱️ ACTION BUTTONS (GOLDEN BORDER REACTION RESTORED) */
.action-btn { 
    padding: 30px 15px; color: white; text-decoration: none; 
    border: 2px solid transparent; /* BASE FOR REACTION */
    border-right: 1px solid rgba(255,255,255,0.05); 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); position: relative; 
}
.action-btn:hover { 
    background: rgba(255,255,255,0.03); 
    transform: translateY(-5px); 
    border-color: var(--klta-gold); /* THE GOLDEN LINE BORDER */
    z-index: 10;
}
.action-btn i { font-size: 26px; color: var(--klta-gold); display: block; margin-bottom: 10px; transition: 0.3s; }
.action-btn:hover i { transform: scale(1.1); filter: drop-shadow(0 0 8px var(--klta-gold)); }
.action-btn span { display: block; font-weight: 800; font-size: 15px; }

/* 📊 HORIZONTAL STATS (STATIC - NO REACTION) */
.glance-outer-wrap { width: 100%; background: rgba(30, 41, 59, 0.95); position: relative; z-index: 1000; padding-top: 48px; padding-bottom: 12px; }
.glance-inner-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.glance-master-flex { display: flex; align-items: center; justify-content: center; gap: 40px; }
.glance-belt-header { color: white; font-weight: 900; font-size: 16px; text-transform: uppercase; letter-spacing: 2px; opacity: 0.4; margin: 0; white-space: nowrap; }
.glance-items-row { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 15px !important; flex: 1 !important; width: 100% !important; }

.glance-item { 
    background: rgba(255, 255, 255, 0.04); padding: 12px 25px; display: flex; align-items: center; 
    gap: 20px; flex: 1; border: 1px solid rgba(255, 255, 255, 0.08); 
    transition: none; /* REMOVED REACTION */
}

.glance-data-group { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 15px !important; text-align: left !important; white-space: nowrap !important; }
.glance-data-group h2 { font-size: 34px; color: white; margin: 0; font-weight: 900; line-height: 1; }
.glance-label { font-size: 11px; color: #cbd5e1; font-weight: 700; text-transform: uppercase; margin: 0; }
.glance-icon-box { font-size: 32px; color: var(--klta-gold) !important; width: 40px; text-align: center; }

/* 📢 NEWS GRID */
.klta-news-portal-grid { display: grid !important; grid-template-columns: 2fr 1fr !important; gap: 40px !important; text-align: left !important; margin-top: 30px !important; }
.news-spotlight { background: #f1f5f9; border-radius: 20px; padding: 40px; border: 1px solid #e2e8f0; min-height: 450px; display: flex; align-items: center; justify-content: center; }
.news-tab { padding: 20px; border-bottom: 1px solid #f1f5f9; cursor: pointer; transition: 0.3s; background: white; border-left: 4px solid transparent; list-style: none !important; }
.news-tab.active { background: #f1f5f9; border-left-color: var(--klta-deep-blue); }

/* 🏛️ CONTENT SECTIONS */
.klta-section { padding: 25px 0; width: 100%; display: flex; justify-content: center; background: var(--klta-bg); }
.klta-content-card { width: 90%; max-width: 1100px; background: white; padding: 40px 60px; border-radius: 40px; box-shadow: 0 20px 50px rgba(0,0,0,0.05); text-align: center; margin: 0 auto; }
.klta-services-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; text-align: left; margin-top: 40px; }
.klta-contact-flex { display: flex; justify-content: center; gap: 60px; text-align: left; margin-top: 30px; }

/* 🎬 ADVANCED CINEMATIC ABOUT TIMELINE SECTION */
.klta-about-animated {
    position: relative;
    width: 100%;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://klta.gov.ki/wp-content/uploads/2026/05/KLTA-Patrol-Tarawa.jpeg') no-repeat center center;
    background-size: cover;
    overflow: hidden;
    padding: 100px 0;
}

.klta-about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 43, 92, 0.55); /* Starts with beautiful dark protective shade */
    z-index: 1;
}

.klta-about-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 850px;
    text-align: center;
    margin: 0 auto;
}

.klta-about-heading {
    font-size: 40px;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.klta-about-text {
    font-size: 19px;
    color: #475569;
    line-height: 1.7;
    margin-top: 25px;
    margin-bottom: 0;
    opacity: 0; /* Hidden initially */
    transform: translateY(25px);
}

/* 🚀 TIME-DELAYED ANIMATION TRIGGERS ON SCROLL (.active) */
.klta-about-animated.active .klta-about-overlay {
    animation: shadeToWhite 1.2s forwards;
    animation-delay: 2s; /* Wait 2 seconds before shifting to white mask */
}

.klta-about-animated.active .klta-about-heading {
    animation: headingToDeepBlue 1.2s forwards;
    animation-delay: 2s; /* Changes sync flawlessly with overlay swap */
}

.klta-about-animated.active .klta-about-text {
    animation: textGloryPop 0.8s forwards;
    animation-delay: 2.8s; /* Content slides up right as color transitions complete */
}

/* 🎨 ANIMATION TIMELINE KEYFRAMES */
@keyframes shadeToWhite {
    from { background: rgba(0, 43, 92, 0.55); }
    to { background: rgba(255, 255, 255, 0.92); }
}

@keyframes headingToDeepBlue {
    from { color: #ffffff; text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6); }
    to { color: var(--klta-deep-blue); text-shadow: none; }
}

@keyframes textGloryPop {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

.klta-footer { width: 100%; background: #0f172a; color: #94a3b8; padding: 50px 0; text-align: center; }

/* 🔄 ANIMATIONS */
.reveal { opacity: 0; transform: translateY(50px); transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
    .klta-news-portal-grid { grid-template-columns: 1fr !important; }
    .action-bar-bottom { grid-template-columns: 1fr 1fr; }
    .glance-items-row { flex-wrap: wrap !important; }
    .klta-about-heading { font-size: 30px; }
    .klta-about-text { font-size: 16px; }
}