/* =============================================
   TrickPath - Main Stylesheet (Corrected)
   ============================================= */

:root {
    --primary: #eb8317;
    --primary-dark: #d4720f;
    --dark-navy: #1a1a2e;
    --dark-purple: #2d1b6b;
    --text: #212327;
    --text-muted: #666;
    --bg: #ffffff;
    --bg2: #f8f9fa;
    --border: #e8e8e8;
    --radius: 16px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-orange: 0 4px 20px rgba(235,131,23,0.25);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }
body::-webkit-scrollbar { width: 7px; }
body::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 10px; }
body::-webkit-scrollbar-thumb { background: #dfdbdb; border-radius: 50px; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; }
ul { list-style: none; }

/* ---- NAVBAR ---- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000; background: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08); padding: 10px 0;
}
.nav-container {
    max-width: 1280px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 15px;
}
.nav-logo img { height: 48px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.nav-links > li { position: relative; }
.nav-links > li > a {
    padding: 8px 13px; border-radius: 8px; font-size: 13.5px;
    font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 5px; white-space: nowrap;
    position: relative; transition: color 0.2s ease;
}
.nav-links > li > a::after {
    content: ''; position: absolute; bottom: 2px; left: 13px; right: 13px;
    height: 2px; background: var(--primary); transform: scaleX(0);
    transition: transform 0.2s ease; border-radius: 2px;
}
.nav-links > li > a:hover { color: #ff8c00; }
.nav-links > li > a:hover::after { transform: scaleX(1); }
.nav-links > li > a i { font-size: 11px; }

/* Dropdown */
.dropdown-menu {
    position: absolute; top: calc(100% + 8px); left: 0;
    background: #fff; border: 1px solid #eee; border-radius: 12px;
    min-width: 190px; opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: var(--transition); box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 100; overflow: hidden;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a { display: block; padding: 11px 18px; font-size: 13px; color: #555; border-bottom: 1px solid #f5f5f5; }
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu li a:hover { color: var(--primary); background: #fff8f3; padding-left: 22px; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-user { font-size: 28px; color: #999; }
.nav-user:hover { color: var(--primary); }
.btn-login { background: var(--primary); color: white; padding: 9px 22px; border-radius: 50px; font-size: 13px; font-weight: 600; }
.btn-login:hover { background: var(--primary-dark); transform: translateY(-1px); }
.hamburger { display: none; background: none; border: none; color: #333; font-size: 22px; cursor: pointer; padding: 5px; }

/* ---- HERO ---- */
.hero { margin-top: 68px; width: 100%; position: relative; overflow: hidden; }
.hero-slider { width: 100%; position: relative; }
.hero-slide { display: none; width: 100%; }
.hero-slide.active { display: block; animation: heroFade 0.7s ease-in-out; }
@keyframes heroFade { from{opacity:0} to{opacity:1} }
.hero-slide img { width: 100%; height: auto; display: block; max-height: 500px; object-fit: cover; }
.hero-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: background .3s; }
.hero-dot.active { background: var(--primary); }
/* keep old .hero-banner for fallback */
.hero-banner { width: 100%; display: block; }
.hero-banner img { width: 100%; height: auto; display: block; max-height: 500px; object-fit: cover; }

/* ---- WHY TRICKPATH + STATS ---- */
.why-trickpath-section { padding: 60px 20px 50px; background: var(--bg2); }

.section-title { text-align: center; margin-bottom: 35px; }
.section-title h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: #1a2240; }
.section-title h2 span { color: var(--primary); }
.section-title p { color: #666; margin-top: 12px; font-size: 15px; max-width: 620px; margin-left: auto; margin-right: auto; line-height: 1.7; }

/* Animation */
.why-animation {
    display: flex; justify-content: center; margin-bottom: 40px;
}
.anim-container {
    position: relative; width: 120px; height: 60px;
    display: flex; align-items: center; justify-content: center;
}
.anim-circle {
    position: absolute; border-radius: 50%;
    animation: pulse 2s infinite ease-in-out;
}
.anim-circle-1 { width: 20px; height: 20px; background: var(--primary); opacity: 0.9; left: 10px; animation-delay: 0s; }
.anim-circle-2 { width: 20px; height: 20px; background: var(--primary); opacity: 0.6; left: 50px; animation-delay: 0.3s; }
.anim-circle-3 { width: 20px; height: 20px; background: var(--primary); opacity: 0.3; left: 90px; animation-delay: 0.6s; }
.anim-dots { display: flex; gap: 8px; }
.anim-dots span {
    width: 10px; height: 10px; background: var(--primary);
    border-radius: 50%; animation: bounce 1.2s infinite ease-in-out;
}
.anim-dots span:nth-child(2) { animation-delay: 0.2s; }
.anim-dots span:nth-child(3) { animation-delay: 0.4s; }
.anim-dots span:nth-child(4) { animation-delay: 0.6s; }
.anim-dots span:nth-child(5) { animation-delay: 0.8s; }
.anim-dots span:nth-child(6) { animation-delay: 1s; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-12px); opacity: 1; }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 0.4; }
}

/* Stats Grid */
.stats-grid {
    max-width: 960px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stat-item {
    background: white; border: 2px solid var(--primary);
    border-radius: var(--radius); padding: 28px 20px;
    text-align: center; transition: var(--transition); box-shadow: var(--shadow);
}
.stat-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-orange); }
.stat-item img { width: 55px; height: 55px; margin-bottom: 12px; object-fit: contain; }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-label { font-size: 14px; color: #666; margin-top: 6px; font-weight: 500; }

/* ---- COURSES SLIDER ---- */
.courses-section { padding: 70px 20px; background: white; }
.courses-slider-wrapper { max-width: 1200px; margin: 0 auto; overflow: hidden; position: relative; padding: 0 20px; }
.courses-slider {
    display: flex; gap: 20px;
    transition: transform 0.5s ease;
    cursor: grab; justify-content: flex-start;
}
.courses-slider:active { cursor: grabbing; }
.course-card {
    min-width: calc(25% - 15px); width: calc(25% - 15px); background: white; border-radius: var(--radius);
    overflow: visible; border: 1px solid var(--border);
    box-shadow: var(--shadow); transition: var(--transition); flex-shrink: 0;
}
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-orange); border-color: var(--primary); }
.course-card .course-thumb {
    width: 403px; height: 361px; max-width: 100%; overflow: visible; background: transparent;
}
.course-card .course-thumb img, .course-card > img {
    width: 100%; height: 100%; object-fit: contain; display: block;
}
.course-card-body { padding: 14px 16px; }
.course-card-body h3 {
    font-size: 14px; font-weight: 700; color: var(--primary);
    text-align: center; transition: color 0.3s ease;
    animation: titleFadeUp 0.5s ease both;
}
.course-card:hover .course-card-body h3 { color: #ff6b00; }
@keyframes titleFadeUp { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

/* Slider dots */
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; position: relative; z-index: 2; clear: both; }
.courses-slider-wrapper { padding-bottom: 10px; }
.slider-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #ddd; cursor: pointer; transition: var(--transition);
}
.slider-dot.active { background: var(--primary); transform: scale(1.2); }

