/* ==========================================================================
   MAIN CSS DESIGN SYSTEM FOR OTTIMO, DIYA & SHREEJA PUBLICATION WEBSITES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Color Palette - Master Ottimo */
  --ottimo-navy: #0A192F;
  --ottimo-navy-light: #112240;
  --ottimo-gold: #D4AF37;
  --ottimo-gold-bright: #FFD700;
  --ottimo-cyan: #00E5FF;
  --ottimo-blue: #0086C8;

  /* Color Palette - Diya Publications */
  --diya-red: #E31E24;
  --diya-blue: #1B365D;
  --diya-yellow: #FDC800;
  --diya-bg: #FFFDF7;

  /* Color Palette - Shreeja Prakashan */
  --shreeja-orange: #EE6723;
  --shreeja-blue: #0086C8;
  --shreeja-cream: #FFFDE6;
  --shreeja-green: #10B981;

  /* Neutral Surface Variables */
  --bg-primary: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-glass: stroke rgba(255, 255, 255, 0.85);
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border-light: #E2E8F0;

  /* Fonts & Shadows */
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles & Resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

/* ==========================================================================
   GLOBAL BRAND NAVIGATION BAR & SITE SWITCHER
   ========================================================================== */

.top-bar-notice {
  background: linear-gradient(90deg, #0A192F 0%, #1B365D 50%, #EE6723 100%);
  color: #FFFFFF;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-notice a {
  color: var(--ottimo-gold-bright);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: underline;
}

.top-bar-notice a:hover {
  color: #FFFFFF;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo-link img {
  height: 54px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand-logo-link:hover img {
  transform: scale(1.03);
}

/* Domain Navigation Switcher Pills */
.site-switcher {
  display: flex;
  align-items: center;
  background: #EDF2F7;
  padding: 4px;
  border-radius: 40px;
  border: 1px solid #CBD5E1;
}

.site-switcher-btn {
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 30px;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-switcher-btn.active-ottimo {
  background: var(--ottimo-navy);
  color: var(--ottimo-gold-bright);
  box-shadow: var(--shadow-sm);
}

.site-switcher-btn.active-diya {
  background: var(--diya-red);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.site-switcher-btn.active-shreeja {
  background: var(--shreeja-orange);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.site-switcher-btn:hover:not(.active-ottimo):not(.active-diya):not(.active-shreeja) {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.6);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: var(--shreeja-blue);
}

.nav-cta-btn {
  background: linear-gradient(135deg, var(--ottimo-navy) 0%, var(--shreeja-blue) 100%);
  color: #FFFFFF;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(0, 134, 200, 0.25);
  transition: var(--transition);
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 134, 200, 0.4);
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */

.hero-banner {
  position: relative;
  padding: 80px 24px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-ottimo {
  background: linear-gradient(135deg, #0A192F 0%, #112240 60%, #003B6D 100%);
  color: #FFFFFF;
}

.hero-diya {
  background: linear-gradient(135deg, #FFFDF7 0%, #FEF2F2 50%, #EFF6FF 100%);
  color: var(--text-main);
  border-bottom: 2px solid #FEE2E2;
}

.hero-shreeja {
  background: linear-gradient(135deg, #FFFDE6 0%, #FFF7ED 50%, #ECFDF5 100%);
  color: var(--text-main);
  border-bottom: 2px solid #FFEDD5;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.tag-ottimo {
  background: rgba(212, 175, 55, 0.15);
  color: var(--ottimo-gold-bright);
  border: 1px solid var(--ottimo-gold);
}

.tag-diya {
  background: rgba(227, 30, 36, 0.1);
  color: var(--diya-red);
  border: 1px solid #FECACA;
}

.tag-shreeja {
  background: rgba(238, 103, 35, 0.1);
  color: var(--shreeja-orange);
  border: 1px solid #FFEDD5;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-btn-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.btn-ottimo-gold {
  background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
  color: #0A192F;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
}

.btn-diya-red {
  background: linear-gradient(135deg, #E31E24 0%, #B91C1C 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(227, 30, 36, 0.3);
}

.btn-shreeja-orange {
  background: linear-gradient(135deg, #EE6723 0%, #C2410C 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(238, 103, 35, 0.3);
}

.btn-secondary {
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: inherit;
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.btn-primary:hover, .btn-secondary:hover {
  transform: translateY(-3px);
}

.hero-preview-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  position: relative;
}

.hero-preview-card img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   FEATURED SPOTLIGHT & PUBLISHER CARDS
   ========================================================================== */

.section-padding {
  padding: 72px 24px;
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* Dual Brand Grid */
.dual-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
}

.publisher-spotlight-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.publisher-spotlight-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-diya {
  border-top: 6px solid var(--diya-red);
}

.card-shreeja {
  border-top: 6px solid var(--shreeja-orange);
}

.publisher-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.publisher-card-header img {
  height: 50px;
  width: auto;
}

.badge-yt {
  background: #FF0000;
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   YOUTUBE INFOTAINMENT HUB & VIDEO CARDS
   ========================================================================== */

.yt-hub-container {
  background: #0F172A;
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  box-shadow: var(--shadow-lg);
}

.yt-filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  justify-content: center;
}

.yt-filter-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.yt-filter-btn.active, .yt-filter-btn:hover {
  background: #FF0000;
  color: #FFFFFF;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.video-card {
  background: #1E293B;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #334155;
  transition: var(--transition);
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-5px);
  border-color: #FF0000;
}

.video-thumb {
  height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.play-btn-pulse {
  width: 54px;
  height: 54px;
  background: rgba(255, 0, 0, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
  transition: transform 0.2s ease;
}

.video-card:hover .play-btn-pulse {
  transform: scale(1.15);
}

.video-info {
  padding: 16px;
}

.video-pub-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #38BDF8;
  margin-bottom: 6px;
}

.video-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #F8FAFC;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #94A3B8;
}

/* ==========================================================================
   BOOK CATALOG & FLIPBOOK PREVIEW
   ========================================================================== */

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  background: #FFFFFF;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-box input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: 30px;
  border: 1px solid #CBD5E1;
  font-size: 0.9rem;
  outline: none;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
}

.filter-select {
  padding: 10px 16px;
  border-radius: 30px;
  border: 1px solid #CBD5E1;
  font-weight: 600;
  font-size: 0.88rem;
  outline: none;
  background: #FFFFFF;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.book-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.book-cover-mock {
  height: 220px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  padding: 16px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.book-badge-nep {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  align-self: flex-start;
}

.book-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 6px;
}

.book-card-series {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.book-price-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px stroke var(--border-light);
}

.book-price {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-main);
}

.btn-sm-action {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
}

/* ==========================================================================
   OTTIMO MASTER TUTOR INTEGRATION SECTION
   ========================================================================== */

.master-tutor-banner {
  background: linear-gradient(135deg, #0A192F 0%, #0F2A4A 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  margin-top: 48px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ottimo-gold);
}

.master-tutor-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.tutor-feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.tutor-feature-item {
  background: rgba(255, 255, 255, 0.06);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tutor-feature-item h4 {
  color: var(--ottimo-gold-bright);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

/* ==========================================================================
   MODALS (VIDEO PLAYER, FLIPBOOK, SPECIMEN FORM)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #F1F5F9;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.modal-close-btn:hover {
  background: #E2E8F0;
  color: var(--text-main);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.main-footer {
  background: #0A192F;
  color: #94A3B8;
  padding: 60px 24px 30px;
  border-top: 1px solid #1E293B;
  font-size: 0.9rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #F8FAFC;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid #1E293B;
  text-align: center;
  font-size: 0.82rem;
}

/* Responsive Breakpoints & Mobile Optimization */
@media (max-width: 900px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  .container, section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Navigation & Site Switcher */
  .site-switcher {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    margin-top: 8px !important;
  }

  .site-pill {
    padding: 4px 10px !important;
    font-size: 0.78rem !important;
  }

  .nav-menu {
    display: none;
  }

  .nav-menu.active {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - 60px) !important;
    background: rgba(10, 25, 47, 0.98) !important;
    backdrop-filter: blur(16px) !important;
    padding: 32px 24px !important;
    gap: 20px !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
  }

  .mobile-hamburger, .hamburger {
    display: flex !important;
  }

  /* Hero Layouts */
  .hero-container, .master-tutor-content, .hero-grid {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 24px !important;
  }

  .hero-title, h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem) !important;
    line-height: 1.25 !important;
  }

  .hero-sub, .hero-subtitle, p {
    font-size: 0.95rem !important;
  }

  .hero-cta-group, .hero-buttons, .cta-group {
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }

  .btn, button, .cta-button {
    width: 100% !important;
    justify-content: center !important;
    min-height: 48px !important;
    font-size: 0.95rem !important;
  }

  /* Grids */
  .video-grid, .book-grid, .imprints-grid, .features-grid, .catalogues-grid, .stats-row, .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Filter Panel */
  .bifurcation-panel, .filter-bar, .filter-grid {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 16px !important;
  }

  .bifurcation-panel select, .filter-bar select, .filter-bar input {
    width: 100% !important;
    min-height: 44px !important;
    font-size: 0.9rem !important;
  }

  /* Modals */
  .modal-card {
    width: 95% !important;
    padding: 20px 16px !important;
    max-height: 90vh !important;
    margin: 10px !important;
  }

  .iframe-container, .video-modal-iframe-wrap {
    position: relative !important;
    padding-bottom: 56.25% !important;
    height: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
  }

  .iframe-container iframe, .video-modal-iframe-wrap iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }
}

@media (max-width: 480px) {
  .hero-title, h1 {
    font-size: 1.6rem !important;
  }

  .stats-row, .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .stat-card, .stat-item {
    padding: 12px 8px !important;
  }
}

