/*
Theme Name: School Campus
Theme URI: https://example.com/school-campus
Author: Your Name
Author URI: https://example.com
Description: A CBSE / K-12 school website theme inspired by the layout of dpsrudrapur.com — top utility bar, video hero, About/Why-Us sections, feature grid, school wings, achievements & gallery feed, leadership/team grid, contact form with map, and a rich footer. Fully editable placeholder content — replace with your own school's branding, images and copy.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: school-campus
Tags: education, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something great, as this theme or a variation of it will.
*/

/* ==========================================================================
   1. CSS Variables / Theme Palette
   ========================================================================== */
:root {
  --sc-primary: #0b3d91;      /* deep school blue */
  --sc-primary-dark: #072a66;
  --sc-accent: #f2a71b;       /* gold accent */
  --sc-accent-dark: #d38f0f;
  --sc-ink: #1b2433;
  --sc-body: #4a5568;
  --sc-bg: #ffffff;
  --sc-bg-alt: #f5f7fb;
  --sc-border: #e4e8f0;
  --sc-white: #ffffff;
  --sc-radius: 10px;
  --sc-shadow: 0 6px 24px rgba(11, 61, 145, 0.08);
  --sc-container: 1200px;
  --sc-font-heading: "Poppins", "Segoe UI", sans-serif;
  --sc-font-body: "Inter", "Segoe UI", sans-serif;
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sc-font-body);
  color: var(--sc-body);
  background: var(--sc-bg);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sc-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--sc-accent-dark); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sc-font-heading);
  color: var(--sc-ink);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 700;
}
p { margin: 0 0 1em; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

.container {
  width: 100%;
  max-width: var(--sc-container);
  margin: 0 auto;
  padding: 0 20px;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--sc-primary); color: #fff;
  padding: 10px 16px; z-index: 10000;
}
.skip-link:focus { left: 10px; top: 10px; }

.section { padding: 64px 0; }
.section-alt { background: var(--sc-bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--sc-accent-dark);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head p { color: var(--sc-body); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
}
.btn-primary { background: var(--sc-accent); color: var(--sc-ink); }
.btn-primary:hover { background: var(--sc-accent-dark); color: var(--sc-ink); }
.btn-outline { background: transparent; border-color: var(--sc-white); color: var(--sc-white); }
.btn-outline:hover { background: var(--sc-white); color: var(--sc-primary); }
.btn-line { background: transparent; border-color: var(--sc-primary); color: var(--sc-primary); }
.btn-line:hover { background: var(--sc-primary); color: #fff; }

/* ==========================================================================
   3. Top Utility Bar
   ========================================================================== */
.sc-topbar {
  background: var(--sc-primary-dark);
  color: #cfd9ee;
  font-size: .82rem;
}
.sc-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.sc-topbar-info { display: flex; gap: 20px; flex-wrap: wrap; }
.sc-topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.sc-topbar-links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.sc-topbar-links a { color: #fff; opacity: .9; }
.sc-topbar-links a:hover { opacity: 1; color: var(--sc-accent); }
.sc-topbar-links .pill {
  background: var(--sc-accent);
  color: var(--sc-ink);
  padding: 4px 12px;
  border-radius: 50px;
  font-weight: 700;
}
.sc-topbar-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; margin-left: 6px;
  font-size: .75rem;
}
.sc-topbar-social a:hover { background: var(--sc-accent); color: var(--sc-ink); }

/* ==========================================================================
   4. Main Header / Nav
   ========================================================================== */
.sc-header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 999;
}
.sc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.sc-logo { display: flex; align-items: center; gap: 12px; }
.sc-logo img { max-height: 62px; width: auto; }
.sc-logo .site-title { font-size: 1.15rem; font-weight: 800; color: var(--sc-primary); margin: 0; }
.sc-logo .site-tagline { font-size: .75rem; color: var(--sc-body); margin: 0; }

.sc-primary-nav { display: flex; }
.sc-primary-nav ul { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.sc-primary-nav > div > ul > li { position: relative; }
.sc-primary-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--sc-ink);
  font-weight: 600;
  font-size: .92rem;
}
.sc-primary-nav > div > ul > li > a:hover,
.sc-primary-nav > div > ul > li.current-menu-item > a { color: var(--sc-primary); }
.sc-primary-nav li.menu-item-has-children > a::after {
  content: "\25BE";
  font-size: .7em;
  margin-left: 5px;
}
.sc-primary-nav .sub-menu {
  position: absolute;
  top: 100%; left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: var(--sc-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
  padding: 8px 0;
  z-index: 20;
}
.sc-primary-nav li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sc-primary-nav .sub-menu a { padding: 9px 18px; font-weight: 500; font-size: .88rem; }
.sc-primary-nav .sub-menu .sub-menu { top: 0; left: 100%; }
.sc-header-cta { display: flex; align-items: center; gap: 10px; }
.sc-menu-toggle {
  display: none;
  background: var(--sc-primary);
  color: #fff;
  border: none;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .sc-primary-nav { display: none; width: 100%; order: 3; }
  .sc-primary-nav.is-open { display: block; }
  .sc-primary-nav ul { flex-direction: column; align-items: stretch; }
  .sc-primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding-left: 16px; }
  .sc-primary-nav li.open > .sub-menu { display: block; }
  .sc-header-inner { flex-wrap: wrap; }
  .sc-menu-toggle { display: inline-flex; }
}

