/* ============================================
   BBA Marketing Management - Study Guide
   Academic Design System
   ============================================ */

:root {
    /* Primary Colors - Academic Blue */
    --primary-50: #EFF6FF;
    --primary-100: #DBEAFE;
    --primary-200: #BFDBFE;
    --primary-300: #93C5FD;
    --primary-500: #3B82F6;
    --primary-600: #2563EB;
    --primary-700: #1D4ED8;
    --primary-800: #1E40AF;
    --primary-900: #1E3A8A;
    
    /* Neutral Colors */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Accent Colors */
    --accent-amber: #F59E0B;
    --accent-green: #10B981;
    --accent-red: #EF4444;
    --accent-purple: #8B5CF6;
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--gray-50);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ============================================
   Header
   ============================================ */
.header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo-icon {
    font-size: 2rem;
}

.logo-text h1 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

.nav {
    display: flex;
    gap: var(--space-6);
}

.nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    padding: var(--space-2) 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav a:hover {
    color: var(--primary-600);
    border-bottom-color: var(--primary-500);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 50%, var(--primary-700) 100%);
    color: white;
    padding: var(--space-16) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-6);
    backdrop-filter: blur(10px);
}

.hero h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.hero > .container > .hero-content > p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-12);
    margin-bottom: var(--space-10);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--space-1);
}

.search-box {
    display: flex;
    gap: var(--space-3);
    max-width: 600px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    padding: var(--space-4) var(--space-5);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--gray-800);
}

.search-box input::placeholder {
    color: var(--gray-400);
}

.search-box button {
    padding: var(--space-4) var(--space-6);
    background: var(--accent-amber);
    color: var(--gray-900);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-box button:hover {
    background: #FBBF24;
    transform: translateY(-2px);
}

/* ============================================
   Quick Navigation
   ============================================ */
.quick-nav {
    padding: var(--space-16) 0;
    background: white;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: var(--space-10);
}

.unit-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.unit-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.unit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.unit-card:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.unit-card:hover::before {
    transform: scaleX(1);
}

.unit-number {
    display: inline-block;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
}

.unit-card h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-3);
}

.unit-card p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.unit-hours {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--primary-50);
    color: var(--primary-700);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

/* ============================================
   Unit Sections
   ============================================ */
.unit-section {
    padding: var(--space-16) 0;
}

.unit-section.alt-bg {
    background: var(--gray-100);
}

.unit-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.unit-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--primary-100);
    color: var(--primary-700);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.unit-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-3);
}

.unit-desc {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-8);
}

.content-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
}

.content-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.topic-list li {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9375rem;
    color: var(--gray-700);
    position: relative;
    padding-left: var(--space-6);
}

.topic-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: 700;
}

.topic-list li:last-child {
    border-bottom: none;
}

.pyq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.pyq-item {
    padding: var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-500);
}

.pyq-year {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--primary-500);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-2);
}

.pyq-item p {
    font-size: 0.9375rem;
    color: var(--gray-700);
    line-height: 1.6;
}

/* ============================================
   Important Questions
   ============================================ */
.important-questions {
    padding: var(--space-16) 0;
    background: white;
}

.section-title-center {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: var(--space-3);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: var(--space-10);
}

.imp-q-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-6);
}

.imp-q-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    position: relative;
    transition: all 0.3s ease;
}

.imp-q-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.imp-q-card.high {
    border-color: var(--accent-red);
    background: linear-gradient(135deg, #FEF2F2, white);
}

.imp-q-card.medium {
    border-color: var(--accent-amber);
    background: linear-gradient(135deg, #FFFBEB, white);
}

.priority-badge {
    position: absolute;
    top: -10px;
    right: var(--space-4);
    padding: var(--space-1) var(--space-3);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    color: white;
}

.imp-q-card.high .priority-badge {
    background: var(--accent-red);
}

.imp-q-card.medium .priority-badge {
    background: var(--accent-amber);
    color: var(--gray-900);
}

.imp-q-card h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-3);
    margin-top: var(--space-2);
}

.imp-q-card p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.frequency {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-600);
}

/* ============================================
   Resources
   ============================================ */
.resources {
    padding: var(--space-16) 0;
    background: var(--gray-100);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.resource-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
}

.resource-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
    display: block;
}

.resource-card h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

.resource-card ul {
    text-align: left;
}

.resource-card li {
    padding: var(--space-2) 0;
    font-size: 0.9375rem;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
}

.resource-card li:last-child {
    border-bottom: none;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--gray-900);
    color: white;
    padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-10);
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.footer-brand p {
    color: var(--gray-400);
    line-height: 1.7;
    max-width: 400px;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--gray-300);
}

.footer-links a {
    display: block;
    padding: var(--space-2) 0;
    color: var(--gray-400);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--gray-800);
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.disclaimer {
    margin-top: var(--space-2);
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 48px;
    height: 48px;
    background: var(--primary-600);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-700);
    transform: translateY(-4px);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        gap: var(--space-8);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .nav {
        gap: var(--space-4);
    }
    
    .hero {
        padding: var(--space-12) 0;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .unit-cards {
        grid-template-columns: 1fr;
    }
    
    .imp-q-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    .logo-text h1 {
        font-size: 1rem;
    }
    
    .nav a {
        font-size: 0.75rem;
    }
    
    .section-title,
    .section-title-center {
        font-size: 1.5rem;
    }
    
    .content-card {
        padding: var(--space-5);
    }
}

/* ============================================
   Search Highlight
   ============================================ */
.highlight {
    background: #FEF3C7;
    padding: 2px 4px;
    border-radius: var(--radius-sm);
}

/* Smooth scroll offset for fixed header */
:target {
    scroll-margin-top: 100px;
}