@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-blue: #1E88E5;
    --primary-dark: #0D47A1;
    --accent-orange: #FF7A00;
    --accent-gold: #FFD700;
    --dark-text: #1A1A1A;
    --medium-text: #4A4A4A;
    --light-bg: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --soft-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    --premium-shadow: 0 30px 60px rgba(30, 136, 229, 0.15);
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--dark-text);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Layout --- */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 25px;
}

section {
    padding: 100px 0;
    position: relative;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #64B5F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Glassmorphism --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--soft-shadow);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    gap: 10px;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 10px 20px rgba(30, 136, 229, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(30, 136, 229, 0.4);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #FFA726 100%);
    color: white;
    box-shadow: 0 10px 20px rgba(255, 122, 0, 0.2);
}

.btn-accent:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 122, 0, 0.4);
}

.btn-outline {
    background: white;
    border: 2.5px solid var(--primary-blue);
    color: var(--primary-blue);
}

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

/* --- Navigation --- */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    padding: 12px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.logo img { height: 50px; width: auto; transition: var(--transition); display: block; }
header.scrolled .logo img { height: 40px; }

#mobile-toggle { display: none; background: none; border: none; font-size: 28px; color: var(--primary-blue); cursor: pointer; padding: 5px; }

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.header-btns { display: flex; align-items: center; gap: 15px; }

.nav-flex { display: flex; justify-content: space-between; align-items: center; }

nav ul li a {
    text-decoration: none;
    color: var(--medium-text);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-blue);
}

nav ul li a:hover::after {
    width: 100%;
}

