/* ============================================================
   SGGS KHALSA COLLEGE — SHARED STYLES (Matching facility page)
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { overflow-x: hidden !important; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
  overflow-x: hidden;
}

:root {
  --wine-900: #8C1007;
  --wine-800: #8C1007;
  --wine-700: #8C1007;
  --wine-600: #7b1e3a;
  --wine-500: #9a2a4c;
  --wine-100: #f8e9ef;
  --gold-400: #f4c430;
  --text-on-wine: #fff8fb;
  --muted: #bfa7b0;
}

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #f5f5f5; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #8c1007 0%, #a81510 100%); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #6b0d05 0%, #8c1007 100%); }

@keyframes fadeIn { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }

.fade-in { animation: fadeIn 0.8s ease-out; }
.fade-in-delay { animation: fadeIn 0.8s ease-out 0.2s both; }
.fade-in-delay-2 { animation: fadeIn 0.8s ease-out 0.4s both; }

/* ── HERO ────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 120px 24px 100px;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #8c1007 0%, #b51610 30%, #8c1007 60%, #6b0d05 100%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1), transparent 40%);
  pointer-events: none;
}
.hero-particles {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.1) 1px, transparent 1px),
    radial-gradient(circle at 90% 80%, rgba(255,255,255,0.1) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px, 200px 200px;
  opacity: 0.5;
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 10;
  text-align: center; max-width: 1200px; margin: 0 auto;
}
.college-badge {
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-size: 2.5rem; color: white;
  animation: float 3s ease-in-out infinite;
  border: 2px solid rgba(255,255,255,0.3);
}
.hero h1 {
  font-size: 3.8rem; font-weight: 800; color: white;
  margin-bottom: 20px; letter-spacing: -0.03em; line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero p.hero-sub {
  font-size: 1.25rem; color: rgba(255,255,255,0.95);
  max-width: 800px; margin: 0 auto 48px; font-weight: 500;
}

/* Stats Bar (hero) */
.stats-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  padding: 32px 48px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
  max-width: 900px; margin: 0 auto;
}
.stat-item { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 800; color: white; margin-bottom: 4px; }
.stat-label { font-size: 0.875rem; color: rgba(255,255,255,0.9); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.3); }

/* ── CONTAINER ───────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 80px 24px; }

/* ── SECTION TAG ─────────────────────────────────────── */
.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, #8c1007 0%, #b51610 100%);
  color: white; padding: 8px 20px; border-radius: 50px;
  font-size: 0.875rem; font-weight: 600; margin-bottom: 24px;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* ── FACILITY SECTION ────────────────────────────────── */
.facility-section { margin-bottom: 120px; }

