/*
Theme Name: EduPrime College
Theme URI: https://example.com/eduprime
Author: EduPrime Themes
Author URI: https://example.com
Description: A fully customizable, modern WordPress theme designed specifically for colleges and universities. Includes robust Customizer options for colors, fonts, layout, hero section, contact info, social links, and more.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eduprime
Tags: education, college, university, customizer, responsive, full-width-template, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, sticky-post, threaded-comments
*/

/* =========================================
   CSS CUSTOM PROPERTIES (set via Customizer)
   ========================================= */
:root {
  --color-primary:     #1a3a6b;
  --color-secondary:   #e8a020;
  --color-accent:      #c0392b;
  --color-text:        #2c2c2c;
  --color-text-light:  #666;
  --color-bg:          #ffffff;
  --color-bg-alt:      #f4f7fb;
  --color-border:      #dde4ef;
  --font-heading:      'Playfair Display', Georgia, serif;
  --font-body:         'Source Sans Pro', Arial, sans-serif;
  --font-size-base:    16px;
  --border-radius:     6px;
  --container-width:   1180px;
  --header-height:     80px;
  --shadow-sm:         0 2px 8px rgba(0,0,0,.08);
  --shadow-md:         0 6px 24px rgba(0,0,0,.12);
  --shadow-lg:         0 16px 48px rgba(0,0,0,.16);
  --transition:        0.3s ease;
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: var(--font-size-base); scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-secondary); }
ul { list-style: none; }

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-primary);
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1.2em; }
blockquote {
  border-left: 4px solid var(--color-secondary);
  padding: 1em 1.5em;
  margin: 1.5em 0;
  background: var(--color-bg-alt);
  font-style: italic;
  color: var(--color-text-light);
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-alt { background: var(--color-bg-alt); }
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid { display: grid; }
.sr-only { position: absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .subtitle {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: .5em;
}
.section-header h2 { margin-bottom: .5em; }
.section-header p { color: var(--color-text-light); max-width: 600px; margin: 0 auto; }

.divider {
  width: 56px; height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
  margin: 1em auto;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .75em 1.75em;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}
.btn-primary:hover {
  background: transparent;
  color: var(--color-secondary);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}
.btn-dark {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-dark:hover {
  background: transparent;
  color: var(--color-primary);
}
.btn-sm { padding: .5em 1.25em; font-size: .85rem; }
.btn-lg { padding: 1em 2.5em; font-size: 1.05rem; }

/* =========================================
   TOP BAR
   ========================================= */
.top-bar {
  background: var(--color-primary);
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  padding: .45em 0;
  display: flex;
  align-items: center;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5em;
}
.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5em;
  flex-wrap: wrap;
}
.top-bar a { color: rgba(255,255,255,.85); }
.top-bar a:hover { color: var(--color-secondary); }
.top-bar .contact-item {
  display: flex;
  align-items: center;
  gap: .4em;
}
.top-bar .contact-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.social-links { display: flex; gap: .6em; }
.social-links a {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
  transition: background var(--transition);
}
.social-links a:hover { background: var(--color-secondary); color: #fff; }
.social-links svg { width: 13px; height: 13px; }

/* =========================================
   HEADER
   ========================================= */
.site-header {
  background: #fff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5em;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .85em;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo img {
  height: 52px;
  width: auto;
}
.logo-text .college-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}
.logo-text .college-tagline {
  font-size: .72rem;
  color: var(--color-text-light);
  letter-spacing: .04em;
}

/* Primary Navigation */
.primary-nav { display: flex; align-items: center; }
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: .25em;
}
.primary-nav > ul > li { position: relative; }
.primary-nav > ul > li > a {
  display: block;
  padding: .6em .85em;
  font-size: .92rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--border-radius);
  transition: all var(--transition);
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li.current-menu-item > a {
  color: var(--color-primary);
  background: var(--color-bg-alt);
}

/* Dropdown */
.primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  padding: .5em 0;
  z-index: 200;
  flex-direction: column;
}
.primary-nav li:hover > .sub-menu { display: flex; }
.primary-nav .sub-menu li a {
  display: block;
  padding: .55em 1.2em;
  font-size: .88rem;
  color: var(--color-text);
}
.primary-nav .sub-menu li a:hover { background: var(--color-bg-alt); color: var(--color-primary); }

