/*
Theme Name: Mastering Digital Custom
Theme URI: https://example.com/mastering-digital
Author: Custom Development
Author URI: https://example.com
Description: A premium custom e-learning WordPress theme inspired by fahimulkhan.com. Built without any LMS plugin — all course management, enrollment, and lesson player features are built directly into the theme. Uses WooCommerce for payment processing.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mastering-digital
Tags: e-learning, courses, custom-theme, woocommerce
*/

/* ============================================================
   CSS RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ============================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
:root {
    /* ---- Primary Palette ---- */
    --primary:          #1a2e35;
    --primary-light:    #2a4a55;
    --primary-dark:     #0f1c22;
    --accent:           #4361ee;
    --accent-hover:     #3651d4;
    --accent-light:     #eef1ff;
    --accent-glow:      rgba(67, 97, 238, 0.25);

    /* ---- Secondary / Supporting ---- */
    --success:          #10b981;
    --success-light:    #d1fae5;
    --warning:          #f59e0b;
    --warning-light:    #fef3c7;
    --danger:           #ef4444;
    --danger-light:     #fee2e2;
    --info:             #06b6d4;
    --info-light:       #cffafe;

    /* ---- Neutrals ---- */
    --text-primary:     #1a1a2e;
    --text-secondary:   #4a5568;
    --text-muted:       #718096;
    --text-light:       #a0aec0;
    --text-white:       #ffffff;

    /* ---- Backgrounds ---- */
    --bg-body:          #f7f8fc;
    --bg-white:         #ffffff;
    --bg-card:          #ffffff;
    --bg-sidebar:       #ffffff;
    --bg-header:        #ffffff;
    --bg-footer:        #0b0f19;
    --bg-input:         #f1f5f9;
    --bg-overlay:       rgba(0, 0, 0, 0.5);

    /* ---- Borders ---- */
    --border-color:     #e2e8f0;
    --border-light:     #f1f5f9;
    --border-input:     #cbd5e1;

    /* ---- Shadows ---- */
    --shadow-xs:        0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm:        0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md:        0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg:        0 8px 24px rgba(0, 0, 0, 0.10);
    --shadow-xl:        0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-card:      0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-card-hover:0 8px 24px rgba(0, 0, 0, 0.12);

    /* ---- Border Radius ---- */
    --radius-sm:        6px;
    --radius-md:        10px;
    --radius-lg:        16px;
    --radius-xl:        24px;
    --radius-full:      9999px;

    /* ---- Spacing Scale ---- */
    --space-xs:         4px;
    --space-sm:         8px;
    --space-md:         16px;
    --space-lg:         24px;
    --space-xl:         32px;
    --space-2xl:        48px;
    --space-3xl:        64px;
    --space-4xl:        96px;

    /* ---- Typography Scale ---- */
    --text-xs:          0.75rem;
    --text-sm:          0.875rem;
    --text-base:        1rem;
    --text-lg:          1.125rem;
    --text-xl:          1.25rem;
    --text-2xl:         1.5rem;
    --text-3xl:         1.875rem;
    --text-4xl:         2.25rem;
    --text-5xl:         3rem;

    /* ---- Transitions ---- */
    --transition-fast:  150ms ease;
    --transition-base:  250ms ease;
    --transition-slow:  400ms ease;

    /* ---- Z-Index Scale ---- */
    --z-dropdown:       100;
    --z-sticky:         200;
    --z-fixed:          300;
    --z-modal-backdrop: 400;
    --z-modal:          500;
    --z-popover:        600;
    --z-tooltip:        700;

    /* ---- Container ---- */
    --container-max:    1200px;
    --container-wide:   1400px;
    --sidebar-width:    280px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin-bottom: 1em;
    color: var(--text-secondary);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-4xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title h2 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-sm);
    position: relative;
    display: inline-block;
}

.section-title p {
    font-size: var(--text-lg);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-white { color: var(--text-white); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.grid { display: grid; }

.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 28px;
    font-family: 'Inter', sans-serif;
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--accent);
    color: var(--text-white);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--text-white);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--text-white);
}

.btn-white {
    background: var(--bg-white);
    color: var(--primary);
    border-color: var(--bg-white);
}

.btn-white:hover {
    background: transparent;
    color: var(--text-white);
    border-color: var(--text-white);
}

.btn-success {
    background: var(--success);
    color: var(--text-white);
    border-color: var(--success);
}

.btn-danger {
    background: var(--danger);
    color: var(--text-white);
    border-color: var(--danger);
}

.btn-sm {
    padding: 8px 18px;
    font-size: var(--text-xs);
}

.btn-lg {
    padding: 16px 36px;
    font-size: var(--text-base);
}

.btn-block {
    width: 100%;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: all var(--transition-base);
}

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

.card-body {
    padding: var(--space-lg);
}

.card-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--accent-light);
    color: var(--accent);
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.badge-danger {
    background: var(--danger-light);
    color: var(--danger);
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: var(--text-base);
    color: var(--text-primary);
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-white);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
    background: var(--bg-header);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-sticky);
    box-shadow: var(--shadow-md);
}

/* Push body content down to account for fixed header */
body {
    padding-top: 72px;
}

/* When WordPress admin bar is visible, offset the fixed header */
body.admin-bar .site-header {
    top: 32px;
}

