/* =========================================
   VISHVAM COACHING INSTITUTE - GLOBAL THEME
   Color Palette:
     Yellow (primary bg): #FFD600 / #FFE020 / #FFFBE6
     Royal Blue (text/accent): #004B87 / #003366
     Red (CTA buttons): #D90000 / #B80000
     White: #fff
   ========================================= */

/* ---- CSS Variables for easy theming ---- */
:root {
    --yellow-main: #FDDE37;
    --yellow-light: #FFF8CC;
    --yellow-bg: #FFFBE6;
    --yellow-mid: #FEE95B;
    --blue-main: #004B87;
    --blue-dark: #003366;
    --blue-deep: #001f3f;
    --red-main: #D90000;
    --red-dark: #B80000;
    --red-glow: rgba(217, 0, 0, 0.35);
    --white: #fff;
    --text-dark: #222;
    --text-mid: #444;
}

@font-face {
    font-family: 'Poppins-Regular';
    src: url('Poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins-Bold';
    src: url('Poppins/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* ---- Sticky Navbar Scroll Offset Fix ---- */
/* Navbar is ~70px tall; this ensures anchor links scroll sections into full view */
html {
    scroll-padding-top: 75px;
}

section,
.main-header,
.contact-section {
    scroll-margin-top: 75px;
}

/* ---- Body ---- */
body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    background: var(--yellow-bg);
    scroll-behavior: smooth;
    color: var(--text-dark);
    font-weight: 400;
    line-height: 1.6;
}

/* ---- Navbar ---- */
.navbar {
    background: var(--blue-main);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    border-bottom: 3px solid var(--yellow-main);
}

.logo {
    visibility: hidden;
}

.logo a {
    color: var(--yellow-main);
    font-size: 1.8em;
    font-weight: 900;
    font-family: 'Poppins-Bold';
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Poppins-Regular';
    font-size: 0.95em;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--yellow-main);
    color: var(--blue-dark);
}

/* ---- Hamburger ---- */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 29px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ---- Header ---- */
.main-header {
    background: transparent;
    text-align: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.header-container {
    background: linear-gradient(135deg, var(--yellow-main) 0%, var(--yellow-mid) 100%);
    padding: 40px 20px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(255, 214, 0, 0.45);
}

.main-header h1 {
    margin: 0;
    font-size: 3.5em;
    font-weight: 900;
    font-family: 'Poppins-Bold';
    color: var(--blue-main);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.12);
    margin-bottom: 15px;
}

.main-header .tagline {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--blue-dark);
    font-family: 'Poppins-Regular';
}

.header-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.badge {
    background: var(--blue-main);
    color: var(--yellow-main);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    border: 2px solid var(--blue-dark);
    font-size: 0.9em;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 75, 135, 0.3);
}

.header-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-family: 'Poppins-Bold';
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1em;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

/* PRIMARY = RED (Enroll Now, Why Choose Us, etc.) */
.btn-primary {
    background: linear-gradient(135deg, var(--red-main) 0%, var(--red-dark) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 18px var(--red-glow);
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FF1A1A 0%, var(--red-main) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(217, 0, 0, 0.5);
    color: white;
}

/* SECONDARY = Blue outline */
.btn-secondary {
    background: transparent;
    color: var(--blue-main);
    border: 2px solid var(--blue-main);
}

.btn-secondary:hover {
    background: var(--blue-main);
    color: var(--yellow-main);
    transform: translateY(-3px);
}

/* OUTLINE = Blue → Yellow fill on hover */
.btn-outline {
    background: transparent;
    color: var(--blue-main);
    border: 2px solid var(--blue-main);
}

.btn-outline:hover {
    background: var(--blue-main);
    color: var(--yellow-main);
    transform: translateY(-2px);
}

/* ---- Sections ---- */
section {
    padding: 25px 20px 20px;
    max-width: 1200px;
    margin: auto;
    animation: fadeInUp 0.9s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Section Headings ---- */
h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--blue-main);
    font-size: 2.2em;
    position: relative;
    font-family: 'Poppins-Bold';
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2::after {
    content: '';
    display: block;
    width: 55px;
    height: 4px;
    background: var(--yellow-main);
    border-radius: 2px;
    margin: 10px auto;
    box-shadow: 0 1px 6px rgba(255, 214, 0, 0.5);
}

/* ---- Split (About) Section ---- */
.split-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    background: var(--white);
    border-radius: 20px;
    padding: 30px 30px !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
    border-left: 5px solid var(--yellow-main);
}

.split-section h2 {
    text-align: left;
    margin-bottom: 20px;
}

.split-section h2::after {
    margin: 10px 0;
}

.split-content {
    flex: 1;
    min-width: 300px;
}

.split-content p {
    font-size: 1.1em;
    color: var(--text-mid);
    margin-bottom: 15px;
    line-height: 1.7;
}