.header-cta { display: flex; align-items: center; gap: .75em; flex-shrink: 0; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-primary);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .3;
  transition: opacity var(--transition);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(26,58,107,.95) 0%,
    rgba(26,58,107,.7) 60%,
    rgba(232,160,32,.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  animation: heroFadeUp .9s ease both;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  background: rgba(232,160,32,.2);
  border: 1px solid rgba(232,160,32,.4);
  color: var(--color-secondary);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .4em 1em;
  border-radius: 50px;
  margin-bottom: 1.25em;
}
.hero h1 {
  color: #fff;
  margin-bottom: .5em;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-subtitle {
  color: rgba(255,255,255,.85);
  font-size: 1.15rem;
  margin-bottom: 2em;
  max-width: 560px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1em; }
.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.1);
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: auto;
}
.hero-stat {
  padding: 1.5em;
  text-align: center;
  background: rgba(255,255,255,.05);
  transition: background var(--transition);
}
.hero-stat:hover { background: rgba(255,255,255,.1); }
.hero-stat .number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-secondary);
  display: block;
}
.hero-stat .label {
  font-size: .8rem;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.hero-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 88vh;
  width: 100%;
}

/* =========================================
   NOTICE / ANNOUNCEMENTS BAR
   ========================================= */
.notice-bar {
  background: linear-gradient(90deg, var(--color-accent), #e74c3c);
  color: #fff;
  padding: .6em 0;
  font-size: .85rem;
  overflow: hidden;
}
.notice-bar .notice-scroll {
  display: flex;
  align-items: center;
  gap: 3em;
  white-space: nowrap;
  animation: scrollNotice 30s linear infinite;
}
.notice-bar .notice-label {
  background: rgba(255,255,255,.25);
  padding: .2em .8em;
  border-radius: 3px;
  font-weight: 700;
  flex-shrink: 0;
}
.notice-bar a { color: #fff; text-decoration: underline; }
@keyframes scrollNotice {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================
   FEATURE CARDS
   ========================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5em;
}
.feature-card {
  background: #fff;
  border-radius: calc(var(--border-radius) * 2);
  padding: 2em 1.75em;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), #2a5298);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25em;
  color: #fff;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: .5em; }
.feature-card p { color: var(--color-text-light); font-size: .9rem; margin: 0; }

/* =========================================
   PROGRAMS / COURSES SECTION
   ========================================= */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75em;
}
.program-card {
  background: #fff;
  border-radius: calc(var(--border-radius) * 2);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.program-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.program-card-img {
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary), #2a5298);
  display: flex; align-items: center; justify-content: center;
}
.program-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.program-card:hover .program-card-img img { transform: scale(1.06); }
.program-card-body { padding: 1.5em; }
.program-tag {
  display: inline-block;
  padding: .25em .85em;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(26,58,107,.1);
  color: var(--color-primary);
  margin-bottom: .75em;
}
.program-card h3 { font-size: 1.15rem; margin-bottom: .5em; }
.program-card p { color: var(--color-text-light); font-size: .88rem; margin-bottom: 1.25em; }
.program-meta {
  display: flex;
  gap: 1.25em;
  font-size: .8rem;
  color: var(--color-text-light);
  margin-bottom: 1.25em;
}
.program-meta span { display: flex; align-items: center; gap: .35em; }
.program-meta svg { width: 14px; height: 14px; color: var(--color-secondary); }

/* =========================================
   NEWS / EVENTS SECTION
   ========================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75em;
}
.news-card {
  background: #fff;
  border-radius: calc(var(--border-radius) * 2);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.news-card-img {
  height: 200px;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-card-img img { transform: scale(1.06); }
.news-card-body { padding: 1.5em; }
.news-date {
  font-size: .78rem;
  color: var(--color-secondary);
  font-weight: 700;
  margin-bottom: .5em;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.news-card h3 { font-size: 1.1rem; margin-bottom: .5em; }
.news-card p { color: var(--color-text-light); font-size: .88rem; margin-bottom: 1em; }

/* =========================================
   ABOUT / MISSION SECTION
   ========================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: calc(var(--border-radius) * 3);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-wrap img { width: 100%; display: block; }
.about-img-badge {
  position: absolute;
  bottom: 1.5em; right: -1em;
  background: var(--color-secondary);
  color: #fff;
  padding: 1em 1.5em;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-img-badge .big { display: block; font-size: 2rem; font-weight: 700; line-height: 1; font-family: var(--font-heading); }
.about-img-badge .small { font-size: .78rem; opacity: .9; }
.about-content { }
.about-content .subtitle {
  font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--color-secondary); margin-bottom: .5em;
}
.about-content h2 { margin-bottom: .75em; }
.about-content p { color: var(--color-text-light); }
.about-features { display: flex; flex-direction: column; gap: .85em; margin: 1.75em 0; }
.about-feature-item {
  display: flex; gap: 1em; align-items: flex-start;
}
.about-feature-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 8px;
  background: rgba(26,58,107,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
}
.about-feature-icon svg { width: 18px; height: 18px; }
.about-feature-text h4 { font-size: 1rem; margin-bottom: .2em; }
.about-feature-text p { font-size: .88rem; color: var(--color-text-light); margin: 0; }

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75em;
}
.testimonial-card {
  background: #fff;
  border-radius: calc(var(--border-radius) * 2);
  padding: 2em;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 6rem;
  color: var(--color-secondary);
  opacity: .15;
  position: absolute;
  top: -.5em; left: .5em;
  line-height: 1;
}
.testimonial-text { font-style: italic; color: var(--color-text-light); margin-bottom: 1.5em; font-size: .95rem; }
.testimonial-author { display: flex; align-items: center; gap: 1em; }
.testimonial-author img {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
}
.testimonial-author-info .name { font-weight: 700; font-size: .95rem; }
.testimonial-author-info .role { font-size: .8rem; color: var(--color-text-light); }
.testimonial-stars { color: var(--color-secondary); font-size: .9rem; margin-bottom: .25em; }

/* =========================================
   CTA BANNER
   ========================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2a5298 100%);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::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");
}
.cta-banner h2 { color: #fff; margin-bottom: .5em; }
.cta-banner p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 2em; font-size: 1.1rem; }
.cta-banner-actions { display: flex; gap: 1em; justify-content: center; flex-wrap: wrap; }

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4em;
  align-items: start;
}
.contact-info h3 { margin-bottom: 1em; }
.contact-info-list { display: flex; flex-direction: column; gap: 1.25em; }
.contact-info-item {
  display: flex;
  gap: 1em;
  align-items: flex-start;
}
.contact-info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary), #2a5298);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info-text .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-light); font-weight: 700; margin-bottom: .2em; }
.contact-info-text a { color: var(--color-text); font-size: .95rem; }
.contact-info-text a:hover { color: var(--color-primary); }

/* Contact Form */
.contact-form { background: #fff; border-radius: calc(var(--border-radius) * 2); padding: 2.5em; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); }
.contact-form h3 { margin-bottom: 1.5em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; }
.form-group { margin-bottom: 1.25em; }
.form-group label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .4em; color: var(--color-text); }
.form-control {
  width: 100%;
  padding: .7em 1em;
  border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--color-text);
  background: #fff;
  transition: border-color var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(26,58,107,.1); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* =========================================
   MAP
   ========================================= */
.map-section { line-height: 0; }
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; }

