:root {
    /* Sophisticated Academic Palette */
    --primary: #002147;        /* Oxford Blue */
    --primary-light: #003366;
    --primary-ultra-light: #f0f4f8;
    --accent: #b8860b;        /* Dark Goldenrow / Academic Gold */
    --accent-light: #daa520;
    --secondary: #4a5568;
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    
    /* Text Colors */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-on-primary: #ffffff;
    
    /* Shadows & Surfaces */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-premium: 0 20px 25px -5px rgba(0, 33, 71, 0.1), 0 10px 10px -5px rgba(0, 33, 71, 0.04);
    
    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    
    /* Spacing */
    --section-padding: 6rem;
}

/* Base Styles */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .typography-serif {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

.text-accent { color: var(--accent) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-light { background-color: var(--light) !important; }

/* Premium Layout Utilities */
.section-premium {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg);
}

.bg-pattern-dots {
    background-image: radial-gradient(var(--primary) 0.5px, transparent 0.5px);
    background-size: 24px 24px;
    opacity: 0.03;
}

/* Header & Navigation */
.main-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.navbar-brand .logo-text {
    font-family: 'Merriweather', serif;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 600;
    color: var(--primary);
    margin: 0 0.5rem;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: var(--transition-base);
}

.nav-link:hover:after, .nav-link.active:after {
    transform: scaleX(1);
}

/* Buttons */
.btn-premium {
    padding: 0.8rem 2rem;
    border-radius: 4px; /* Classic sharp academic look */
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary-premium {
    background-color: var(--primary);
    color: white;
}

.btn-primary-premium:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-premium);
}

.btn-accent-premium {
    background-color: var(--accent);
    color: white;
}

.btn-accent-premium:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Cards */
.premium-card {
    border: none;
    background: var(--white);
    border-radius: 8px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    border-bottom: 3px solid transparent;
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
    border-bottom-color: var(--accent);
}

.premium-card .icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--primary-ultra-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    transition: var(--transition-base);
}

.premium-card:hover .icon-wrapper {
    background: var(--primary);
    color: var(--white);
}

/* Hero Section */
.hero-premium {
    padding: 10rem 0 8rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-ultra-light) 100%);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@media (max-width: 991px) {
    :root { --section-padding: 4rem; }
    .hero-title { font-size: 2.5rem; }
}

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.delay-100 { transition-delay: 0.1s !important; }
.delay-200 { transition-delay: 0.2s !important; }
.delay-300 { transition-delay: 0.3s !important; }
.delay-400 { transition-delay: 0.4s !important; }

/* Image Utilities */
.img-premium {
    object-fit: cover;
    transition: var(--transition-smooth);
    filter: brightness(0.98);
}

.img-premium:hover {
    filter: brightness(1.02);
    transform: scale(1.02);
}

/* Footer */
.footer-premium {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 5rem 0 2rem;
}

.footer-premium h5 {
    color: var(--white);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition-base);
    display: block;
    margin-bottom: 0.8rem;
}

.footer-link:hover {
    color: var(--accent);
    padding-left: 5px;
}

/* Custom Utilities */
.ls-1 { letter-spacing: 1px; }
.tracking-tighter { letter-spacing: -0.05em; }
.border-accent { border-color: var(--accent) !important; }

.max-w-700 { max-width: 700px; }
.max-w-800 { max-width: 800px; }

/* Breadcrumbs */
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--accent);
    content: "/";
}

.breadcrumb-item.active {
    color: var(--primary);
    font-weight: 700;
}

/* Additional Missing Utilities */
.bg-accent { background-color: var(--accent) !important; }
.shadow-premium { box-shadow: var(--shadow-premium) !important; }
.italic { font-style: italic; }

/* Stand-alone icon-wrapper (outside premium-card) */
.icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--primary-ultra-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    transition: var(--transition-base);
}

/* Interior page hero compact variant */
section.hero-premium.py-5 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* Accordion Premium Overrides */
.accordion-button:not(.collapsed) {
    color: var(--accent);
    background-color: var(--primary-ultra-light);
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(184, 134, 11, 0.15);
}

/* Form Focus */
.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(184, 134, 11, 0.15);
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .hero-premium {
        padding: 6rem 0 5rem;
    }
    .section-premium {
        padding: 4rem 0;
    }
    .premium-card {
        padding: 2rem;
    }
    .footer-premium {
        padding: 3rem 0 1.5rem;
    }
}
