/* ============================================================
   Silver Oaks College of Education — Main Stylesheet
   Classic Academic Theme | Premium UI/UX
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Lato:wght@300;400;700;900&family=EB+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

/* --- CSS Variables --- */
:root {
  --navy:       #1F3A5F;
  --gold:       #C8A24A;
  --gold-dark:  #8A6B3F;
  --cream:      #F8F7F4;
  --text:       #2B2B2B;
  --border:     #E5E7EB;
  --white:      #FFFFFF;
  --light-bg:   #F0EDE8;
  --shadow-sm:  0 2px 8px rgba(31,58,95,0.10);
  --shadow-md:  0 6px 24px rgba(31,58,95,0.15);
  --shadow-lg:  0 16px 48px rgba(31,58,95,0.18);
  --transition: 0.3s ease;
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'Lato', sans-serif;
  --font-serif: 'EB Garamond', Georgia, serif;
  --radius:     6px;
  --radius-lg:  12px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
p  { margin-bottom: 1rem; }

/* --- Utility Classes --- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 56px 0; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.bg-navy  { background: var(--navy); }
.bg-cream { background: var(--cream); }
.bg-light { background: var(--light-bg); }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200,162,74,0.12);
  border: 1px solid rgba(200,162,74,0.35);
  padding: 4px 14px;
  border-radius: 30px;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-head);
  color: var(--navy);
  margin-bottom: 14px;
}

.section-title span { color: var(--gold); }

.section-subtitle {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #5a6a7e;
  max-width: 620px;
  margin: 0 auto 40px;
}

.divider-gold {
  width: 56px; height: 3px;
  background: var(--gold);
  margin: 14px auto 0;
  border-radius: 2px;
}
.divider-gold.left { margin-left: 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(200,162,74,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: #162d4a;
  border-color: #162d4a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--navy);
  padding: 8px 0;
  border-bottom: 2px solid var(--gold);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-contact, .topbar-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar-contact a, .topbar-contact span {
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.topbar-contact a:hover { color: var(--gold); }
.topbar-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.topbar-links a:hover { color: var(--gold); }

/* ============================================================
   ANNOUNCEMENT TICKER
   ============================================================ */
.ticker-bar {
  background: #162d4a;
  padding: 9px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(200,162,74,0.3);
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: 0;
}
.ticker-label {
  background: var(--gold);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 16px;
  white-space: nowrap;
  flex-shrink: 0;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
  margin-right: 16px;
}
.ticker-track {
  overflow: hidden;
  flex: 1;
}
.ticker-content {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}
.ticker-content:hover { animation-play-state: paused; }
.ticker-item {
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.ticker-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 1180px;
  margin: 0 auto;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-logo {
  width: 52px; height: 52px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--gold);
}
.brand-logo svg { width: 28px; height: 28px; }
.brand-text { line-height: 1.2; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
}
.brand-tagline {
  font-size: 0.68rem;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
}

/* Nav Menu */
.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 13px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--navy);
  background: rgba(31,58,95,0.07);
}
.nav-link .chevron {
  font-size: 0.6rem;
  transition: transform var(--transition);
  margin-top: 1px;
}
.nav-item:hover .chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  min-width: 200px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item {
  display: block;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover {
  background: var(--cream);
  color: var(--navy);
  padding-left: 24px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #162d4a 60%, #0d1f33 100%);
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(200,162,74,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(200,162,74,0.08) 0%, transparent 40%);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
}
.breadcrumb a { color: var(--gold); transition: opacity var(--transition); }
.breadcrumb a:hover { opacity: 0.8; }
.breadcrumb .sep { color: rgba(255,255,255,0.4); }
.page-hero-deco {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 200px; height: 200px;
  border: 2px solid rgba(200,162,74,0.2);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero-deco::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(200,162,74,0.15);
  border-radius: 50%;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200,162,74,0.4);
}
.card-body { padding: 28px; }

/* Feature Card */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 68px; height: 68px;
  background: rgba(31,58,95,0.07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  border: 2px solid rgba(200,162,74,0.2);
  transition: all var(--transition);
}
.feature-card:hover .feature-icon {
  background: var(--navy);
  border-color: var(--gold);
}
.feature-card:hover .feature-icon span { filter: brightness(10); }

/* Facility Card */
.facility-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.facility-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.facility-img {
  height: 200px;
  background: linear-gradient(135deg, var(--navy), #2a4f7a);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.facility-img-placeholder {
  font-size: 3.5rem;
  opacity: 0.6;
}
.facility-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31,58,95,0.7), transparent);
}
.facility-info { padding: 22px; }
.facility-info h4 { color: var(--navy); margin-bottom: 8px; }
.facility-info p { color: #5a6a7e; font-size: 0.9rem; margin: 0; }

/* ============================================================
   LEADERSHIP / MESSAGE CARDS
   ============================================================ */
.message-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.message-header {
  background: linear-gradient(135deg, var(--navy), #2a4f7a);
  padding: 32px;
  text-align: center;
  position: relative;
}
.message-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 20px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.person-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--gold);
  border: 4px solid rgba(255,255,255,0.3);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
}
.message-header h3 { color: var(--white); font-size: 1.25rem; }
.message-header .designation {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
}
.message-body {
  padding: 32px;
  flex: 1;
}
.message-body blockquote {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #444;
  line-height: 1.8;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin: 0;
  font-style: italic;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--navy);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
}
.stat-item {
  padding: 28px 20px;
  text-align: center;
  background: var(--navy);
}
.stat-number {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
}
.stat-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 8px;
  display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0d1f33;
  color: rgba(255,255,255,0.8);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-heading {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.footer-links li { margin-bottom: 9px; }
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links a::before {
  content: '›';
  color: var(--gold);
  font-size: 1rem;
}
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}
.footer-contact-item .icon {
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-bottom {
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}
.footer-bottom a { color: var(--gold); }

/* ============================================================
   INNER PAGE CONTENT STYLES
   ============================================================ */
.content-section { padding: 72px 0; }
.content-section p {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: #3a3a3a;
  line-height: 1.85;
  margin-bottom: 1.2rem;
}
.content-section h3 {
  margin: 32px 0 14px;
  color: var(--navy);
}
.info-box {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: #444;
}

/* ============================================================
   GRID LAYOUTS
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ============================================================
   FACULTY TABLE
   ============================================================ */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table {
  width: 100%; border-collapse: collapse;
  font-size: 0.9rem;
}
thead th {
  background: var(--navy);
  color: var(--white);
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--cream); }
tbody td { padding: 14px 18px; color: var(--text); }
tbody tr:nth-child(even) { background: rgba(248,247,244,0.6); }
tbody tr:nth-child(even):hover { background: var(--cream); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-group { margin-bottom: 22px; }
.form-label {
  display: block;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31,58,95,0.1);
}
textarea.form-control { resize: vertical; min-height: 130px; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
#backToTop {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: none;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 999;
}
#backToTop:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
}
#backToTop.visible { display: flex; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .topbar-links { display: none; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-top: 3px solid var(--gold);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open { display: flex; }
  .hamburger { display: flex; }
  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--gold);
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: var(--cream);
    margin-left: 12px;
  }
  .nav-item.open .dropdown { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section-pad { padding: 56px 0; }
  .page-hero-deco { display: none; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .btn { padding: 11px 20px; font-size: 0.82rem; }
  h2 { font-size: 1.5rem; }
}
