/* ============================================
   ORGANIZED CSS FOR SCHOOL INDEX PAGE
   ============================================ */

/* ============================================
   1. CSS VARIABLES & ROOT STYLES
   ============================================ */
:root {
  /* Primary Colors */
  --primary-dark: #1D1D1F;
  --primary-medium: #86868B;
  --primary-light: #D2D2D7;
  --accent-blue: #327bc9;
  --accent-blue-hover: #0056CC;
  --accent-blue-light: #E3F2FD;
  
  /* Backgrounds */
  --background-light: #F5F5F7;
  --background-white: #FFFFFF;
  
  /* Text Colors */
  --text-primary: #f66962;
  --text-secondary: #86868B;
  
  /* Status Colors */
  --success-green: #34C759;
  --neutral-gray: #8E8E93;
  --neutral-light: #F2F2F7;
  --highlight-orange: #FF9500;
  
  /* Matching Colors */
  --matching-color1: #ff875a;
  --matching-color2: #f6697b;
  --new-color: #1e88e5;
  
  /* Gradients */
  --primary-gradient: linear-gradient(135deg, #007AFF 0%, #0056CC 100%);
  --neutral-gradient: linear-gradient(135deg, #F5F5F7 0%, #E5E5EA 100%);
  --dark-gradient: linear-gradient(135deg, #1D1D1F 0%, #86868B 100%);
  --success-gradient: linear-gradient(135deg, #34C759 0%, #30B454 100%);
  --warning-gradient: linear-gradient(135deg, #FF9500 0%, #E6850E 100%);
  --hero-gradient: linear-gradient(135deg, #F5F5F7 0%, #E4E8ED 30%, #EEF2F7 100%);
  
  /* Shadows */
  --shadow-light: 0 4px 6px -1px rgba(29, 29, 31, 0.1);
  --shadow-medium: 0 10px 15px -3px rgba(29, 29, 31, 0.1);
  --shadow-heavy: 0 25px 50px -12px rgba(29, 29, 31, 0.25);
  --shadow-card: 0 8px 25px rgba(29, 29, 31, 0.08);
}

/* ============================================
   2. HERO SECTION STYLES
   ============================================ */
.hero-section {
  padding-top: 40px; /* Reduced space from header */
  padding-bottom: 60px; /* Space at bottom */
}

.hero-section .row {
  align-items: flex-start !important; /* Align both columns to top */
}

.hero-bg {
  background: var(--hero-gradient) !important;
}

.hero-shape-1 {
  width: 300px;
  height: 300px;
  border-radius: 57% 43% 70% 30% / 30% 64% 36% 70%;
  background: var(--dark-gradient);
  top: -50px;
  right: 10%;
}

.hero-shape-2 {
  width: 200px;
  height: 200px;
  border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  background: var(--warning-gradient);
  bottom: -50px;
  left: 10%;
}

.hero-shape-3 {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--success-gradient);
  top: 20%;
  left: 5%;
  opacity: 0.6;
}

/* ============================================
   3. BADGE STYLES
   ============================================ */
.badge-competitive-exam {
  background: var(--new-color) !important;
  color: white !important;
}

.badge-premium-learning {
  background: var(--success-gradient) !important;
  color: white !important;
}

.badge-dedicated-exam {
  background: var(--warning-gradient) !important;
  color: white !important;
}

.badge-popular-categories {
  background: linear-gradient(135deg, #E91E63 0%, #F06292 100%) !important;
  color: white !important;
}

.badge-expert-faculty {
  background: var(--primary-gradient) !important;
  color: white !important;
}

.badge-success-stories {
  background: linear-gradient(135deg, #FF9A56 0%, #FF6B95 100%) !important;
  color: white !important;
}

.exam-category-badge {
  background: var(--accent-blue-light) !important;
  color: var(--accent-blue) !important;
  border: 1px solid rgba(0, 122, 255, 0.25) !important;
}

.exam-categories-preview .badge {
  background: var(--accent-blue-light) !important;
  color: var(--accent-blue) !important;
  border: 1px solid rgba(0, 122, 255, 0.25) !important;
}

/* ============================================
   4. TRUST BADGE ICONS
   ============================================ */
.trust-icon-learners,
.trust-icon-faculty,
.trust-icon-rate {
  color: var(--accent-blue) !important;
}

.trust-icon-success {
  color: var(--success-green) !important;
}

/* ============================================
   5. BUTTON STYLES
   ============================================ */
.btn-primary:hover {
  background: var(--matching-color2) !important;
  color: white !important;
}

.btn-gradient {
  background: var(--text-primary) !important;
  border: none !important;
  color: white !important;
  font-weight: 600 !important;
}

.btn-gradient:hover {
  background: var(--matching-color2) !important;
  color: white !important;
}

.btn-hover-effect:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium) !important;
}

/* ============================================
   6. SECTION BACKGROUNDS & SPACING FIXES
   ============================================ */
.section-bg-light {
  background: linear-gradient(135deg, rgba(245, 247, 250, 1), rgba(235, 239, 245, 1)) !important;
}

.section-bg-alt {
  background: linear-gradient(135deg, rgba(240, 244, 248, 1), rgba(225, 230, 240, 1)) !important;
}

.section-bg-warm {
  background: linear-gradient(135deg, rgba(248, 249, 252, 1), rgba(238, 240, 245, 1)) !important;
}

.decorative-radial-primary {
  background: radial-gradient(circle at 10% 20%, rgba(0, 122, 255, 0.03) 0%, transparent 20%) !important;
}

.decorative-radial-secondary {
  background: radial-gradient(circle at 90% 20%, rgba(0, 122, 255, 0.03) 0%, transparent 20%) !important;
}

/* Fix for squeezed sections - Better container width */
section .container {
  max-width: 1320px !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* Reduce excessive vertical padding */
.py-5 {
  padding-top: 2.5rem !important;
  padding-bottom: 2.5rem !important;
}

.py-lg-6 {
  padding-top: 3.5rem !important;
  padding-bottom: 3.5rem !important;
}

/* ============================================
   7. CATEGORY TABS
   ============================================ */
.category-tab {
  background: var(--background-white) !important;
  border: 2px solid #e9ecef !important;
  color: #6c757d !important;
  padding: 1rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  box-shadow: var(--shadow-light);
  margin-top: 4px;
}

.category-tab:hover {
  transform: translateY(-2px);
  box-shadow: var(--matching-color1) !important;
  color: var(--accent-blue) !important;
}

.category-tab.active {
  background: var(--text-primary) !important;
  color: white !important;
  border: none !important;
  box-shadow: var(--shadow-card) !important;
}

/* ============================================
   8. EXAM CARD STYLES
   ============================================ */
.exam-icon-gradient {
  background: var(--warning-gradient) !important;
}

.exam-card:hover {
  border-color: var(--accent-blue) !important;
  box-shadow: var(--shadow-card) !important;
  transform: translateY(-5px);
}

.exam-card:hover .exam-arrow {
  transform: translateX(5px);
}

.exam-arrow {
  transition: all 0.3s ease;
}

/* Exam card stats - keep numbers and labels in one line */
.exam-card .row .col-6 > div {
  white-space: nowrap;
}

.exam-card .row .col-6 h6 {
  display: inline;
  font-size: 0.95rem;
  margin-right: 2px;
}

.exam-card .row .col-6 small {
  display: inline;
  font-size: 0.75rem;
}

/* ============================================
   9. COURSE & TEST SERIES CARDS
   ============================================ */
.course-card:hover,
.test-series-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 1rem 2rem rgba(29, 29, 31, .15) !important;
}

.course-card .card-img-top:hover,
.test-series-card .card-img-top:hover {
  transform: scale(1.05);
}

.course-title:hover,
.blog-title:hover {
  color: var(--accent-blue) !important;
  transition: all 0.3s ease;
}

/* ============================================
   10. PRICE & OVERLAY TAGS
   ============================================ */
.price-tag-bg {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(5px) !important;
}

.duration-tag-bg {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(5px) !important;
}

.test-count-tag-bg {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(8px) !important;
}

/* ============================================
   11. INSTRUCTOR STYLES
   ============================================ */
.instructor-bg-gradient {
  background: linear-gradient(135deg, #eef2f7 0%, #d9e2eb 100%) !important;
}

.instructor-expert-badge {
  background: var(--success-gradient) !important;
  color: white !important;
}

.instructor-card-inner:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card) !important;
}

/* ============================================
   12. TESTIMONIAL STYLES
   ============================================ */
.star-filled {
  color: var(--accent-blue) !important;
}

.quote-decoration {
  color: rgba(0, 122, 255, 0.07) !important;
}

.featured-testimonial {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.featured-testimonial:hover {
  box-shadow: var(--shadow-card) !important;
}

/* ============================================
   13. SOCIAL LINKS
   ============================================ */
.social-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium) !important;
}

.social-link.facebook:hover {
  background-color: var(--accent-blue) !important;
  color: white !important;
}

.social-link.twitter:hover {
  background-color: var(--primary-dark) !important;
  color: white !important;
}

.social-link.linkedin:hover {
  background-color: var(--accent-blue) !important;
  color: white !important;
}

/* ============================================
   14. SCROLL BUTTONS
   ============================================ */
.scroll-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 5;
  background: var(--matching-color1);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-medium);
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
}

.scroll-btn-left {
  left: -20px;
}

.scroll-btn-right {
  right: -5px;
}

.scroll-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-heavy);
}

