/*
Theme Name: mpboard.ai - MP Board Educational Portal
Theme URI: https://mpboard.ai
Author: mpboard.ai Team
Author URI: https://mpboard.ai
Description: A comprehensive WordPress theme for MP Board (Madhya Pradesh Board of Secondary Education) educational resources. Features class-wise study materials, previous year papers, sample papers, announcements, registration page, and a complete admin dashboard. Designed for schools, coaching centers, and educational institutions serving Classes 1-12. Includes 6 theme presets, setup wizard, custom post types, and responsive design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mpboardai
Tags: education, school, mp-board, e-learning, study-materials, responsive, custom-menu, theme-options, custom-colors, threaded-comments, translation-ready
*/

/* ========================================
   MPBOARD.AI - MP BOARD EDUCATIONAL THEME
   ======================================== */

:root {
  --vs-navy: #00173F;
  --vs-saffron: #F75B31;
  --vs-white: #FFFFFF;
  --vs-charcoal: #333333;
  --vs-light-saffron: #FFF4E5;
  --vs-deep-royal: #002D72;
  --vs-light-gray: #E5E5E5;
  --vs-muted: #F1F5F9;
  --vs-border: #E2E8F0;
  --vs-sidebar: #0F172A;
  --vs-sidebar-text: #94A3B8;
  --vs-radius: 12px;
  --vs-transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans', 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--vs-charcoal);
  background: #FAFBFC;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--vs-saffron); text-decoration: none; transition: color var(--vs-transition); }
a:hover { color: var(--vs-deep-royal); }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 { color: var(--vs-navy); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

.vs-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ========================================
   NAVIGATION
   ======================================== */
.vs-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  height: 80px; background: transparent;
  transition: all 0.5s ease;
}
.vs-navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.vs-navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; padding: 0 24px;
  max-width: 1280px; margin: 0 auto;
}
.vs-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 20px; font-weight: 800; color: #fff;
  text-decoration: none; letter-spacing: -0.5px;
}
.vs-navbar.scrolled .vs-logo { color: var(--vs-navy); }
.vs-logo-icon { width: 32px; height: 32px; color: var(--vs-saffron); flex-shrink: 0; }

.vs-desktop-nav { display: flex; align-items: center; gap: 4px; }
.vs-desktop-nav a {
  padding: 8px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: #fff; transition: all var(--vs-transition);
}
.vs-navbar.scrolled .vs-desktop-nav a { color: var(--vs-navy); }
.vs-desktop-nav a:hover, .vs-desktop-nav a.active {
  color: var(--vs-saffron) !important;
  background: var(--vs-light-saffron);
}

/* ========================================
   HERO
   ======================================== */
.vs-hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--vs-navy) 0%, var(--vs-deep-royal) 100%);
}
.vs-hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.vs-hero-bg img, .vs-hero-bg video { width: 100%; height: 100%; object-fit: cover; }
.vs-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, var(--vs-navy), transparent),
              linear-gradient(to right, rgba(0,23,63,0.8), transparent, rgba(0,23,63,0.8));
}
.vs-hero-content { position: relative; z-index: 2; text-align: center; padding: 120px 24px 80px; }
.vs-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 9999px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8); font-size: 14px; margin-bottom: 24px;
}
.vs-hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vs-saffron); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.vs-hero h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 800; color: #fff; letter-spacing: -2px; line-height: 1; margin-bottom: 8px; }
.vs-hero h1 span { display: block; font-size: clamp(2rem, 5vw, 3.5rem); color: var(--vs-saffron); margin-top: 8px; }
.vs-hero p { font-size: 1.125rem; color: rgba(255,255,255,0.7); max-width: 600px; margin: 24px auto 32px; }

.vs-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 9999px;
  font-size: 14px; font-weight: 700; cursor: pointer; border: none;
  transition: all var(--vs-transition); text-decoration: none;
}
.vs-btn-primary { background: var(--vs-saffron); color: #fff; }
.vs-btn-primary:hover { background: var(--vs-deep-royal); color: #fff; transform: translateY(-2px); }
.vs-btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.3); }
.vs-btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); color: #fff; }