/* ==========================================================================
   5. Hero (video/image banner)
   ========================================================================== */
.sc-hero { position: relative; overflow: hidden; background: var(--sc-ink); color: #fff; }
.sc-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.sc-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,42,102,.55), rgba(7,42,102,.85));
}
.sc-hero-content {
  position: relative;
  padding: 110px 0 90px;
  text-align: center;
}
.sc-hero-content .eyebrow {
  text-transform: uppercase; letter-spacing: .1em; color: var(--sc-accent); font-weight: 700; font-size: .85rem;
}
.sc-hero-content h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin: 10px 0 14px; }
.sc-hero-content p { color: #dfe6f5; max-width: 640px; margin: 0 auto 26px; font-size: 1.05rem; }
.sc-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Marquee ticker for news/announcements */
.sc-ticker {
  background: var(--sc-accent);
  color: var(--sc-ink);
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
}
.sc-ticker .container { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.sc-ticker-label {
  background: var(--sc-ink); color: #fff; padding: 4px 14px; border-radius: 50px;
  font-size: .78rem; flex-shrink: 0;
}
.sc-ticker-track { overflow: hidden; flex: 1; position: relative; }
.sc-ticker-items { display: inline-flex; gap: 60px; animation: sc-scroll 28s linear infinite; }
.sc-ticker-items span { font-size: .9rem; }
@keyframes sc-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   6. About / Why Us
   ========================================================================== */
.sc-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.sc-about-media { border-radius: var(--sc-radius); overflow: hidden; box-shadow: var(--sc-shadow); }
.sc-stat-row { display: flex; gap: 28px; margin-top: 24px; flex-wrap: wrap; }
.sc-stat { }
.sc-stat strong { display: block; font-size: 1.8rem; color: var(--sc-primary); font-family: var(--sc-font-heading); }
.sc-stat span { font-size: .85rem; color: var(--sc-body); }

.sc-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.sc-skills-card {
  background: #fff;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  padding: 28px;
}
.sc-skills-card h3 { color: var(--sc-primary); font-size: 1.1rem; }
.sc-skills-card ul li {
  padding: 6px 0 6px 26px;
  position: relative;
  font-size: .92rem;
  color: var(--sc-body);
}
.sc-skills-card ul li::before {
  content: "\2713";
  position: absolute; left: 0; top: 6px;
  color: var(--sc-accent-dark); font-weight: 700;
}

/* ==========================================================================
   7. Feature / Facilities grid
   ========================================================================== */
.sc-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.sc-feature-card {
  position: relative;
  border-radius: var(--sc-radius);
  overflow: hidden;
  height: 220px;
  box-shadow: var(--sc-shadow);
}
.sc-feature-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.sc-feature-card:hover img { transform: scale(1.08); }
.sc-feature-card .label {
  position: absolute; inset-inline: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(7,42,102,.92), rgba(7,42,102,0));
  color: #fff; padding: 34px 16px 14px;
  font-weight: 700; font-family: var(--sc-font-heading);
}

/* ==========================================================================
   8. School Wings
   ========================================================================== */
.sc-wings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.sc-wing-card {
  position: relative;
  border-radius: var(--sc-radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  color: #fff;
  box-shadow: var(--sc-shadow);
}
.sc-wing-card img { width: 100%; height: 100%; object-fit: cover; }
.sc-wing-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,61,145,.9), rgba(11,61,145,.1));
  display: flex; align-items: flex-end; padding: 20px;
}
.sc-wing-card h3 { color: #fff; font-size: 1.05rem; margin: 0; }

/* ==========================================================================
   9. Achievements / Latest updates columns
   ========================================================================== */
.sc-updates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sc-update-card {
  background: #fff;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  padding: 24px;
}
.sc-update-card h3 {
  font-size: 1rem;
  color: var(--sc-primary);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.sc-update-card h3 .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sc-accent); }
.sc-update-list li {
  display: flex; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--sc-border);
  font-size: .88rem;
}
.sc-update-list li:last-child { border-bottom: none; }
.sc-update-date {
  flex-shrink: 0;
  background: var(--sc-bg-alt);
  border-radius: 6px;
  padding: 6px 10px;
  text-align: center;
  font-weight: 700;
  color: var(--sc-primary);
  line-height: 1.1;
  font-size: .75rem;
}
.sc-update-date small { display: block; font-weight: 500; color: var(--sc-body); }

/* ==========================================================================
   10. Gallery strip
   ========================================================================== */
