/* ===================================
   Certa IELTS - Global Styles
   =================================== */

/* CSS Variables & Design System */
:root {
    /* Core Colors */
    --primary: #e11d48;
    --primary-dark: #be123c;
    --primary-light: #fb7185;
    --primary-soft: rgba(225, 29, 72, 0.08);
    --secondary: #10b981;
    --accent: #ff3b30;

    /* Light Mode Tokens (Default) */
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-navbar: rgba(255, 255, 255, 0.9);
    --bg-footer: #f8fafc;
    /* Clean light grey for footer */
    --text-main: #334155;
    --text-heading: #000000;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.08);

    /* Grays & Utilities */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3.5rem;
    --spacing-2xl: 6rem;

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    --shadow-sm: 0 1px 3px 0 var(--shadow-color);
    --shadow-md: 0 4px 6px -1px var(--shadow-color);
    --shadow-lg: 0 10px 15px -3px var(--shadow-color);
    --shadow-xl: 0 20px 25px -5px var(--shadow-color);

    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Tokens */
[data-theme="dark"] {
    --bg-base: hsl(180, 1%, 10%);
    /* Refined Dark Background */
    --bg-surface: hsl(180, 1%, 12%);
    --bg-navbar: hsla(180, 1%, 10%, 0.8);
    --bg-footer: hsl(180, 1%, 8%);
    --text-main: #a1a1aa;
    --text-heading: #ffffff;
    --text-muted: #71717a;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.5);

    --gray-50: #18181b;
    --gray-100: #27272a;
    --gray-200: #3f3f46;
    --gray-300: #52525b;
    --gray-500: #71717a;
    --gray-700: #a1a1aa;
    --gray-800: #e4e4e7;
    --gray-900: #fafafa;

    --primary-soft: rgba(255, 59, 48, 0.2);
}

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

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    color: var(--text-main);
    background-color: var(--bg-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-heading);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

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

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

/* Button Overrides */
.btn-primary {
    background: var(--primary);
    color: white !important;
    /* Ensure it stays white */
    box-shadow: 0 4px 14px 0 rgba(225, 29, 72, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.4);
}

.btn-white {
    background: white;
    color: var(--primary) !important;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.05);
}

.btn-white:hover {
    background: #fafaf9;
    color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Hero & Components */
.hero {
    position: relative;
    padding: 12rem 0 8rem;
    overflow: hidden;
    background: #ffffff;
    /* Default light background */
    color: var(--text-main);
    transition: background 0.4s ease;
}

[data-theme="dark"] .hero {
    background: #09090b;
    /* Preserve perfect dark mode */
    color: white;
}

.hero-bg-accent {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(225, 29, 72, 0.03), transparent 60%);
    z-index: 0;
}

[data-theme="dark"] .hero-bg-accent {
    background: linear-gradient(to bottom, #000000 0%, transparent 40%),
        radial-gradient(circle at top left, rgba(225, 29, 72, 0.15), transparent 60%);
}

.hero-top-shadow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 15rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
    pointer-events: none;
    z-index: 1;
    display: none;
    /* Only show in dark mode */
}

[data-theme="dark"] .hero-top-shadow {
    display: block;
}

.hero-blob {
    position: absolute;
    width: 40rem;
    height: 40rem;
    background: #ff3b30;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.04;
    /* Very subtle in light mode */
    z-index: 0;
    animation: pulse-slow 10s infinite alternate;
}

[data-theme="dark"] .hero-blob {
    opacity: 0.15;
    /* Maintain perfect dark mode */
}

.hero-blob-1 {
    top: -15rem;
    left: -10rem;
}

.hero-blob-2 {
    bottom: -15rem;
    right: -10rem;
    animation-delay: 2s;
    opacity: 0.1;
}

@keyframes pulse-slow {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.08;
    }

    50% {
        transform: scale(1.1) translate(2rem, 1rem);
        opacity: 0.12;
    }

    100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.08;
    }
}

