/* ============================================================
   SHARED INNER PAGES CSS — css/pages.css
   ============================================================ */

/* ---- Facilities ---- */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.facility-card { overflow: hidden; }
.facility-card .card-img { height: 220px; transition: transform 0.4s ease; }
.facility-card:hover .card-img { transform: scale(1.05); }
.fac-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,35,87,0.6) 0%, transparent 60%);
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 1rem;
}
.fac-icon {
  width: 44px; height: 44px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 1.1rem;
}
.fac-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.fac-tag {
  display: flex; align-items: center; gap: 0.3rem;
  font-size: 0.73rem; font-weight: 600;
  background: var(--grey-light); color: var(--navy);
  padding: 3px 10px; border-radius: 20px;
}
.fac-tag i { color: var(--gold); font-size: 0.65rem; }
.infra-stats {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 2rem; text-align: center;
}
.is-num { display: block; font-size: 2.5rem; font-weight: 700; color: var(--gold-light); }
.is-label { font-size: 0.78rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---- Faculty ---- */
.dept-tabs {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 2.5rem; justify-content: center;
}
.dt-btn {
  padding: 10px 24px;
  border-radius: 30px;
  border: 2px solid var(--grey-light);
  background: var(--white);
  color: var(--grey);
  font-weight: 600; font-size: 0.85rem;
  cursor: pointer; transition: var(--transition);
}
.dt-btn:hover, .dt-btn.active {
  background: var(--navy); color: var(--gold-light);
  border-color: var(--navy);
}
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.faculty-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
}
.faculty-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.fc-photo {
  height: 180px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; color: var(--gold);
  position: relative; overflow: hidden;
}
.fc-photo img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}
.fc-dept-badge {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 12px; border-radius: 20px;
  white-space: nowrap;
}
.fc-body { padding: 1.25rem 1rem; }
.fc-name { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--navy); margin-bottom: 0.2rem; }
.fc-role { font-size: 0.78rem; color: var(--grey); margin-bottom: 0.5rem; }
.fc-qual {
  display: inline-block;
  font-size: 0.72rem; background: var(--grey-light);
  color: var(--navy); padding: 3px 10px; border-radius: 20px;
  margin-bottom: 0.75rem;
}
.fc-exp { font-size: 0.78rem; color: var(--grey); }
.fc-exp i { color: var(--gold); margin-right: 4px; }

/* ---- Achievements ---- */
.achieve-tabs {
  display: flex; border-bottom: 2px solid var(--grey-light);
  margin-bottom: 3rem; flex-wrap: wrap;
}
.at-btn {
  padding: 14px 28px;
  border: none; background: none;
  font-weight: 700; font-size: 0.9rem; color: var(--grey);
  cursor: pointer; transition: var(--transition);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.at-btn:hover { color: var(--navy); }
.at-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.achieve-panel { display: none; }
.achieve-panel.active { display: block; }
.results-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem;
}
.result-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow);
  border-left: 5px solid var(--gold);
  transition: var(--transition);
}
.result-card:hover { box-shadow: var(--shadow-lg); }
.result-year { font-family: 'Cinzel', serif; font-size: 1.1rem; color: var(--gold); margin-bottom: 0.5rem; }
.result-stat { font-size: 2.5rem; font-weight: 700; color: var(--navy); font-family: 'Cinzel', serif; }
.result-label { font-size: 0.8rem; color: var(--grey); text-transform: uppercase; letter-spacing: 0.06em; }
.result-detail { margin-top: 1rem; font-size: 0.85rem; color: var(--grey); }
.trophy-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem;
}
.trophy-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow); text-align: center;
  transition: var(--transition); border-top: 4px solid var(--gold);
}
.trophy-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.trophy-icon {
  font-size: 2.5rem; margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.trophy-card h4 { font-size: 0.92rem; margin-bottom: 0.3rem; }
.trophy-card p  { font-size: 0.8rem; color: var(--grey); }
.trophy-year { font-size: 0.75rem; color: var(--gold); font-weight: 700; margin-top: 0.4rem; }
.alumni-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.alumni-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow);
  display: flex; align-items: flex-start; gap: 1.25rem;
  transition: var(--transition);
}
.alumni-card:hover { box-shadow: var(--shadow-lg); }
.alumni-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--gold); font-weight: 700;
  font-family: 'Cinzel', serif;
}
.alumni-info h4 { font-size: 1rem; margin-bottom: 0.2rem; }
.alumni-batch { font-size: 0.75rem; color: var(--gold); font-weight: 700; display: block; margin-bottom: 0.4rem; }
.alumni-career { font-size: 0.8rem; color: var(--grey); }
.alumni-quote { font-size: 0.82rem; color: var(--text); font-style: italic; margin-top: 0.5rem; }

