/* =========================================
   1. GLOBAL VARIABLES & UTILITIES
   ========================================= */
:root {
    --primary-blue: #0A192F;
    --primary-light: #112240;
    --accent-saffron: #FF9933; /* Orange Color */
    --accent-green: #138808;
    --bg-light: #F8FAFC;
    --text-dark: #334155;
    --text-muted: #94a3b8;
    --border-color: #E2E8F0;
}

/* Utility Classes */
.text-blue { color: var(--primary-blue) !important; }
.text-saffron { color: var(--accent-saffron) !important; } /* This makes the text Orange */
.hover-saffron:hover { color: var(--accent-saffron) !important; }

/* =========================================
   2. NAVBAR STYLES
   ========================================= */
.navbar-custom {
    background: white;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
}

/* Brand Divider Line */
.brand-divider {
    height: 35px;
    width: 2px;
    background-color: #cbd5e1;
    border-radius: 2px;
}

/* Knowledge Center Text */
.knowledge-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    line-height: 1;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.knowledge-link:hover {
    color: var(--accent-saffron);
    text-decoration: none;
}

/* Login Button in Nav */
.btn-login-nav {
    background-color: var(--primary-blue);
    color: white !important;
    font-weight: 600;
    padding: 8px 30px;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(10, 25, 47, 0.2);
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
}

.btn-login-nav:hover {
    background-color: var(--accent-saffron);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 153, 51, 0.3);
}

/* Mobile Toggler */
.navbar-toggler {
    border: none;
    padding: 0;
}
.navbar-toggler:focus {
    box-shadow: none;
}

/* --- Navigation Links Section --- */

.nav-category-group {
    display: flex;
    flex-direction: column;
}

.nav-cat-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-cat-links {
    display: flex;
    gap: 8px;
    flex-direction: column;
}

.nav-link-custom {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 2px 0;
    display: block;
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav-link-custom:hover {
    color: var(--accent-saffron);
    transform: translateX(5px);
}

.active-highlight {
    color: var(--accent-saffron);
}

/* Desktop Only: Vertical Borders */
@media (min-width: 1200px) {
    .border-start-xl {
        border-left: 1px solid var(--border-color);
    }
    .nav-category-group {
        min-width: 200px;
    }
}

/* Mobile Adjustments for Navbar */
@media (max-width: 1199px) {
    .nav-category-group {
        padding: 15px 0;
        border-bottom: 1px solid var(--bg-light);
        width: 100%;
    }
    
    .nav-cat-title {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    .nav-link-custom {
        padding: 6px 0;
        font-size: 1rem;
    }
    
    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* =========================================
   3. FOOTER STYLES
   ========================================= */
footer {
    background-color: var(--primary-blue);
    color: #cbd5e1;
    padding: 80px 0 40px;
}

footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--accent-saffron);
}

/* App Download Buttons */
.app-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 12px;
    background: rgba(7, 66, 19, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transition: 0.3s;
    min-width: 170px;
}

.app-btn:hover {
    background: black;
    color: white;
    transform: translateY(-3px);
}

.app-text {
    line-height: 1.2;
    margin-left: 10px;
}

.app-text small {
    font-size: 0.75rem;
    display: block;
    opacity: 0.8;
}

.app-text strong {
    font-size: 1rem;
}

.app-btn i {
    font-size: 1.8rem;
}

/* Social Icons */
.social-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-icon:hover {
    background: var(--accent-saffron);
    border-color: var(--accent-saffron);
    color: white;
    transform: translateY(-3px);
}

/* =========================================
   4. FLOATING ACTION BUTTONS
   ========================================= */
.btn-scroll-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-saffron);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-scroll-top:hover {
    background-color: #e68a00;
    transform: translateY(-5px);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* =========================================
   5. GLOBAL ANIMATIONS
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.animate-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}