/* =========================================
   FACULTY SECTION
   ========================================= */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.75em;
}
.faculty-card {
  background: #fff;
  border-radius: calc(var(--border-radius) * 2);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  text-align: center;
}
.faculty-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.faculty-img {
  height: 220px;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.faculty-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.faculty-card:hover .faculty-img img { transform: scale(1.06); }
.faculty-body { padding: 1.25em; }
.faculty-body h4 { font-size: 1rem; margin-bottom: .25em; }
.faculty-body .role { font-size: .82rem; color: var(--color-secondary); font-weight: 700; margin-bottom: .5em; }
.faculty-body p { font-size: .82rem; color: var(--color-text-light); margin: 0; }

/* =========================================
   GALLERY
   ========================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: .75em;
}
.gallery-item {
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
}
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: #0d1f3c;
  color: rgba(255,255,255,.75);
  padding-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3em;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .site-logo { margin-bottom: 1.25em; }
.footer-brand .logo-text .college-name { color: #fff; }
.footer-brand .logo-text .college-tagline { color: rgba(255,255,255,.5); }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.6); max-width: 280px; margin-bottom: 1.5em; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1.25em; position: relative; padding-bottom: .6em; }
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--color-secondary);
  border-radius: 2px;
}
.footer-links { display: flex; flex-direction: column; gap: .6em; }
.footer-links a {
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: .4em;
  transition: all var(--transition);
}
.footer-links a::before {
  content: '›';
  color: var(--color-secondary);
  font-size: 1.1em;
}
.footer-links a:hover { color: #fff; padding-left: .4em; }

.footer-contact { display: flex; flex-direction: column; gap: .75em; }
.footer-contact-item { display: flex; align-items: flex-start; gap: .65em; font-size: .88rem; color: rgba(255,255,255,.6); }
.footer-contact-item svg { width: 14px; height: 14px; color: var(--color-secondary); flex-shrink: 0; margin-top: 3px; }

.footer-bottom {
  padding: 1.25em 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75em;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--color-secondary); }
.footer-bottom-links { display: flex; gap: 1.25em; }

/* =========================================
   SIDEBAR & WIDGETS
   ========================================= */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3em;
  align-items: start;
}
.content-sidebar-wrap.no-sidebar { grid-template-columns: 1fr; }
.widget {
  background: #fff;
  border-radius: calc(var(--border-radius) * 2);
  padding: 1.75em;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  margin-bottom: 1.75em;
}
.widget:last-child { margin-bottom: 0; }
.widget-title {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 1.25em;
  padding-bottom: .6em;
  border-bottom: 2px solid var(--color-border);
  position: relative;
}
.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 40px; height: 2px;
  background: var(--color-secondary);
}

