.marquee-container {
    width: 100%;
    overflow: hidden;
    margin-top: -20px;
    margin-bottom: 20px;
}

.marquee-track {
    display: flex;
    gap: 50px;
    width: max-content;
    animation: scroll-marquee 18s linear infinite;
}

.marquee-track span {
    font-weight: 700;
    background: linear-gradient(90deg, #0284c7, #ec4899, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Gradient animation */
@keyframes gradient-move {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}
/* Smooth infinite scroll */
@keyframes scroll-marquee {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 🔥 Pause on hover (premium feel) */
.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}




/*          */


/* Custom properties based on the exact mockup */
:root {
    --primary-red: #a91212;
    --primary-red-hover: #860d0d;
    --text-dark: #1f2937;
    --text-lead: #111827;
    --text-light: #4b5563;
    --bg-light: #f9fafb;
    --font-main: 'Inter', sans-serif;
}

* { margin:0; padding:0; box-sizing:border-box; font-family:var(--font-main); scroll-behavior: smooth; }

body { background: white; color: var(--text-dark); overflow-x: hidden; }

/* Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }

/* Navigation matches mockup exactly */
.top-nav {
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.3rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-left {
    display: flex;
    align-items: center;
}
.nav-brand {
    display: flex;
    align-items: center;
}
.nav-logo-img {
    height: 160px; /* Huge size per user request */
    width: auto;
    object-fit: contain;
}
.nav-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    margin-left: 2rem;
}
.title-saran {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 700; /* Bold */
    color: #a91212; /* Exact primary red */
    line-height: 1;
    letter-spacing: -1.5px;
}
.title-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500; /* Medium */
    color: #4b5563; /* Dark grey */
    letter-spacing: 2px;
    margin-top: 4px;
}
.title-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #4b5563;
    margin-top: 4px;
}
.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    align-items: center;
    flex-wrap: nowrap; /* Forces one line */
    white-space: nowrap; /* Forces one line for child text */
}
.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.15rem; /* Slightly reduced so it guarantees one line */
    position: relative;
    padding-bottom: 0.4rem;
    transition: color 0.2s;
}
.nav-menu a.active { color: var(--primary-red); }
.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 2px;
    background: var(--primary-red);
}
.nav-menu a:hover { color: var(--primary-red); }

.btn-red {
    background: var(--primary-red);
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}
.btn-red:hover { background: var(--primary-red-hover); }
.btn-block { width: 100%; }

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 76px);
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 65%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 40%, rgba(255,255,255,0) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 4rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-logo-box {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.main-logo-img {
    height: 280px; 
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 10px 15px rgba(169, 18, 18, 0.08));
}

.hero-text { max-width: 500px; }
.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--text-lead);
}
.hero-text h1 span { font-weight: 700; }
.hero-text p {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
}
.hero-btn { 
    padding: 0.9rem 2.8rem; 
    font-size: 1.1rem; 
    box-shadow: 0 4px 15px rgba(169, 18, 18, 0.3);
}

html { scroll-padding-top: 220px; scroll-behavior: smooth; }

/* Base Sections Styling */
section { padding: 6rem 0; }
.section-header h2, section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-lead);
}
.section-header h2 span, section h2 span { color: var(--primary-red); }
.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* Courses Carousel */
.carousel-wrapper {
    position: relative;
    max-width: 100%;
    margin-top: 3rem;
    display: flex;
    align-items: center;
}
.carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0 2rem 0;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
.carousel-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}
.carousel-btn {
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    color: var(--primary-red);
    transition: all 0.2s ease;
}
.carousel-btn:hover { background: var(--bg-light); transform: scale(1.05); }
.prev-btn { left: -24px; }
.next-btn { right: -24px; }

