/* BRAND COLOR VARIABLE OVERRIDES */
:root {
    --brand-navy: #0A3161;      /* Deep Navy Blue from banner */
    --brand-orange: #E85A1C;    /* Bright Orange from banner */
    --brand-light: #F4F7FA;     /* Soft background tint */
}

/* GLOBAL FONT OVERRIDE */
body {
    font-family: 'Poppins', sans-serif;
    color: #2D3748;
}

/* UTILITY CLASSES FOR BRANDING */
.text-brand-navy { color: var(--brand-navy) !important; }
.text-brand-orange { color: var(--brand-orange) !important; }
.bg-brand-navy { background-color: var(--brand-navy) !important; }
.bg-brand-orange { background-color: var(--brand-orange) !important; }
.bg-brand-light { background-color: var(--brand-light) !important; }

.brand-logo {
    color: var(--brand-navy);
    font-weight: 700;
    font-size: 1.4rem;
}
.brand-logo1 {
    color: var(--brand-navy);
    font-weight: 700;
    font-size: 1.4rem;
}
.header-logo {
    height: 40px;          /* Restricts maximum logo height */
    width: auto;           /* Maintains original aspect ratio */
    max-width: 150px;      /* Prevents horizontal overflow */
    object-fit: contain;  /* Fits image inside boundary without distortion */
    transition: transform 0.2s ease;
}

/* Hover effect on logo */
.navbar-brand:hover .header-logo {
    transform: scale(1.03);
}

/* Responsive adjustment for mobile screens */
@media (max-width: 576px) {
    .header-logo {
        height: 32px;      /* Slightly smaller logo on mobile phones */
    }
}
/* CUSTOM BUTTONS OVER BOOTSTRAP */
.btn-brand-orange {
    background-color: var(--brand-orange);
    color: #FFFFFF;
    border: none;
    transition: all 0.3s ease;
}
.btn-brand-orange:hover {
    background-color: #D14A0E;
    color: #FFFFFF;
}

.btn-brand-navy {
    background-color: var(--brand-navy);
    color: #FFFFFF;
    border: none;
    transition: all 0.3s ease;
}
.btn-brand-navy:hover {
    background-color: #062144;
    color: #FFFFFF;
}

/* CARD HOVER EFFECTS */
.custom-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}
.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(10, 49, 97, 0.1) !important;
}

/* FORM STYLING FOCUS STATES */
.form-control:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 0.25rem rgba(232, 90, 28, 0.15);
}

.navbar-nav .nav-link.active {
    color: var(--brand-orange) !important;
}
/* CAROUSEL STYLING */
.carousel-item {
    height: 480px;
    background-color: #000;
    position: relative;
}

.carousel-img {
    height: 100%;
    object-fit: cover;
    opacity: 0.65; /* Darkens image slightly so overlay text is crisp */
}

.carousel-caption {
    top: 0;
    bottom: 0;
    left: 10%;
    right: 10%;
}

/* Mobile height adjustment */
@media (max-width: 768px) {
    .carousel-item {
        height: 350px;
    }
    
    .carousel-caption h1,
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
}




/* headerstyle 2 */


/* COLORFUL HEADER STYLING */
header.sticky-top {
    background-color: #fdfbfb !important;
    border-bottom: 3px solid #ffe7e7; /* Vibrant Orange accent line on bottom */
    box-shadow: 0 4px 12px rgba(97, 10, 10, 0.08); /* Soft navy shadow */
}

/* Brand Text Color */
.brand-logo {
    color: #0A3161 !important; /* Deep Navy */
    font-weight: 700;
}

/* Base Nav Links */
.navbar-nav .nav-link {
    color: #0A3161 !important;
    padding: 8px 16px !important;
    border-radius: 20px;
    transition: all 0.25s ease;
}

/* Nav Link Hover State */
.navbar-nav .nav-link:hover {
    color: #E85A1C !important; /* Change to Orange on hover */
    background-color: rgba(232, 90, 28, 0.08); /* Light tint background */
}

/* Nav Link Active State (Current Page) */
.navbar-nav .nav-link.active {
    color: #ffffff !important;
    background-color: #0A3161 !important; /* Navy pill highlight */
}

/* Dropdown Menu Styling */
.dropdown-menu {
    border: none;
    border-top: 3px solid #E85A1C; /* Orange accent line at top of dropdown */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.dropdown-item:hover {
    background-color: rgba(232, 90, 28, 0.1);
    color: #E85A1C;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: #0A3161;
    color: #ffffff;
}

/* ==========================================
   CAROUSEL TEXT ANIMATIONS
   ========================================== */

/* Keyframes for sliding up and fading in */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Keyframes for scaling up slightly */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply animations ONLY when the slide becomes active */
.carousel-item.active .animate-badge {
    animation: zoomIn 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.carousel-item.active .animate-title {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards;
    opacity: 0; /* Hidden until delay finishes */
}

.carousel-item.active .animate-text {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.4s forwards;
    opacity: 0;
}

.carousel-item.active .animate-btn {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.6s forwards;
    opacity: 0;
}