/* ---- Gallery ---- */
.gallery-filter {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  justify-content: center; margin-bottom: 2.5rem;
}
.gf-btn {
  padding: 9px 22px; border-radius: 30px;
  border: 2px solid var(--grey-light);
  background: var(--white); color: var(--grey);
  font-weight: 600; font-size: 0.84rem;
  cursor: pointer; transition: var(--transition);
}
.gf-btn:hover, .gf-btn.active {
  background: var(--navy); color: var(--gold-light); border-color: var(--navy);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.gallery-item {
  position: relative; overflow: hidden;
  border-radius: var(--radius); aspect-ratio: 1;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(13,35,87,0.7);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
  gap: 0.5rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: var(--gold-light); font-size: 1.5rem; }
.gallery-overlay span { color: var(--white); font-size: 0.82rem; font-weight: 600; }
.gallery-item.span2 { grid-column: span 2; aspect-ratio: 2; }
.gallery-item.tall  { grid-row: span 2; aspect-ratio: 0.5; }
.video-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  margin-top: 3rem;
}
.video-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden; transition: var(--transition);
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.video-thumb {
  position: relative; aspect-ratio: 16/9;
  background: var(--dark);
  overflow: hidden;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4);
}
.video-play i { font-size: 3rem; color: var(--white); opacity: 0.9; }
.video-card .card-body h4 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.video-card .card-body p  { font-size: 0.82rem; color: var(--grey); }

/* ---- News & Events ---- */
.news-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 3rem;
  align-items: start;
}
.news-main {}
.news-sidebar {}
.news-article {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
  margin-bottom: 2rem; transition: var(--transition);
}
.news-article:hover { box-shadow: var(--shadow-lg); }
.na-img { width: 100%; height: 280px; object-fit: cover; }
.na-body { padding: 2rem; }
.na-meta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1rem; font-size: 0.8rem; color: var(--grey);
}
.na-meta span { display: flex; align-items: center; gap: 0.3rem; }
.na-meta i { color: var(--gold); }
.na-cat {
  display: inline-block; background: var(--gold); color: var(--navy);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 3px 10px; border-radius: 20px;
  margin-bottom: 0.75rem;
}
.na-body h3 { font-size: 1.25rem; margin-bottom: 0.75rem; line-height: 1.4; }
.na-body p  { font-size: 0.9rem; color: var(--grey); line-height: 1.8; margin-bottom: 1.25rem; }
.sidebar-widget {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 1.75rem; margin-bottom: 2rem;
}
.sw-title {
  font-family: 'Playfair Display', serif; font-size: 1.05rem;
  color: var(--navy); margin-bottom: 1.25rem;
  padding-bottom: 0.75rem; border-bottom: 2px solid var(--gold);
}
.recent-post {
  display: flex; gap: 0.75rem; padding: 0.75rem 0;
  border-bottom: 1px solid var(--grey-light); transition: var(--transition);
}
.recent-post:last-child { border: none; }
.recent-post:hover { padding-left: 6px; }
.rp-img { width: 60px; height: 60px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; }
.rp-date { font-size: 0.72rem; color: var(--gold); margin-bottom: 0.2rem; }
.rp-title { font-size: 0.82rem; color: var(--navy); font-weight: 600; line-height: 1.4; }
.categories-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0; border-bottom: 1px solid var(--grey-light); font-size: 0.87rem;
}
.categories-list li:last-child { border: none; }
.categories-list a { color: var(--text); transition: var(--transition); }
.categories-list a:hover { color: var(--gold); }
.cat-count {
  background: var(--grey-light); color: var(--grey);
  font-size: 0.72rem; padding: 2px 8px; border-radius: 20px;
}
.events-list { display: flex; flex-direction: column; gap: 1rem; }
.event-item {
  display: flex; gap: 0.75rem; align-items: flex-start;
}
.event-date-box {
  min-width: 50px; background: var(--navy); color: var(--gold-light);
  border-radius: var(--radius); padding: 6px 8px; text-align: center;
  font-family: 'Cinzel', serif; flex-shrink: 0;
}
.event-date-box .ed-day { font-size: 1.3rem; font-weight: 700; line-height: 1; }
.event-date-box .ed-mon { font-size: 0.65rem; text-transform: uppercase; }
.event-info h5 { font-size: 0.88rem; color: var(--navy); margin-bottom: 0.2rem; }
.event-info p  { font-size: 0.78rem; color: var(--grey); }
.pagination {
  display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem;
}
.page-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--grey-light); background: var(--white);
  color: var(--grey); font-weight: 700; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.page-btn:hover, .page-btn.active {
  background: var(--navy); color: var(--gold-light); border-color: var(--navy);
}

