/* Custom Styles for Course Platform */

:root {
    /* Red theme palette for course segment */
    --primary-color: #dc3545;
    --primary-600: #a52735;
    --secondary-color: #8b1e26;
    --accent-color: #ff6b7a;
    --success-color: #28a745;
    --danger-color: #670a14;
    --dark-color: #212529;
    --muted-color: #6b7280;
    --surface: #ffffff;
    --bg: #fef2f2;
    --glass: rgba(255,255,255,0.65);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
}

/* Navbar Enhancements */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-nav .nav-link {
    margin: 0 10px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
    transition: transform 260ms cubic-bezier(.2,.8,.2,1), box-shadow 260ms ease;
    background: var(--surface);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.12);
}

.card-img-top {
    border-radius: 16px 16px 0 0;
}

/* Card header: clean title area */
.card-header {
    padding: 0.9rem 1rem;
    background: linear-gradient(90deg, rgba(79,70,229,0.06), rgba(6,182,212,0.03));
    border-bottom: 1px solid rgba(15,23,42,0.04);
    color: var(--dark-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Button Styles */
/* Button Styles (consolidated - avoid forcing colors so Bootstrap variants keep working) */
.btn {
    --btn-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--btn-radius);
    padding: 0.65rem 1.25rem; /* comfortable tappable area */
    font-weight: 600;
    line-height: 1;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
    cursor: pointer;
    text-decoration: none;
    border: none;
    user-select: none;
}

/* Disabled states */
.btn:disabled, .btn.disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Hover/Active behaviors (only on devices that support hover) */
@media (hover: hover) and (pointer: fine) {
    .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(220, 53, 69, 0.18);
    }

    .btn:active {
        transform: translateY(-1px) scale(0.996);
    }
}

/* Accessible focus outline */
.btn:focus-visible {
    outline: 3px solid rgba(79,70,229,0.12);
    outline-offset: 3px;
}

/* Note: don't set background/color on .btn globally here. Use .btn-primary/.btn-secondary etc. in markup or separate utility classes. */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a52735 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* Video Player */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Table Styles */
.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table thead {
    background: var(--dark-color);
    color: white;
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Alert Styles (consolidated further down) */

/* Badge Styles */
.badge {
    padding: 5px 10px;
    border-radius: 20px;
}

/* Price Display */
.price-tag {
    font-size: 2rem;
    font-weight: bold;
    color: var(--success-color);
}

/* Loading Spinner */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
    }
}

/* Admin Dashboard Styles */
.admin-dashboard {
    background: #f8f9fa;
    min-height: 100vh;
}

.dashboard-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-card {
    text-align: center;
    padding: 30px;
}

/* Consolidated .stat-card heading styles are defined later to avoid conflicts */

/* Cart Styles */
.cart-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-total {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 10px;
    font-size: 1.5rem;
}

/* Centralized dashboard / common components (migrated from inline styles) */
.header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 { font-size: 1.5rem; }

