/**
 * Standalone Custom Style Sheet for Educational Subscription Platform (Vidyavaan)
 * Educational blue-green color scheme, custom typography, soft shadows, and smooth micro-animations
 */

/* Root Theme Configuration */
:root {
    --primary-color: #1a56db;       /* Education Royal Blue */
    --primary-hover: #1140b3;
    --success-color: #10b981;       /* Academic Growth Green */
    --success-hover: #059669;
    --dark-bg: #0f172a;             /* Deep slate */
    --light-bg: #f8fafc;            /* Crisp paper grey */
    --border-color: #e2e8f0;        /* Soft divider grey */
    --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 8px -1px rgba(15, 23, 42, 0.03);
    --card-shadow-hover: 0 10px 30px -4px rgba(26, 86, 219, 0.12), 0 4px 12px -2px rgba(16, 185, 129, 0.06);
    --font-sans: "Inter", system-ui, -apple-system, sans-serif;
    --font-display: "Space Grotesk", sans-serif;
    --font-mono: "JetBrains Mono", monospace;
}

/* Global Elements & Typography */
body {
    font-family: var(--font-sans);
    background-color: #ffffff;
    color: #334155;
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
}

.font-display {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.font-mono {
    font-family: var(--font-mono);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: #1e293b;
    font-weight: 700;
}

/* Custom Overrides of Bootstrap Classes */
.bg-primary { background-color: var(--primary-color) !important; }
.text-primary { color: var(--primary-color) !important; }
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    font-family: var(--font-display);
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(26, 86, 219, 0.3);
}

.bg-success { background-color: var(--success-color) !important; }
.text-success { color: var(--success-color) !important; }
.btn-success {
    background-color: var(--success-color) !important;
    border-color: var(--success-color) !important;
    font-family: var(--font-display);
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-success:hover {
    background-color: var(--success-hover) !important;
    border-color: var(--success-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    font-family: var(--font-display);
    font-weight: 600;
}
.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Sticky Header & Navigation */
header.sticky-top {
    transition: all 0.3s ease-in-out;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px);
}
header.scrolled {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.1) !important;
}

/* Responsive Mega Menu */
.mega-menu-dropdown:hover .mega-menu-box {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mega-menu-box {
    display: none;
    opacity: 0;
    visibility: hidden;
    width: 680px;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: #ffffff;
    z-index: 1000;
}

@media (max-width: 1199.98px) {
    .mega-menu-box {
        position: static !important;
        width: 100% !important;
        transform: none !important;
        box-shadow: none !important;
        padding: 10px 0 !important;
        display: none;
    }
    .mega-menu-dropdown.show .mega-menu-box {
        display: block;
    }
}

.dropdown-item {
    transition: all 0.2s ease;
}
.dropdown-item:hover {
    background-color: var(--light-bg);
}

/* Beautiful Rounded Cards & Soft Shadows */
.card-premium {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-premium:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(26, 86, 219, 0.15);
}

/* Hero Section */
.hero-section {
    background: radial-gradient(100% 100% at 100% 0%, rgba(16, 185, 129, 0.05) 0%, rgba(26, 86, 219, 0.04) 50%, rgba(255, 255, 255, 0) 100%), #ffffff;
    padding: 100px 0 80px;
}
@media (max-width: 767.98px) {
    .hero-section {
        padding: 50px 0 40px;
    }
}

/* Custom Statistics Counter Badge */
.stat-card {
    border-left: 4px solid var(--primary-color);
}
.stat-card-success {
    border-left: 4px solid var(--success-color);
}

/* FAQs Accordion Styling */
.faq-accordion .accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
}
.faq-accordion .accordion-button {
    font-family: var(--font-display);
    font-weight: 600;
    color: #1e293b;
    background-color: #ffffff;
}
.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: var(--light-bg);
    box-shadow: none;
}

/* Floating green WhatsApp widget */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.floating-whatsapp:hover {
    color: #ffffff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}
.floating-whatsapp:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
}
.whatsapp-tooltip {
    position: absolute;
    left: 75px;
    top: 50%;
    transform: translate(-10px, -50%);
    background-color: #1e293b;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-family: var(--font-display);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Back to Top Widget */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}
.back-to-top.show {
    display: flex;
}

/* Multi-step Form & Verification OTP Grid */
.step-container {
    display: none;
}
.step-container.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

/* Simulated Payment Grid / Gateways */
.payment-tabs .nav-link {
    font-family: var(--font-display);
    font-weight: 600;
    color: #64748b;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 20px;
}
.payment-tabs .nav-link.active {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color);
}

/* Support Chat Screen (Dashboard) */
.chat-window {
    height: 380px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    background-color: #f1f5f9;
}
.chat-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 15px;
    margin-bottom: 12px;
}
.chat-bubble.bot {
    background-color: #ffffff;
    color: #1e293b;
    align-self: flex-start;
}
.chat-bubble.student {
    background-color: var(--primary-color);
    color: #ffffff;
    align-self: flex-end;
}

/* Lazy Load Overlay Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Custom FadeIn Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Pulse Animation for Loading Indicator */
.pulse-loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--border-color);
    border-bottom-color: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pricing Grid Custom Styling */
.pricing-card {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    transition: all 0.3s ease;
}
.pricing-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(26, 86, 219, 0.15);
}
.pricing-card.featured::before {
    content: "POPULAR CHOICE";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* Administrative Metrics Grid */
.admin-metric-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #ffffff;
}

/* Custom Breadcrumb Icon */
.breadcrumb-item + .breadcrumb-item::before {
    content: "\f105" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: 11px !important;
    color: #94a3b8 !important;
}

/* --- Top Bar & Footer Visibility Enhancements --- */

/* Top Bar Text and Links */
.top-bar {
    background-color: #0f172a !important; /* Rich deep slate background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar .top-contact {
    color: #cbd5e1 !important; /* High legibility light slate grey */
}
.top-bar .top-contact span {
    color: #cbd5e1 !important;
}
.top-bar .top-contact i {
    color: var(--success-color) !important;
}

/* Footer Section Text and Links */
footer.footer {
    background-color: #0f172a !important; /* Deep contrast dark background */
    color: #e2e8f0 !important;
}
footer.footer .text-muted, 
footer.footer p.text-muted, 
footer.footer p, 
footer.footer span {
    color: #94a3b8 !important; /* Light text color for high legibility */
}
footer.footer .footer-title {
    color: var(--success-color) !important; /* Vivid accent for headers */
    font-weight: 700;
    margin-bottom: 1.5rem;
}
footer.footer a.text-muted,
footer.footer .footer-links a {
    color: #94a3b8 !important;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
footer.footer a.text-muted:hover,
footer.footer .footer-links a:hover {
    color: var(--success-color) !important; /* Vivid hover state */
    padding-left: 2px;
}
footer.footer hr,
footer.footer .border-secondary {
    border-color: rgba(255, 255, 255, 0.1) !important;
}
footer.footer .badge.bg-secondary {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

