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

:root {
  --primary-color: #1a3c6e;
  --accent-color: #f4a623;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --text-dark: #2c3e50;
  --text-muted: #6c757d;
  --font-headings: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Global Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  color: var(--primary-color);
  font-weight: 600;
}

/* Color Overrides & Utilities */
.text-primary {
  color: var(--primary-color) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

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

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

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

/* Navbar Custom Styling */
.navbar {
  box-shadow: 0 2px 10px rgba(26, 60, 110, 0.08);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--primary-color) !important;
  display: flex;
  align-items: center;
}

.navbar-brand-tagline {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  display: block;
}

.nav-link {
  font-family: var(--font-headings);
  font-weight: 500;
  color: var(--text-dark) !important;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem !important;
}

.nav-link:hover, 
.nav-link.active {
  color: var(--accent-color) !important;
}

/* Card Styling - Subtle Shadows & Micro-animations */
.card {
  border: 1px solid rgba(26, 60, 110, 0.08);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(26, 60, 110, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  background-color: var(--white);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26, 60, 110, 0.08);
}

/* Buttons */
.btn {
  font-family: var(--font-headings);
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #11284a;
  border-color: #11284a;
  color: var(--white);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.btn-accent {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--primary-color);
  font-weight: 600;
}

.btn-accent:hover,
.btn-accent:focus {
  background-color: #e09419;
  border-color: #e09419;
  color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 80vh;
  display: flex;
  align-items: center;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 60, 110, 0.9) 0%, rgba(26, 60, 110, 0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .hero-section {
    min-height: 60vh;
    padding: 3rem 0;
  }
}

/* Stats Bar */
.stats-bar {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 3rem 0;
  border-top: 4px solid var(--accent-color);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-headings);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Class Card in index.html */
.class-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 8px;
  background-color: var(--white);
  border: 1px solid rgba(26, 60, 110, 0.08);
  height: 100%;
}

.class-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1.2rem;
  display: inline-block;
}

.class-number {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Custom Scrolling Notice Marquee */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 0.75rem 0;
  font-weight: 600;
  font-family: var(--font-headings);
  font-size: 0.95rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.marquee-content {
  display: inline-block;
  animation: marquee-scroll 25s linear infinite;
}

.marquee-item {
  display: inline-block;
  padding-right: 3rem;
}

.marquee-item::after {
  content: " \2022 ";
  margin-left: 3rem;
  color: var(--primary-color);
  opacity: 0.6;
}

@keyframes marquee-scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Testimonial Section */
.testimonial-card {
  background-color: var(--white);
  padding: 2rem;
  height: 100%;
  border-left: 4px solid var(--accent-color);
}

.testimonial-text {
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
  font-family: var(--font-headings);
  margin-bottom: 0.1rem;
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Page Headers (Academics, About, etc.) */
.page-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  border-bottom: 4px solid var(--accent-color);
}

.page-header h1 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.page-header .breadcrumb {
  justify-content: center;
  margin-bottom: 0;
}

.page-header .breadcrumb-item, 
.page-header .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
  font-family: var(--font-headings);
}

.page-header .breadcrumb-item.active {
  color: var(--accent-color);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* School Timeline styling */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-container {
  padding: 15px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-container::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--white);
  border: 4px solid var(--accent-color);
  top: 25px;
  border-radius: 50%;
  z-index: 1;
}

.left-timeline {
  left: 0;
}

.right-timeline {
  left: 50%;
}

.right-timeline::after {
  left: -10px;
}

.timeline-content {
  padding: 1.5rem 2rem;
  background-color: var(--white);
  position: relative;
  border-radius: 8px;
  border: 1px solid rgba(26, 60, 110, 0.08);
  box-shadow: 0 4px 12px rgba(26, 60, 110, 0.04);
}

.timeline-year {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  font-family: var(--font-headings);
}

@media (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }
  .timeline-container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  .timeline-container::after {
    left: 21px;
  }
  .right-timeline {
    left: 0%;
  }
}

/* Gallery Photo Grid & Custom CSS Lightbox */
.gallery-card {
  cursor: pointer;
}

.gallery-card img {
  transition: transform 0.5s ease;
  object-fit: cover;
  height: 250px;
  width: 100%;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(26, 60, 110, 0.95);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 85%;
  max-height: 75vh;
  object-fit: contain;
  border: 4px solid var(--white);
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: var(--white);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 2001;
}

.lightbox-close:hover {
  color: var(--accent-color);
}

.lightbox-caption {
  margin: auto;
  display: block;
  width: 80%;
  text-align: center;
  color: var(--white);
  padding: 15px 0;
  font-family: var(--font-headings);
  font-size: 1.1rem;
}

/* Custom Notice Board Calendar */
.calendar {
  background-color: var(--white);
  border: 1px solid rgba(26, 60, 110, 0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(26, 60, 110, 0.04);
}

.calendar-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 1.25rem;
  text-align: center;
  font-family: var(--font-headings);
  font-weight: 600;
  border-bottom: 2px solid var(--accent-color);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 600;
  background-color: var(--bg-light);
  padding: 0.75rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  padding: 0.5rem;
}

.calendar-day {
  padding: 0.8rem 0;
  font-size: 0.9rem;
  position: relative;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.calendar-day:hover {
  background-color: rgba(26, 60, 110, 0.05);
}

.calendar-day.event-day::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--accent-color);
  border-radius: 50%;
}

.calendar-day.today {
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: bold;
}

.calendar-day.muted {
  color: #ccc;
  cursor: default;
}

.calendar-day.muted:hover {
  background-color: transparent;
}

/* Footer Section */
footer {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.8);
  border-top: 4px solid var(--accent-color);
}

footer h5 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent-color);
}

footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

/* Utility spacing overrides to enforce generous spacing */
section {
  padding: 5rem 0;
}

@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }
}

/* Social Media Icons */
.social-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background-color: var(--white);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}