.vs-hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.vs-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 400px; margin: 64px auto 0; }
.vs-hero-stats .stat-value { font-size: 2.5rem; font-weight: 800; color: #fff; }
.vs-hero-stats .stat-label { font-size: 14px; color: rgba(255,255,255,0.5); }

/* ========================================
   SECTIONS & CARDS
   ======================================== */
.vs-section { padding: 96px 0; }
.vs-section-title { text-align: center; margin-bottom: 48px; }
.vs-section-title h2 { font-size: clamp(2rem, 4vw, 3rem); }
.vs-section-title h2 span { color: var(--vs-saffron); }
.vs-section-title p { color: var(--vs-charcoal); opacity: 0.6; margin-top: 8px; font-size: 1.125rem; }

.vs-card {
  background: #fff; border-radius: var(--vs-radius); border: 1px solid var(--vs-border);
  padding: 24px; transition: all var(--vs-transition);
}
.vs-card:hover { box-shadow: 0 10px 40px rgba(0,0,0,0.08); transform: translateY(-4px); }

/* ========================================
   CLASSES GRID
   ======================================== */
.vs-classes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.vs-class-card { background: #fff; border-radius: var(--vs-radius); border: 1px solid var(--vs-border); overflow: hidden; transition: all var(--vs-transition); }
.vs-class-card:hover { box-shadow: 0 10px 40px rgba(0,0,0,0.1); transform: translateY(-4px); }
.vs-class-card-img { height: 160px; position: relative; overflow: hidden; }
.vs-class-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.vs-class-card:hover .vs-class-card-img img { transform: scale(1.1); }
.vs-class-card-img .overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--vs-navy), transparent); opacity: 0.6; }
.vs-class-card-img h3 { position: absolute; bottom: 16px; left: 16px; color: #fff; font-size: 1.5rem; }
.vs-class-card-body { padding: 20px; }
.vs-class-card-body p { font-size: 14px; color: var(--vs-charcoal); opacity: 0.6; }

/* ========================================
   GALLERY
   ======================================== */
.vs-gallery { background: var(--vs-navy); }
.vs-gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 800px; margin: 0 auto; }
.vs-gallery-item { position: relative; aspect-ratio: 4/3; border-radius: var(--vs-radius); overflow: hidden; }
.vs-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.vs-gallery-item .overlay { position: absolute; inset: 0; background: rgba(0,23,63,0.4); transition: background var(--vs-transition); }
.vs-gallery-item:hover .overlay { background: rgba(0,23,63,0.2); }
.vs-gallery-item .content { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; color: #fff; }

/* ========================================
   MATERIALS GRID
   ======================================== */
.vs-materials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.vs-material-card { background: #fff; border-radius: var(--vs-radius); border: 1px solid var(--vs-border); padding: 24px; transition: all var(--vs-transition); position: relative; overflow: hidden; }
.vs-material-card:hover { box-shadow: 0 10px 40px rgba(0,0,0,0.08); transform: translateY(-4px); }
.vs-material-card .icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 24px; }
.vs-material-card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.vs-material-card p { font-size: 14px; color: var(--vs-charcoal); opacity: 0.6; }
.vs-material-card .accent-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; border-radius: 0 0 var(--vs-radius) var(--vs-radius); transform: scaleX(0); transform-origin: left; transition: transform var(--vs-transition); }
.vs-material-card:hover .accent-bar { transform: scaleX(1); }

/* ========================================
   PROGRESSION
   ======================================== */
.vs-progression { background: var(--vs-light-saffron); }
.vs-progression-tabs { display: flex; flex-direction: column; gap: 12px; }
.vs-progression-tab { width: 100%; text-align: left; padding: 16px 20px; border-radius: 12px; border: none; background: #fff; cursor: pointer; transition: all var(--vs-transition); }
.vs-progression-tab.active { background: var(--vs-navy); color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.vs-progression-tab .title { font-weight: 700; font-size: 14px; }
.vs-progression-tab .subtitle { font-size: 12px; opacity: 0.6; margin-top: 2px; }
.vs-progression-cards { display: flex; flex-direction: column; gap: 24px; }
.vs-progression-card { border-radius: var(--vs-radius); overflow: hidden; position: relative; }
.vs-progression-card img { width: 100%; height: 300px; object-fit: cover; }
.vs-progression-card .content { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; background: linear-gradient(to top, var(--vs-navy), transparent); color: #fff; }

/* ========================================
   ANNOUNCEMENTS
   ======================================== */
.vs-announcement-item { display: flex; align-items: flex-start; gap: 16px; padding: 20px; border-radius: var(--vs-radius); border: 1px solid var(--vs-border); transition: all var(--vs-transition); margin-bottom: 16px; }
.vs-announcement-item:hover { border-color: rgba(247,91,49,0.3); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.vs-announcement-item.pinned { background: rgba(255,244,229,0.5); }
.vs-announcement-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 20px; }
.vs-announcement-content h3 { font-size: 1rem; margin-bottom: 4px; }
.vs-announcement-content p { font-size: 14px; color: var(--vs-charcoal); opacity: 0.6; }
.vs-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 9999px; font-size: 12px; font-weight: 700; }

/* ========================================
   FORMS
   ======================================== */
.vs-form input, .vs-form textarea, .vs-form select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--vs-border); border-radius: 8px;
  font-size: 14px; color: var(--vs-navy); transition: all var(--vs-transition); font-family: inherit;
}
.vs-form input:focus, .vs-form textarea:focus, .vs-form select:focus {
  outline: none; border-color: var(--vs-saffron); box-shadow: 0 0 0 3px rgba(247,91,49,0.1);
}

