/*
Theme Name: Vijitha School Theme
Theme URI: https://vijithacc.org
Author: MR/Vijitha Central College
Description: Custom WordPress theme for MR/Vijitha Central College - Dickwella.
Version: 4.0.0
Text Domain: vijitha-school
*/

:root {
  --vcc-maroon: #8b0000;
  --vcc-gold: #f4c430;
  --vcc-blue: #003c8f;
  --vcc-dark: #111827;
  --vcc-light: #f8f9fa;
  --vcc-white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #1f2937;
  background: #ffffff;
  line-height: 1.6;
}

a {
  text-decoration: none;
}

.vcc-container,
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Header */
.vcc-topbar {
  background: var(--vcc-maroon);
  color: #fff;
  font-size: 14px;
  padding: 8px 0;
}

.vcc-topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.vcc-main-header {
  background: #ffffff;
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
}

.vcc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vcc-branding {
  display: flex;
  align-items: center;
  gap: 18px;
}

.custom-logo,
.vcc-logo {
  width: 85px;
  max-height: 85px;
  object-fit: contain;
}

.vcc-school-title h1 {
  margin: 0;
  font-size: 30px;
  color: var(--vcc-maroon);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.vcc-school-title p {
  margin: 4px 0 0;
  color: #4b5563;
  font-weight: 600;
}

.vcc-menu-toggle {
  display: none;
  background: var(--vcc-maroon);
  color: #fff;
  border: 0;
  padding: 9px 14px;
  border-radius: 4px;
  font-size: 24px;
}

.vcc-navigation {
  background: #10223f;
}

.vcc-primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.vcc-primary-menu li a {
  display: block;
  color: #fff;
  padding: 15px 18px;
  font-weight: 600;
}

.vcc-primary-menu li a:hover {
  background: var(--vcc-gold);
  color: #111;
}

/* Hero */
.hero-section {
  position: relative;
  min-height: 680px;
  background:
    linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.55)),
    url("assets/images/school.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-content {
  width: min(950px, 92%);
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: var(--vcc-gold);
  color: #111827;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-content h1 {
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1.05;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-content h2 {
  font-size: clamp(26px, 3vw, 42px);
  margin: 0 0 16px;
  color: var(--vcc-gold);
}

.hero-motto {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 28px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-white {
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 700;
}

.btn-primary {
  background: var(--vcc-maroon);
  color: #fff;
}

.btn-secondary {
  background: var(--vcc-gold);
  color: #111;
}

.btn-white {
  background: #fff;
  color: var(--vcc-maroon);
}

/* Sections */
.about-section,
.principal-section,
.news-section {
  padding: 80px 0;
}

.section-title h2,
.news-section h2 {
  text-align: center;
  font-size: 38px;
  margin-bottom: 36px;
  color: var(--vcc-maroon);
}

.about-grid,
.principal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.about-image img,
.principal-grid img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 16px 35px rgba(0,0,0,.18);
}

.about-content p,
.principal-grid p {
  font-size: 18px;
}

.principal-section {
  background: #f8fafc;
}

.principal-grid h2 {
  color: var(--vcc-maroon);
  font-size: 38px;
  margin: 0 0 10px;
}

.principal-grid h3 {
  color: #10223f;
  font-size: 24px;
  margin: 0 0 20px;
}

/* Statistics */
.stats-section {
  background: var(--vcc-maroon);
  padding: 60px 0;
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.stat-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  padding: 30px;
  text-align: center;
  border-radius: 14px;
}

.stat-card h2 {
  font-size: 42px;
  margin: 0;
  color: var(--vcc-gold);
}

.stat-card p {
  margin: 8px 0 0;
  font-weight: 700;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.news-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.news-card h3 {
  padding: 18px 18px 0;
  color: var(--vcc-maroon);
}

.news-card p {
  padding: 0 18px;
}

.news-card a {
  display: inline-block;
  margin: 0 18px 20px;
  color: var(--vcc-blue);
  font-weight: 700;
}

/* Footer */
.site-footer,
.vcc-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 40px 0;
  text-align: center;
}

.site-footer a,
.vcc-footer a {
  color: var(--vcc-gold);
}

/* Responsive */
@media (max-width: 900px) {
  .vcc-topbar-inner,
  .vcc-header-inner {
    flex-direction: column;
    text-align: center;
  }

  .vcc-branding {
    flex-direction: column;
  }

  .vcc-school-title h1 {
    font-size: 24px;
  }

  .vcc-primary-menu {
    flex-direction: column;
    display: none;
  }

  .vcc-navigation.active .vcc-primary-menu {
    display: flex;
  }

  .vcc-menu-toggle {
    display: block;
  }

  .about-grid,
  .principal-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-section {
    min-height: 560px;
  }
}

@media (max-width: 520px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-buttons a {
    width: 100%;
  }
}