.hero-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.section-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 59, 48, 0.05);
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.1);
    border-radius: 12px;
    /* Distinct square-ish pill */
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.05);
}

.hero .hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
    color: #0c0a09;
}

[data-theme="dark"] .hero .hero-title {
    color: #fafaf9;
}

.text-gradient {
    display: inline;
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    padding-right: 0.1em;
}

.hero .hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    line-height: 1.7;
    margin: 0 auto 3.5rem;
    color: #475569;
    /* Dark grey for light mode */
}

[data-theme="dark"] .hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.7);
    /* Preserve dark mode subtitle */
}

.hero-preview-wrapper {
    width: 100%;
    max-width: 1150px;
    margin-top: 6rem;
    padding: 0.5rem;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
}

.hero-preview {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Stats Section */
.stats-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 3rem 0;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-val {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-lab {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Feature Layouts */
.feature-section {
    padding: var(--spacing-2xl) 0;
}

.feature-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.feature-layout.reverse {
    direction: rtl;
}

.feature-layout.reverse .feature-body {
    direction: ltr;
}

.feature-body h2 {
    font-size: 2.5rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-body h2 i {
    color: var(--primary);
    font-size: 2rem;
}

.feature-image img {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

/* Skills Grid */
.skills-box {
    text-align: center;
    padding: var(--spacing-2xl) 0;
}

.skills-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.skill-card {
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: left;
}

.skill-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.skill-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Bottom CTA — base reset (overridden below) */
.cta-box {
    margin: 6rem 0;
    border-radius: var(--radius-xl);
    background: var(--bg-surface);
    text-align: center;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    opacity: 0.9;
    font-size: 0.875rem;
}

.hero-image img {
    width: 100%;
    height: auto;
}

/* Sections */
section {
    /* padding: var(--spacing-2xl) 0; */
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--gray-900);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

/* Features Grid */
.features {
    background-color: white;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.course-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
}

.course-badge.badge-free {
    background-color: var(--secondary);
}

.course-content {
    padding: 1.5rem;
}

.course-category {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.course-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.course-description {
    color: var(--gray-600);
    font-size: 0.938rem;
    margin-bottom: 1rem;
}

.course-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.course-meta i {
    margin-right: 0.25rem;
}

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

.course-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Testimonials */
.testimonials {
    background-color: var(--gray-50);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.testimonial-rating {
    color: var(--accent);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gray-500);
}

.author-name {
    font-weight: 600;
}

.author-score {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Footer */
.footer {
    background-color: var(--bg-footer);
    color: var(--text-main);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    transition: var(--transition);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

.footer-column h3,
.footer-column h4 {
    color: var(--text-heading);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-column .logo span {
    color: var(--text-heading) !important;
}

.footer-column p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background-color: var(--gray-100);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .social-links a {
    background-color: rgba(255, 255, 255, 0.03);
}

.social-links a:hover {
    background-color: var(--primary);
    color: white !important;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .course-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-container {
        display: flex;
        justify-content: space-between;
        padding: 0.75rem 1.5rem;
    }

    .nav-menu {
        display: none;
        /* Mobile menu logic handled by JS */
    }

    .mobile-menu-toggle {
        display: block;
        margin-left: 1rem;
    }

    .hero-container {
        padding-top: 4rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

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

.text-success {
    color: var(--success);
}

.text-error {
    color: var(--error);
}

/* Effects */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: none;
}

.shine-effect:hover::after {
    left: 140%;
    transition: all 0.6s ease;
}

/* ===================================
   Dashboard Styles
   =================================== */
.dashboard {
    padding: var(--spacing-lg) 0 var(--spacing-2xl);
}

.dashboard-grid {
    display: grid;
    gap: var(--spacing-lg);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.dashboard-section {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.course-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.course-item {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    transition: var(--transition);
}

.course-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.course-item-thumbnail img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.course-item-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.progress-section {
    margin: 1.25rem 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.progress-bar {
    height: 8px;
    background-color: var(--gray-100);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.course-item-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.course-item-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 5rem 2rem;
}

.empty-state i {
    font-size: 4.5rem;
    color: var(--gray-200);
    margin-bottom: 1.5rem;
}

@media (max-width: 991px) {
    .course-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .course-item-thumbnail {
        max-width: 300px;
        margin: 0 auto;
    }

    .course-item-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .course-item-actions {
        justify-content: center;
    }
}

/* ===================================
   Course Detail Styles
   =================================== */
.course-detail {
    padding: var(--spacing-lg) 0 var(--spacing-2xl);
}

.course-header-section {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3.5rem;
    margin-bottom: 3rem;
}

.course-header-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.breadcrumb {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.course-lead {
    font-size: 1.25rem;
    color: var(--text-main);
    line-height: 1.6;
}

.course-meta-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    font-weight: 500;
}

.course-meta-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-rating i {
    color: var(--accent);
}

.course-sidebar-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: sticky;
    top: 100px;
    height: fit-content;
    z-index: 10;
}

.course-sidebar-card img {
    aspect-ratio: 16/9;
    object-fit: cover;
}

.course-price-section {
    padding: 2rem;
}

.price-amount {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-heading);
}

.price-free {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
}

.course-includes {
    padding: 2rem;
    background: var(--gray-50);
    border-top: 1px solid var(--border-color);
}

.course-includes h4 {
    margin-bottom: 1.25rem;
}

.course-includes ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.course-includes li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
    font-size: 0.95rem;
}

.course-includes i {
    color: var(--primary);
    width: 20px;
}

.course-body {
    display: grid;
    gap: 3rem;
    margin-top: 2rem;
}

.module-section {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    overflow: hidden;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--gray-50);
    cursor: pointer;
    transition: var(--transition);
}

.module-header:hover {
    background-color: var(--gray-100);
}

.lessons-list {
    list-style: none;
    background-color: var(--bg-surface);
}

.lesson-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    transition: var(--transition);
}

.lesson-item:hover {
    background-color: var(--gray-50);
}

.lesson-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lesson-info i {
    color: var(--primary);
    width: 16px;
}

.lesson-badge {
    background-color: var(--primary-soft);
    color: var(--primary);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.review-card {
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    background: var(--bg-surface);
}

@media (max-width: 1024px) {
    .course-header-section {
        grid-template-columns: 1fr;
    }
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-heading);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    background: var(--gray-100);
    transform: scale(1.05);
    border-color: var(--primary);
}

.theme-toggle-btn i {
    font-size: 1.1rem;
}

[data-theme="dark"] .fa-moon {
    display: none;
}

[data-theme="light"] .fa-sun {
    display: none;
}

/* ===================================
   Auth Pages Styles
   =================================== */
.auth-section {
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-base);
    padding: 8rem 1rem 4rem;
    /* Increased top padding to breathe under transparent navbar */
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h1 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-heading);
    font-size: 0.95rem;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.875rem 2.75rem 0.875rem 1.25rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-base);
    color: var(--text-heading);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-surface);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-main);
}

.remember-me input {
    accent-color: var(--primary);
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

.auth-footer a {
    font-weight: 600;
    color: var(--primary);
    margin-left: 0.25rem;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.field-error {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.field-help {
    display: none;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.form-group:focus-within .field-help {
    display: block;
}

.field-help ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.field-help li {
    margin-bottom: 0.25rem;
}

.form-errors {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border-left: 4px solid var(--error);
}

.login-or {
    text-align: center;
    margin: 2rem 0;
    position: relative;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-or::before,
.login-or::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background-color: var(--border-color);
}

.login-or::before {
    left: 0;
}

.login-or::after {
    right: 0;
}

.social-login {
    margin-bottom: 2rem;
}

.socialaccount_providers {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.socialaccount_providers li a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-heading);
    font-weight: 600;
    transition: var(--transition);
    background: var(--bg-surface);
}

.socialaccount_providers li a:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    transform: translateY(-1px);
}

/* Google Button */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.7rem 1rem;
    background: #fff;
    border: 1.5px solid #dadce0;
    border-radius: 0.5rem;
    color: #3c4043;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    margin-bottom: 1.25rem;
    box-sizing: border-box;
}

.google-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 4px rgba(60,64,67,.15);
    color: #3c4043;
    text-decoration: none;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* ===================================
   Courses Catalog Styles
   =================================== */
.catalog-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    padding-top: 2rem;
}

.filters-sidebar {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text-heading);
    font-size: 0.95rem;
}

.filter-group input[type="text"],
.filter-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-base);
    color: var(--text-heading);
    font-family: inherit;
    transition: var(--transition);
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.filter-group input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--primary);
}