.nav { display: flex; gap: 1rem; align-items: center; }
.nav a { color: #4b5563; text-decoration: none; font-weight: 500; transition: color 0.2s; }
.nav a:hover { color: var(--primary-color); }

/* main .container rule below includes box-sizing; removed duplicate minimal rule */

.welcome { padding: 3rem; border-radius: 12px; margin-bottom: 2rem; color: white; }
.welcome.user { background: linear-gradient(135deg, #dc3545 0%, #8b1e26 100%); }
.welcome.admin { background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%); }
.welcome h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.welcome p { opacity: 0.9; font-size: 1.1rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }

.stat-card { background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.stat-card h3 { color: #6b7280; font-size: 0.875rem; text-transform: uppercase; margin-bottom: 0.5rem; }
.stat-card .number { font-size: 2.5rem; font-weight: bold; color: var(--primary-color); }

.section { background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); margin-bottom: 2rem; }
.section h2 { margin-bottom: 1.5rem; font-size: 1.5rem; }

.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.quick-link { display: block; padding: 1.5rem; background: #f9fafb; border-radius: 8px; text-decoration: none; color: #374151; text-align: center; transition: all 0.2s; border: 2px solid transparent; }
.quick-link:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); transform: translateY(-2px); }
.quick-link strong { display: block; font-size: 1.1rem; margin-bottom: 0.5rem; }

.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.course-card { background: var(--surface); border: 1px solid rgba(15,23,42,0.04); border-radius: 16px; overflow: hidden; transition: transform 260ms cubic-bezier(.2,.8,.2,1), box-shadow 260ms ease; }
.course-card:hover { box-shadow: 0 18px 40px rgba(2,6,23,0.08); transform: translateY(-6px) scale(1.01); }
.course-card img { width: 100%; height: 180px; object-fit: cover; }
.course-info { padding: 1.25rem; }
.course-info h3 { font-size: 1.125rem; margin-bottom: 0.5rem; color: var(--dark-color); }
.course-info p { color: var(--muted-color); font-size: 0.9rem; margin-bottom: 1rem; }

/* Duplicate neutral .btn rule removed to avoid conflicts; primary .btn defined above. */
/* container box-sizing is set in the main .container rule further below */

/* Site-wide button colors should not affect admin UI. Scope default site button colors to non-admin pages. */
/* Scope site default button color to primary variant only so success/other
   variants (e.g. .btn-success) are not overridden while the page is still
   rendering (prevents a flash from green -> blue when external CSS loads). */
/* Primary / Secondary / Success / Danger styles */
.btn-primary {
    background: var(--primary-color) !important;
    color: #fff !important;
}
.btn-primary:hover { background: var(--primary-600) !important; }

.btn-secondary {
    background: #8b1e26 !important;
    color: #fff !important;
}
.btn-secondary:hover { background: #670a14 !important; }

.btn-success {
    background: #28a745 !important;
    color: #fff !important;
}
.btn-success:hover { background: #218838 !important; }

.btn-danger {
    background: var(--danger-color) !important;
    color: #fff !important;
}
.btn-danger:hover { background: #dc2626 !important; }

/* Outline variants */
.btn-outline-primary {
    background: transparent !important;
    color: var(--primary-color) !important;
    border: 1px solid rgba(220,53,69,0.16);
}
.btn-outline-primary:hover { background: rgba(220,53,69,0.08) !important; }

/* Keep admin button behavior intact by allowing admin pages to override variables or target selectors if needed */

.alert { box-sizing: border-box; padding: 1rem; border-radius: 6px; margin-bottom: 1rem; }
.alert-success { background: rgba(220,53,69,0.12); color: #a52735; border: 1px solid var(--primary-color); }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid var(--danger-color); }
/* Bootstrap-compatible danger class (used by flash renderer mapping) */
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid var(--danger-color); }

@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    .welcome { padding: 2rem; }
}

/* Layout for admin pages: sidebar + main content to reduce empty sides */
.layout { display: flex; gap: 1.5rem; align-items: flex-start; }
.sidebar {
    width: 260px;
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    height: fit-content;
    position: sticky;
    top: 20px;
}
.sidebar .nav-section { display:flex; flex-direction:column; gap:0.25rem; }
.sidebar a { display:flex; align-items:center; gap:0.5rem; padding:0.6rem 0.75rem; color:#374151; text-decoration:none; border-radius:8px; font-weight:600; }
.sidebar a:hover { background:#f1f5f9; color:var(--primary-color); }
.main { flex:1; }

/* Make container slightly wider so sides feel less empty on large screens */
.container { box-sizing: border-box; max-width: 1400px; margin: 1.5rem auto; padding: 0 2rem; }

@media (max-width: 900px) {
    .layout { flex-direction: column; }
    .sidebar { width: 100%; position: relative; top: auto; }
}

/* ===============================
   FEATURED COURSE SECTION
================================*/
.featured-course-section {
  padding: 60px 0;
  background: #f7f9fc;
}

.featured-course-section h2 {
  font-weight: 700;
  font-size: 2.2rem;
  color: #222;
  margin-bottom: 40px;
  position: relative;
/* Consolidated .stat-card styles below; removed duplicate h3 rule to avoid conflicting sizes */
}

.featured-course-section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #0066ff, #00e7ff);
  transform: translateX(-50%);
  border-radius: 10px;
}

/* ===============================
   FEATURED CARD
================================*/
.featured-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  transition: 0.35s ease;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  position: relative;
}

/* Hover Effects */
.featured-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Gradient border on hover */
.featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(135deg, #dc3545, #ff6b7a);
  mask: 
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: 0.4s ease;
    pointer-events: none; /* ensure overlay doesn't block clicks */
}

.featured-card:hover::after {
  opacity: 1;
}

/* ===============================
   CARD IMAGE (Zoom Hover)
================================*/
.featured-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: 0.4s ease-in-out;
}

.featured-card:hover .featured-card-img {
  transform: scale(1.12);
}

/* ===============================
   CARD BODY
================================*/
.featured-card-body {
  padding: 18px 20px;
}

.featured-card-body .badge.bg-primary {
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
  color: #ffffff !important;
}

.featured-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}

.featured-card-text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* ===============================
   CARD FOOTER
================================*/
.featured-card-footer {
  padding: 12px 20px 18px;
  border-top: 1px solid #eee;
}

.featured-card-footer .btn-primary {
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.85rem;
  transition: 0.3s;
}

/* Buy button hover */
.featured-card-footer .btn-primary:hover {
  background: #005ce6;
}

.featured-card-footer .btn-success {
  background-color: #198754 !important;
  border-color: #198754 !important;
  color: #ffffff !important;
}

.featured-card-footer .btn-success:hover {
  background-color: #157347 !important;
  border-color: #146c43 !important;
}

/* Price text */
.featured-card-footer span {
  font-size: 1.1rem;
  font-weight: 700;
  color: #dc3545 !important;
}

/* ===============================
     Enhanced Card & Button Styles
     - Improve card spacing, shadows and hover effects
     - Mobile-safe: hover effects only on devices that support hover
     - Accessible focus styles for keyboard users
=================================*/

.course-card, .featured-card, .dashboard-card {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 260ms cubic-bezier(.2,.8,.2,1), box-shadow 260ms cubic-bezier(.2,.8,.2,1);
    will-change: transform;
    background-clip: padding-box;
    background: var(--surface);
    border: 1px solid rgba(15,23,42,0.03);
}

.course-card img, .featured-card-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.course-card .course-info, .featured-card-body, .dashboard-card {
    padding: 18px;
}

/* Hover effects only apply on devices with hover support (prevents jumpiness on touch) */
@media (hover: hover) and (pointer: fine) {
    .course-card:hover, .featured-card:hover, .dashboard-card:hover {
        transform: translateY(-8px) scale(1.01);
        box-shadow: 0 18px 40px rgba(2,6,23,0.12);
    }

    .course-card:hover .course-info, .featured-card:hover .featured-card-body {
        transform: translateY(-2px);
    }
}

/* Buttons: smooth hover + accessible focus */
.btn-primary {
    border-radius: 10px;
    padding: 0.6rem 1.1rem;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(2,6,23,0.12);
    }
}

.btn:focus-visible {
    outline: 3px solid rgba(13,110,253,0.18);
    outline-offset: 2px;
}

/* Mobile adjustments: larger tap targets and disable hover transforms */
@media (max-width: 768px) {
    .course-card, .featured-card, .dashboard-card { transform: none; box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
    .course-card .course-info, .featured-card-body, .dashboard-card { padding: 16px; }
    .btn { width: 100%; display: inline-block; padding: 0.75rem 1rem; }
}

/* Ensure featured card footer buttons are mobile-friendly: stack and full width on small screens */
@media (max-width: 576px) {
    .featured-card-img { height: 140px !important; }
    .featured-card-footer {
        padding: 12px;
    }
    .featured-card-footer > div[style], .featured-card-footer > div {
        /* target the inline flex container used in markup */
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    .featured-card-footer .btn {
        width: 100% !important;
        display: inline-flex !important;
        justify-content: center !important;
        padding: 0.75rem 0.9rem !important;
        font-size: 0.95rem !important;
    }
    .featured-card-footer .btn + .btn {
        margin-left: 0 !important;
    }
}


/* ===============================
   MERGED: landing.css
   The following rules were merged from assets/css/landing.css
   to consolidate landing page styles into a single stylesheet.
   Backup of original: assets/css/landing.css.bak
   NOTE: landing-specific custom properties are scoped to `.landing-root`
================================*/

.landing-root {
    --primary: #dc3545;
    --secondary: #a52735;
    --accent: #ff6b7a;
    --text: #2b2d42;
    --light: #f8f9fa;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* Namespaced landing styles (wrap page content in .landing-root) */
.landing-root{ color:var(--text); line-height:1.6; background-color:var(--light); font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }

.landing-root *{ box-sizing: border-box; }

.landing-root .header{ background: white; box-shadow: 0 2px 15px rgba(0,0,0,0.1); position: relative; width: 100%; z-index: 1000; }
.landing-root .nav-container{ max-width:1200px; margin:0 auto; padding:1rem; display:flex; justify-content:space-between; align-items:center; }
.landing-root .nav-links{ display:flex; gap:2rem; }
.landing-root .nav-links a{ color:var(--text); text-decoration:none; font-weight:500; transition:color .3s }
.landing-root .nav-links a:hover{ color:var(--primary); }

.landing-root .hero { 
    margin-top: 0; 
    padding: 3.5rem 1rem; 
    background: linear-gradient(135deg, #dc3545 0%, #a52735 50%, #8b1e26 100%);
    color: white; 
    text-align: center;
    position: relative;
    overflow: hidden;
}
.landing-root .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}
.landing-root .hero-content { 
    max-width: 900px; 
    margin: 0 auto; 
    position: relative;
    z-index: 1;
}
.landing-root .hero h1 { 
    font-size: 3.2rem; 
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
}
.landing-root .hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.7;
}
.landing-root .cta-button { 
    display: inline-block; 
    padding: 1rem 2.5rem; 
    background: white;
    color: #a52735;
    text-decoration: none; 
    border-radius: 50px; 
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.landing-root .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: #f0f0f0;
}

/* Course selection */
.landing-root .course-selection { padding: 5rem 1rem 2rem 1rem; background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%); }
.landing-root .selection-container { max-width: 1200px; margin: 0 auto; }
.landing-root .selection-title { text-align: center; font-size: 2.5rem; color: var(--text); margin-bottom: 3rem; position: relative; }
.landing-root .selection-title:after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: var(--primary); border-radius: 2px; }
.landing-root .selection-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.landing-root .step-card { background: white; border-radius: 16px; padding: 2rem; box-shadow: 0 10px 30px rgba(0,0,0,0.08); position: relative; transition: transform 0.3s ease, box-shadow 0.3s ease; overflow: hidden; }
.landing-root .step-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.landing-root .step-icon { background: var(--gradient); width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; color: white; }
.landing-root .step-content h3 { font-size: 1.25rem; color: var(--text); margin-bottom: 0.75rem; }
.landing-root .step-content p { color: #666; line-height: 1.6; }
.landing-root .step-number { position: absolute; right: 20px; bottom: 20px; font-size: 3rem; font-weight: 800; color: rgba(220, 53, 69, 0.08); }
.landing-root .selection-cta { text-align: center; margin-top: 3rem; }
.landing-root .start-journey-btn { display: inline-block; padding: 1rem 2.5rem; background: var(--gradient); color: white; text-decoration: none; border-radius: 30px; font-weight: 600; transition: transform 0.3s, box-shadow 0.3s; position: relative; overflow: hidden; }
.landing-root .start-journey-btn:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(220, 53, 69, 0.25); }
.landing-root .start-journey-btn:before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: 0.5s; }
.landing-root .start-journey-btn:hover:before { left: 100%; }