.sc-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.sc-gallery-grid a { border-radius: 8px; overflow: hidden; aspect-ratio: 1/1; display: block; }
.sc-gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.sc-gallery-grid a:hover img { transform: scale(1.1); }

/* ==========================================================================
   11. Team grid
   ========================================================================== */
.sc-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.sc-team-card { text-align: center; }
.sc-team-card .photo {
  width: 100%; aspect-ratio: 1/1; border-radius: 50%; overflow: hidden;
  border: 4px solid var(--sc-bg-alt); margin-bottom: 14px;
}
.sc-team-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.sc-team-card h3 { font-size: 1rem; margin-bottom: 2px; }
.sc-team-card span { font-size: .82rem; color: var(--sc-body); }

/* ==========================================================================
   12. Contact section
   ========================================================================== */
.sc-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.sc-contact-form {
  background: #fff;
  border-radius: var(--sc-radius);
  box-shadow: var(--sc-shadow);
  padding: 32px;
}
.sc-contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.sc-contact-form label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: var(--sc-ink); }
.sc-contact-form input,
.sc-contact-form select,
.sc-contact-form textarea {
  width: 100%;
  border: 1px solid var(--sc-border);
  border-radius: 6px;
  padding: 11px 14px;
  background: var(--sc-bg-alt);
}
.sc-contact-form textarea { min-height: 120px; resize: vertical; }
.sc-contact-form .full { grid-column: 1 / -1; margin-bottom: 16px; }
.sc-map { border-radius: var(--sc-radius); overflow: hidden; box-shadow: var(--sc-shadow); }
.sc-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ==========================================================================
   13. Footer
   ========================================================================== */
.sc-footer { background: var(--sc-ink); color: #b9c2d4; }
.sc-footer-top { padding: 56px 0 30px; }
.sc-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
}
.sc-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.sc-footer-about img { max-height: 56px; margin-bottom: 14px; }
.sc-footer-about p { font-size: .88rem; color: #97a2b9; }
.sc-footer ul li { margin-bottom: 10px; font-size: .88rem; }
.sc-footer ul li a { color: #b9c2d4; }
.sc-footer ul li a:hover { color: var(--sc-accent); }
.sc-footer-social { display: flex; gap: 10px; margin-top: 16px; }
.sc-footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: .85rem;
}
.sc-footer-social a:hover { background: var(--sc-accent); color: var(--sc-ink); }
.sc-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  font-size: .82rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.sc-footer-bottom a { color: #b9c2d4; }

/* Back to top */
.sc-to-top {
  position: fixed; right: 22px; bottom: 22px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sc-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sc-shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .25s ease;
  z-index: 500; border: none; cursor: pointer;
}
.sc-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ==========================================================================
   14. Blog / archive / single / page basics
   ========================================================================== */
.sc-content-wrap { padding: 48px 0; }
.sc-content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 44px; }
article.post,
article.page { margin-bottom: 40px; }
article.post .entry-thumb { border-radius: var(--sc-radius); overflow: hidden; margin-bottom: 20px; }
.entry-meta { font-size: .82rem; color: var(--sc-body); margin-bottom: 10px; }
.entry-title { font-size: 1.6rem; }
.widget { background: #fff; border: 1px solid var(--sc-border); border-radius: var(--sc-radius); padding: 22px; margin-bottom: 24px; }
.widget h2, .widget h3 { font-size: 1rem; color: var(--sc-primary); margin-bottom: 14px; }
.widget ul li { padding: 7px 0; border-bottom: 1px dashed var(--sc-border); font-size: .88rem; }
.widget ul li:last-child { border: none; }

.wp-pagenavi, .pagination { display: flex; gap: 8px; margin-top: 24px; }
.pagination a, .pagination span {
  padding: 8px 14px; border: 1px solid var(--sc-border); border-radius: 6px; font-size: .85rem;
}
.pagination .current { background: var(--sc-primary); color: #fff; border-color: var(--sc-primary); }

.comment-form input, .comment-form textarea {
  width: 100%; border: 1px solid var(--sc-border); border-radius: 6px; padding: 10px 14px; margin-bottom: 14px;
}

/* ==========================================================================
   15. Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .sc-about-grid,
  .sc-contact-grid,
  .sc-content-grid { grid-template-columns: 1fr; }
  .sc-skills-grid { grid-template-columns: 1fr; }
  .sc-wings-grid { grid-template-columns: repeat(2, 1fr); }
  .sc-updates-grid { grid-template-columns: 1fr; }
  .sc-team-grid { grid-template-columns: repeat(2, 1fr); }
  .sc-gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .sc-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .sc-topbar-info { display: none; }
  .sc-contact-form .row { grid-template-columns: 1fr; }
  .sc-wings-grid { grid-template-columns: 1fr 1fr; }
  .sc-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .sc-footer-grid { grid-template-columns: 1fr; }
  .sc-hero-content { padding: 70px 0 60px; }
}