body.admin-bar {
    padding-top: 104px; /* 72px header + 32px admin bar */
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px; /* WP admin bar is 46px on mobile */
    }
    body.admin-bar {
        padding-top: 118px; /* 72px + 46px */
    }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-lg);
    max-width: var(--container-wide);
    margin: 0 auto;
    height: 72px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.site-logo img {
    height: 42px;
    width: auto;
}

.site-logo .logo-text {
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.site-logo .logo-text span {
    color: var(--accent);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-links a {
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 4px;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.wishlist-icon {
    position: relative;
    color: var(--text-primary);
    font-size: var(--text-xl);
    cursor: pointer;
    transition: color 0.2s ease;
}

.wishlist-icon:hover {
    color: #ef4444;
}

.wishlist-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-dashboard {
    background: var(--accent);
    color: var(--text-white);
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
}

.btn-dashboard:hover {
    background: var(--accent-hover);
    color: var(--text-white);
    box-shadow: 0 4px 16px var(--accent-glow);
    transform: translateY(-1px);
}

/* Mobile menu toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
    min-height: 550px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(67, 97, 238, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    display: inline-block;
    background: rgba(67, 97, 238, 0.2);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.hero-title span {
    color: var(--accent);
}

.hero-desc {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    margin-bottom: var(--space-xl);
    max-width: 500px;
}

/* Dark Hero overrides */
.hero .hero-title,
.hero-dark .hero-title {
    color: var(--text-white);
}

.hero .hero-desc,
.hero-dark .hero-desc {
    color: rgba(255, 255, 255, 0.75);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.hero-social {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.hero-social a {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-height: 450px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* ============================================================
   BRAND / EXPERIENCE SECTION
   ============================================================ */
.brands-section {
    background: var(--bg-white);
    padding: var(--space-3xl) 0;
}

.brands-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3xl);
    flex-wrap: wrap;
}

.brands-grid img {
    height: 40px;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all var(--transition-base);
}

.brands-grid img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ============================================================
   COURSE CARDS GRID
   ============================================================ */
.courses-section {
    padding: 50px 0;
    background: var(--bg-body);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.course-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
}

.course-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-6px);
}

.course-card .card-thumb {
    position: relative;
    overflow: hidden;
}

.course-card .card-thumb img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.course-card:hover .card-thumb img {
    transform: scale(1.05);
}

.course-card .card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
}

.course-card .card-body {
    padding: var(--space-lg);
}

.course-card .card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: var(--space-sm);
}

.course-card .card-rating .stars {
    color: #f59e0b;
    font-size: var(--text-sm);
}

.course-card .card-rating .count {
    color: var(--text-muted);
    font-size: var(--text-xs);
}

.course-card .card-title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card .card-title a {
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.course-card .card-title a:hover {
    color: var(--accent);
}

.course-card .card-instructor {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.course-card .card-instructor img {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.course-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
}

.course-card .card-price {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.course-card .price-current {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--accent);
}

.course-card .price-original {
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-decoration: line-through;
}

/* ============================================================
   STATS / COUNTER SECTION
   ============================================================ */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: var(--space-3xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    text-align: center;
}

.stat-item {
    padding: var(--space-lg);
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: var(--text-5xl);
    font-weight: 800;
    color: var(--text-white);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-number span {
    color: var(--accent);
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
    background: var(--bg-white);
    padding: var(--space-4xl) 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-xl);
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    position: relative;
}

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

.testimonial-card .quote-icon {
    font-size: var(--text-3xl);
    color: var(--accent-light);
    margin-bottom: var(--space-md);
    line-height: 1;
}

.testimonial-card .testimonial-text {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-style: italic;
    line-height: 1.7;
}

.testimonial-card .testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-card .author-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--accent-light);
}

.testimonial-card .author-name {
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--text-primary);
}

.testimonial-card .author-role {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* ============================================================
   YOUTUBE / FREE LEARNING SECTION
   ============================================================ */
.youtube-section {
    padding: var(--space-4xl) 0;
    background: var(--bg-body);
}

.youtube-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
    flex-wrap: wrap;
}

.youtube-subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: #FF0000;
    color: var(--text-white);
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: var(--text-sm);
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
}

.youtube-subscribe-btn:hover {
    background: #cc0000;
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 0, 0, 0.3);
}

.youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.youtube-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    cursor: pointer;
}

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

.youtube-card .video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.youtube-card .video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.youtube-card:hover .video-thumb img {
    transform: scale(1.05);
}

.youtube-card .play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: var(--text-xl);
    transition: all var(--transition-base);
}

.youtube-card:hover .play-btn-overlay {
    background: #FF0000;
    transform: translate(-50%, -50%) scale(1.1);
}

.youtube-card .video-info {
    padding: var(--space-md);
}

.youtube-card .video-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   AWARDS SECTION
   ============================================================ */
.awards-section {
    background: linear-gradient(
        270deg,
        rgba(99, 102, 241, 0.08),
        rgba(139, 92, 246, 0.08),
        rgba(236, 72, 153, 0.08),
        rgba(249, 115, 22, 0.08),
        rgba(16, 185, 129, 0.08),
        rgba(59, 130, 246, 0.08),
        rgba(99, 102, 241, 0.08)
    );
    background-size: 600% 600%;
    animation: rainbow-bg-shift 12s ease infinite;
    padding: var(--space-4xl) 0;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.award-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.award-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.award-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--bg-footer);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-top-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 20px;
    display: grid;
    grid-template-columns: 140px 1.5fr 1.5fr 2fr;
    gap: 40px;
    align-items: center;
}

.footer-avatar-wrap {
    width: 140px;
    height: 140px;
    position: relative;
}