/* ---- Parent Zone ---- */
.pzone-grid {
  display: grid; grid-template-columns: 360px 1fr; gap: 3rem;
  align-items: start;
}
.login-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.login-card-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 2.5rem 2rem; text-align: center;
}
.login-card-header .logo-icon { margin: 0 auto 1rem; }
.login-card-header h3 { color: var(--white); margin-bottom: 0.25rem; }
.login-card-header p  { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.login-card-body { padding: 2rem; }
.login-tabs {
  display: flex; gap: 0; border: 2px solid var(--grey-light);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem;
}
.lt-btn {
  flex: 1; padding: 10px; text-align: center;
  font-weight: 700; font-size: 0.85rem; cursor: pointer;
  border: none; background: var(--white); color: var(--grey);
  transition: var(--transition);
}
.lt-btn.active { background: var(--navy); color: var(--gold-light); }
.login-panel { display: none; }
.login-panel.active { display: block; }
.login-forgot { font-size: 0.8rem; text-align: right; margin-top: -0.5rem; margin-bottom: 1rem; }
.login-forgot a { color: var(--gold); }
.login-help {
  margin-top: 1.25rem; text-align: center; font-size: 0.82rem; color: var(--grey);
}
.login-help a { color: var(--gold); }
.pzone-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-bottom: 2rem;
}
.pzf-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem; box-shadow: var(--shadow); text-align: center;
  transition: var(--transition); border-top: 4px solid var(--navy);
}
.pzf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pzf-icon {
  width: 52px; height: 52px; background: var(--grey-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--navy); margin: 0 auto 0.75rem;
  transition: var(--transition);
}
.pzf-card:hover .pzf-icon { background: var(--gold); }
.pzf-card h4 { font-size: 0.9rem; margin-bottom: 0.3rem; }
.pzf-card p  { font-size: 0.78rem; color: var(--grey); }
.notice-board {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.nb-header {
  background: var(--navy); padding: 1.25rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
}
.nb-header h4 { color: var(--white); margin: 0; font-size: 1rem; }
.nb-header a  { color: var(--gold-light); font-size: 0.8rem; }
.notice-item {
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--grey-light);
  display: flex; gap: 0.75rem; align-items: flex-start;
  transition: var(--transition);
}
.notice-item:last-child { border: none; }
.notice-item:hover { background: var(--off-white); }
.notice-tag {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  padding: 2px 8px; border-radius: 10px; white-space: nowrap; flex-shrink: 0;
  margin-top: 2px;
}
.nt-exam    { background: rgba(160,28,43,0.1); color: var(--crimson); }
.nt-general { background: rgba(13,35,87,0.1); color: var(--navy); }
.nt-holiday { background: rgba(200,146,42,0.15); color: var(--gold); }
.nt-result  { background: rgba(45,122,50,0.1); color: #2d7a32; }
.notice-info h5  { font-size: 0.88rem; color: var(--navy); margin-bottom: 0.2rem; }
.notice-info p   { font-size: 0.78rem; color: var(--grey); }

/* ============================================================
   RESPONSIVE (all inner pages)
   ============================================================ */
@media(max-width:1024px) {
  .facility-grid  { grid-template-columns: repeat(2,1fr); }
  .faculty-grid   { grid-template-columns: repeat(2,1fr); }
  .infra-stats    { grid-template-columns: repeat(3,1fr); }
  .trophy-grid    { grid-template-columns: repeat(2,1fr); }
  .gallery-grid   { grid-template-columns: repeat(3,1fr); }
  .news-layout    { grid-template-columns: 1fr; }
  .pzone-grid     { grid-template-columns: 1fr; }
  .pzone-features { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:768px) {
  .facility-grid  { grid-template-columns: 1fr; }
  .faculty-grid   { grid-template-columns: 1fr 1fr; }
  .results-grid   { grid-template-columns: 1fr; }
  .trophy-grid    { grid-template-columns: 1fr 1fr; }
  .alumni-grid    { grid-template-columns: 1fr; }
  .gallery-grid   { grid-template-columns: repeat(2,1fr); }
  .gallery-item.span2 { grid-column: span 1; aspect-ratio: 1; }
  .gallery-item.tall  { grid-row: span 1; aspect-ratio: 1; }
  .video-grid     { grid-template-columns: 1fr; }
  .infra-stats    { grid-template-columns: repeat(2,1fr); }
  .pzone-features { grid-template-columns: 1fr; }
}
@media(max-width:480px) {
  .faculty-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}
