/* Dr. Babasaheb Ambedkar Open University (BAOU) Custom Theme Styling */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --baou-navy: #0B2545;
    --baou-royal: #134074;
    --baou-blue-light: #8DA9C4;
    --baou-gold: #D4AF37;
    --baou-gold-hover: #B59223;
    --baou-amber: #f59e0b;
    --baou-bg: #F8FAFC;
    --baou-card-bg: #FFFFFF;
    --baou-text-dark: #0F172A;
    --baou-text-muted: #64748B;
    --baou-border: #E2E8F0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 2px 4px rgba(11, 37, 69, 0.04);
    --shadow-md: 0 8px 24px rgba(11, 37, 69, 0.08);
    --shadow-lg: 0 16px 32px rgba(11, 37, 69, 0.12);
}

body {
    font-family: var(--font-body);
    background-color: var(--baou-bg);
    color: var(--baou-text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Navbar & Header */
.top-notice-bar {
    background: linear-gradient(90deg, #07192F 0%, #0B2545 100%);
    color: #E2E8F0;
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-notice-bar a {
    color: #FDE047;
    text-decoration: none;
}

.top-notice-bar a:hover {
    text-decoration: underline;
}

.navbar-baou {
    background-color: #FFFFFF;
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
    transition: all 0.3s ease;
}

.baou-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.baou-brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--baou-navy);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.baou-brand-subtitle {
    font-size: 0.72rem;
    color: var(--baou-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-link-baou {
    font-weight: 600;
    color: var(--baou-navy) !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.nav-link-baou:hover, .nav-link-baou.active {
    color: #FFFFFF !important;
    background-color: var(--baou-royal);
}

/* Hero Section */
.hero-baou {
    background: linear-gradient(135deg, #0B2545 0%, #134074 60%, #1D5393 100%);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    border-radius: 0 0 32px 32px;
}

.hero-baou::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.badge-gold {
    background-color: rgba(212, 175, 55, 0.2);
    color: #FDE047;
    border: 1px solid rgba(252, 211, 77, 0.4);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
}

/* Ticker Bar */
.ticker-container {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--baou-border);
}

.ticker-badge {
    background: var(--baou-gold);
    color: #000000;
    font-weight: 800;
    padding: 12px 20px;
    white-space: nowrap;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 15px;
}

.ticker-items {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-items:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    margin-right: 30px;
    color: var(--baou-navy);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
}

.ticker-item:hover {
    color: var(--baou-gold-hover);
    text-decoration: underline;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Quick Action Cards */
.action-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--baou-border);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.action-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--baou-royal);
    transition: width 0.3s ease;
}

.action-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.action-card:hover::after {
    width: 8px;
    background-color: var(--baou-gold);
}

.action-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: #EEF4F8;
    color: var(--baou-royal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.action-card:hover .action-icon {
    background: var(--baou-navy);
    color: var(--baou-gold);
}

/* Notice Cards & Badges */
.notice-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    border: 1px solid var(--baou-border);
    padding: 20px;
    transition: all 0.2s ease;
}

.notice-card:hover {
    border-color: var(--baou-royal);
    box-shadow: var(--shadow-md);
}

.badge-exam {
    background-color: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FCA5A5;
}

.badge-admission {
    background-color: #F0FDF4;
    color: #16A34A;
    border: 1px solid #86EFAC;
}

.badge-general {
    background-color: #EFF6FF;
    color: #2563EB;
    border: 1px solid #93C5FD;
}

/* Marksheet Printable Layout */
.marksheet-box {
    background: #FFFFFF;
    border: 2px solid var(--baou-navy);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.marksheet-header {
    border-bottom: 2px solid var(--baou-navy);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.marksheet-table th {
    background-color: var(--baou-navy);
    color: #FFFFFF;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Print CSS */
@media print {
    body {
        background: #FFFFFF !important;
        color: #000000 !important;
    }
    .no-print, .top-notice-bar, navbar, footer, .btn, .ticker-container {
        display: none !important;
    }
    .marksheet-box {
        border: 2px solid #000000 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    .marksheet-table th {
        background-color: #E2E8F0 !important;
        color: #000000 !important;
    }
}

/* Footer */
footer {
    margin-top: auto;
    background: #07192F;
    color: #94A3B8;
    padding-top: 50px;
    padding-bottom: 20px;
}

footer a {
    color: #CBD5E1;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-heading {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    background-color: var(--baou-gold);
    border-radius: 2px;
}


/* ============================================================
   MODERNIZATION PASS -- Aug 2026
   Utility classes + shared components reused across every page
   ============================================================ */

/* .text-navy / .bg-navy were used throughout the markup but never
   actually defined anywhere -- every element using them alone now works */
.text-navy { color: var(--baou-navy) !important; }
.bg-navy { background-color: var(--baou-navy) !important; }
.border-navy { border-color: var(--baou-navy) !important; }
.bg-gradient-navy {
    background: linear-gradient(135deg, var(--baou-navy) 0%, var(--baou-royal) 100%) !important;
}

/* Shared page banner -- replaces the inline gradient style duplicated
   on every inner page (admission/results/assignments) */
.page-banner {
    background: linear-gradient(135deg, var(--baou-navy) 0%, var(--baou-royal) 100%);
    color: #FFFFFF;
    padding: 48px 0;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Soft pastel section background for visual rhythm between white sections */
.section-tint {
    background: linear-gradient(180deg, #EEF4FB 0%, #F8FAFC 100%);
}

/* Notice cards get the same left-accent-on-hover treatment as action cards */
.notice-card {
    position: relative;
    overflow: hidden;
}

.notice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--baou-border);
    transition: background 0.3s ease;
}

.notice-card:hover::before {
    background: var(--baou-gold);
}

/* Buttons get a subtle lift on hover, site-wide */
.btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-warning:hover, .btn-primary:hover, .btn-success:hover {
    box-shadow: var(--shadow-md);
}

/* Brand-matched form focus rings instead of Bootstrap's default blue */
.form-control:focus, .form-select:focus {
    border-color: var(--baou-royal);
    box-shadow: 0 0 0 0.2rem rgba(19, 64, 116, 0.15);
}

/* Smooth in-page scrolling + a visible, on-brand keyboard focus outline */
html {
    scroll-behavior: smooth;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
    outline: 3px solid var(--baou-gold);
    outline-offset: 2px;
}