.footer-avatar-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #3b82f6;
    display: block;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
}

.footer-top-col h4 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    font-family: 'Poppins', sans-serif !important;
}

.footer-top-col p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

.footer-top-col p a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    transition: color var(--transition-fast);
}

.footer-top-col p a:hover {
    color: #3b82f6;
}

.footer-top-whatsapp {
    margin-top: var(--space-xs);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-top-we-accept {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.footer-top-we-accept .payment-logos {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-top-we-accept .payment-logos img {
    max-width: 340px;
    height: auto;
    width: 100%;
    display: block;
    object-fit: contain;
}

.footer-divider-line {
    max-width: 1200px;
    margin: 0 auto 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0 20px;
}

@media (max-width: 992px) {
    .footer-top-container {
        grid-template-columns: 140px 1fr 1fr;
        gap: 30px;
    }
    .footer-top-we-accept {
        grid-column: 1 / -1;
    }
    .we-accept-card {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .footer-top-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    .footer-avatar-wrap {
        margin: 0 auto;
    }
    .we-accept-card {
        margin: 0 auto;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr 1.3fr;
    gap: var(--space-xl);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.footer-col h4 {
    color: var(--text-white);
    font-size: var(--text-lg);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    padding: 4px 0;
}

.footer-links a:hover {
    color: var(--text-white);
    padding-left: 8px;
}

.footer-links-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-menu li {
    padding: 0;
    margin: 0;
}

.footer-links-menu li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
    padding: 4px 0;
}

.footer-links-menu li a:hover {
    color: var(--text-white);
    padding-left: 8px;
}

.footer-links-menu li a::before {
    content: '>';
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--space-3xl);
    padding-top: var(--space-lg);
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
}

.payment-icons {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.payment-icons img {
    height: 28px;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.payment-icons img:hover {
    opacity: 1;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.5s ease forwards;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet */
@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-image img {
        max-height: 300px;
    }

    .hero-desc {
        margin: 0 auto var(--space-xl);
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-social {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 576px) {
    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }
    h3 { font-size: var(--text-xl); }

    .container {
        padding: 0 var(--space-md);
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    .hero {
        padding: var(--space-3xl) 0;
        min-height: auto;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .youtube-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--info));
    z-index: var(--z-tooltip);
    transition: width 50ms linear;
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 28px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
    cursor: pointer;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
    color: var(--text-white);
}

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background: var(--bg-white);
    z-index: var(--z-modal);
    padding: var(--space-xl);
    transition: right var(--transition-base);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--bg-input);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.mobile-nav-close:hover {
    background: var(--danger-light);
    color: var(--danger);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.mobile-nav-links a {
    display: block;
    padding: 14px var(--space-md);
    color: var(--text-primary);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background: var(--accent-light);
    color: var(--accent);
}

/* ============================================================
   HOMEPAGE RECREATE FRONT-END CUSTOM STYLES
   ============================================================ */

/* Text Logo Fallback */
.logo-text-fallback {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text-fallback .logo-main {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-text-fallback .logo-blue {
    color: var(--accent);
}

.logo-text-fallback .logo-sub {
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 2.2px;
    margin-top: 2px;
}

/* Hero Section (Light Theme) */
.hero-section {
    background: linear-gradient(180deg, #ffffff 0%, #e8edf8 60%, #c7d2fe 100%);
    padding-top: 80px;
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
}

.hero-section .hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-3xl);
    align-items: flex-end;
}

.hero-section .hero-content {
    padding-bottom: 80px;
}

.hero-section .hero-subtitle {
    display: block;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    color: #1e293b !important;
    font-size: 36px !important;
    font-weight: 800 !important;
    text-transform: none !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 8px !important;
}

.hero-section .hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    letter-spacing: -1px;
    background: linear-gradient(
        to right, 
        #0b56cc, 
        #3b82f6, 
        #8b5cf6, 
        #ec4899, 
        #f43f5e, 
        #f97316, 
        #10b981, 
        #0b56cc
    );
    background-size: 400% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: brands-rainbow-animation 8s linear infinite;
}

@keyframes brands-rainbow-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-section .hero-desc {
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: #475569 !important;
    margin-bottom: var(--space-xl);
    max-width: 580px;
    font-weight: 400 !important;
}

.hero-section .btn-join-course {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: #ffffff !important;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s ease;
}

.hero-section .btn-join-course:hover {
    background: #4338ca;
    color: var(--text-white);
}

.hero-section .hero-social {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
}

.hero-section .social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #111827;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all var(--transition-base);
}

.hero-section .social-icon:hover {
    background: var(--accent);
    transform: translateY(-3px);
    color: var(--text-white);
}

.hero-section .hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    align-self: flex-end;
    margin-bottom: 0;
    padding-bottom: 0;
}

.hero-section .hero-shape-bg {
    position: absolute;
    bottom: 20px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero-section .hero-avatar-img {
    max-height: 540px;
    width: auto;
    max-width: 115%;
    object-fit: contain;
    z-index: 2;
    position: relative;
    display: block;
    vertical-align: bottom;
    margin-bottom: 0;
}

/* Brands section */
/* Rainbow animated background for light sections */
@keyframes rainbow-bg-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.rainbow-light-bg {
    background: linear-gradient(
        270deg,
        rgba(99, 102, 241, 0.08),
        rgba(139, 92, 246, 0.08),
        rgba(236, 72, 153, 0.08),
        rgba(249, 115, 22, 0.08),
        rgba(16, 185, 129, 0.08),
        rgba(59, 130, 246, 0.08),
        rgba(99, 102, 241, 0.08)
    ) !important;
    background-size: 600% 600% !important;
    animation: rainbow-bg-shift 12s ease infinite !important;
}

.brands-section {
    padding: 30px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(
        270deg,
        rgba(99, 102, 241, 0.08),
        rgba(139, 92, 246, 0.08),
        rgba(236, 72, 153, 0.08),
        rgba(249, 115, 22, 0.08),
        rgba(16, 185, 129, 0.08),
        rgba(59, 130, 246, 0.08),
        rgba(99, 102, 241, 0.08)
    );
    background-size: 600% 600%;
    animation: rainbow-bg-shift 12s ease infinite;
}

.brands-section-title {
    font-size: 38px;
    font-weight: 700;
    color: #0c4ab3;
    margin-bottom: 25px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px;
}

/* Infinite Scrolling Marquee */
.brands-marquee-container {
    overflow: hidden;
    max-width: 720px;
    width: 100%;
    margin: 0 auto var(--space-md);
    display: flex;
    padding: 15px 0;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.brands-marquee-content {
    display: flex;
    gap: 80px;
    align-items: center;
    width: max-content;
    animation: brands-marquee-scroll 18s linear infinite;
}

.brand-logo-item {
    flex-shrink: 0;
}

.brand-logo-item img {
    height: 64px;
    width: auto;
    object-fit: contain;
    opacity: 1;
    transition: transform var(--transition-fast);
}

.brand-logo-item img:hover {
    transform: scale(1.05);
}

@keyframes brands-marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

.brands-disclaimer {
    font-size: 12px;
    color: var(--text-muted);
}

/* Fallback Course Cards styling */
.courses-section .card-badge.badge-live {
    background: #fee2e2;
    color: #ef4444;
    border: 1px solid #fca5a5;
    padding: 4px 10px;
}

.courses-section .card-badge.badge-recorded {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
    padding: 4px 10px;
}

.course-card .card-instructor {
    margin-bottom: var(--space-md);
}

.course-card .inst-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.course-card .btn-add-cart {
    background: var(--accent);
    color: var(--text-white);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-base);
}

.course-card .btn-add-cart:hover {
    background: var(--accent-hover);
    color: var(--text-white);
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* Stats Counter Section */
.stats-counter-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    padding: var(--space-3xl) 0;
    color: var(--text-white);
    text-align: center;
}

.stats-counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-2xl);
}

.stat-counter-card {
    padding: var(--space-md);
}

.stat-counter-number {
    font-family: 'Poppins', sans-serif;
    font-size: 54px;
    font-weight: 800;
    color: #60a5fa;
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-counter-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}

/* Facebook reviews */
.facebook-reviews-section {
    background: linear-gradient(
        270deg,
        rgba(99, 102, 241, 0.1),
        rgba(139, 92, 246, 0.1),
        rgba(236, 72, 153, 0.1),
        rgba(249, 115, 22, 0.1),
        rgba(16, 185, 129, 0.1),
        rgba(59, 130, 246, 0.1),
        rgba(99, 102, 241, 0.1)
    );
    background-size: 600% 600%;
    animation: rainbow-bg-shift 12s ease infinite;
    padding: var(--space-4xl) 0;
}

.facebook-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.fb-review-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fb-review-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
    border-color: #3b82f6;
}

.fb-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
}

.fb-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.fb-avatar-blue { background: #3b82f6; }
.fb-avatar-orange { background: #f97316; }
.fb-avatar-purple { background: #a855f7; }
.fb-avatar-green { background: #22c55e; }
.fb-avatar-pink { background: #ec4899; }
.fb-avatar-teal { background: #14b8a6; }
.fb-avatar-red { background: #ef4444; }
.fb-avatar-cyan { background: #06b6d4; }

.fb-user-info {
    display: flex;
    flex-direction: column;
}

.fb-user-name {
    font-weight: 700;
    font-size: 14px;
    color: #050505;
}

.fb-post-time {
    font-size: 12px;
    color: #65676b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fb-brand-icon {
    position: absolute;
    right: 0;
    top: 0;
    color: #1877f2;
    font-size: 20px;
}

.fb-card-body {
    font-size: 14px;
    color: #050505;
    line-height: 1.5;
    margin-bottom: 12px;
    flex-grow: 1;
}

.fb-see-more {
    color: #65676b;
    font-weight: 600;
    cursor: pointer;
    margin-left: 4px;
}

.fb-card-footer-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #65676b;
}

.fb-like-circle {
    background: #1877f2;
    color: #ffffff;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-right: 4px;
}

.fb-card-actions {
    display: flex;
    justify-content: space-around;
}

.fb-action-btn {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #65676b;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    transition: background 0.2s ease;
    text-decoration: none;
}

.fb-action-btn:hover {
    background: #f0f2f5;
    color: #1877f2;
}

.fb-unavailable-card {
    background: #f0f2f5;
    border: 1px dashed #cbd5e1;
    justify-content: center;
    min-height: 160px;
}

.fb-unavailable-content {
    text-align: center;
    padding: 20px;
}

.fb-unavailable-text {
    font-size: 13px;
    color: #65676b;
    margin-bottom: 10px;
    line-height: 1.4;
}

.fb-unavailable-link {
    font-size: 13px;
    color: #1877f2;
    font-weight: 600;
    text-decoration: none;
}

.fb-unavailable-link:hover {
    text-decoration: underline;
}

/* Awards Cards Grid */
.awards-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.award-text-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.award-text-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.award-badge-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.award-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.award-card-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 0;
}

.awards-images-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.award-image-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    text-align: center;
    padding: 12px;
}

.award-image-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.award-image-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    margin-bottom: 10px;
}

.award-image-caption {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* YouTube section styling */
.youtube-panel-box {
    background: #0f172a;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    color: #ffffff;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    margin-bottom: var(--space-3xl);
    box-shadow: var(--shadow-xl);
}

.badge-free-edu {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    display: inline-block;
}

.youtube-panel-title {
    color: #ffffff;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.youtube-panel-desc {
    color: #94a3b8;
    margin-bottom: var(--space-xl);
    font-size: 16px;
    line-height: 1.6;
}

.youtube-stats-flex {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.youtube-stat-item {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: var(--space-lg);
}

.youtube-stat-item:last-child {
    border-right: none;
}

.youtube-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #ef4444;
    font-family: 'Poppins', sans-serif;
}

.youtube-stat-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.youtube-section .youtube-subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ef4444;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
}

.youtube-section .youtube-subscribe-btn:hover {
    background: #dc2626;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
    color: #ffffff;
}

.youtube-panel-video {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: #000000;
}

.youtube-panel-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.more-videos-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--primary);
    text-align: center;
}

.more-videos-subtitle {
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    text-align: center;
    font-size: 15px;
}

.youtube-videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.youtube-video-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    display: block;
    text-decoration: none;
    border: 1px solid #e5e7eb;
}

.youtube-video-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.video-thumb-container {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000000;
}

.video-thumb-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.youtube-video-card:hover .video-thumb-container img {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(239, 68, 68, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    transition: all var(--transition-base);
}

.youtube-video-card:hover .video-play-overlay {
    background: #ef4444;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card-info {
    padding: 12px;
}

.video-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 992px) {
    .hero-section .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-section .hero-avatar-img {
        max-height: 350px;
    }
    .hero-section .hero-desc {
        margin: 0 auto var(--space-xl);
    }
    .hero-section .hero-social {
        justify-content: center;
    }
    .brands-logos-grid {
        gap: 30px;
    }
    .facebook-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .awards-cards-grid,
    .awards-images-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .youtube-panel-box {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    .youtube-videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .facebook-reviews-grid,
    .awards-cards-grid,
    .awards-images-grid,
    .youtube-videos-grid {
        grid-template-columns: 1fr;
    }
    .stats-counter-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .hero-section .hero-title {
        font-size: 38px;
    }
    .youtube-panel-title {
        font-size: 28px;
    }
    .youtube-stats-flex {
        flex-direction: column;
        gap: 15px;
    }
    .youtube-stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-right: 0;
        padding-bottom: 10px;
    }
    .youtube-stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* ============================================================
   GLOBAL TYPOGRAPHY OVERRIDES (TO MATCH FAHIMULKHAN.COM EXACTLY)
   ============================================================ */
body, 
p,
div.fb-review-text,
div.course-card-desc,
div.youtube-panel-desc,
input, 
textarea, 
select {
    font-family: 'Inter', sans-serif !important;
}

h1, 
h2, 
h3, 
h4, 
h5, 
h6, 
.section-title h2, 
.hero-title, 
.more-videos-title, 
.youtube-panel-title,
.youtube-stat-number, 
.stat-counter-number, 
.stat-number {
    font-family: 'Poppins', sans-serif !important;
}

/* Specific overrides for the navigation menu & branding (uses Onest) */
.nav-links a, 
.logo-text, 
.logo-main,
.footer-links-menu li a,
.footer-col h4 {
    font-family: 'Onest', sans-serif !important;
}

/* ============================================================
   AOS FALLBACK (PREVENTS CONTENT HIDDEN IF AOS FAILS TO LOAD)
   Only applies opacity fallback, does NOT block transitions
   ============================================================ */
html:not(.aos-init) [data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

/* ============================================================
   DYNAMIC MICRO-ANIMATIONS FOR ALL PAGES
   Hover effects that make every element feel alive
   ============================================================ */

/* --- Cards: Course cards, review cards, award cards --- */
.course-card,
.tutor-course-card,
.fb-review-card,
.award-text-card,
.award-image-card,
.youtube-video-card,
.dashboard-card,
.lesson-card {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.course-card:hover,
.tutor-course-card:hover,
.fb-review-card:hover,
.award-text-card:hover,
.youtube-video-card:hover,
.dashboard-card:hover,
.lesson-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.award-image-card:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.25);
}

/* --- Stat counter cards bounce on hover --- */
.stat-counter-card {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.stat-counter-card:hover {
    transform: translateY(-10px) scale(1.06);
    box-shadow: 0 18px 35px rgba(59, 130, 246, 0.2);
}

/* --- Brand logos gentle pulse on hover --- */
.brand-logo-item {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.brand-logo-item:hover {
    transform: scale(1.15);
    filter: brightness(1.3);
}

/* --- Buttons: smooth press effect --- */
.btn,
.youtube-subscribe-btn,
.btn-join-course,
.hero-buttons a {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.3s ease;
}

.btn:hover,
.youtube-subscribe-btn:hover,
.btn-join-course:hover,
.hero-buttons a:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35);
}

.btn:active,
.youtube-subscribe-btn:active,
.btn-join-course:active {
    transform: translateY(0) scale(0.98);
}

/* --- Social icons: bounce on hover --- */
.social-icon {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.2);
}

/* --- Video play overlay: pulse animation --- */
.video-play-overlay {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}

.youtube-video-card:hover .video-play-overlay {
    transform: scale(1.2);
    background: rgba(255, 0, 0, 0.9);
}

/* --- Footer columns: gentle lift --- */
.footer-column {
    transition: transform 0.3s ease;
}

.footer-column:hover {
    transform: translateY(-4px);
}

/* --- Smooth scroll behavior for entire site --- */
html {
    scroll-behavior: smooth;
}

/* --- YouTube stat items: glow on hover --- */
.youtube-stat-item {
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.youtube-stat-item:hover {
    transform: scale(1.08);
}

.youtube-stat-item:hover .youtube-stat-number {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* ============================================================
   WOOCOMMERCE CART PAGE STYLING
   ============================================================ */

/* Grid Layout: 65% cart table | 35% cart totals */
.woocommerce-cart .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 350px);
    gap: 30px;
    align-items: start;
}
.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-cart .woocommerce > .return-to-shop { grid-column: 1 / -1; }
.woocommerce-cart .entry-title { display: none; }

/* Cart Table */
.woocommerce-cart table.shop_table {
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden;
    background: #fff;
    box-shadow: none;
    width: 100%;
    table-layout: auto;
}

.woocommerce-cart table.shop_table thead th {
    background: #f9fafb;
    color: #1e293b;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.woocommerce-cart table.shop_table td {
    padding: 16px;
    border-top: 1px solid #f1f5f9;
    vertical-align: middle;
    font-size: 14px;
    color: #334155;
}

/* Product column wider */
.woocommerce-cart table.shop_table .product-remove { width: 30px; text-align: center; }
.woocommerce-cart table.shop_table .product-thumbnail { width: 70px; }
.woocommerce-cart table.shop_table .product-name { min-width: 180px; }
.woocommerce-cart table.shop_table .product-price,
.woocommerce-cart table.shop_table .product-quantity,
.woocommerce-cart table.shop_table .product-subtotal { white-space: nowrap; text-align: center; width: 100px; }

/* Product title: max 2 lines with ellipsis */
.woocommerce-cart table.shop_table td.product-name a {
    color: #1e293b;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}
.woocommerce-cart table.shop_table td.product-name a:hover { color: #3b82f6; }

/* Remove button */
.woocommerce-cart table.shop_table .product-remove a {
    color: #ef4444 !important;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

/* Thumbnail */
.woocommerce-cart table.shop_table .product-thumbnail img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
}

/* Quantity input */
.woocommerce-cart table.shop_table .quantity .qty {
    width: 50px;
    padding: 8px 6px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

/* Price & Subtotal */
.woocommerce-cart table.shop_table td.product-price,
.woocommerce-cart table.shop_table td.product-subtotal {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

/* Coupon section */
.woocommerce-cart .coupon { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.woocommerce-cart .coupon #coupon_code {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    min-width: 200px;
    max-width: 280px;
    flex: 1;
    outline: none;
    transition: border-color 0.2s;
}
.woocommerce-cart .coupon #coupon_code:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.woocommerce-cart .coupon .button {
    background: #3b82f6 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: capitalize !important;
    white-space: nowrap;
}
.woocommerce-cart .coupon .button:hover { background: #2563eb !important; }
.woocommerce-cart button[name="update_cart"] { display: none !important; }

/* ---- Cart Totals Box ---- */
.woocommerce-cart .cart_totals {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: none;
    overflow: hidden;
}
.woocommerce-cart .cart_totals h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
}
.woocommerce-cart .cart_totals table { border: none !important; width: 100%; border-collapse: collapse; }
.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td {
    padding: 16px 0;
    border-top: 1px solid #f1f5f9 !important;
    font-size: 14px;
}
.woocommerce-cart .cart_totals table th { font-weight: 500; color: #475569; text-align: left; }
.woocommerce-cart .cart_totals table td { text-align: right; font-weight: 700; color: #1e293b; }

/* Proceed to Checkout button */
.woocommerce-cart .cart_totals .wc-proceed-to-checkout { margin-top: 16px; }
.woocommerce-cart .cart_totals .wc-proceed-to-checkout a {
    background: #3b82f6 !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    display: block;
    text-align: center;
    transition: background 0.2s ease;
    box-shadow: none !important;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}
.woocommerce-cart .cart_totals .wc-proceed-to-checkout a:hover {
    background: #2563eb !important;
    box-shadow: none !important;
}

/* Trust Badges */
.md-cart-trust-badges { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; grid-column: 1 / -1; }
.md-cart-trust-badge { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #475569; font-weight: 500; }

/* Cart Responsive */
@media (max-width: 768px) {
    .woocommerce-cart .woocommerce { grid-template-columns: 1fr; }
    .woocommerce-cart .woocommerce .cart-collaterals { position: static; }
    .woocommerce-cart .coupon #coupon_code { min-width: 140px; }
    .woocommerce-cart table.shop_table .product-name { min-width: 120px; }
}

/* ============================================================
   WOOCOMMERCE CHECKOUT PAGE STYLING
   ============================================================ */
.woocommerce-checkout .entry-title { display: none; }

/* Progress Bar */
.md-checkout-progress { display: flex; justify-content: center; align-items: center; margin: 30px auto 40px; max-width: 500px; padding: 0 20px; }
.md-checkout-step { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #94a3b8; white-space: nowrap; }
.md-checkout-step.active { color: #f97316; }
.md-checkout-step.completed { color: #22c55e; }
.md-checkout-step-icon { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; border: 2px solid #d1d5db; color: #94a3b8; background: #fff; }
.md-checkout-step.active .md-checkout-step-icon { border-color: #f97316; background: #f97316; color: #fff; }
.md-checkout-step.completed .md-checkout-step-icon { border-color: #22c55e; background: #22c55e; color: #fff; }
.md-checkout-divider { width: 60px; height: 2px; background: #e2e8f0; margin: 0 12px; }

/* Checkout Logo */
.md-checkout-logo { text-align: center; margin: 20px 0 10px; }
.md-checkout-logo img { max-height: 50px; width: auto; }

.woocommerce-checkout .woocommerce { max-width: 1200px !important; margin: 0 auto; padding: 0 20px 60px; width: 95%; }
.woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: 62% 34%;
    gap: 4%;
    align-items: start;
    width: 100%;
}
.woocommerce-checkout form.checkout #customer_details {
    grid-column: 1;
    grid-row: 1;
    float: none !important;
    width: auto !important;
}
.woocommerce-checkout form.checkout #customer_details .col-1,
.woocommerce-checkout form.checkout #customer_details .col-2 {
    width: 100% !important;
    float: none !important;
}
.woocommerce-checkout form.checkout #payment {
    grid-column: 1;
    grid-row: 2;
    float: none !important;
    width: auto !important;
}
.woocommerce-checkout form.checkout .md-checkout-right-col {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
}
.woocommerce-checkout form.checkout #order_review_heading { display: none !important; }
.woocommerce-checkout form.checkout .md-your-order-title {
    margin: 0 0 10px 0 !important;
}
.woocommerce-checkout form.checkout #order_review {
    float: none !important;
    width: auto !important;
}

/* Style product thumbnails inside checkout order review table */
.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name {
    display: flex;
    align-items: center;
    gap: 12px;
}
.md-checkout-product-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.md-checkout-product-thumb img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}
.md-checkout-product-details {
    flex: 1;
    min-width: 0;
}
.md-checkout-product-title {
    font-weight: 500;
    color: #1e293b;
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name .product-quantity {
    font-weight: 500;
    color: #64748b;
    font-size: 13px;
    margin-left: 4px;
    white-space: nowrap;
}

/* Hide quantity column and field on cart page */
.woocommerce-cart table.shop_table th.product-quantity,
.woocommerce-cart table.shop_table td.product-quantity {
    display: none !important;
}

/* Checkout Headings */
.woocommerce-checkout h3 { font-size: 22px; font-weight: 700; color: #1e293b; margin-bottom: 20px; font-family: 'Poppins', sans-serif; }
.woocommerce-checkout h3#ship-to-different-address { display: none; }
.woocommerce-checkout .woocommerce-billing-fields h3 { color: #6b21a8; }

/* Hide coupon toggle & Additional Information on checkout */
.woocommerce-checkout .woocommerce-form-coupon-toggle { display: none !important; }
.woocommerce-checkout .woocommerce-additional-fields { display: none !important; }
.woocommerce-checkout h3#order_review_heading { display: none !important; }

/* Login Toggle */
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; color: #475569; padding: 14px 20px; font-size: 14px; }
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info a { color: #3b82f6; font-weight: 600; }

/* Form Fields */
.woocommerce-checkout .form-row {
    margin-bottom: 16px;
    width: 100% !important;
    float: none !important;
    clear: both !important;
}
.woocommerce-checkout .form-row label { display: block; font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 6px; font-family: 'Inter', sans-serif; }
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
    width: 100% !important;
    height: 48px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'Inter', sans-serif;
    outline: none;
    box-sizing: border-box;
}
.woocommerce-checkout .form-row textarea {
    height: auto !important;
}
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.woocommerce-checkout .form-row input.input-text::placeholder { color: #94a3b8; }
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
    width: 100% !important;
}

/* Order Review */
.woocommerce-checkout #order_review {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}
.md-your-order-title { font-size: 18px !important; font-weight: 700 !important; color: #1e293b !important; margin-bottom: 20px !important; }
.woocommerce-checkout .woocommerce-checkout-review-order-table { border: none !important; }
.woocommerce-checkout .woocommerce-checkout-review-order-table thead th { font-size: 13px; font-weight: 600; color: #64748b; text-transform: uppercase; padding: 10px 0; border-bottom: 1px solid #e5e7eb; }
.woocommerce-checkout .woocommerce-checkout-review-order-table td { padding: 14px 0; border-top: 1px solid #f1f5f9; font-size: 14px; color: #334155; }
.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total td { font-weight: 800; font-size: 18px; color: #1e293b; }
.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total th { font-weight: 700; font-size: 15px; }

/* Payment Section */
.woocommerce-checkout #payment { background: transparent; border: none; border-radius: 0; padding: 0; margin-top: 20px; }
.woocommerce-checkout #payment ul.payment_methods { border: none !important; padding: 0 !important; background: transparent !important; }
.woocommerce-checkout #payment ul.payment_methods li { background: #fff; border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; list-style: none; transition: border-color 0.2s; }
.woocommerce-checkout #payment ul.payment_methods li label { font-weight: 600; font-size: 14px; color: #1e293b; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.woocommerce-checkout #payment ul.payment_methods li label img { max-height: 28px; width: auto; }
.woocommerce-checkout #payment .payment_box { background: #f8fafc !important; border-radius: 8px; padding: 12px 16px; margin-top: 10px; color: #475569; font-size: 13px; }
.woocommerce-checkout #payment .payment_box::before { display: none; }

/* Place Order Button */
.woocommerce-checkout #place_order { background: #3b82f6 !important; color: #fff !important; border: none !important; border-radius: 10px !important; height: 52px !important; padding: 0 !important; font-size: 16px !important; font-weight: 700 !important; width: 100%; cursor: pointer; transition: background 0.2s ease; box-shadow: none !important; text-transform: none !important; margin-top: 20px; }
.woocommerce-checkout #place_order:hover { background: #2563eb !important; box-shadow: none !important; transform: none !important; }

/* Terms & Privacy */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper { margin-top: 16px; }
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label { font-size: 13px; color: #475569; }
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a { color: #3b82f6; font-weight: 600; }
.woocommerce-checkout .woocommerce-privacy-policy-text p { font-size: 12px; color: #94a3b8; line-height: 1.5; }

/* Hide unnecessary fields via CSS fallback */
.woocommerce-checkout #billing_company_field,
.woocommerce-checkout #billing_address_2_field,
.woocommerce-checkout #billing_city_field,
.woocommerce-checkout #billing_state_field,
.woocommerce-checkout #billing_postcode_field,
.woocommerce-checkout #billing_address_1_field,
.woocommerce-checkout #billing_last_name_field { display: none !important; }
.woocommerce-checkout #billing_first_name_field { width: 100% !important; float: none !important; }

/* Error notices */
.woocommerce-checkout .woocommerce-NoticeGroup .woocommerce-error { border-radius: 10px; border-left: 4px solid #ef4444; background: #fef2f2; padding: 14px 20px; }

@media (max-width: 768px) {
    .woocommerce-checkout form.checkout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .woocommerce-checkout form.checkout #customer_details,
    .woocommerce-checkout form.checkout #payment,
    .woocommerce-checkout form.checkout .md-checkout-right-col {
        grid-column: 1;
        grid-row: auto;
    }
    .md-checkout-divider { width: 30px; }
}

/* Default Static Page Styling (replaces inline styles) */
.page-content-area {
    background: var(--bg-body, #f8fafc);
    padding: 80px 0;
}
.page-content-area .container {
    max-width: 900px;
    background: var(--bg-white, #ffffff);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin: 0 auto;
}

/* WooCommerce Page Content Area & Container (Full-width support) */
body.woocommerce-cart .page-content-area,
body.woocommerce-checkout .page-content-area,
body.woocommerce-account .page-content-area {
    background: var(--bg-body, #f8fafc) !important;
    padding: 40px 0 !important;
}
body.woocommerce-cart .container,
body.woocommerce-checkout .container,
body.woocommerce-account .container,
body.woocommerce-cart .page-content-area .container,
body.woocommerce-checkout .page-content-area .container,
body.woocommerce-account .page-content-area .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}

/* Reset default WooCommerce floats and widths to enable modern grid layout */
.woocommerce-cart .woocommerce .woocommerce-cart-form {
    float: none !important;
    width: auto !important;
}
.woocommerce-cart .woocommerce .cart-collaterals {
    float: none !important;
    width: auto !important;
}
.woocommerce-cart .cart_totals {
    float: none !important;
    width: auto !important;
}

/* Style Actions TD and Coupon Section as a separate clean card */
.woocommerce-cart .woocommerce-cart-form td.actions {
    background: transparent !important;
    border: none !important;
    padding: 20px 0 0 0 !important;
    text-align: left !important;
}
.woocommerce-cart .coupon {
    display: inline-flex !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 20px 24px !important;
    max-width: 480px;
    gap: 12px;
    align-items: center;
    box-shadow: none !important;
}

/* Reset default WooCommerce floats on checkout */
.woocommerce-checkout form.checkout #customer_details,
.woocommerce-checkout form.checkout #order_review {
    float: none !important;
    width: auto !important;
}

/* Wishlist Button on Course Cards */
.card-action {
    display: flex;
    align-items: center;
    gap: 8px;
}

.md-wishlist-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.md-wishlist-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

.md-wishlist-btn.active {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

.md-wishlist-btn.active i {
    font-weight: 900;
}

/* Custom styling for the homepage sections to match fahimulkhan.com */
.courses-section .section-title h2 {
    font-size: 38px !important;
    font-weight: 700 !important;
    color: #0c4ab3 !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 12px !important;
    font-family: 'Poppins', sans-serif !important;
}

.courses-section .section-title p {
    font-size: 16px !important;
    color: #64748b !important;
}

/* ============================================================
   ELEMENTOR COMPATIBILITY
   ============================================================ */

/* Elementor page content — no theme container restrictions */
.elementor-page-content,
.elementor-full-width-content {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* When Elementor is active on a page, remove theme's default page padding */
body.elementor-page .page-content-area {
    padding: 0;
}

body.elementor-page .page-content-area .container {
    max-width: 100%;
    padding: 0;
}

/* Ensure Elementor sections can stretch full width */
body.elementor-page .elementor-section.elementor-section-stretched {
    width: 100vw !important;
    max-width: 100vw !important;
}

/* Elementor editor — prevent theme header/footer overlap */
body.elementor-editor-active .site-header {
    z-index: 99;
}

/* Elementor widgets inherit theme typography */
.elementor-widget-text-editor {
    font-family: 'Inter', 'Poppins', sans-serif;
    line-height: 1.7;
}
