/* =========================================
   1. GLOBAL VARIABLES & BASE STYLES
   ========================================= */
:root {
    /* Existing Variables (Keep these for other pages) */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --gray-light: #e2e8f0;
    --gray: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;

    /* NEW VARIABLES (Added for Course Page Compatibility) */
    --accent: #db2777;
    --dark-blue: #1e293b;
    --slate: #334155;
    --light-slate: #64748b;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --shadow-hover: 0 20px 40px rgba(124, 58, 237, 0.15);
    /* Mapping Course Page 'primary' to existing 'primary-color' for consistency */
    --primary: var(--primary-color); 
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px; /* Adjusted for fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. NAVIGATION (Main)
   ========================================= */
.navbar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); /* Updated to gradient match */
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
    z-index: 1030;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-name {
    color: white;
    /* Kept simple white for consistency, or use your gradient text if preferred */
    font-size: 24px;
    letter-spacing: -0.5px;
}

.round-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius);
}

.nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-nav {
    padding: 0.5rem 1.5rem !important;
    margin-left: 1rem;
    background: linear-gradient(135deg, #db2777 0%, #7c3aed 100%) !important;
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
}

/* =========================================
   3. SHARED SECTIONS (Hero, Footer, etc.)
   ========================================= */

/* Generic Hero (Home/About) */
.hero-section {
    padding: 100px 0 80px;
    background: var(--gradient);
    color: white;
    position: relative;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white; /* Reset to white for better contrast on gradient */
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.hero-image:hover {
    transform: translateY(-5px);
}

/* Standard Section Padding */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-color) !important;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    border-radius: 50px; /* Updated to rounded style */
    font-weight: 600;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    color: white;
}

.btn-light {
    background-color: white;
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--light-color);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid white;
    background: transparent;
    color: white;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 70px 0 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    margin-right: 15px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.8);
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.copyright {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* =========================================
   4. NEW COURSE PAGE COMPONENTS (Additions)
   ========================================= */

/* Sticky Sub-Navigation */
.course-sub-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 80px; /* Below main navbar */
    z-index: 1020;
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.sub-nav-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; justify-content: center; gap: 30px;
    flex-wrap: wrap;
}

.sub-nav-link {
    text-decoration: none;
    color: var(--slate);
    font-weight: 600;
    font-size: 15px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s;
}

.sub-nav-link:hover, .sub-nav-link.active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.sub-nav-link i { margin-right: 6px; }

/* Hero Stats (Course Page) */
.hero-stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s;
}

.hero-stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Swiper Carousel */
.swiper {
    width: 100%;
    height: 450px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.swiper-slide {
    position: relative;
    overflow: hidden;
}

.swiper-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
    color: white;
    padding: 30px;
}

/* Why Choose Us Section */
.why-us-section {
    background: var(--dark-blue);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.why-us-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s;
}

.why-us-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.1);
    border-color: var(--accent);
}

.why-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, #db2777 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: white;
}

/* New Pricing System */
.pricing-section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.pricing-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 10px;
}

.pricing-card {
    border: none;
    border-radius: 20px;
    padding: 40px;
    background: white;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* Large "Pay Once" Card */
.pricing-card-lg {
    transform: scale(1.05);
    z-index: 2;
    border: 2px solid var(--primary-color);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.2);
}

.pricing-card-lg::before {
    content: 'Recommended';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background: var(--gradient);
    color: white;
    padding: 8px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/* Individual Tool Cards */
.tool-card {
    border: 1px solid var(--gray-light);
    transition: all 0.3s;
}

.tool-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.price-tag {
    font-size: 42px;
    font-weight: 800;
    color: var(--dark-color);
    margin: 20px 0;
}

.price-tag span {
    font-size: 16px;
    color: var(--light-slate);
    font-weight: 400;
}

.discount-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 5px 10px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.feature-list li {
    margin-bottom: 15px;
    color: var(--slate);
    display: flex;
    align-items: center;
}

.feature-list li i {
    margin-right: 10px;
}

/* Payment Forms */
.form-section {
    display: none;
    margin-top: 50px;
    animation: fadeIn 0.5s ease;
}

.form-section.active {
    display: block;
}

.payment-option {
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.payment-option:hover, .payment-option.active {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .pricing-card-lg {
        transform: scale(1);
        margin-bottom: 30px;
        z-index: 1;
    }
}

@media (max-width: 768px) {
    .course-sub-nav {
        overflow-x: auto;
        white-space: nowrap;
    }
    .sub-nav-list {
        padding: 0 15px;
        justify-content: flex-start;
    }
    .hero-title {
        font-size: 2rem;
    }
}