/* =========================================
   BLOG / ARCHIVE
   ========================================= */
.post-list { display: flex; flex-direction: column; gap: 2.5em; }
.post-article {
  background: #fff;
  border-radius: calc(var(--border-radius) * 2);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 280px 1fr;
}
.post-article .post-thumb { overflow: hidden; }
.post-article .post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-article:hover .post-thumb img { transform: scale(1.04); }
.post-article .post-content { padding: 2em; }
.entry-meta {
  display: flex;
  gap: 1.25em;
  font-size: .8rem;
  color: var(--color-text-light);
  margin-bottom: .75em;
  flex-wrap: wrap;
  align-items: center;
}
.entry-meta .category {
  background: rgba(26,58,107,.1);
  color: var(--color-primary);
  padding: .2em .75em;
  border-radius: 50px;
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.entry-meta a { color: var(--color-text-light); }
.entry-meta a:hover { color: var(--color-primary); }
.entry-title { margin-bottom: .5em; font-size: 1.3rem; }
.entry-excerpt { color: var(--color-text-light); font-size: .9rem; margin-bottom: 1.25em; }
.entry-footer { display: flex; justify-content: space-between; align-items: center; }

/* Single post */
.single-post-header { margin-bottom: 2em; }
.single-post-featured { border-radius: calc(var(--border-radius) * 2); overflow: hidden; margin-bottom: 2em; max-height: 480px; }
.single-post-featured img { width: 100%; height: 100%; object-fit: cover; }
.post-content { font-size: 1rem; }
.post-content h2 { margin: 1.75em 0 .75em; }
.post-content h3 { margin: 1.5em 0 .6em; }
.post-content p { margin-bottom: 1.3em; }
.post-content ul, .post-content ol { margin: 0 0 1.3em 1.5em; }
.post-content li { margin-bottom: .5em; }
.post-content img { border-radius: var(--border-radius); margin: 1.5em 0; }
.post-tags { margin-top: 2em; display: flex; gap: .5em; flex-wrap: wrap; align-items: center; }
.post-tag {
  padding: .3em .9em;
  border-radius: 50px;
  font-size: .78rem;
  background: var(--color-bg-alt);
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.post-tag:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* Pagination */
.pagination {
  display: flex;
  gap: .5em;
  justify-content: center;
  margin-top: 3em;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--border-radius);
  font-size: .9rem;
  font-weight: 600;
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  transition: all var(--transition);
}
.pagination a:hover, .pagination .current {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* =========================================
   PAGE TEMPLATES
   ========================================= */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2a5298 100%);
  padding: 72px 0;
  color: #fff;
}
.page-hero h1 { color: #fff; margin-bottom: .5em; }
.page-hero .breadcrumb { display: flex; gap: .5em; align-items: center; font-size: .85rem; color: rgba(255,255,255,.7); }
.page-hero .breadcrumb a { color: rgba(255,255,255,.7); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb .sep { color: rgba(255,255,255,.4); }
.page-content { padding: 72px 0; }

/* =========================================
   ADMISSIONS SECTION
   ========================================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75em;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px; left: 0; right: 0;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}
.step-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: calc(var(--border-radius) * 2);
  padding: 2em 1.5em;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.step-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin: 0 auto 1.25em;
}
.step-card h4 { margin-bottom: .5em; }
.step-card p { font-size: .88rem; color: var(--color-text-light); margin: 0; }

/* =========================================
   BACK TO TOP
   ========================================= */
.back-to-top {
  position: fixed;
  bottom: 2em; right: 2em;
  width: 44px; height: 44px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 999;
  border: none;
  cursor: pointer;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--color-secondary); transform: translateY(-3px); }
.back-to-top svg { width: 18px; height: 18px; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5em; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; }
  .gallery-item:nth-child(1) { grid-column: span 1; grid-row: span 1; }
}
@media (max-width: 768px) {
  :root { --header-height: 64px; }
  .top-bar .contact-item:not(:first-child) { display: none; }
  .primary-nav, .header-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .primary-nav.mobile-open {
    display: flex;
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: #fff;
    padding: 1em;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--color-border);
    z-index: 99;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }
  .primary-nav.mobile-open ul { flex-direction: column; width: 100%; }
  .primary-nav.mobile-open .sub-menu { position: static; box-shadow: none; border: none; padding: 0 0 0 1em; }
  .primary-nav.mobile-open li:hover > .sub-menu { display: none; }
  .primary-nav.mobile-open li.open > .sub-menu { display: flex; }
  .hero { min-height: 70vh; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
  .features-grid, .programs-grid, .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2em; }
  .post-article { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================
   WORDPRESS CORE ALIGNMENT & UTILITY
   ========================================= */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 1em auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--color-text-light); text-align: center; margin-top: .4em; }