/* ========================================
   FOOTER
   ======================================== */
.vs-footer { background: var(--vs-navy); color: #fff; padding: 64px 0 0; }
.vs-footer a { color: rgba(255,255,255,0.5); transition: color var(--vs-transition); }
.vs-footer a:hover { color: var(--vs-saffron); }
.vs-footer h4 { color: rgba(255,255,255,0.9); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.vs-footer ul { list-style: none; }
.vs-footer ul li { margin-bottom: 10px; }
.vs-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0; margin-top: 48px; }

/* ========================================
   RESPONSIVE - TABLET (768px - 1023px)
   ======================================== */
@media (max-width: 1023px) and (min-width: 768px) {
  .vs-container { padding: 0 20px; }
  .vs-section { padding: 64px 0; }
  .vs-section-title h2 { font-size: 2rem; }
  .vs-hero h1 { font-size: 3.5rem; }
  .vs-hero h1 span { font-size: 2rem; }
  .vs-gallery-grid { gap: 16px; }
  .vs-classes-grid { grid-template-columns: repeat(2, 1fr); }
  .vs-materials-grid { grid-template-columns: repeat(2, 1fr); }
  .vs-footer-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ========================================
   RESPONSIVE - MOBILE (< 768px)
   ======================================== */
@media (max-width: 767px) {
  .vs-container { padding: 0 16px; }
  .vs-section { padding: 48px 0; }
  .vs-navbar { height: 64px; }
  .vs-navbar-inner { padding: 0 16px; }
  .vs-logo { font-size: 16px; }
  .vs-logo-icon { width: 28px; height: 28px; }

  .vs-hero { min-height: auto; padding: 80px 0 40px; }
  .vs-hero-content { padding: 60px 16px 40px; }
  .vs-hero h1 { font-size: 2.2rem; letter-spacing: -1px; }
  .vs-hero h1 span { font-size: 1.4rem; }
  .vs-hero p { font-size: 0.95rem; }
  .vs-hero-stats { gap: 16px; margin-top: 32px; }
  .vs-hero-stats .stat-value { font-size: 1.8rem; }
  .vs-hero-buttons { flex-direction: column; align-items: center; }
  .vs-btn { padding: 12px 24px; width: 100%; max-width: 280px; justify-content: center; }

  .vs-section-title { margin-bottom: 32px; }
  .vs-section-title h2 { font-size: 1.6rem; }
  .vs-section-title p { font-size: 0.95rem; }

  .vs-gallery-grid { grid-template-columns: 1fr; gap: 12px; }
  .vs-classes-grid { grid-template-columns: 1fr; gap: 16px; }
  .vs-materials-grid { grid-template-columns: 1fr; gap: 16px; }

  .vs-footer-grid { grid-template-columns: 1fr !important; gap: 32px; }
  .vs-footer { padding: 40px 0 0; }
  .vs-footer-bottom { margin-top: 24px; text-align: center; }
  .vs-footer-bottom > div { flex-direction: column !important; gap: 8px !important; }

  .vs-progression-tab { padding: 12px 16px; }
  .vs-progression-card img { height: 200px; }

  /* Contact page mobile */
  .vs-section > .vs-container > div[style*="grid-template-columns:1fr 2fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE (< 480px)
   ======================================== */
@media (max-width: 479px) {
  .vs-hero h1 { font-size: 1.8rem; }
  .vs-hero h1 span { font-size: 1.1rem; }
  .vs-section-title h2 { font-size: 1.4rem; }
  .vs-card { padding: 16px; }
  .vs-gallery-item { aspect-ratio: 16/10; }
}

/* ========================================
   WORDPRESS COMPATIBILITY
   ======================================== */
.wp-block-post-content p { margin-bottom: 1.5rem; }
.wp-block-post-content h2 { margin-top: 2rem; margin-bottom: 1rem; }
.wp-block-post-content ul, .wp-block-post-content ol { margin-left: 1.5rem; margin-bottom: 1.5rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
