/* ==========================================================================
   1. GLOBAL NAVIGATION & HEADER
   (Moved from b.css)
   ========================================================================== */

/* Navbar Container - Glassmorphism Effect */
.navbar {
    position: relative;
    z-index: 1030;
    height: auto;
    min-height: var(--navbar-height, 64px);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-family: var(--font-body, sans-serif);
    transition: all 0.3s ease;
}

.navbar.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Navbar Brand / Logo Styling */
.navbar-brand {
    font-family: var(--font-heading, sans-serif);
    font-weight: var(--fw-bold, 700);
    letter-spacing: var(--ls-heading, -0.02em);
    color: var(--bs-primary, #34509c);
    transition: transform 0.2s ease;
}

.navbar-brand:hover {
    transform: translateX(5px);
    color: var(--bs-primary, #34509c);
}

/* Gradient Text for Brand Span */
.navbar-brand span {
    background: linear-gradient(135deg, var(--bs-primary, #34509c) 0%, #5668b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Links */
.navbar-nav .nav-link {
    font-family: var(--font-body, sans-serif);
    font-weight: var(--fw-medium, 500);
    color: var(--bs-gray-700, #495057);
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
}

/* Animated Underline Effect */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--bs-primary, #34509c) 0%, var(--bs-accent, #ea1f63) 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
    color: var(--bs-primary, #34509c);
    background-color: rgba(52, 80, 156, 0.05);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.navbar-nav .nav-link.active {
    color: var(--bs-primary, #34509c);
    background-color: rgba(52, 80, 156, 0.1);
}

/* Mobile Menu Toggler */
.navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.navbar-toggler:hover {
    background: rgba(52, 80, 156, 0.1);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-collapse {
    background-color: var(--bs-white, #fff);
}

/* Mobile Navigation Layout */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
    }
    
    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        margin-bottom: 1rem;
    }
    
    /* Add spacing to content below navbar when menu is expanded */
    .navbar-collapse.show + * {
        margin-top: var(--navbar-height, 64px);
    }
}

/* ==========================================================================
   2. HERO SECTIONS
   (Extracted from xhero.php)
   ========================================================================== */

/**
 * Base Hero Container
 * Default gradient based on primary brand colors
 */
.hero-section {
    background: linear-gradient(135deg, 
        var(--bs-primary, #34509c) 0%, 
        #5668b3 25%,
        #3a4fa8 50%, 
        #2a4080 75%,
        #1f3064 100%);
    position: relative;
    min-height: 500px;
}

/* Light Background Variant - Overrides gradients for a clean white look */
.hero-section.bg-white,
.hero-section.bg-light {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%) !important;
}

/* Minimum height utility for vertical centering */
.min-vh-50 {
    min-height: 50vh;
}

/* ==========================================================================
   Decorative Elements (Default Mode)
   ========================================================================== */

/* Subtle radial gradient overlay for texture */
.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%);
    pointer-events: none;
}

/* Abstract Shape 1 - Top Right */
.hero-decoration-1 {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.05) 0%, 
        transparent 70%);
    transform: rotate(-15deg);
    pointer-events: none;
}

/* Abstract Shape 2 - Bottom Left */
.hero-decoration-2 {
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 50%;
    height: 80%;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.03) 0%, 
        transparent 60%);
    transform: rotate(25deg);
    pointer-events: none;
}

/* Light Mode Decorations - Darker, subtle shadows instead of white glows */
.hero-section.hero-light .hero-gradient-overlay {
    display: none;
}

.hero-section.hero-light .hero-decoration-1,
.hero-section.hero-light .hero-decoration-2 {
    background: radial-gradient(circle, 
        rgba(52, 80, 156, 0.03) 0%, 
        transparent 70%);
}

/* Breadcrumb Divider Styling */
.hero-section .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.hero-section.hero-light .breadcrumb-item + .breadcrumb-item::before {
    color: var(--bs-gray-400);
}

/* ==========================================================================
   Hero Image Styles
   ========================================================================== */

.hero-image-wrapper {
    position: relative;
    z-index: 1;
}

/* Image Container with 3D-like Shadow and Border effect */
.hero-image-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.05),
        0 2px 4px rgba(0, 0, 0, 0.05),
        0 4px 8px rgba(0, 0, 0, 0.05),
        0 8px 16px rgba(0, 0, 0, 0.05),
        0 16px 32px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    padding: 5px;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.75rem;
    overflow: hidden;
}

/* Hover Effect for Image Container */
.hero-image-container:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.07),
        0 2px 4px rgba(0, 0, 0, 0.07),
        0 4px 8px rgba(0, 0, 0, 0.07),
        0 8px 16px rgba(0, 0, 0, 0.07),
        0 16px 32px rgba(0, 0, 0, 0.1),
        0 32px 64px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

/* Adjust shadows for Light Mode */
.hero-section.hero-light .hero-image-container {
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.08),
        0 2px 4px rgba(0, 0, 0, 0.08),
        0 4px 8px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 16px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Feature List Styles
   ========================================================================== */

.feature-check-wrapper {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-check-wrapper i {
    font-size: 1.25rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */

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

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animation-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animation-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animation-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animation-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ==========================================================================
   No-Image / Center Mode Utilities
   ========================================================================== */

/* Enhanced vertical padding for larger screens */
.py-lg-6 {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
}

@media (min-width: 992px) {
    .py-lg-6 {
        padding-top: 6rem !important;
        padding-bottom: 6rem !important;
    }
}

/* Glassmorphism Card Transitions */
.transition-all {
    transition: all 0.3s ease;
}

.transition-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Alternative Gradient Themes
   ========================================================================== */

.hero-section.hero-gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-section.hero-gradient-ocean {
    background: linear-gradient(135deg, #2E3192 0%, #1BFFFF 100%);
}

.hero-section.hero-gradient-sunset {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.hero-section.hero-gradient-forest {
    background: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
    }

    .min-vh-50 {
        min-height: auto;
    }

    .hero-image-container {
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-section .display-4 {
        font-size: calc(1.5rem + 2vw);
    }

    .hero-section h4 {
        font-size: 1.25rem;
    }

    .hero-decoration-1,
    .hero-decoration-2 {
        display: none;
    }
}