.course-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    min-width: 320px;
    max-width: 320px;
    flex-shrink: 0;
}
.course-badge {
    background: rgba(169, 18, 18, 0.1);
    color: var(--primary-red);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    align-self: flex-start;
    margin-bottom: 1rem;
}
.course-card h3 { font-size: 1.3rem; margin-bottom: 1rem; color: var(--text-lead); }
.course-card p { color: var(--text-light); margin-bottom: 1.5rem; flex-grow: 1; font-size: 0.95rem; }
.course-price { font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem; }
.course-price span { font-size: 1rem; font-weight: 400; color: var(--text-light); }
.btn-razorpay {
    background: #0284c7; color: white; border-radius: 8px;
    padding: 0.8rem; text-align: center; text-decoration: none;
    display: block; font-weight: 600; transition: background 0.2s;
}
.btn-razorpay:hover { background: #0369a1; }

@media (max-width: 1250px) {
    .prev-btn { left: 0px; }
    .next-btn { right: 0px; }
}

/* Vision section components inherited from carousel */

/* Contact Form */
.contact-form {
    max-width: 600px; margin: 3rem auto 0 auto;
    display: flex; flex-direction: column; gap: 1rem;
}
.contact-form input, .contact-form textarea {
    width: 100%; padding: 1rem; border: 1px solid #e5e7eb; border-radius: 8px;
    font-family: var(--font-main);
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--primary-red);
}

/* Footer Styles */
.site-footer {
    background: #BFC3C7; /* Custom Hex per User */
    color: #111827;
    padding: 0.8rem 0;
    border-top: 2px solid #9ca3af;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Center alignment */
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-left {
    text-align: left;
}
.footer-right {
    display: flex;
    flex-direction: column;
    gap: 0.3rem; /* Tightly packed */
    align-items: flex-end; /* Bottom Right Align */
    text-align: right;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem; /* Shrunk font size matching SVG downscale */
}
.contact-item svg {
    color: var(--primary-red);
}

/* Animations */
.fade-in {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Responsive adjustments */
.mobile-menu-btn {
    display: none; background: none; border: none; color: var(--text-dark); cursor: pointer; z-index: 1001;
}

/* Tablet and iPad Adjustments (max-width: 1100px) */
@media (max-width: 1100px) {
    .nav-title { margin-left: 1rem; }
    .title-saran { font-size: 2rem; }
    .title-sub { font-size: 0.65rem; }
    .title-tagline { font-size: 0.65rem; }
    .nav-logo-img { height: 100px; }
    .nav-menu { gap: 1.5rem; }
    .nav-menu a { font-size: 1rem; }
}

/* Mobile Adjustments (max-width: 850px) */
@media (max-width: 850px) {
    .nav-left { flex: 1; }
    .nav-logo-img { height: 75px; }
    .title-saran { font-size: 1.6rem; }
    .title-sub { font-size: 0.55rem; letter-spacing: 0.5px; }
    .title-tagline { font-size: 0.55rem; }
    .nav-title { margin-left: 0.5rem; }
    
    .mobile-menu-btn { display: block; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 260px; height: 100vh;
        background: white; flex-direction: column; padding: 6rem 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1); transition: right 0.3s ease;
        align-items: flex-start; z-index: 1000;
    }
    .nav-menu.show { right: 0; }
    .nav-menu a { font-size: 1.25rem; }
    
    html { scroll-padding-top: 100px; }
    
    .hero-overlay { width: 100%; background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 100%); }
    .hero-content { align-items: center; text-align: center; padding: 1rem; }
    .hero-text p { font-size: 1.5rem !important; }
    
    .course-card { min-width: 85vw; max-width: 85vw; }
    
    .footer-container { flex-direction: column; align-items: center; text-align: center; gap: 2rem; }
    .footer-left { text-align: center; }
    .footer-right { align-items: center; text-align: center; }
    .contact-item { font-size: 0.9rem; justify-content: center; }
}

/* Small phones (max-width: 480px) */
@media (max-width: 480px) {
    .title-saran { font-size: 1.3rem; }
    .title-sub { font-size: 0.45rem; margin-top: 2px; }
    .title-tagline { font-size: 0.45rem; margin-top: 2px; }
    .nav-logo-img { height: 60px; }
    section { padding: 4rem 0; }
    .section-header h2 { font-size: 2rem; }
}

/* Custom Heartbeat Icon Animation */
.heartbeat-icon {
    animation: heartbeat-pulse 1.5s ease-in-out infinite;
    color: var(--primary-red);
}

@keyframes heartbeat-pulse {
    0% { transform: scale(1); }
    14% { transform: scale(1.25); }
    28% { transform: scale(1); }
    42% { transform: scale(1.25); }
    70% { transform: scale(1); }
}
