:root {
  --primary: #004aad;
  --accent: #ffcc00;
  --light-bg: #f9f9f9;
  --dark-text: #333;
  --special: #cc252c;
}

/* ===== Global Styles ===== */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  line-height: 1.6;
  background: var(--light-bg);
  color: var(--dark-text);
}

h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

h3 {
  margin-top: 1rem;
}
h4 {
  color: var(--special);
  margin-top: 1rem;
}
/* ===== Header & Brand Theme ===== */
.site-header {
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-circle {
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--primary);
  margin-right: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.brand-text .school-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.brand-text .accent-text {
  color: var(--accent);
}

.brand-text .tagline {
  font-size: 0.9rem;
  color: #fff;
}

/* ===== Navigation ===== */
.nav-list {
  display: flex;
  list-style: none;
  gap: 1rem;
}

.nav-link,
.btn {
  color: #fff;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--dark-text);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
}

/* ===== Hamburger Menu ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
}

/* ===== Hero Section ===== */
.hero {
  display: flex;
  flex-wrap: wrap;
  padding: 2rem 0;
  gap: 1rem;
}

.hero-left,
.hero-right {
  flex: 1 1 300px;
}

.hero-left h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.hero-left .accent-text {
  color: var(--accent);
}

.hero-ctas a {
  margin-right: 0.5rem;
}

.hero-ctas .btn-primary {
  background: var(--accent);
  color: var(--primary);
  font-weight: 600;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  transition: 0.3s;
}

.hero-ctas .btn-primary:hover {
  background: #ffd633;
}

/* ===== Containers, Cards & Grids ===== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.branch-cards,
.faculty-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.branch,
.faculty-card,
.founder-card,
.gallery-grid img {
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
}

.branch:hover,
.faculty-card:hover,
.founder-card:hover,
.gallery-grid img:hover {
  transform: translateY(-5px);
}

.avatar,
.faculty-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

/* ===== Contact Section ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.contact-form label {
  position: relative;
  display: block;
  margin-bottom: 1rem;
}

.contact-form .input-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 10px 10px 35px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 5px rgba(0,74,173,0.3);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
  }

  .nav-list {
    flex-direction: column;
    display: none;
    width: 100%;
    background: var(--primary);
    position: absolute;
    top: 60px;
    left: 0;
    padding: 1rem 0;
  }

  .nav-list.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}
.event-box {
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 2rem;
  background: #fff;
}

.gallery-item {
  position: relative;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
}

.gallery-item img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
  padding: 5px 0;
}

/* Popup styles */
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1000;
}

.popup-content {
  text-align: center;
  max-width: 90%;
}

.popup img {
  max-width: 80vw;
  max-height: 70vh;
  border-radius: 10px;
}

.popup-thumbnails {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.popup-thumbnails img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.3s;
}

.popup-thumbnails img:hover {
  opacity: 1;
  transform: scale(1.05);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}
