/* --- VARIABLES & RESET --- */
:root {
    --accent: #b6806a;
    --bg-light: #fcfaf8;
    --text-dark: #333;
    --text-light: #777;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
  font-family: system-ui, sans-serif;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 4px;
}

/* --- NAVIGATION --- */
.navbar {
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: bold;
    color: var(--accent);
    width:8%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Mobile Menu Toggle */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; }

/* --- HERO SECTION --- */
.hero {
    display: flex;
    flex-direction: column; /* Mobile Default */
    gap: 40px;
    align-items: center;
    text-align: center;
}

.subtitle {
    color: var(--accent);
    font-size: 13px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

h1 { font-size: 38px; }

.btn-outline {
    padding: 12px 30px;
    border: 1px solid #ccc;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-outline:hover { background: #eee; }

/* --- STATS --- */
.stats-bg { background: var(--bg-light);  }
.stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.stat-item strong { font-size: 36px; display: block; }
.stat-item span { font-size: 11px; color: var(--text-light); letter-spacing: 1px; }

/* --- GRIDS & CARDS --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr; /* Mobile Default */
    gap: 30px;
}

.card h4 { margin-top: 15px; font-size: 22px; }
.read-more {
    text-decoration: none;
    color: var(--accent);
    font-weight: bold;
    font-size: 13px;
}

/* .bg-light { background: var(--bg-light); }
.section-header-center { text-align: center; margin-bottom: 40px; } */

/* --- NEWSLETTER --- */
.newsletter-box {
    display: flex;
    flex-direction: column;
    background: #f4efeb;
}

.news-content { padding: 40px; }
.news-form { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.news-form input { padding: 12px; border: 1px solid #ddd; flex: 1; }
.news-form button { padding: 12px 25px; background: var(--accent); color: white; border: none; cursor: pointer; }

/* --- VIDEOS (9:16 Optimization) --- */
.video-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

/* Section header */
.section-header h2 {
  font-size: 28px;
  margin-bottom: 24px;
  border-left: 4px solid #e63946;
  padding-left: 12px;
}

.video-placeholder { position: relative; }
.play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.8);
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; cursor: pointer;
}

.vid-thumb-vertical {
    width: 90px;
    aspect-ratio: 9/16; /* Forced 9:16 vertical aspect ratio */
    background: #ddd;
    flex-shrink: 0;
    overflow: hidden;
}

.vid-thumb-vertical img { width: 100%; height: 100%; object-fit: cover; }
.side-item { display: flex; gap: 20px; align-items: flex-start; }

/* --- FOOTER CTA --- */
.footer-cta { background: var(--accent); color: white; text-align: center; padding: 80px 0; }
.btn-white { padding: 15px 40px; background: white; color: var(--accent); border: none; font-weight: bold; cursor: pointer; margin-top: 20px; }

.main-footer { text-align: center; border-top: 1px solid #eee; }
.footer-links { list-style: none; display: flex; justify-content: center; gap: 20px; font-size: 12px; margin: 20px 0; }
.copyright { font-size: 11px; color: var(--text-light); }

/* --- RESPONSIVE BREAKPOINT (768px) --- */
@media (min-width: 768px) {
    .hero { flex-direction: row; text-align: left; }
    h1 { font-size: 54px; }

    .stats { flex-direction: row; justify-content: space-around; }

    .grid-3 { grid-template-columns: repeat(3, 1fr); }

    .newsletter-box { flex-direction: row; }
    .news-form { flex-direction: row; }

    .video-layout { grid-template-columns: 2fr 1fr; }
}
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.card img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.video-wrapper {
  max-width: 320px;      /* desktop size */
  width: 100%;

}

.video-wrapper video {
  width: 178%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
   object-fit: cover;
}
/* Side videos */
.side-videos {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-item {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #f8f9fa;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: bg 0.2s ease, transform 0.2s ease;
}

.side-item:hover {
  background: #eef1f4;
  transform: translateY(-2px);
}

/* Vertical thumbnails */
.vid-thumb-vertical {
  width: 90px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.vid-thumb-vertical img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Side text */
.vid-info h5 {
  font-size: 15px;
  margin: 0 0 4px;
}

.vid-info p {
  font-size: 13px;
  color: #666;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .video-layout {
    grid-template-columns: 1fr;
  }

  .side-videos {
    flex-direction: row;
    overflow-x: auto;
  }

  .side-item {
    min-width: 240px;
  }
}

/* --- MOBILE MENU ANIMATION (max-width: 768px) --- */
@media (max-width: 767px) {
    .nav-toggle-label { display: block; }
    .nav-toggle-label span { display: block; width: 25px; height: 2px; background: #333; position: relative; }
    .nav-toggle-label span::before, .nav-toggle-label span::after { content: ""; position: absolute; width: 25px; height: 2px; background: #333; transition: 0.3s; }
    .nav-toggle-label span::before { top: -8px; }
    .nav-toggle-label span::after { bottom: -8px; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0;
        width: 100%; background: white;
        flex-direction: column; text-align: center;
        padding: 40px 0; border-top: 1px solid #eee;
    }

    .nav-toggle:checked ~ nav .nav-links { display: flex; }
}
.stats-bg {
  background: #f9f9f9;
  padding: 35px 16px; /* reduced height */
  font-family: 'Inter', sans-serif;
  border-radius:20px;
}

.stats {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.stat-item svg {
  width: 73px;
  height: 65px;
  stroke: #b6806a;
  fill: none;
  stroke-width: 2;
}

.stat-item strong {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  color: #1a1a1a;
}

.stat-item span {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #777;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
.hero.container {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 50px;
  font-family: Verdana, sans-serif;
}

/* Text */
.hero-content h1 {
  font-size: 56px;
  color: #510000;
  margin-bottom: 10px;
}

.hero-content h3 {
  font-size: 28px;
  color: #510000;
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-content p {
  color: #6b3939;
  font-size: 16px;
  line-height: 1.6;
  max-width: 520px;
}

/* Button */
.btn-outline {
  margin-top: 30px;
  padding: 12px 28px;
  border: 2px solid #510000;
  background: transparent;
  color: #510000;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: #510000;
  color: #fff;
}

/* Image */
.hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 900px) {
  .hero.container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p {
    margin: auto;
  }

  .btn-outline {
    margin: 30px auto 0;
  }
}

/* Sainik school************* */

.nav {
  position: relative;
  z-index: 10;
}

.search-wrapper {
  position: relative;
  z-index: 5;
}

.search-wrapper input {
  pointer-events: auto;
}
