/* ============================================
   Vijeta Academy Sangli - Custom Styles
   ============================================
   Edit colors, fonts, and styles below.
   Primary color: Orange (#e65100 / #f57c00)
============================================ */

/* ── CSS Variables ────────────────────────── */
:root {
    --primary:        #e65100;
    --primary-light:  #ff8f00;
    --primary-dark:   #bf360c;
    --primary-bg:     rgba(230, 81, 0, 0.08);
    --gradient:       linear-gradient(135deg, #ff8f00, #e65100);
    --gradient-hero:  linear-gradient(135deg, #e65100, #bf360c);
    --font-family:    'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm:      0 2px 8px rgba(0,0,0,0.06);
    --shadow-md:      0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg:      0 8px 40px rgba(0,0,0,0.12);
    --radius:         1rem;
}

/* ── Bootstrap Overrides ──────────────────── */
.btn-primary {
    background: var(--gradient) !important;
    border: none !important;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(230, 81, 0, 0.35);
    background: var(--gradient) !important;
    opacity: 0.92;
}
.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    font-weight: 600;
}
.btn-outline-primary:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}
.text-primary {
    color: var(--primary) !important;
}
.bg-primary {
    background-color: var(--primary) !important;
}
.badge.bg-primary {
    background: var(--gradient) !important;
}

/* ── Global ───────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}
body {
    font-family: var(--font-family);
    color: #1a1a2e;
    background: #fff;
    overflow-x: hidden;
}
img {
    max-width: 100%;
}
.rounded-4 {
    border-radius: var(--radius) !important;
}

/* ── Navbar ───────────────────────────────── */
#mainNavbar {
    transition: all 0.35s ease;
    padding: 0.5rem 0;
}
#mainNavbar.scrolled {
    background: rgba(255,255,255,0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
#mainNavbar.scrolled .navbar-brand span,
#mainNavbar.scrolled .nav-link {
    color: #1a1a2e !important;
}
#mainNavbar.scrolled .navbar-location {
    color: #888 !important;
}
#mainNavbar.scrolled .navbar-toggler-icon {
    filter: invert(1) grayscale(1) brightness(0.4);
}
.navbar-logo {
    object-fit: contain;
    border: 2px solid rgba(255,255,255,0.2);
}
#mainNavbar.scrolled .navbar-logo {
    border-color: rgba(0,0,0,0.08);
}
.navbar-location {
    color: rgba(255,255,255,0.6);
    font-size: 0.7rem;
}
.nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}
.nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
}
#mainNavbar.scrolled .nav-link:hover {
    color: var(--primary) !important;
    background: var(--primary-bg);
}

/* Nav highlight links */
.nav-link-highlight {
    color: #fbbf24 !important;
    font-weight: 600 !important;
}
#mainNavbar.scrolled .nav-link-highlight {
    color: var(--primary) !important;
    font-weight: 600 !important;
}

/* Dropdown & Mega Menu */
.navbar .dropdown-menu {
    border-radius: 0.75rem;
    margin-top: 0.5rem;
    min-width: 220px;
    animation: fadeInDown 0.2s ease;
}
.navbar .mega-menu {
    min-width: 480px;
}
.navbar .dropdown-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #333;
    transition: all 0.15s ease;
}
.navbar .dropdown-item:hover {
    background: var(--primary-bg);
    color: var(--primary);
}
.navbar .dropdown-item i {
    width: 1.25rem;
    text-align: center;
}
.navbar .dropdown-header {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0.75rem;
}
#mainNavbar .dropdown-toggle::after {
    font-size: 0.65rem;
    vertical-align: 0.15em;
}
#mainNavbar.scrolled .dropdown-toggle::after {
    color: #1a1a2e;
}
/* Inner page navbar (always scrolled look) */
#mainNavbar.inner-page {
    background: rgba(255,255,255,0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
#mainNavbar.inner-page .navbar-brand span,
#mainNavbar.inner-page .nav-link {
    color: #1a1a2e !important;
}
#mainNavbar.inner-page .navbar-location {
    color: #888 !important;
}
#mainNavbar.inner-page .navbar-toggler-icon {
    filter: invert(1) grayscale(1) brightness(0.4);
}
#mainNavbar.inner-page .navbar-logo {
    border-color: rgba(0,0,0,0.08);
}
#mainNavbar.inner-page .nav-link:hover {
    color: var(--primary) !important;
    background: var(--primary-bg);
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 991.98px) {
    .navbar .mega-menu { min-width: auto; }
}