@media (max-width: 1024px) {
    .catalog-container {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
    }
}

/* Premium Testimonials Section */
.testimonials {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.testimonials .section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4rem;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: var(--bg-surface);
    padding: 3rem 2.5rem;
    border-radius: 2rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px var(--shadow-color);
    border-color: var(--primary-soft);
}

.testimonial-stars {
    color: #ffb800;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 4px;
}

.testimonial-card p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-heading);
    margin-bottom: 2.5rem;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.author-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 700;
    color: var(--text-heading);
    font-size: 1.1rem;
}

.author-score {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Dark mode overrides for testimonials */
[data-theme="dark"] .testimonial-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* CTA Box Refinement */
.cta-box {
    margin: 6rem auto;
    max-width: 1100px;
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 0 1px rgba(225,29,72,0.08), 0 32px 64px -16px rgba(0,0,0,0.35);
}

.cta-box-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(225,29,72,0.10), transparent 65%);
    pointer-events: none;
}

[data-theme="dark"] .cta-box-glow {
    background: radial-gradient(ellipse at 50% 0%, rgba(225,29,72,0.18), transparent 65%);
}

.cta-box-inner {
    position: relative;
    z-index: 1;
    padding: 5rem 2rem;
    text-align: center;
}

.cta-box-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.9rem;
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid rgba(225,29,72,0.15);
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.cta-box h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-heading);
    margin-bottom: 1.1rem;
    position: relative;
    z-index: 1;
}