/* ---- WHY US — VERTICAL CARDS ---- */
.why-section { padding: 70px 20px; background: var(--bg2); }
.why-grid {
    max-width: 1000px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.why-card {
    background: white; border-radius: var(--radius); padding: 28px 22px;
    border: 2px solid var(--primary); box-shadow: var(--shadow);
    text-align: center; transition: var(--transition);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-orange); }
.why-card img { width: 55px; height: 55px; margin: 0 auto 14px; display: block; object-fit: contain; }
.why-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.why-card p { font-size: 13px; color: #666; line-height: 1.65; }

/* ---- PACKAGES — DARK PURPLE ---- */
.packages-section { padding: 70px 20px; background: var(--dark-navy); }
.packages-section .section-title h2 { color: white; }
.packages-section .section-title h2 span { color: var(--primary); }
.packages-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
}
.package-card {
    background: linear-gradient(135deg,#6a0cfd,#ffffff);
    border-radius: var(--radius); padding: 22px 15px 18px; text-align: center;
    border: 1.5px solid rgba(106,12,253,.2);
    transition: transform 0.3s ease,box-shadow 0.3s ease,border-color 0.3s ease;
    position: relative; overflow: visible;
    display: flex; flex-direction: column; align-items: center;
    animation: pkgFadeUp 0.5s ease both;
}
@keyframes pkgFadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.packages-grid .package-card:nth-child(1){animation-delay:.05s}
.packages-grid .package-card:nth-child(2){animation-delay:.15s}
.packages-grid .package-card:nth-child(3){animation-delay:.25s}
.packages-grid .package-card:nth-child(4){animation-delay:.35s}
.packages-grid .package-card:nth-child(5){animation-delay:.45s}
.packages-grid .package-card:nth-child(6){animation-delay:.55s}
.package-card:hover {
    transform: translateY(-8px);
    border-color: rgba(249,115,22,.5);
    box-shadow: 0 14px 36px rgba(106,0,220,.3), 0 0 0 1px rgba(249,115,22,.15);
}
.package-card.popular { border-color: rgba(249,115,22,.5); }
.package-card.popular::before {
    content: '⭐ Popular'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(90deg,#f97316,#fb923c); color: white; font-size: 11px; font-weight: 800;
    padding: 4px 16px; border-radius: 50px; white-space: nowrap;
    box-shadow: 0 2px 10px rgba(249,115,22,.4); z-index: 5;
}
.package-card img {
    width: 100%; max-width: 100%; height: auto; max-height: 160px;
    margin: 0 auto 12px; display: block; object-fit: contain;
    transition: transform 0.3s ease;
}
.package-card:hover img { transform: scale(1.05); }
.package-card h3 { font-size: 13px; font-weight: 800; color: #1e0060; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .8px; order: -1; }
.package-price { font-size: 28px; font-weight: 900; color: #1e0060; margin-bottom: 4px; }
.pkg-mrp-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; justify-content: center; }
.pkg-mrp { font-size: 13px; color: #6b7280; text-decoration: line-through; }
.pkg-disc { font-size: 11px; background: #dcfce7; color: #16a34a; padding: 2px 8px; border-radius: 50px; font-weight: 800; }
.pkg-stats { display: flex; justify-content: center; gap: 12px; margin-bottom: 14px; font-size: 11px; color: #4b5563; border-top: 1px solid rgba(106,12,253,.15); padding-top: 10px; width: 100%; }
.pkg-stats span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pkg-stats strong { font-size: 13px; font-weight: 800; color: #1e0060; display: block; }
.btn-buynow {
    display: block; width: 100%;
    background: linear-gradient(90deg,#f97316,#fb923c); color: white;
    padding: 10px; border-radius: 50px; font-size: 13px; font-weight: 700;
    text-align: center; transition: box-shadow 0.2s ease; font-family: 'Poppins',sans-serif;
    box-shadow: 0 3px 12px rgba(249,115,22,.35); margin-top: auto;
}
.btn-buynow:hover { box-shadow: 0 5px 22px rgba(249,115,22,.55); }

/* ---- STILL CONFUSED ---- */
.confused-section { padding: 70px 20px; background: white; }
.confused-section .section-title h2 { color: #1a2240; }
.video-grid {
    max-width: 1000px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
}
.video-item { text-align: center; }
.video-item h3 { font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.video-underline {
    width: 60px; height: 3px; background: var(--primary);
    margin: 0 auto 18px; border-radius: 2px;
}
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 12px; }

/* ---- FAQ ---- */
.faq-section { padding: 70px 20px; background: var(--bg2); }
.faq-container { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid #e0e0e0; border-radius: 12px; margin-bottom: 10px; overflow: hidden; background: white; }
.faq-question {
    padding: 18px 22px; font-weight: 600; font-size: 14.5px;
    cursor: pointer; display: flex; justify-content: space-between;
    align-items: center; color: var(--text); transition: var(--transition); user-select: none;
}
.faq-question:hover { color: var(--primary); }
.faq-question i { color: var(--primary); transition: var(--transition); margin-left: 15px; }
.faq-item.active .faq-question { color: var(--primary); }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    font-size: 14px; color: #666; line-height: 1.75;
    background: #fff8f3; padding: 0 22px;
}
.faq-item.active .faq-answer { max-height: 300px; padding: 18px 22px; }

/* ---- TESTIMONIALS ---- */
.testimonials-section { padding: 70px 20px; background: #f9fafb; }
.testimonials-slider-wrapper { max-width: 640px; margin: 0 auto; }
.testimonials-track { position: relative; min-height: 180px; }
.testimonial-card {
    display: none; background: white; border-radius: 14px;
    padding: 28px; border: 1px solid #e5e7eb; box-shadow: 0 4px 16px rgba(0,0,0,.08);
    flex-direction: column; gap: 14px; animation: tFade 0.5s ease;
}
.testimonial-card.active { display: flex; }
@keyframes tFade { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
.testimonial-card-top { display: flex; align-items: center; gap: 12px; }
.testimonial-card-top img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid #e5e7eb; }
.t-name { font-size: 15px; font-weight: 700; color: #111827; }
.t-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #1a73e8; font-weight: 600; margin-top: 2px; }
.t-badge::before { content: '✓'; background: #1a73e8; color: white; border-radius: 50%; width: 14px; height: 14px; font-size: 9px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.testimonial-stars { color: #f59e0b; font-size: 16px; letter-spacing: 2px; }
.testimonial-text { font-size: 14px; color: #4b5563; line-height: 1.75; margin: 0; }
.testimonial-author { display: none; }
.t-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.t-dot { width: 10px; height: 10px; border-radius: 50%; background: #d1d5db; cursor: pointer; transition: background .3s; border: none; }
.t-dot.active { background: var(--primary); }

/* ---- FOOTER ---- */
.footer { background: #1a1a2e; border-top: 3px solid var(--primary); padding: 60px 20px 0; }
.footer-container {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px;
}
.footer-logo { height: 50px; margin-bottom: 16px; display: block; }
.footer-col p { font-size: 14px; color: #94a3b8; line-height: 1.75; margin-bottom: 22px; }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-links a {
    width: 38px; height: 38px; background: rgba(235,131,23,0.15);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 14px; transition: var(--transition);
    border: 1px solid rgba(235,131,23,0.3);
}
.social-links a:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.footer-col h4 { font-size: 15px; font-weight: 700; color: white; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul li a { font-size: 14px; color: #94a3b8; }
.footer-col ul li a:hover { color: var(--primary); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); text-align: center; padding: 22px; font-size: 13px; color: #64748b; }

/* ---- ALERTS ---- */
.alert { padding: 13px 18px; border-radius: 10px; margin-bottom: 18px; font-size: 13.5px; font-weight: 500; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }

/* ---- BUTTONS ---- */
.btn-primary {
    display: inline-block; background: var(--primary); color: white;
    padding: 12px 30px; border-radius: 50px; font-weight: 600; font-size: 15px;
    transition: var(--transition); border: none; cursor: pointer; font-family: 'Poppins', sans-serif;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) { .packages-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 992px) {
    .nav-links { display: none; }
    .hamburger { display: block; }
    .nav-links.active {
        display: flex; flex-direction: column; align-items: flex-start;
        position: fixed; top: 68px; left: 0; right: 0;
        background: white; padding: 16px;
        border-bottom: 2px solid var(--primary);
        z-index: 999; gap: 4px; max-height: calc(100vh - 68px); overflow-y: auto;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }
    .nav-links.active > li { width: 100%; }
    .nav-links.active > li > a { width: 100%; padding: 11px 14px; border-bottom: 1px solid #f5f5f5; }
    .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; margin: 4px 0 4px 14px; }
    .dropdown.active .dropdown-menu { display: block; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .packages-grid { grid-template-columns: repeat(2, 1fr); }
    .video-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 600px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; gap: 10px; }
    .why-card { padding: 14px 12px; min-height: auto; }
    .why-card img { width: 32px; height: 32px; margin-bottom: 8px; }
    .why-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
    .why-card p { font-size: 0.75rem; line-height: 1.4; }
    .packages-grid { grid-template-columns: 1fr; }
    .package-card { max-width: 360px; margin: 0 auto; width: 100%; padding: 16px 14px 14px; min-height: auto; }
    .package-card img { max-height: 120px; }
    .pkg-mrp-row { margin-bottom: 8px; }
    .pkg-stats { margin-bottom: 10px; }
    .footer-container { grid-template-columns: 1fr; }
    .courses-slider-wrapper { padding: 0 8px; }
    .course-card { min-width: calc(100vw - 56px); width: calc(100vw - 56px); }
}

@media(max-width:768px){.pkg-left-card{position:static!important;top:auto;height:auto;} .pkg-right{position:relative!important;z-index:1;}}
