:root {
    /* Refined Brand Colors */
    --primary-color: #1A3C87; /* Royal Blue - Trust & Professionalism */
    --primary-dark: #102654; /* Darker shade for hover/emphasis */
    --primary-light: #4A6FBD; /* Lighter shade for gradients */
    
    --secondary-color: #ffffff; /* White */
    
    --tertiary-color: #2D3436; /* Soft Black/Charcoal - Better readability than pure black */
    --text-muted: #636e72;
    
    --accent-color: #F97316; /* Vibrant Orange - High Energy CTA */
    --accent-hover: #D95D0F;
    
    --bg-light: #F8FAFC; /* Very subtle cool gray */
    --bg-blue-tint: #EBF2FA; /* Light blue tint for sections */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--tertiary-color);
    background-color: var(--secondary-color);
    line-height: 1.6;
}

/* Brand Theme Overrides */
body.warm-theme {
    --primary-color: #8B4513; /* Saddle Brown */
    --primary-light: #CD853F; /* Peru */
    --primary-dark: #5D2906;
    --accent-color: #FFAE00; /* Amber/Gold */
    --bg-blue-tint: #FFF8DC; /* Cornsilk */
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Navbar Toggler (Hamburger / Cancel Bar) */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none; /* Remove default bootstrap focus glow */
    outline: none;
}

.navbar-toggler-icon {
    width: 1.5em; /* Adjust size if needed */
    height: 1.5em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231A3C87' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    transition: transform 0.3s ease-in-out, background-image 0.3s ease-in-out;
}

/* When the menu is OPEN, switch to X (Cancel Bar) 
   Using [aria-expanded="true"] ensures it only shows when actually open, 
   avoiding the bug where it shows on load because the 'collapsed' class is missing */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23F97316' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6L24 24M6 24L24 6'/%3e%3c/svg%3e");
    transform: rotate(90deg);
}

.nav-link {
    color: var(--tertiary-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative; /* Needed for absolute positioning of the active bar */
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Active Bar (Underline indicator) - Desktop Default */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0px; /* Positions it at the bottom edge of the link */
    left: 15%;   /* Starts slightly indented */
    width: 70%;  /* Takes up 70% of the text width */
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Mobile Navbar Adjustments */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: 12px;
        margin-top: 10px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    }

    .nav-link {
        padding: 10px 15px; /* More clickable area */
        border-radius: 8px;
    }

    .nav-link:hover {
        background-color: var(--bg-blue-tint);
    }

    /* Remove the complex active bar on mobile to prevent distortion */
    .nav-link.active::after {
        display: none !important; 
        content: none;
    }
    
    /* Simple highlight for active state on mobile: Just bright text, no background/bar */
    .nav-link.active {
        background-color: transparent;
        color: var(--accent-color) !important; /* Brighter Orange */
        padding-left: 15px; 
    }
}

.navbar-brand span.text-primary {
    color: var(--primary-color) !important;
}

/* Buttons */
.btn {
    border-radius: 50px; /* Fully rounded pills for a modern look */
    padding: 0.6rem 2rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(26, 60, 135, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 60, 135, 0.4);
}

.btn-accent, .btn-warning {  /* Mapping Bootstrap warning to accent if needed, or custom class */
    background: linear-gradient(135deg, var(--accent-color) 0%, #FF9F4A 100%);
    border: none;
    color: white !important;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.btn-dark {
    background-color: var(--tertiary-color);
    border: none;
}

.btn-outline-dark {
    border-color: var(--tertiary-color);
    color: var(--tertiary-color);
    background: transparent;
}

.btn-outline-dark:hover {
    background-color: var(--tertiary-color);
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 10% 20%, rgb(242, 246, 252) 0%, rgb(255, 255, 255) 90%);
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* Image Placeholders with more style */
.placeholder-img {
    background-color: #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    font-weight: 500;
    border-radius: 20px;
    width: 100%;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
}

.placeholder-img::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
}

.hero-collage-placeholder {
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1);
}