/* Mobile menu */
.mobile-nav-link {
    color: #333 !important;
    font-size: 1rem;
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem;
}
.mobile-nav-link:hover {
    background: var(--primary-bg) !important;
    color: var(--primary) !important;
}

/* Homepage Slider */
.hero-slider .carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
}
.hero-slider .carousel-caption {
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    border-radius: 0 0 var(--radius) var(--radius);
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
}
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 3rem;
    height: 3rem;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    opacity: 0.7;
}
.hero-slider .carousel-control-prev { left: 1rem; }
.hero-slider .carousel-control-next { right: 1rem; }
.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover { opacity: 1; }
.hero-slider .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.5;
}
.hero-slider .carousel-indicators .active { opacity: 1; background: var(--primary); }
@media (max-width: 575.98px) {
    .hero-slider .carousel-item img { height: 220px; }
    .hero-slider .carousel-caption h5 { font-size: 1rem; }
}

/* Website Notification Banner */
.site-notification-bar {
    background: var(--gradient);
    color: #fff;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    position: relative;
    z-index: 1050;
}
.site-notification-bar .btn-close {
    filter: invert(1);
    opacity: 0.8;
    font-size: 0.65rem;
}
.site-notification-bar a { color: #fff; text-decoration: underline; }

/* ── Hero Section ─────────────────────────── */
.hero-section {
    min-height: 100vh;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.5), rgba(0,0,0,0.8));
}
.hero-badge {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
}
.hero-title {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.2;
}
.hero-subtitle {
    max-width: 650px;
    font-size: 1.15rem;
    line-height: 1.8;
}
.text-gradient {
    background: linear-gradient(135deg, #ff8f00, #fdd835);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-fade-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6rem;
    background: linear-gradient(to top, #fff, transparent);
}
.z-1 { z-index: 1; }

/* ── Stats Section ────────────────────────── */
.stat-icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Course Cards ─────────────────────────── */
.hover-card {
    transition: all 0.3s ease;
}
.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.course-icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Test Series ──────────────────────────── */
.test-icon-box {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.test-image-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
}

/* ── Testimonials ─────────────────────────── */
.testimonial-image-overlay {
    background: linear-gradient(to top, #fff, rgba(255,255,255,0.15), transparent);
}

/* ── Appx / Online Platform Section ───────── */
.appx-banner {
    background: var(--gradient-hero);
    position: relative;
}
.appx-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background:
        radial-gradient(circle at 30% 20%, #fff 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, #fff 0%, transparent 50%);
}
.appx-badge {
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    display: inline-flex;
}
.appx-feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── About Section ────────────────────────── */
.about-feature-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Contact Section ──────────────────────── */
.contact-icon-box {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.success-icon-circle {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(230, 81, 0, 0.15);
}

/* ── Footer ───────────────────────────────── */
.site-footer {
    background: #fafafa;
    border-top: 1px solid #eee;
}
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--primary);
}
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #666;
}

/* ── Back to Top Button ───────────────────── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 81, 0, 0.4);
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.2rem !important;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .display-6 {
        font-size: 1.75rem;
    }
}
@media (max-width: 575.98px) {
    .hero-section {
        min-height: 90vh;
    }
    .hero-title {
        font-size: 1.8rem !important;
    }
    .stats-section .card {
        padding: 1rem !important;
    }
    .stat-icon-box {
        width: 2.5rem;
        height: 2.5rem;
    }
    .fs-3 {
        font-size: 1.4rem !important;
    }
}

/* ── Utility ──────────────────────────────── */
.object-fit-cover {
    object-fit: cover;
}
.flex-shrink-0 {
    flex-shrink: 0;
}

/* ── Loading Animation ────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