.sticky { border-left: 4px solid var(--color-secondary); padding-left: 1em; }
.screen-reader-text { position: absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* =========================================
   PROGRAM SINGLE PAGE
   ========================================= */
.program-single-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5em;
  align-items: start;
}
.program-sidebar { position: sticky; top: calc(var(--header-height) + 1.5em); }
.program-info-list { display: flex; flex-direction: column; gap: 0; }
.program-info-item {
  display: flex; gap: .85em; align-items: flex-start;
  padding: .8em 0;
  border-bottom: 1px solid var(--color-border);
}
.program-info-item:last-child { border-bottom: 0; }
.program-info-item svg { color: var(--color-secondary); flex-shrink: 0; margin-top: 3px; }
.program-info-item .info-label {
  display: block; font-size: .75rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--color-text-light); margin-bottom: .15em;
}
.program-info-item .info-val { font-size: .92rem; font-weight: 600; color: var(--color-text); }

/* =========================================
   FACULTY PROFILE PAGE
   ========================================= */
.faculty-profile-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5em;
  align-items: start;
}
.faculty-profile-sidebar { position: sticky; top: calc(var(--header-height) + 1.5em); }

/* =========================================
   PROGRAM FILTERS
   ========================================= */
.program-filters {
  display: flex;
  gap: .5em;
  flex-wrap: wrap;
  align-items: center;
}
.filter-btn {
  padding: .45em 1.1em;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 700;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-light);
  background: #fff;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* =========================================
   EVENTS LIST
   ========================================= */