.split-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.split-image {
    flex: 1;
    min-width: 300px;
}

.split-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    border: 3px solid var(--yellow-main);
}

.split-image img:hover {
    transform: translateY(-5px);
}

/* ---- Team Cards ---- */
.team {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 15px;
    width: 280px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.09);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--yellow-main);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 14px 30px rgba(255, 214, 0, 0.25);
    border-top-color: var(--red-main);
}

.card h3 {
    margin: 0 0 10px 0;
    color: var(--blue-main);
    font-family: 'Poppins-Bold';
    font-weight: 700;
    font-size: 1.3em;
}

/* ---- Gallery ---- */
.gallery {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-item {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.gallery-item:hover {
    border-color: var(--yellow-main);
}

.gallery-item img {
    width: 300px;
    max-width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 75, 135, 0.95), rgba(0, 75, 135, 0.7), transparent);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Poppins-Regular';
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover figcaption {
    background: linear-gradient(to top, rgba(0, 75, 135, 0.99), rgba(0, 75, 135, 0.85), rgba(0, 75, 135, 0.6));
}

/* ---- Testimonials ---- */
.testimonials-container {
    position: relative;
    margin: 30px auto;
    max-width: 1200px;
}

.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--blue-main);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.scroll-button:hover {
    background: var(--yellow-main);
    color: var(--blue-main);
    transform: translateY(-50%) scale(1.1);
}

.scroll-left {
    left: -70px;
}

.scroll-right {
    right: -70px;
}

.testimonials {
    display: flex;
    gap: 30px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    scroll-behavior: smooth;
}

.testimonial {
    background: linear-gradient(135deg, var(--yellow-main) 0%, var(--yellow-mid) 100%);
    padding: 30px;
    border-radius: 15px;
    width: 300px;
    min-width: 300px;
    flex-shrink: 0;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--blue-main);
}

.testimonial:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 28px rgba(255, 214, 0, 0.35);
    border-left-color: var(--red-main);
}

.testimonial p {
    color: #333;
    font-size: 0.95em;
    line-height: 1.7;
    margin: 10px 0;
    font-family: 'Lato', sans-serif;
}

.testimonial .rating {
    color: var(--blue-main);
    font-size: 1.3em;
    margin: 10px 0;
    letter-spacing: 2px;
    font-family: 'Poppins-Bold';
}

.testimonial .name {
    color: var(--blue-main);
    font-size: 1.1em;
    margin-top: 15px;
    font-family: 'Poppins-Bold';
    font-weight: 700;
}

/* ---- YouTube Shorts ---- */
.shorts {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    background: var(--white);
    border-radius: 20px;
    padding: 30px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    border-top: 4px solid var(--yellow-main);
}

.shorts iframe {
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    max-width: 100%;
    /* border: 3px solid var(--yellow-main); */
}

/* ---- Contact Section ---- */
.contact-section {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin: 50px auto;
    padding: 15px 40px;
    max-width: 1200px;
    border-top: 5px solid var(--yellow-main);
}

.contact-grid {
    display: block;
    margin-top: 30px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-family: 'Poppins-Bold';
    color: var(--blue-main);
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 20px;
}

.contact-methods-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-top: 30px;
    overflow: scroll;
}

.info-item {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    align-items: anchor-center;
    flex: 1;
    min-width: 290px;
}

.info-item .icon {
    font-size: 1.3em;
    background: var(--yellow-light);
    padding: 10px;
    border-radius: 50%;
    color: var(--blue-main);
    border: 2px solid var(--yellow-main);
}

.info-item p {
    margin: 0;
    color: #444;
    font-size: 1.05em;
    line-height: 1.5;
    padding-top: 5px;
}

.info-item a {
    color: var(--blue-main);
    text-decoration: none;
    font-weight: bold;
}

.map-container {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--yellow-main);
}

/* ---- Footer ---- */
.modern-footer {
    background: linear-gradient(135deg, var(--yellow-main) 0%, var(--yellow-mid) 100%);
    color: var(--blue-dark);
    padding: 25px 20px 20px;
    margin-top: 60px;
    border-top: 4px solid var(--blue-main);
}

.footer-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-brand h3 {
    color: var(--blue-main);
    font-family: 'Poppins-Bold';
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 2px;
}

.footer-brand p {
    color: var(--blue-dark);
    opacity: 0.85;
}

.footer-links {
    flex: 1;
    min-width: 150px;
}

.footer-links h4,
.footer-legal h4 {
    color: var(--blue-main);
    font-family: 'Poppins-Bold';
    margin-top: 0;
    margin-bottom: 15px;
}

.footer-links a {
    display: block;
    color: var(--blue-dark);
    text-decoration: none;
    margin-bottom: 10px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--red-main);
    text-decoration: underline;
}