/* ============================================
   15. ANNOUNCEMENTS WIDGET
   ============================================ */
.announcements-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: visible;
  position: relative;
}

.announcement-display {
  position: relative;
  height: 520px; /* Increased from 450px */
  padding: 10px 0;
  overflow: hidden;
}

.announcement-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 24px 24px 2px 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.announcement-card.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  position: absolute;
}

.card-content {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 0.75rem; /* More space for content */
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 0 12px 0;
  flex-shrink: 0;
}

.announcement-badge {
  background-color: #bfdff1 !important;
  color: black;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.announcement-meta {
  background: #f2f9fa;
  color: #6c757d;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.announcement-title {
  font-size: 22px;
  font-weight: 700;
  color: #f66962;
  margin-bottom: 12px;
  line-height: 1.3;
}

.announcement-description {
  color: #6c757d;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.announcement-features {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.feature-item {
  background: #f8f9fa;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #495057;
  border-left: 3px solid #667eea;
  text-align: center;
}

.card-footer {
  flex-shrink: 0;
  padding-top: 0.5rem;
}

/* Navigation arrows inside card */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #667eea;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-arrow:hover {
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  color: #764ba2;
}

.nav-arrow-left {
  left: 15px;
}

.nav-arrow-right {
  right: 15px;
}