.cta-box p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Refined Redesign Styles */
/* ===================================
   Certa IELTS - Unique Premium Navbar
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: transparent;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    height: 80px;
}

.nav-floating-card {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 0.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
}

[data-theme="light"] .nav-floating-card {
    background: transparent;
    border-color: transparent;
}

.navbar.scrolled .nav-floating-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .navbar.scrolled .nav-floating-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Scrolled state refinements */
.navbar.scrolled {
    height: 80px;
}

.nav-container {
    display: none;
    /* Remove old container logic */
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-heading);
}

.logo:hover {
    color: var(--text-heading);
    transform: none;
}

.logo i {
    color: #e11d48;
    /* Certa Crimson */
    font-size: 1.5rem;
}

.logo .logo-image {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    /* Muted white for hero overlap */
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-links a:hover {
    color: white !important;
    transform: translateY(-1px);
}

[data-theme="light"] .nav-links a {
    color: var(--text-main);
}

.nav-links a:hover {
    color: #e11d48 !important;
    transform: translateY(-1px);
}

.navbar.scrolled .nav-links a {
    color: var(--text-main);
}

[data-theme="dark"] .navbar.scrolled .nav-links a {
    color: rgba(255, 255, 255, 0.9);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link-simple {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

[data-theme="light"] .nav-link-simple {
    color: var(--text-main);
}

.nav-link-simple:hover {
    color: #e11d48 !important;
    opacity: 1;
    transform: translateY(-1px);
}

.navbar.scrolled .nav-link-simple {
    color: var(--text-main);
}

[data-theme="dark"] .navbar.scrolled .nav-link-simple {
    color: rgba(255, 255, 255, 0.9);
}

.mobile-menu-toggle {
    display: none !important;
    /* Force hide on desktop */
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex !important;
        background: transparent;
        border: none;
        color: var(--text-main);
        font-size: 1.25rem;
        cursor: pointer;
        padding: 0.5rem;
    }
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 8px;
}

.landing-dark {
    background-color: var(--bg-base);
    color: var(--text-main);
}

[data-theme="dark"] .landing-dark section,
[data-theme="dark"] .landing-dark .hero,
[data-theme="dark"] .landing-dark .feature-section,
[data-theme="dark"] .landing-dark .skills-box,
[data-theme="dark"] .landing-dark .stats-badges,
[data-theme="dark"] .landing-dark .testimonials {
    background-color: var(--bg-base);
    color: var(--text-heading);
}

.landing-dark p {
    color: var(--text-muted);
}

.landing-dark h1,
.landing-dark h2,
.landing-dark h3 {
    color: var(--text-heading);
}

.landing-dark h2 i {
    color: var(--primary);
}

.navbar.landing-nav {
    background: var(--bg-navbar) !important;
    border: 1px solid var(--border-color) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[data-theme="dark"] .navbar.landing-nav {
    background: rgba(0, 0, 0, 0.8) !important;
}

[data-theme="light"] .navbar.landing-nav {
    background: rgba(255, 255, 255, 0.95) !important;
}

.navbar.landing-nav .logo span,
.navbar.landing-nav .nav-menu a {
    color: var(--text-heading) !important;
}

.mockup-window {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: var(--bg-surface);
    padding-top: 30px;
    position: relative;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    margin-top: 4rem;
}

.mockup-window::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 15px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f56;
    box-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #27c93f;
}

.hero-preview {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Theme Toggle Button Styles */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: var(--transition);
    padding: 0;
}

.theme-toggle-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

.theme-toggle-btn .fa-sun {
    display: none;
}

.theme-toggle-btn .fa-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle-btn .fa-sun {
    display: block;
}

[data-theme="dark"] .theme-toggle-btn .fa-moon {
    display: none;
}

/* Responsive Landing Navbar */
.navbar.landing-nav {
    background: var(--bg-navbar) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .navbar.landing-nav .logo span,
[data-theme="light"] .navbar.landing-nav .nav-menu a {
    color: var(--text-heading) !important;
}

/* ===================================
   Unique Brand Identity Styles
   =================================== */

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

@keyframes pulse-slow {

    0%,
    100% {
        opacity: 0.1;
        transform: scale(1);
    }

    50% {
        opacity: 0.15;
        transform: scale(1.1);
    }
}

.pulse-slow {
    animation: pulse-slow 8s ease-in-out infinite;
}

/* New Floating Navbar */
.navbar-floating {
    position: fixed;
    top: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    background: rgba(var(--bg-rgb), 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

[data-theme="dark"] .navbar-floating {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.navbar-floating.scrolled {
    top: 0.5rem;
    width: 95%;
    padding: 0.5rem 1.5rem;
}

/* ieltsx.com Specific Hero Gradients */
.hero-gradient {
    background: radial-gradient(circle at top left, rgba(239, 68, 68, 0.05), transparent),
        radial-gradient(circle at bottom right, rgba(244, 63, 94, 0.05), transparent);
}

.text-gradient {
    background: linear-gradient(to r, #dc2626, #e11d48);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Utility Classes for home.html Replication */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-10 {
    z-index: 10;
}

.block {
    display: block;
}

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.items-center {
    align-items: center;
}

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

.justify-between {
    justify-content: space-between;
}

.flex-col {
    flex-direction: column;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

.space-y-12>*+* {
    margin-top: 3rem;
}

.space-y-32>*+* {
    margin-top: 8rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-16 {
    gap: 4rem;
}

.w-full {
    width: 100%;
}

.h-auto {
    height: auto;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.p-4 {
    padding: 1rem;
}

.p-12 {
    padding: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.text-center {
    text-align: center;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-7xl {
    font-size: 4.5rem;
}


.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.uppercase {
    text-transform: uppercase;
}

.text-muted-foreground {
    color: var(--text-muted);
}

.bg-background {
    background-color: var(--bg-base);
}

.bg-muted\/20 {
    background-color: rgba(var(--gray-200-rgb, 226, 232, 240), 0.2);
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.border-border\/30 {
    border-color: rgba(var(--border-color-rgb, 226, 232, 240), 0.3);
}

.overflow-hidden {
    overflow: hidden;
}

.blur-3xl {
    filter: blur(64px);
}

.mix-blend-multiply {
    mix-blend-mode: multiply;
}

.opacity-10 {
    opacity: 0.1;
}

.shrink-0 {
    flex-shrink: 0;
}

.transition-opacity {
    transition-property: opacity;
}

.duration-300 {
    transition-duration: 300ms;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

/* Custom Button Styles for Replica */
.btn-signin {
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    color: var(--text-heading);
    transition: var(--transition);
    border-radius: 0.75rem;
}

.btn-signin:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.btn-white {
    background: white;
    color: var(--primary);
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background: #fdfdfd;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Fixes for Replica Polish */
.whitespace-nowrap {
    white-space: nowrap;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.text-6xl {
    font-size: 3.75rem;
    line-height: 1;
}

.text-7xl {
    font-size: 4.5rem;
    line-height: 1;
}

.text-8xl {
    font-size: 6rem;
    line-height: 1;
}

.font-black {
    font-weight: 900;
}

.leading-tight {
    line-height: 1.25;
}

.feature-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 8rem;
}

.feature-grid-row.reverse {
    direction: rtl;
}

.feature-grid-row.reverse>* {
    direction: ltr;
}

.logo-cloud-item {
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.logo-cloud-item:hover {
    opacity: 1;
}

.section-title-huge {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.sub-heading-large {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 4rem;
}

/* Final Layout Polish & Responsive Fixes */
.bg-muted\/5 {
    background-color: rgba(var(--gray-200-rgb, 226, 232, 240), 0.05);
}

.rounded-\[3rem\] {
    border-radius: 3rem;
}

.shadow-red-600\/30 {
    box-shadow: 0 25px 50px -12px rgba(220, 38, 38, 0.3);
}

.shadow-red-500\/20 {
    box-shadow: 0 25px 50px -12px rgba(239, 68, 68, 0.2);
}

@media (max-width: 768px) {
    .feature-grid-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .feature-grid-row.reverse {
        direction: ltr;
    }

    .feature-grid-row .inline-flex {
        margin-left: auto;
        margin-right: auto;
    }

    .text-6xl {
        font-size: 3rem;
    }

    .text-8xl {
        font-size: 3.5rem;
    }

    .py-32 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .pt-64 {
        padding-top: 8rem;
    }
}

/* Logo Cloud Faders */
.from-background {
    --tw-gradient-from: var(--bg-base);
    --tw-gradient-to: rgba(var(--bg-rgb), 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-transparent {
    --tw-gradient-to: transparent;
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.bg-gradient-to-l {
    background-image: linear-gradient(to left, var(--tw-gradient-stops));
}

.w-32 {
    width: 8rem;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

/* ===================================
   MOBILE RESPONSIVE — Non-Dashboard
   =================================== */

/* ---- Navbar ---- */
@media (max-width: 768px) {
    .navbar {
        height: auto;
    }

    .nav-floating-card {
        width: 100%;
        border-radius: 0;
        padding: 0.65rem 1rem;
        flex-wrap: wrap;
        gap: 0;
    }

    /* Nav links: hidden by default, shown as dropdown when active */
    .nav-links {
        display: none;
        width: 100%;
        order: 10;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0 0.75rem;
        border-top: 1px solid var(--border-color);
        margin-top: 0.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: var(--text-heading) !important;
        font-size: 0.95rem;
        padding: 0.65rem 0;
        border-bottom: 1px solid var(--border-color);
        transform: none !important;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* Navbar scrolled state on mobile needs solid bg for readability */
    .navbar.scrolled .nav-floating-card,
    .nav-floating-card {
        background: var(--bg-surface) !important;
        border-color: var(--border-color) !important;
        backdrop-filter: none;
        box-shadow: none;
    }

    /* Hide Login link in nav-actions (it'll appear in the dropdown) */
    .nav-link-simple {
        display: none;
    }

    .nav-actions {
        gap: 0.65rem;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    /* Reduce btn-sm on mobile */
    .btn-sm {
        padding: 0.45rem 0.9rem;
        font-size: 0.85rem;
    }

    /* Ensure theme toggle is visible in dark mode on mobile */
    [data-theme="dark"] .mobile-menu-toggle {
        color: rgba(255, 255, 255, 0.8);
    }
}

/* ---- Hero ---- */
@media (max-width: 768px) {
    .hero {
        padding: 7rem 0 3.5rem;
    }

    .hero-blob {
        width: 18rem !important;
        height: 18rem !important;
    }

    /* Hide the extra large blob-3 on mobile */
    .hero-blob-3 {
        display: none;
    }

    .hero-container {
        padding: 0 1.25rem;
    }

    .hero .hero-title {
        font-size: clamp(2rem, 9vw, 3rem);
        margin-bottom: 1rem;
        letter-spacing: -0.03em;
    }

    .hero .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 320px;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .hero-cta .btn {
        text-align: center;
        justify-content: center;
    }

    .hero-preview-wrapper {
        margin-top: 2.5rem;
        border-radius: 1rem;
    }

    .section-pill {
        font-size: 0.72rem;
        padding: 0.35rem 0.75rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 0 2.5rem;
    }

    .hero .hero-title {
        font-size: clamp(1.75rem, 9vw, 2.25rem);
    }

    .hero .hero-subtitle {
        font-size: 0.95rem;
    }
}

/* ---- Stats Section ---- */
@media (max-width: 768px) {
    .stats-badges {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 1rem;
        padding: 2rem 1rem;
        justify-items: center;
    }

    .stat-val {
        font-size: 1.75rem;
    }

    .stat-lab {
        font-size: 0.8rem;
    }
}

/* ---- Feature Sections ---- */
@media (max-width: 768px) {
    .feature-section {
        padding: 2.5rem 0;
    }

    .feature-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Reset RTL trick on mobile */
    .feature-layout.reverse {
        direction: ltr;
    }

    .feature-body h2 {
        font-size: 1.5rem;
        margin: 1rem 0 0.75rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .feature-body h2 i {
        font-size: 1.25rem;
    }

    .feature-body p {
        font-size: 0.95rem;
    }

    .mockup-window {
        margin-top: 0;
    }
}

/* ---- Skills Grid ---- */
@media (max-width: 768px) {
    .skills-box {
        padding: 2.5rem 0;
    }

    .skills-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .skill-card {
        padding: 1.5rem;
    }

    .skill-icon {
        margin-bottom: 1rem;
        width: 42px;
        height: 42px;
    }
}

/* ---- Testimonials ---- */
@media (max-width: 600px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- CTA Box ---- */
@media (max-width: 768px) {
    .cta-box {
        margin: 3rem 0;
        border-radius: var(--radius-lg);
    }

    .cta-box-inner {
        padding: 2.5rem 1.25rem;
    }

    .cta-box h2 {
        font-size: clamp(1.5rem, 6vw, 2.25rem);
    }

    .cta-box p {
        font-size: 0.95rem;
    }
}

/* ---- General Container / Section ---- */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ---- Buttons ---- */
.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
}

@media (max-width: 480px) {
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* ---- Auth Page ---- */
@media (max-width: 480px) {
    .auth-page {
        padding: 5rem 0 2rem;
    }

    .auth-card {
        margin: 0 1rem;
        padding: 2rem 1.25rem;
    }
}

/* ---- Features page card grid ---- */
@media (max-width: 768px) {
    .features-cards-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 480px) {
    .features-cards-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ---- Hero CTA centering (features/home) ---- */
@media (max-width: 768px) {
    .hero-cta {
        justify-content: center;
    }
}

/* ---- Footer ---- */
@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        font-size: 0.75rem;
    }
}