/* ===================================================
   Kalaivani College of Education — Modern Stylesheet
   =================================================== */

/* ---------- CSS Variables / Design Tokens ---------- */
:root {
  --primary:       #1a3c8f;
  --primary-dark:  #122a6b;
  --primary-light: #2e55c1;
  --accent:        #f59e0b;
  --accent-dark:   #d97706;
  --teal:          #0891b2;
  --teal-light:    #e0f2fe;
  --success:       #059669;
  --bg-light:      #f8fafc;
  --bg-card:       #ffffff;
  --text-primary:  #1e293b;
  --text-secondary:#475569;
  --text-muted:    #94a3b8;
  --border:        #e2e8f0;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:     0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:     0 10px 30px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
  --radius:        0.75rem;
  --radius-lg:     1.25rem;
  --transition:    0.3s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--text-primary);
  background: #ffffff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3rem 0; }

.text-center { text-align: center; }
.text-right  { text-align: right; }

.badge {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* ========= NAVBAR ========= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.navbar.scrolled { box-shadow: var(--shadow-md); }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
}

.nav-brand img {
  height: 48px;
  width: auto;
  border-radius: 6px;
}

.nav-brand span { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: .15rem;
}

.nav-links a {
  padding: .45rem .85rem;
  border-radius: .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--teal-light);
  color: var(--primary);
}

.nav-links a.active { font-weight: 600; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  border: none;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========= HERO ========= */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(18,42,107,.88) 0%, rgba(26,60,143,.80) 45%, rgba(8,145,178,.75) 100%),
    url('../images/bg_header.jpg') center center / cover no-repeat;
  color: #fff;
  padding: 7rem 0 5rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: .35rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.hero-stat-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(6px);
  text-align: center;
}

.hero-stat-card .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  font-family: 'Poppins', sans-serif;
}

.hero-stat-card .label {
  font-size: .85rem;
  color: rgba(255,255,255,.8);
  margin-top: .25rem;
}

/* ========= BUTTONS ========= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: .6rem;
  font-size: .925rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: #1a1a1a;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}

.btn-blue {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-blue:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,60,143,.3);
}

/* ========= SECTION HEADING ========= */
.section-heading {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  color: var(--text-primary);
  margin-bottom: .75rem;
}

.section-heading .subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
}

.divider {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  border-radius: 2px;
  margin: .75rem auto 0;
}

/* ========= CARDS ========= */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-body { padding: 1.75rem; }

/* ========= MANAGEMENT SECTION ========= */
.mgmt-section { background: var(--bg-light); }

.mgmt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.mgmt-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-align: center;
  padding: 2.5rem 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.mgmt-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.mgmt-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 4px solid var(--primary-light);
  box-shadow: 0 0 0 6px rgba(46,85,193,.12);
}

.mgmt-avatar-placeholder {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 2.5rem;
  color: white;
  box-shadow: 0 0 0 6px rgba(46,85,193,.12);
}

.mgmt-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .3rem;
}

.mgmt-role {
  font-size: .875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ========= NEWS TICKER ========= */
.news-ticker {
  background: var(--primary);
  color: #fff;
  padding: .6rem 0;
  overflow: hidden;
}

.ticker-label {
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: .8rem;
  padding: .25rem .75rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ticker-track {
  overflow: hidden;
  flex: 1;
}

.ticker-items {
  display: flex;
  gap: 3rem;
  animation: ticker-scroll 28s linear infinite;
  white-space: nowrap;
}

.ticker-items span { font-size: .875rem; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ========= ABOUT SECTION ========= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-img-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 800;
  font-size: .95rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about-img-badge .big { display: block; font-size: 2rem; line-height: 1; }

.about-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1.25rem;
}

.about-text p { color: var(--text-secondary); margin-bottom: 1rem; }

.blockquote-modern {
  border-left: 4px solid var(--primary);
  background: var(--teal-light);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.blockquote-modern p {
  font-style: italic;
  color: var(--primary-dark);
  font-size: 1.025rem;
  margin: 0;
}

.blockquote-modern cite {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--teal);
  margin-top: .5rem;
  font-style: normal;
}

/* ========= STATS STRIP ========= */
.stats-strip {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 3.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent);
  font-family: 'Poppins', sans-serif;
  display: block;
}

.stat-label { font-size: .9rem; color: rgba(255,255,255,.8); margin-top: .3rem; }

/* ========= COURSES GRID ========= */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.course-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.course-card:hover::before { transform: scaleX(1); }

.course-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.6rem;
  color: #fff;
  box-shadow: 0 6px 20px rgba(26,60,143,.25);
}

.course-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .5rem;
}