/* --- Hero Section --- */
.hero { padding: 80px 0; background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%); overflow: hidden; }
.hero-title { font-size: 62px; line-height: 1.1; margin-bottom: 25px; color: var(--dark-text); font-weight: 900; }
.hero-subtitle { font-size: 20px; line-height: 1.6; color: #444; margin-bottom: 35px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    color: #555;
    margin-bottom: 35px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

/* Hero Visuals & Animation */
.hero-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-graphic {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 2;
    position: relative;
}

.floating-icon {
    position: absolute;
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

.icon-brain {
    top: -20px;
    left: -20px;
    color: var(--primary-blue);
    animation-delay: 0s;
}

.icon-chart {
    bottom: 30px;
    right: -30px;
    color: var(--accent-orange);
    animation-delay: 1.5s;
}

.icon-rupee {
    top: 40%;
    left: -40px;
    color: #4CAF50;
    animation-delay: 0.8s;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* --- Features Section --- */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--soft-shadow);
    text-align: center;
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #e3f2fd;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    font-size: 24px;
}

/* --- Course Section --- */
.course-card {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    box-shadow: var(--premium-shadow);
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.course-card:hover {
    transform: scale(1.02);
}

.course-img {
    flex: 1;
    background: #f0f0f0 url('../images/course_hero.jpg') center/cover;
}

.course-details {
    flex: 1.2;
    padding: 40px;
}

.course-tag {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    color: #E65100;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 20px;
}

.price {
    font-size: 32px;
    font-weight: 700;
    margin: 20px 0;
}

.price span {
    color: #999;
    font-size: 18px;
    font-weight: 400;
    margin-left: 10px;
}

.old-price {
    text-decoration: line-through;
}

.course-includes {
    list-style: none;
    margin-bottom: 30px;
}

.course-includes li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.course-includes li::before {
    content: '✓';
    color: #4CAF50;
    font-weight: bold;
}

/* --- FAQ Page Accordion --- */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: box-shadow 0.3s border-color 0.3s;
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.faq-question {
    padding: 25px 30px;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-item.active .faq-question {
    color: var(--primary-blue);
    border-bottom: 1px solid #f9f9f9;
}

.faq-question i {
    font-size: 16px;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #fafafa;
}

.faq-answer p {
    padding: 25px 30px;
    color: #555;
    margin: 0;
    line-height: 1.8;
}

/* --- WhatsApp Strip --- */
.whatsapp-strip {
    background: #25D366;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-weight: 600;
}

/* --- Footer --- */
footer {
    background: #fafafa;
    padding: 80px 0 40px;
    border-top: 1px solid #eee;
}

footer a {
    text-decoration: none;
    color: var(--medium-text);
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-blue);
}

footer h4 {
    color: var(--dark-text);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 12px;
}

footer .logo {
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    color: var(--primary-blue);
    display: inline-block;
    margin-bottom: 0;
}

footer .logo span {
    color: var(--dark-text);
}

footer p {
    color: #666;
    line-height: 1.7;
}

/* --- Admin Dashboard Layout --- */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: #0f172a;
    color: white;
    padding: 30px 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.admin-sidebar .logo {
    color: white !important;
    font-size: 24px !important;
    font-weight: 800;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 30px;
    display: block;
    text-decoration: none;
}

.admin-sidebar .logo span {
    color: var(--primary-blue);
}

.admin-menu {
    list-style: none;
    padding: 0;
}

.admin-menu li {
    margin-bottom: 8px;
}

.admin-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.admin-menu li a i {
    font-size: 18px;
}

.admin-menu li a:hover, 
.admin-menu li a.active {
    background: rgba(30, 136, 229, 0.1);
    color: var(--primary-blue);
}

.admin-menu li a.active {
    background: var(--primary-blue);
    color: white !important;
    box-shadow: 0 10px 20px rgba(30, 136, 229, 0.2);
}

.admin-main {
    background: #f8fafc;
    padding: 40px;
    min-width: 0; /* Fix CSS Grid 1fr blowout for responsive tables */
}

.admin-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 15px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom: 2px solid #f1f5f9;
}

.admin-table td {
    padding: 15px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
}

@media (max-width: 1024px) {
    .container { padding: 0 15px; }
    .hero { padding: 80px 0 40px 0; text-align: center; }
    .hero-grid { grid-template-columns: 1fr; gap: 50px; }
    
    .hero-title { font-size: 32px; line-height: 1.2; margin-bottom: 20px; }
    .hero-subtitle { font-size: 16px; margin-bottom: 25px; }
    .hero-btns { flex-direction: column; gap: 15px; align-items: stretch; }
    .hero-btns .btn { width: 100%; margin: 0; }

    .nav-flex { 
        flex-wrap: wrap; 
        align-items: center;
        justify-content: space-between;
    }

    .logo { order: 1; display: inline-block; }
    #mobile-toggle { display: block !important; order: 2; }
    #mobile-nav { order: 3; }
    #header-actions { order: 4; }
    
    #mobile-nav, #header-actions {
        display: none !important;
        width: 100%;
        background: #fff;
        padding: 15px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        border-radius: 8px;
        margin-top: 15px;
    }
    
    #mobile-nav.show, #header-actions.show {
        display: flex !important;
        flex-direction: column;
    }

    #mobile-nav ul {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    #mobile-nav ul li a {
        padding: 10px 0;
        border-bottom: 1px solid #eee;
        width: 100%;
        justify-content: space-between;
    }

    #header-actions {
        box-shadow: none;
        padding-top: 0;
        margin-top: 0;
    }

    #header-actions .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .course-card { flex-direction: column; }
    .course-img { height: 200px; }
    .course-details { padding: 25px; }
    
    .price { font-size: 28px; }
    
    .faq-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* --- Checkout Responsive --- */