.facility-header {
  display: flex; align-items: center; gap: 20px; margin-bottom: 16px;
}
.icon-box {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, #8c1007 0%, #b51610 100%);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 2rem; flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(140,16,7,0.3);
}
.facility-header h2 {
  font-size: 2.75rem; font-weight: 800; color: #1a1a1a; line-height: 1.2;
}
.facility-subtitle { font-size: 1rem; color: #666; font-weight: 500; margin-top: 4px; }
.facility-description {
  font-size: 1.125rem; color: #555; line-height: 1.8;
  max-width: 1000px; margin-bottom: 48px;
}

/* ── FEATURES GRID ───────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px; margin-bottom: 64px;
}
.feature-card {
  background: #ffffff;
  border: 2px solid #f0f0f0;
  border-radius: 16px; padding: 32px;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8c1007 0%, #b51610 100%);
  transform: scaleX(0); transition: transform 0.4s ease;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
  border-color: rgba(140,16,7,0.3);
  box-shadow: 0 12px 40px rgba(140,16,7,0.15);
  transform: translateY(-4px);
}
.feature-card.highlight {
  background: linear-gradient(135deg, #ffffff 0%, #fef9f8 100%);
  border: 2px solid rgba(140,16,7,0.1);
}
.feature-icon {
  width: 56px; height: 56px;
  background: rgba(140,16,7,0.1); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: #8c1007; font-size: 1.75rem;
  transition: all 0.3s ease;
}
.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, #8c1007 0%, #b51610 100%);
  color: white; transform: scale(1.1);
}
.feature-card h3 { font-size: 1.25rem; font-weight: 700; color: #1a1a1a; margin-bottom: 12px; }
.feature-card p { font-size: 0.9375rem; color: #666; line-height: 1.6; }
.feature-badge {
  display: inline-block;
  background: linear-gradient(135deg, #8c1007 0%, #b51610 100%);
  color: white; padding: 6px 14px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600; margin-top: 12px;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* ── TABLE ───────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; margin-bottom: 40px; }
.data-table thead tr { background: linear-gradient(135deg, #8c1007 0%, #b51610 100%); }
.data-table th { color: white; font-weight: 700; padding: 16px 20px; text-align: left; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.5px; }
.data-table td { padding: 14px 20px; color: #444; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.data-table tbody tr:hover td { background: #fef9f8; }
.data-table tbody tr:nth-child(even) td { background: #fafafa; }
.data-table tbody tr:nth-child(even):hover td { background: #fef9f8; }

/* ── STYLED LIST ─────────────────────────────────────── */
.styled-list { list-style: none; padding: 0; }
.styled-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid #f0f0f0;
  font-size: 0.9375rem; color: #555; line-height: 1.7;
}
.styled-list li:last-child { border-bottom: none; }
.styled-list li .li-num {
  min-width: 32px; height: 32px;
  background: linear-gradient(135deg, #8c1007 0%, #b51610 100%);
  color: white; font-weight: 700; font-size: 0.8rem;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
  box-shadow: 0 2px 10px rgba(140,16,7,0.3);
}
.styled-list li .li-dot {
  min-width: 28px; height: 28px;
  background: rgba(140,16,7,0.1); color: #8c1007;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 4px; font-size: 0.55rem;
}

/* ── INFO COLS ───────────────────────────────────────── */
.info-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.info-box {
  background: #fff;
  border: 2px solid #f0f0f0;
  border-radius: 16px; padding: 28px;
  transition: all 0.3s ease;
}
.info-box:hover { border-color: rgba(140,16,7,0.2); box-shadow: 0 8px 30px rgba(140,16,7,0.08); }
.info-box h4 {
  font-size: 1rem; font-weight: 700; color: #8c1007;
  margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px; border-bottom: 2px solid rgba(140,16,7,0.15);
}

/* ── MARKS / STAT CARDS ──────────────────────────────── */
.marks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 16px; margin-bottom: 32px; }
.marks-card {
  background: #fff; border: 2px solid #f0f0f0;
  border-radius: 16px; padding: 24px; text-align: center;
  transition: all 0.3s ease;
}
.marks-card:hover { border-color: rgba(140,16,7,0.3); box-shadow: 0 8px 30px rgba(140,16,7,0.1); transform: translateY(-4px); }
.marks-pct { font-size: 1.6rem; font-weight: 800; color: #8c1007; }
.marks-label { font-size: 0.8rem; color: #666; margin-top: 6px; line-height: 1.4; }

/* ── PERSON CARD ─────────────────────────────────────── */
.person-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: linear-gradient(135deg, #fff 0%, #fef9f8 100%);
  border: 2px solid rgba(140,16,7,0.12);
  border-radius: 16px; padding: 28px; margin-bottom: 24px;
  transition: all 0.3s ease;
}
.person-card:hover { box-shadow: 0 8px 30px rgba(140,16,7,0.1); transform: translateY(-3px); }
.person-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #8c1007 0%, #b51610 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(140,16,7,0.3);
}
.person-info h4 { font-size: 1.1rem; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; }
.person-info p { font-size: 0.9rem; color: #666; }
.person-info a { color: #8c1007; text-decoration: none; font-weight: 600; }
.person-info a:hover { text-decoration: underline; }

/* ── ACHIEVEMENT LIST ────────────────────────────────── */
.achievement-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 16px; margin-bottom: 32px; }
.achievement-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 2px solid #f0f0f0;
  border-radius: 12px; padding: 18px 20px;
  transition: all 0.3s ease;
}
.achievement-item:hover { border-color: rgba(140,16,7,0.25); box-shadow: 0 6px 20px rgba(140,16,7,0.1); }
.ach-icon { font-size: 1.2rem; margin-top: 2px; flex-shrink: 0; }
.ach-text { font-size: 0.9rem; color: #555; line-height: 1.6; }

/* ── NOTICE BOX ──────────────────────────────────────── */
.notice-box {
  background: linear-gradient(135deg, #fef9f8 0%, #fff5f0 100%);
  border: 1px solid rgba(140,16,7,0.2);
  border-left: 4px solid #8c1007;
  border-radius: 12px; padding: 20px 24px;
  font-size: 0.9375rem; color: #555; margin-bottom: 24px;
  display: flex; gap: 14px; align-items: flex-start;
}
.notice-box .n-icon { font-size: 1.2rem; flex-shrink: 0; color: #8c1007; margin-top: 1px; }

/* ── GALLERY ─────────────────────────────────────────── */
.gallery-section { margin-top: 24px; margin-bottom: 24px; }
.gallery-section h3 {
  font-size: 1.75rem; font-weight: 700; color: #1a1a1a;
  margin-bottom: 28px; display: flex; align-items: center; gap: 12px;
}
.gallery-section h3 i { color: #8c1007; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }
.gallery-item {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  border-radius: 16px; cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.gallery-item:hover img { transform: scale(1.12); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(140,16,7,0) 0%, rgba(140,16,7,0.8) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; transition: all 0.4s ease; opacity: 0;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { font-size: 2rem; color: white; }
.gallery-overlay span {
  background: rgba(255,255,255,0.95); color: #8c1007;
  padding: 10px 24px; border-radius: 30px;
  font-weight: 700; font-size: 0.9rem;
}
.gallery-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #fef9f8 0%, #f0e8e8 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: #999; font-size: 0.85rem;
}
.gallery-placeholder i { font-size: 2.5rem; color: rgba(140,16,7,0.25); }

/* ── DIVIDER ─────────────────────────────────────────── */
.divider { margin-top: 80px; border-bottom: 2px solid #f0f0f0; margin-bottom: 0; }

/* ── STATS SECTION ───────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, #8c1007 0%, #b51610 100%);
  padding: 80px 48px; border-radius: 32px; margin: 80px 0;
}
.stats-title { text-align: center; color: white; font-size: 2.5rem; font-weight: 800; margin-bottom: 48px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 20px; }
.stat-card {
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 24px 16px; border-radius: 20px; text-align: center;
  transition: all 0.3s ease;
}
.stat-card:hover { background: rgba(255,255,255,0.25); transform: translateY(-8px); }
.stat-card i { color: white; opacity: 0.9; font-size: 2rem; margin-bottom: 12px; display: block; }
.stat-value { font-weight: 800; color: white; font-size: 2rem; margin-bottom: 6px; }
.stat-name { color: rgba(255,255,255,0.9); font-weight: 600; font-size: 0.85rem; line-height: 1.3; }

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  background: #1a1a1a; color: rgba(255,255,255,0.7);
  text-align: center; padding: 36px 24px;
  font-size: 0.875rem;
}
footer a { color: #f4c430; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media(max-width:768px){
  .hero { padding: 100px 20px 70px; min-height: 500px; }
  .hero h1 { font-size: 2.6rem; }
  .stats-bar { flex-direction: column; padding: 28px 20px; gap: 20px; }
  .stat-divider { display: none; }
  .facility-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .facility-header h2 { font-size: 2rem; }
  .features-grid, .gallery-grid { grid-template-columns: 1fr; }
  .info-cols { grid-template-columns: 1fr; }
  .stats-section { padding: 48px 24px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:480px){
  .hero h1 { font-size: 2.2rem; }
  .container { padding: 60px 16px; }
  .facility-header h2 { font-size: 1.8rem; }
  .stats-grid { gap: 16px; }
}