.course-card p {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ========= PAGE HERO (Inner pages) ========= */
.page-hero {
  background:
    linear-gradient(135deg, rgba(18,42,107,.9) 0%, rgba(26,60,143,.82) 55%, rgba(8,145,178,.78) 100%),
    url('../images/bg_header.jpg') center center / cover no-repeat;
  color: #fff;
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-inner {
  position: relative;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: .5rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: rgba(255,255,255,.75);
  margin-top: .5rem;
}

.breadcrumb a { color: var(--accent); }
.breadcrumb span { color: rgba(255,255,255,.5); }

/* ========= VISION / MISSION CARDS ========= */
.vm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.vm-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.vm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.vm-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: #fff;
}

.vm-card-icon.blue { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.vm-card-icon.teal { background: linear-gradient(135deg, var(--teal), #06b6d4); }
.vm-card-icon.green { background: linear-gradient(135deg, var(--success), #34d399); }
.vm-card-icon.amber { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); }

.vm-card h3 {
  font-size: 1.15rem;
  margin-bottom: .75rem;
  color: var(--primary);
}

.vm-card p {
  font-size: .92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========= OBJECTIVES LIST ========= */
.objectives-list {
  counter-reset: obj;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.obj-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--border);
}

.obj-num {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .9rem;
  flex-shrink: 0;
}

/* ========= GALLERY GRID ========= */
.gallery-grid {
  columns: 3;
  column-gap: 1.25rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform .4s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,60,143,.55);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { font-size: 2rem; color: #fff; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255,255,255,.15);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover { background: rgba(255,255,255,.3); }

/* ========= ORDERS / PORTFOLIO GRID ========= */
.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}

.order-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.order-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.order-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.order-card-body {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-card-body h5 { font-size: .95rem; }

.order-card-body a {
  color: var(--primary);
  font-size: .8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .3rem;
}

/* ========= CONTACT PAGE ========= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: .4rem;
}

.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: .6rem;
  font-size: .95rem;
  color: var(--text-primary);
  background: var(--bg-light);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(46,85,193,.12);
  background: #fff;
}

textarea.form-control { resize: vertical; min-height: 120px; }

.contact-info-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: #fff;
}

.contact-info-card h3 { color: var(--accent); margin-bottom: 1.5rem; font-size: 1.3rem; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,.15);
  border-radius: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.contact-item-text p { color: rgba(255,255,255,.8); font-size: .9rem; }
.contact-item-text strong { color: #fff; font-size: .95rem; display: block; margin-bottom: .2rem; }

.map-embed {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.2);
}

.map-embed iframe {
  width: 100%;
  height: 220px;
  border: none;
  display: block;
}

/* ========= STAFF TABLE ========= */
.staff-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.staff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.staff-table thead {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  color: #fff;
}

.staff-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .04em;
  white-space: nowrap;
}

.staff-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.staff-table tbody tr:last-child td { border-bottom: none; }

.staff-table tbody tr:hover { background: var(--bg-light); }

/* ========= SS DETAILS ========= */
.ss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.ss-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.ss-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.ss-card-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
}

.ss-card-label { font-size: .9rem; color: var(--text-secondary); margin-top: .5rem; }

/* ========= FOOTER ========= */
.footer {
  background: #0f172a;
  color: rgba(255,255,255,.7);
}

.footer-top {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand img {
  height: 52px;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.footer-brand p {
  font-size: .875rem;
  line-height: 1.7;
  max-width: 280px;
  color: rgba(255,255,255,.6);
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  margin-bottom: .6rem;
  transition: color var(--transition);
}

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

.footer-social {
  display: flex;
  gap: .75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: .95rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .825rem;
  color: rgba(255,255,255,.4);
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========= SCROLL REVEAL ========= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }
.reveal.delay-4 { transition-delay: .4s; }

/* ========= RESPONSIVE ========= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > *:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-img-badge { bottom: .5rem; right: .5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { columns: 2; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    flex-direction: column;
    gap: .25rem;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: .65rem 1rem; border-radius: .5rem; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 4rem 0 3rem; }
}

@media (max-width: 560px) {
  .section-pad { padding: 3rem 0; }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .mgmt-grid { grid-template-columns: 1fr; }
  .orders-grid { grid-template-columns: 1fr; }
}

/* ========= HERO CAMPUS IMAGE (right panel) ========= */
.hero-image-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-campus-img {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  border: 3px solid rgba(255,255,255,.2);
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.hero-logo-stamp {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: #fff;
  border-radius: var(--radius);
  padding: .6rem .9rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: .6rem;
}

.hero-logo-stamp img {
  height: 44px;
  width: auto;
  border-radius: 4px;
}

.hero-logo-stamp span {
  font-family: 'Poppins', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

/* ========= PAGE HERO LOGO STAMP ========= */
.page-hero-logo {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  opacity: .12;
  pointer-events: none;
}

.page-hero-logo img {
  height: 140px;
  width: auto;
  filter: brightness(10);
}

/* ========= MANAGEMENT PHOTO STYLE ========= */
.mgmt-avatar {
  width: 140px;
  height: 175px;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: top center;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--primary-light);
  box-shadow: 0 6px 20px rgba(26,60,143,.2);
  display: block;
}

/* ========= STAFF FULL-WIDTH PHOTO ========= */
.staff-photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2.5rem;
}

.staff-photo-wrap img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.staff-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(15,23,42,.85));
  color: #fff;
  padding: 2rem 1.5rem 1.25rem;
  font-size: .9rem;
}

.staff-photo-caption strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: .25rem;
  color: var(--accent);
}

/* ========= SS DETAILS PHOTO ========= */
.ssdetails-photo-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.ssdetails-photo-wrap img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* ========= CAMPUS BANNER (About page) ========= */
.campus-banner {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.campus-banner img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.campus-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,60,143,.6) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.campus-banner-overlay p {
  color: rgba(255,255,255,.9);
  font-size: .95rem;
  font-style: italic;
  max-width: 400px;
  line-height: 1.6;
}

/* ========= GALLERY IMPROVEMENTS ========= */
.gallery-grid {
  columns: 3;
  column-gap: 1.25rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.gallery-item:hover { box-shadow: var(--shadow-lg); }

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(15,23,42,.7));
  color: #fff;
  padding: 1.5rem .75rem .6rem;
  font-size: .78rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-caption { opacity: 1; }

/* ========= ORDERS CARD IMG ========= */
.order-card .doc-placeholder {
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .hero-campus-img { max-width: 100%; }
  .hero-logo-stamp { bottom: .5rem; left: .5rem; }
  .page-hero-logo img { height: 100px; }
}

@media (max-width: 768px) {
  .hero-image-panel { display: none; }
  .gallery-grid { columns: 2; }
  .staff-photo-wrap img { max-height: 320px; }
}

@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
}
