/* ==========================================================================
   SARVINS ACADEMY - MODERN ENTERPRISE UI & DESIGN SYSTEM
   Branding: Sarvins Academy - "Learning Made Simple"
   Campus: Rampally, Hyderabad, Telangana, India
   Typography: Plus Jakarta Sans (Headings/Brand) & Inter (Body/Data)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #1e3a8a;          /* Deep Corporate Navy */
    --primary-hover: #172554;
    --primary-light: #eff6ff;
    --primary-gradient: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
    --secondary: #3b82f6;        /* Tech Accent Blue */
    --accent: #f59e0b;           /* Amber / Gold */
    --accent-hover: #d97706;
    --dark: #0f172a;             /* Dark Slate */
    --dark-surface: #1e293b;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-focus: #93c5fd;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* Base Reset & Typography */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.hero-title,
.btn,
.badge,
.section-title {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: -0.02em;
}

/* Top Announcement Strip */
.top-announcement-bar {
    background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
    color: #f8fafc;
    font-size: 0.825rem;
    padding: 6px 16px;
    letter-spacing: 0.2px;
}

/* Navbar */
.navbar-main {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
    transition: all 0.25s ease-in-out;
}

.navbar-brand img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.navbar-brand:hover img {
    transform: scale(1.02);
}

.nav-link {
    font-size: 0.925rem;
    font-weight: 500;
    color: #334155;
    padding: 8px 14px !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--primary) !important;
    background: rgba(30, 58, 138, 0.04);
}

.nav-link.active {
    color: var(--primary) !important;
    font-weight: 700;
    background: rgba(30, 58, 138, 0.08);
}

/* Hero Section */
.hero-gradient {
    background: var(--primary-gradient);
    color: #ffffff;
    padding: 85px 0 65px;
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, rgba(30, 58, 138, 0) 70%);
    pointer-events: none;
}

.hero-title {
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.25rem;
    }
}

/* Card Styling */
.course-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: #cbd5e1;
}

.course-thumbnail {
    height: 190px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3.2rem;
    position: relative;
    overflow: hidden;
}

/* Section Headers */
.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* Feature Boxes */
.feature-box {
    background: #ffffff;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.feature-box:hover {
    transform: translateY(-5px);
    border-color: #93c5fd;
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.08) 0%, rgba(59, 130, 246, 0.15) 100%);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    margin-bottom: 1.25rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

.btn-warning {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #0f172a;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.btn-warning:hover, .btn-warning:focus {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Footer Styling */
footer.bg-dark {
    background-color: #0b132b !important;
    color: #94a3b8;
}

footer .footer-logo img {
    height: 48px;
    width: auto;
}

footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: #ffffff !important;
}

/* CMS Page Content Styling */
.cms-content {
    color: #1e293b;
    font-size: 1.05rem;
    line-height: 1.85;
}

.cms-content h2, .cms-content h3, .cms-content h4 {
    color: var(--dark);
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.cms-content ul, .cms-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.cms-content li {
    margin-bottom: 0.5rem;
}

.cms-content p {
    margin-bottom: 1.25rem;
}

/* Sidebar for LMS & Admin */
.sidebar {
    min-height: calc(100vh - 60px);
    background-color: #ffffff;
    border-right: 1px solid var(--border-color);
}

.sidebar .nav-link {
    color: #475569;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    padding: 9px 14px !important;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: var(--primary) !important;
    background-color: rgba(30, 58, 138, 0.08);
}