.footer-legal {
    flex: 1;
    min-width: 250px;
}

.footer-legal p {
    color: var(--blue-dark);
    opacity: 0.85;
    font-size: 0.9em;
    line-height: 1.6;
}

.footer-legal p a {
    color: var(--blue-main);
    font-weight: 700;
    text-decoration: underline;
}

.footer-legal p a:hover {
    color: var(--red-main);
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 75, 135, 0.25);
    text-align: center;
    color: var(--blue-main);
    font-weight: 600;
    opacity: 0.85;
    font-size: 0.9em;
}

/* ---- WhatsApp Button ---- */
.whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Poppins-Regular';
    z-index: 9;
    font-size: 14px;
}

.whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* ---- Quiz Section ---- */
.quiz-container {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
    max-width: 800px;
    margin: 0 auto;
    border-top: 4px solid var(--yellow-main);
}

.quiz-question {
    margin: 20px 0;
    padding: 15px;
    background: var(--yellow-light);
    border-left: 4px solid var(--yellow-main);
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
}

.quiz-question label {
    display: block;
    margin: 10px 0;
    cursor: pointer;
    font-weight: 500;
    color: var(--blue-dark);
}

.quiz-question input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--blue-main);
}

.quiz-button {
    background: linear-gradient(135deg, var(--red-main) 0%, var(--red-dark) 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    margin-top: 30px;
    width: 100%;
    transition: all 0.3s ease;
    font-family: 'Poppins-Regular';
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px var(--red-glow);
}

.quiz-button:hover {
    background: linear-gradient(135deg, #FF1A1A 0%, var(--red-main) 100%);
    box-shadow: 0 8px 24px rgba(217, 0, 0, 0.5);
    transform: translateY(-2px);
}

.result-container {
    background: linear-gradient(135deg, var(--yellow-main) 0%, var(--yellow-mid) 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 30px;
    border: 3px solid var(--blue-main);
}

.result-score {
    font-size: 3em;
    font-weight: bold;
    color: var(--blue-main);
    margin: 20px 0;
    font-family: 'Poppins-Bold';
}

.result-text {
    font-size: 1.3em;
    color: #333;
    margin: 10px 0;
    font-family: 'Lato', sans-serif;
}

.result-button {
    background: linear-gradient(135deg, var(--red-main) 0%, var(--red-dark) 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-family: 'Poppins-Regular';
    font-weight: 700;
    box-shadow: 0 4px 14px var(--red-glow);
}

.result-button:hover {
    background: linear-gradient(135deg, #FF1A1A 0%, var(--red-main) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(217, 0, 0, 0.5);
}

.quiz-progress {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
    color: var(--blue-main);
    font-weight: bold;
    font-family: 'Poppins-Regular';
    letter-spacing: 0.5px;
}

/* ---- Why Vishvam ---- */
.why-content {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--yellow-main);
}

.why-content p {
    font-size: 1.05em;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #333;
    transition: transform 0.3s ease;
    padding-left: 10px;
    border-left: 3px solid transparent;
}

.why-content p:hover {
    transform: translateX(5px);
    border-left-color: var(--yellow-main);
}

.why-content strong {
    color: var(--blue-main);
    font-family: 'Poppins-Bold';
    font-weight: 700;
}

/* ---- Responsive: 900px ---- */
@media (max-width: 900px) {
    .main-header h1 {
        font-size: 2.8em;
    }
}

/* ---- Responsive: 768px ---- */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background: var(--blue-main);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 80px 0 0 0;
        box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
        transition: right 0.4s ease;
        border-left: 4px solid var(--yellow-main);
    }

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

    .nav-links a {
        font-size: 1.2em;
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    .main-header {
        padding: 0;
    }

    .main-header h1 {
        font-size: 2.2em;
    }

    .main-header .tagline {
        font-size: 1.2em;
    }

    section {
        padding: 40px 15px;
    }

    h2 {
        font-size: 1.8em;
    }

    .card {
        width: 100%;
    }

    .split-section {
        padding: 20px 15px !important;
    }
}

/* ---- Responsive: 480px ---- */
@media (max-width: 480px) {
    .navbar {
        padding: 8px 5%;
    }

    .scroll-button {
        display: none;
    }

    .logo a {
        font-size: 1.5em;
    }

    .main-header h1 {
        font-size: 32px;
    }

    .main-header .tagline {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .header-badges {
        gap: 10px;
        margin-bottom: 25px;
    }

    .badge {
        font-size: 0.8em;
        padding: 6px 12px;
    }

    .header-actions {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    section {
        padding: 30px 10px;
    }

    h2 {
        font-size: 1.5em;
    }

    .gallery img {
        width: 100%;
        height: auto;
    }

    .contact-section {
        padding: 15px 20px;
    }

    .why-content {
        padding: 25px 20px;
    }
}