/* Services / Destinations */
.destination-card {
    border: none;
    background: transparent;
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative; /* For absolute positioning of checklist icon */
}

.destination-card:hover {
    transform: translateY(-8px);
}

.destination-card:hover h5 {
    color: var(--accent-color);
}

.destination-placeholder {
    height: 300px; /* Taller cards */
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Checklist Icon Overlay for Study Abroad */
.card-checklist-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10;
}

/* Timeline for Logistics */
.timeline-steps {
    border-left: 3px solid #e2e8f0;
    margin-left: 20px;
    padding-left: 40px;
    padding-bottom: 20px;
}
.timeline-step {
    position: relative;
    margin-bottom: 60px;
}
.timeline-step:last-child {
    margin-bottom: 0;
}
.timeline-step::before {
    content: '';
    position: absolute;
    left: -53px;
    top: 0px;
    width: 25px; 
    height: 25px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
}

/* Pills/Filters */
.btn-light.text-muted {
    background-color: white;
    border: 1px solid #e2e8f0;
    color: var(--text-muted) !important;
}

.btn-light.text-muted:hover {
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
}

/* Story/Blog Cards */
.story-card-img {
    height: 280px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card h4 {
    font-size: 1.75rem;
    line-height: 1.3;
}

/* Testimonials / Highlights */
.testimonial-section {
    background-color: var(--bg-blue-tint);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.testimonial-avatar {
    width: 64px;
    height: 64px;
    background-color: #94A3B8;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Newsletter/CTA Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 30px;
    padding: 80px;
    text-align: center;
    margin: 60px 0;
    box-shadow: 0 20px 40px rgba(26, 60, 135, 0.2);
}

.newsletter-section h2 {
    color: white;
}

.newsletter-section .form-control {
    border: none;
    padding: 1rem 1.5rem;
}

.newsletter-section .btn-dark {
    background-color: var(--tertiary-color);
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}


/* Utility Classes */
.bg-accent { background-color: var(--accent-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-blue-tint { background-color: var(--bg-blue-tint) !important; }

.btn-accent { 
    background-color: var(--accent-color); 
    color: white; 
    border: none;
    transition: all 0.3s ease;
}
.btn-accent:hover {
    background-color: var(--accent-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

.ls-1 { letter-spacing: 1px; }
.ls-2 { letter-spacing: 2px; }
.mw-600 { max-width: 600px; }

/* Fontawesome Fixes for Placeholders */
.placeholder-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
footer {
    background-color: #0F172A; /* Very dark slate blue */
    color: #94A3B8;
    padding: 80px 0 30px;
}

footer .footer-heading {
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 2rem;
}

footer a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s;
}

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

footer .btn-accent {
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
}

/* Mobile Specific Adjustments */
@media (max-width: 768px) {
    /* Hide the decorative watermark on the contact form */
    .contact-form-watermark {
        display: none !important;
    }
}

/* Card hover improvements */
.card.hover-lift {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12) !important;
}

.hero-section-custom {
    min-height: 90vh;
}

/* Mobile Optimization Overrides */
@media (max-width: 991px) {
    .navbar-collapse {
        /* Ensure navbar doesn't transparently overlay content inappropriately */
        background: white;
        padding: 1rem;
        border-radius: 1rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section-custom {
        min-height: auto !important;
        padding-top: 10rem !important; /* Increased spacing for header */
        padding-bottom: 3rem !important;
    }
    
    .hero-main-img {
        height: 300px !important;
        margin-top: 2rem;
    }
    
    /* Hide floating elements on mobile to clear clutter */
    .hero-floating-card {
        display: none !important;
    }

    /* Typography Scaling */
    h1.display-3 {
        font-size: 2.5rem !important;
    }
    
    .lead {
        font-size: 1.125rem !important;
    }

    /* Adjust spacing */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .gy-5 {
        --bs-gutter-y: 2rem; /* Reduce vertical gap between stacked columns */
    }
}