.card-footer .btn {
  background: #1e88e5;
  border: none;
  font-weight: 600;
  padding: 12px 24px;
  transition: all 0.3s ease;
  width: 100%;
}

.card-footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}


/* ============================================
   16. UTILITY CLASSES
   ============================================ */
.bg-primary-soft {
  background-color: rgba(0, 122, 255, 0.1) !important;
}

.bg-primary {
  background-color: var(--new-color) !important;
}

.bg-gradient-blue {
  background: var(--primary-gradient) !important;
}

.bg-success-soft {
  background-color: rgba(52, 199, 89, 0.1) !important;
}

.bg-warning-soft {
  background-color: rgba(255, 149, 0, 0.1) !important;
}

.text-dark-80 {
  color: rgba(29, 29, 31, 0.8) !important;
}

.hover-shadow {
  transition: all 0.3s ease !important;
}

.hover-shadow:hover {
  box-shadow: var(--shadow-medium) !important;
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.hover-lift:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--shadow-card) !important;
}

.transition-all {
  transition: all 0.3s ease !important;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.rounded-4 {
  border-radius: 1rem !important;
}

.py-lg-6 {
  padding-top: 3.5rem !important;
  padding-bottom: 3.5rem !important;
}

.z-index-9 {
  z-index: 9 !important;
}

/* Better row spacing - BUT NOT for header */
section .row:not(.header *) {
  margin-left: -12px !important;
  margin-right: -12px !important;
}

section .row:not(.header *) > * {
  padding-left: 12px !important;
  padding-right: 12px !important;
}

/* Keep header full width */
header .container,
.header .container,
nav .container {
  max-width: 1320px !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

header .row,
.header .row,
nav .row {
  margin-left: -15px !important;
  margin-right: -15px !important;
}

header .row > *,
.header .row > *,
nav .row > * {
  padding-left: 15px !important;
  padding-right: 15px !important;
}

/* Remove excess margins */
body {
  overflow-x: hidden;
}

section {
  overflow-x: hidden;
}

/* ============================================
   17. CARD STYLES
   ============================================ */
.card {
  box-shadow: var(--shadow-light) !important;
  transition: all 0.3s ease !important;
  border: none !important;
}

/* ============================================
   18. ANIMATIONS
   ============================================ */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(0, 122, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0); }
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(52, 199, 89, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}

.pulse-glow {
  animation: pulse-glow 2s infinite;
}

/* ============================================
   19. BACKGROUND PATTERNS
   ============================================ */
.pattern-bg {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23007AFF' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* ============================================
   20. RESPONSIVE STYLES
   ============================================ */

/* Desktop - Full width utilization */
@media (min-width: 1400px) {
  section .container {
    max-width: 1400px !important;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  section .container {
    max-width: 1200px !important;
  }
}

@media (max-width: 992px) {
  .hero-announcements {
    margin-top: 2rem;
  }
  
  .scroll-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  section .container {
    max-width: 960px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 768px) {
  .scroll-btn {
    display: none !important;
  }
  
  .badge {
    font-size: 0.8rem;
  }
  
  .display-3 {
    font-size: 2.5rem;
  }
  
  .announcements-widget {
    margin: 0 1rem;
    max-width: none;
  }
  
  .widget-header {
    padding: 1.25rem 1.5rem 0.75rem;
  }
  
  .header-right {
    top: 1.25rem;
    right: 1.5rem;
  }
  
  .announcement-item {
    padding: 1.5rem;
  }
  
  .widget-body {
    height: 350px;
  }
  
  .offer-metrics {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .widget-footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

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

  /* Reduce padding on mobile */
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .py-lg-6 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  /* Hero section mobile spacing */
  .hero-section {
    padding-top: 30px;
    padding-bottom: 40px;
  }

  /* Announcement display mobile height */
  .announcement-display {
    height: 520px; /* Fixed height for mobile too */
  }
}