.landing-root .courses-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:2.5rem; max-width:1400px; margin:0 auto; padding:1rem; }
.landing-root .course-card{ background:white; border-radius:20px; overflow:hidden; transition:all 0.4s cubic-bezier(0.4, 0, 0.2, 1); position:relative; box-shadow:0 8px 16px rgba(0,0,0,0.07); border:1px solid rgba(0,0,0,0.05); display:flex; flex-direction:column; }
.landing-root .course-card:hover{ transform:translateY(-8px) scale(1.03); box-shadow:0 20px 40px rgba(220, 53, 69, 0.18); border-color:rgba(220, 53, 69, 0.18); }
.landing-root .course-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #dc3545, #a52735, #8b1e26); opacity: 0; transition: opacity 0.4s ease; z-index: 2; }
.landing-root .course-card:hover::before { opacity: 1; }
.landing-root .card-content{ padding:2.5rem; position:relative; z-index:1; display:flex; flex-direction:column; height:100%; }
.landing-root .card-header{ margin-bottom:1.5rem; position:relative; }
.landing-root .category-title{ color:var(--text); font-size:1.35rem; margin-bottom:0.75rem; line-height:1.4; font-weight:600; transition:color 0.3s ease; }
.landing-root .course-card:hover .category-title{ color:#a52735; }
.landing-root .category-tag{ display:inline-block; padding:0.45rem 1.2rem; background:linear-gradient(135deg, #dc3545, #a52735); color:white; border-radius:25px; font-size:0.8rem; font-weight:600; box-shadow:0 4px 10px rgba(220, 53, 69, 0.2); transition:all 0.3s ease; }
.landing-root .course-card:hover .category-tag{ box-shadow:0 6px 15px rgba(220, 53, 69, 0.35); transform:scale(1.05); }
.landing-root .course-details{ color:#555; margin-bottom:2rem; line-height:1.7; font-size:0.95rem; flex-grow:1; }
.landing-root .card-footer{ margin-top:auto; }
.landing-root .learn-more{ display:inline-flex; align-items:center; gap:0.5rem; color:var(--primary); text-decoration:none; font-weight:700; font-size:0.95rem; transition:all 0.3s ease; position:relative; }
.landing-root .learn-more::before { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background:var(--primary); transition:width 0.3s ease; }
.landing-root .learn-more:hover::before { width: 100%; }
.landing-root .learn-more:hover{ color:#a52735; transform:translateX(3px); }
.landing-root .learn-more::after { content: '→'; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.landing-root .learn-more:hover::after { transform: translateX(4px); }

.landing-root .psychometric-test { padding: 2rem 1rem 2rem 1rem; background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%); }
.landing-root .psych-container { max-width: 1200px; margin: 0 auto; }
.landing-root .psych-header { text-align: center; margin-bottom: 4rem; }
.landing-root .psych-title { font-size: 2.5rem; color: var(--text); margin-bottom: 1.5rem; position: relative; }
.landing-root .psych-title:after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: var(--primary); border-radius: 2px; }
.landing-root .psych-subtitle { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }
.landing-root .highlight-badge { padding:0.5rem 1rem; background: var(--gradient); color:white; border-radius:20px; font-size:0.9rem; font-weight:500; }
.landing-root .lead-text { text-align:center; font-size:1.2rem; color:#666; max-width:800px; margin:0 auto 4rem; line-height:1.6; }
.landing-root .process-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:2rem; margin-bottom:4rem; }
.landing-root .process-card { background:white; padding:2rem; border-radius:16px; box-shadow:0 10px 20px rgba(0,0,0,0.08); transition: all 0.3s ease; position:relative; }
.landing-root .process-card:hover { transform: translateY(-5px); box-shadow:0 15px 30px rgba(220, 53, 69, 0.12); }
.landing-root .process-icon { background: var(--gradient); width:64px; height:64px; border-radius:16px; display:flex; align-items:center; justify-content:center; color:white; margin-bottom:1.5rem; }
.landing-root .process-step { font-size:0.9rem; color:var(--primary); font-weight:600; margin-bottom:0.5rem; }
.landing-root .process-card h3 { font-size:1.25rem; color:var(--text); margin-bottom:1rem; }
.landing-root .process-card p { color:#666; margin-bottom:1rem; line-height:1.6; }
.landing-root .psych-benefits { display:grid; grid-template-columns:repeat(3, 1fr); gap:2rem; max-width:1200px; margin:0 auto 3rem; }
.landing-root .benefit-item { display:flex; flex-direction:column; align-items:center; gap:1rem; padding:1.5rem; background:white; border-radius:12px; box-shadow:0 4px 12px rgba(0,0,0,0.06); text-align:center; transition:all 0.3s ease; border:1px solid rgba(0,0,0,0.05); }
.landing-root .benefit-item:hover { transform:translateY(-3px); box-shadow:0 8px 20px rgba(220, 53, 69, 0.12); border-color:rgba(220, 53, 69, 0.18); }
.landing-root .benefit-item svg { color:#a52735; transition:all 0.3s ease; }
.landing-root .benefit-item svg { color: var(--primary); }
.landing-root .psych-cta { text-align:center; }
.landing-root .book-button { display:inline-block; padding:1rem 2.5rem; background:var(--gradient); color:white; text-decoration:none; border-radius:30px; font-weight:600; transition:all 0.3s ease; margin-bottom:1rem; }
.landing-root .book-button:hover { transform:scale(1.05); box-shadow:0 10px 20px rgba(220,53,69,0.25); }
.landing-root .cta-note { color:#666; font-size:0.9rem; }
/* Tablet */
@media (max-width: 900px) {
  .landing-root .psych-benefits {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .landing-root .psych-benefits {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .landing-root .benefit-item {
    padding: 1.2rem;
  }
}

.landing-root .faq-section { padding: 2rem 1rem 5rem 1rem; background: linear-gradient(to bottom, #ffffff, #f8f9fa); }
.landing-root .faq-container { max-width:800px; margin:0 auto; }
.landing-root .faq-title { text-align:center; font-size:2.5rem; color:var(--text); margin-bottom:3rem; position:relative; }
.landing-root .faq-title:after { content: ''; position:absolute; bottom:-10px; left:50%; transform:translateX(-50%); width:60px; height:4px; background:var(--primary); border-radius:2px; }
.landing-root .faq-accordion { display:flex; flex-direction:column; gap:1rem; }
.landing-root .faq-item { background:white; border-radius:12px; overflow:hidden; box-shadow:0 4px 15px rgba(0,0,0,0.05); transition:all 0.3s ease; }
.landing-root .faq-item:hover { box-shadow:0 8px 25px rgba(0,0,0,0.08); }
.landing-root .faq-question { width:100%; display:flex; justify-content:space-between; align-items:center; padding:1.5rem; background:none; border:none; cursor:pointer; font-size:1.1rem; font-weight:600; color:var(--text); text-align:left; }
.landing-root .faq-icon { transition: transform 0.3s ease; }
.landing-root .faq-answer { max-height:0; overflow:hidden; transition: max-height 0.3s ease-out; }
.landing-root .faq-answer[aria-hidden="false"] { max-height:500px; transition: max-height 0.5s ease-in; }
.landing-root .answer-content { padding:0 1.5rem 1.5rem; color:#666; line-height:1.6; }
.landing-root .delivery-features, .landing-root .fee-structure, .landing-root .certificate-types { list-style:none; padding:0; margin:1rem 0; }
.landing-root .delivery-features li, .landing-root .fee-structure li, .landing-root .certificate-types li { padding:0.5rem 0; padding-left:1.5rem; position:relative; }
.landing-root .delivery-features li:before, .landing-root .fee-structure li:before, .landing-root .certificate-types li:before { content:'•'; color:var(--primary); position:absolute; left:0; }
.landing-root .fee-note { margin-top:1rem; font-style:italic; font-size:0.9rem; }

/* All Courses Section */
.landing-root .all-courses { padding: 2rem 1rem 2rem 1rem; background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%); }
.landing-root .courses-main-title { font-size: 2.5rem; color: var(--text); margin-bottom: 1rem; text-align: center; position: relative; font-weight: 700; letter-spacing: -0.5px; }
.landing-root .courses-main-title:after { content: ''; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: var(--gradient); border-radius: 2px; }
.landing-root .courses-subtitle { text-align: center; color: #666; font-size: 1.1rem; margin-bottom: 3rem; margin-top: 2rem; max-width: 800px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.landing-root .all-courses .courses-grid { max-width: 1400px; margin: 0 auto; }