.events-list { display: flex; flex-direction: column; gap: 1.5em; }
.event-card {
  display: grid;
  grid-template-columns: 72px 200px 1fr;
  gap: 1.75em;
  background: #fff;
  border-radius: calc(var(--border-radius) * 2);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  align-items: center;
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.event-date-badge {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 1em .5em;
  align-self: stretch;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.event-date-badge .event-day { font-size: 1.8rem; font-weight: 700; font-family: var(--font-heading); line-height: 1; }
.event-date-badge .event-month { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; opacity: .85; margin-top: .2em; }
.event-thumb { height: 120px; overflow: hidden; }
.event-thumb img { width: 100%; height: 100%; object-fit: cover; }
.event-content { padding: 1.5em 1.5em 1.5em 0; }
.event-meta {
  display: flex; flex-wrap: wrap; gap: 1em;
  font-size: .8rem; color: var(--color-text-light); margin: .5em 0 .75em;
}
.event-meta span { display: flex; align-items: center; gap: .35em; }
.event-meta svg { color: var(--color-secondary); }

/* =========================================
   GALLERY MASONRY
   ========================================= */
.gallery-masonry {
  columns: 4;
  column-gap: .85em;
}
.gallery-masonry-item {
  break-inside: avoid;
  margin-bottom: .85em;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-masonry-item img { width: 100%; display: block; transition: transform .5s ease; }
.gallery-masonry-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,58,107,.7);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5em;
  color: #fff;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-overlay span { font-size: .82rem; text-align: center; padding: 0 1em; }
.gallery-masonry-item:hover .gallery-overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.92);
  z-index: 9998;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.lightbox-backdrop.open { opacity: 1; pointer-events: all; }
.lightbox-content {
  position: relative; z-index: 10000;
  max-width: 90vw; max-height: 90vh;
  text-align: center;
}
.lightbox-content img {
  max-width: 90vw; max-height: 80vh;
  border-radius: var(--border-radius);
  object-fit: contain;
}
.lightbox-content p { color: rgba(255,255,255,.8); margin-top: .75em; font-size: .9rem; }
.lightbox-close {
  position: fixed; top: 1.5em; right: 1.5em; z-index: 10001;
  background: rgba(255,255,255,.15); border: none;
  color: #fff; font-size: 1.5rem; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer; transition: background var(--transition);
}
.lightbox-close:hover { background: var(--color-accent); }
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  z-index: 10001; background: rgba(255,255,255,.15);
  border: none; color: #fff; font-size: 2.5rem; width: 52px; height: 52px;
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox-nav:hover { background: var(--color-primary); }
.lightbox-prev { left: 1.5em; }
.lightbox-next { right: 1.5em; }

/* =========================================
   ADMISSIONS TABLE
   ========================================= */
.programs-table {
  width: 100%; border-collapse: collapse;
  font-size: .88rem;
  background: #fff;
  border-radius: calc(var(--border-radius) * 2);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.programs-table th {
  background: var(--color-primary); color: #fff;
  padding: .85em 1em; text-align: left;
  font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
}
.programs-table td { padding: .85em 1em; border-bottom: 1px solid var(--color-border); }
.programs-table tr:last-child td { border-bottom: 0; }
.programs-table tr:hover td { background: var(--color-bg-alt); }

/* =========================================
   RESPONSIVE — NEW TEMPLATES
   ========================================= */
@media (max-width: 1024px) {
  .program-single-grid { grid-template-columns: 1fr; }
  .faculty-profile-grid { grid-template-columns: 200px 1fr; }
  .program-sidebar { position: static; }
  .faculty-profile-sidebar { position: static; }
  .gallery-masonry { columns: 3; }
  .event-card { grid-template-columns: 60px 160px 1fr; }
  .docs-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
  .faculty-profile-grid { grid-template-columns: 1fr; }
  .gallery-masonry { columns: 2; }
  .event-card { grid-template-columns: 60px 1fr; }
  .event-thumb { display: none; }
  .event-content { padding: 1em; }
  .programs-table { font-size: .78rem; }
  .programs-table th, .programs-table td { padding: .6em .7em; }
}
@media (max-width: 480px) {
  .gallery-masonry { columns: 1; }
  .lightbox-nav { display: none; }
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -999em;
  background: var(--color-primary);
  color: #fff;
  padding: .5em 1em;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* Comments */
.comments-area { margin-top: 3em; padding-top: 2em; border-top: 1px solid var(--color-border); }
.comment-list { list-style: none; }
.comment { margin-bottom: 2em; }
.comment .comment-body { padding: 1.5em; background: var(--color-bg-alt); border-radius: var(--border-radius); }
.comment .comment-meta { display: flex; gap: 1em; align-items: center; margin-bottom: .75em; }
.comment .comment-author img { border-radius: 50%; }
.comment-respond { margin-top: 2em; }