.checkout-section { padding: 80px 0; background: #f9f9f9; }
.checkout-flex-grid { display: flex; gap: 40px; }
.checkout-main-card { flex: 1.5; min-width: 300px; background: white; padding: 40px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.checkout-sidebar-card { flex: 1; min-width: 250px; }

@media (max-width: 1024px) {
    .checkout-section { padding: 40px 15px; }
    .checkout-flex-grid { flex-direction: column; gap: 30px; }
    .checkout-main-card { padding: 25px; }
}

/* --- Profile Responsive --- */
.profile-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
@media (max-width: 992px) {
    .profile-grid { grid-template-columns: 1fr; }
}

/* --- Dashboard --- */
.dash-welcome { font-size: 42px; margin-bottom: 10px; }
.dash-subtitle { font-size: 18px; opacity: 0.9; }

/* --- Dashboard Responsive --- */
.welcome-card { background: white; border-radius: 20px; padding: 30px; margin-bottom: 40px; box-shadow: var(--soft-shadow); border: 1px solid #eee; }
.welcome-flex { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.user-profile-info { display: flex; gap: 20px; align-items: center; }
.user-avatar-circle { width: 70px; height: 70px; background: #E3F2FD; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--primary-blue); flex-shrink: 0; }
.profile-actions { text-align: right; }

@media (max-width: 1024px) {
    .dashboard-hero { padding: 100px 0 40px 0 !important; text-align: center; }
    .dash-welcome { font-size: 24px; line-height: 1.3; }
    .dash-subtitle { font-size: 14px; }
    .welcome-flex { flex-direction: column; gap: 20px; text-align: center; }
    .user-profile-info { flex-direction: column; text-align: center; }
    .profile-actions { text-align: center; width: 100%; }
    .profile-actions .btn { width: 100%; }
    .welcome-card { padding: 25px 15px; }
}

/* --- Footer --- */
.main-footer { padding: 80px 0 30px 0; background: #fff; border-top: 1px solid #f0f0f0; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-col { flex: 1; min-width: 200px; }
.brand-col { flex: 1.5; min-width: 250px; }

.footer-col h4 { color: var(--dark-text); margin-bottom: 25px; font-weight: 700; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { text-decoration: none; color: #666; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--primary-blue); padding-left: 5px; }

.footer-desc { margin-top: 20px; color: #777; line-height: 1.6; }
.footer-link-p { margin-top: 10px; }
.footer-link-p a { color: var(--primary-blue); text-decoration: none; font-weight: 600; }

.footer-socials { display: flex; gap: 15px; margin-top: 25px; }
.footer-socials a { font-size: 22px; transition: var(--transition); }
.footer-socials a:hover { transform: translateY(-5px); }
.footer-socials .facebook { color: #1877f2; }
.footer-socials .instagram { color: #e4405f; }
.footer-socials .linkedin { color: #0a66c2; }

.footer-contact-list { display: flex; flex-direction: column; gap: 15px; color: #666; }
.contact-item { display: flex; align-items: flex-start; gap: 12px; }
.contact-item i { color: var(--primary-blue); margin-top: 4px; }
.contact-item a { color: inherit; text-decoration: none; white-space: nowrap; }

.footer-bottom { margin-top: 60px; padding-top: 30px; border-top: 1px solid #eee; text-align: center; color: #888; font-size: 14px; }
.footer-bottom .brand-text { font-weight: 700; color: var(--primary-blue); }
.footer-bottom .powered-by a { color: var(--primary-blue); text-decoration: none; font-weight: 600; }

@media (max-width: 1024px) {
    /* Always use Mobile Header on Tablets/Foldables to prevent menu crowding */
    .hero { text-align: center; }
    .hero-grid { grid-template-columns: 1fr; gap: 50px; }
    .hero-content { max-width: 100%; margin: 0 auto; text-align: center; }
    .hero-title { font-size: 38px; margin: 0 auto 20px auto; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-btns { flex-direction: column; width: 100%; align-items: center; justify-content: center; }
    .hero-btns .btn { width: 100%; max-width: 400px; margin: 0; }
    .hero-stats { justify-content: center; margin: 25px auto 0 auto; }

    .nav-flex { flex-wrap: wrap; align-items: center; justify-content: space-between; }
    .logo { order: 1; display: inline-block; }
    #mobile-toggle { display: block !important; order: 2; }
    #mobile-nav, #header-actions { display: none !important; width: 100%; background: #fff; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 12px; margin-top: 20px; order: 3; }
    #mobile-nav.show, #header-actions.show { display: flex !important; flex-direction: column; }
    #mobile-nav ul { flex-direction: column; gap: 15px; width: 100%; }
    #mobile-nav ul li a { padding: 12px 0; border-bottom: 1px solid #eee; width: 100%; }
}

@media (max-width: 768px) {
    .main-footer { padding: 40px 0 20px 0; }
    .footer-grid { flex-direction: column; text-align: center; gap: 40px; }
    .footer-col { width: 100%; min-width: 100%; }
    .footer-socials { justify-content: center; }
    .contact-item { justify-content: center; }
    .footer-bottom { margin-top: 40px; padding: 20px 15px; }
    
    .course-card { flex-direction: column; }
    .faq-grid { grid-template-columns: 1fr; }
}
