/* ============================================================
   Rehan Education Clone - Premium Modern Design
   ============================================================ */

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #eef2ff;
    --primary-rgb: 79, 70, 229;
    --secondary: #64748b;
    --accent: #06b6d4;
    --accent-light: #ecfeff;
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

body {
    font-family: var(--font);
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.7;
}

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(255,255,255,0.98) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226,232,240,0.6);
    padding: 14px 0;
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--dark) !important;
    letter-spacing: -0.5px;
}
.navbar .nav-link {
    font-weight: 500;
    color: var(--gray-600) !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.navbar .nav-link:hover { color: var(--primary) !important; background: var(--primary-light); }
.navbar .nav-link.active { color: var(--primary) !important; background: var(--primary-light); font-weight: 600; }

/* ===== HERO ===== */
.p-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #312e81 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.p-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79,70,229,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.p-hero h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.15; letter-spacing: -1px; }
.p-hero p { font-size: 1.15rem; opacity: 0.85; max-width: 600px; line-height: 1.7; }
.p-hero .btn-light { background: #fff; color: var(--primary); border: none; box-shadow: 0 4px 14px rgba(0,0,0,0.15); }
.p-hero .btn-light:hover { background: #f1f5f9; transform: translateY(-1px); }
.p-hero .btn-outline-light { border: 2px solid rgba(255,255,255,0.4); color: #fff; }
.p-hero .btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.p-hero-icon { font-size: 8rem; opacity: 0.15; }

/* ===== STATS ===== */
.p-stats {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 36px;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}
.p-stat-number { font-size: 2.2rem; font-weight: 800; color: var(--primary); }
.p-stat-label { color: var(--gray-500); font-size: 0.9rem; font-weight: 500; }

/* ===== SECTIONS ===== */
.p-section-title { font-size: 2rem; font-weight: 800; color: var(--gray-900); letter-spacing: -0.5px; }
.p-section-subtitle { color: var(--gray-500); font-size: 1.05rem; max-width: 600px; margin: 8px auto 0; }

/* ===== FEATURE ICONS ===== */
.p-feature-icon {
    width: 64px; height: 64px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s;
}
.p-feature-icon i { font-size: 1.5rem; color: #fff; }
.p-feature-icon.bg-primary { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.p-feature-icon.bg-success { background: linear-gradient(135deg, #34d399, #10b981); }
.p-feature-icon.bg-secondary { background: linear-gradient(135deg, #94a3b8, #64748b); }
.p-feature-icon.bg-warning { background: linear-gradient(135deg, #fbbf24, #f59e0b); }

/* ===== COURSE CARDS ===== */
.p-course-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.p-course-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}
.p-course-card img { width: 100%; height: 200px; object-fit: cover; }
.p-course-price { font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.p-course-original-price { text-decoration: line-through; color: var(--gray-400); font-size: 0.9rem; margin-left: 6px; }

/* ===== CATEGORY CARDS ===== */
.p-cat-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s;
}
.p-cat-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.p-cat-card i { font-size: 2rem; color: var(--primary); margin-bottom: 10px; }

/* ===== BLOG CARDS ===== */
.p-blog-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
}
.p-blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.p-blog-card img { width: 100%; height: 200px; object-fit: cover; }
.p-blog-meta { color: var(--gray-400); font-size: 0.85rem; }
.p-blog-excerpt { color: var(--gray-600); font-size: 0.92rem; line-height: 1.7; }

/* ===== STORY CARDS ===== */
.p-story-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
}
.p-story-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.p-story-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; }
.p-story-name { font-weight: 700; color: var(--gray-900); }
.p-story-role { color: var(--primary); font-size: 0.85rem; font-weight: 500; }
.p-story-text { color: var(--gray-600); font-size: 0.92rem; line-height: 1.7; font-style: italic; }

/* ===== BUTTONS ===== */
.btn { border-radius: var(--radius-sm); font-weight: 600; padding: 10px 24px; transition: all 0.2s; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 32px; border-radius: 10px; }
.btn-sm { padding: 7px 18px; font-size: 0.85rem; border-radius: 6px; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }

/* ===== CARDS ===== */
.card { border-radius: var(--radius); border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); }
.card:hover { box-shadow: var(--shadow-md); }

/* ===== FORMS ===== */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-300);
    padding: 11px 16px;
    font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

/* ===== BADGES ===== */
.badge { font-weight: 600; padding: 5px 12px; border-radius: 6px; }

/* ===== BREADCRUMB ===== */
.breadcrumb { background: none; padding: 16px 0; margin: 0; }
.breadcrumb a { color: var(--gray-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .active { color: var(--gray-400); }

/* ===== FOOTER ===== */
.p-footer { background: #0f172a; color: rgba(255,255,255,0.65); padding: 64px 0 32px; }
.p-footer h5, .p-footer h6 { color: #fff; font-weight: 700; }
.p-footer a { color: rgba(255,255,255,0.55); text-decoration: none; transition: all 0.2s; }
.p-footer a:hover { color: #fff; }
.p-footer ul li { margin-bottom: 8px; }
.p-social a {
    display: inline-flex; width: 40px; height: 40px; border-radius: 50%;
    align-items: center; justify-content: center;
    background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.6);
    margin-right: 8px; transition: all 0.2s;
}
.p-social a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.p-footer hr { border-color: rgba(255,255,255,0.08); }

/* ===== BACK TO TOP ===== */
.p-back-top {
    position: fixed; bottom: 30px; right: 30px; width: 48px; height: 48px;
    border-radius: 50%; border: none; z-index: 999;
    box-shadow: var(--shadow-lg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .p-hero { padding: 50px 0; }
    .p-hero h1 { font-size: 2.2rem; }
    .p-hero p { font-size: 1rem; }
    .p-section-title { font-size: 1.6rem; }
}
@media (max-width: 767.98px) {
    .p-hero h1 { font-size: 1.8rem; }
    .p-hero .btn-lg { width: 100%; }
    .p-stats { margin-top: 20px; padding: 20px; }
    .p-stat-number { font-size: 1.6rem; }
}
.p-blog-thumb { width:100%;height:200px;object-fit:cover;border-radius:12px 12px 0 0;background:#eef2ff; }
