/* ============================================
   CS DEPARTMENT PORTAL - PROFESSIONAL THEME
   Blue & White Color Scheme
   ============================================ */

:root {
  --blue-900: #0a1628;
  --blue-800: #0f2248;
  --blue-700: #1a3a6e;
  --blue-600: #1e4d8c;
  --blue-500: #2563be;
  --blue-400: #3b82f6;
  --blue-300: #60a5fa;
  --blue-200: #bfdbfe;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;

  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.08);
  --shadow-blue: 0 8px 32px rgba(37,99,190,0.25);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.8;
  font-size: 16px;
}

/* ============ TOP BAR ============ */
.top-bar {
  background: var(--blue-900);
  color: var(--blue-200);
  font-size: 12px;
  padding: 7px 0;
  letter-spacing: 0.02em;
}

/* ============ NAVBAR ============ */
.main-navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  z-index: 999;
}

.main-navbar .container { min-height: 72px; }

.brand-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--blue-800);
  line-height: 1.2;
}

.brand-sub {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 400;
}

.nav-link {
  color: var(--gray-600) !important;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--blue-600) !important;
  background: var(--blue-50);
}

.admin-link {
  background: var(--blue-600) !important;
  color: white !important;
}

.admin-link:hover { background: var(--blue-700) !important; }

/* ============ FLASH ALERTS ============ */
.alert-float {
  position: fixed; top: 90px; right: 20px;
  z-index: 9999; max-width: 360px;
  box-shadow: var(--shadow-lg);
  border: none; border-radius: var(--radius);
  font-size: 14px;
}

/* ============ HERO ============ */
.hero-section {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 50%, var(--blue-600) 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-bg-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%),
    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.02'%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");
}

.hero-badge {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--blue-200);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-highlight {
  color: var(--blue-300);
  font-style: italic;
}

.hero-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 17px;
  max-width: 520px;
  line-height: 1.8;
}

.hero-visual {
  position: relative;
  height: 400px;
}

.hero-circle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
}

.hero-circle::before {
  content: '';
  position: absolute; inset: 20px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.15);
}

.stat-card {
  position: absolute;
  background: white;
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  min-width: 110px;
}

.stat-card .stat-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--blue-600);
  line-height: 1;
}

.stat-card .stat-lbl {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 4px;
  font-weight: 500;
}

.sc-1 { top: 40px; left: 30px; }
.sc-2 { top: 50%; right: 10px; transform: translateY(-50%); }
.sc-3 { bottom: 50px; left: 60px; }

/* ============ BUTTONS ============ */
.btn-primary-custom {
  background: var(--blue-600);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary-custom:hover {
  background: var(--blue-700);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}

.btn-outline-custom {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-outline-custom:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  color: white;
}

.events-preview-section .btn-outline-custom,
section:not(.hero-section) .btn-outline-custom {
  color: var(--blue-600);
  border-color: var(--blue-300);
}

.events-preview-section .btn-outline-custom:hover,
section:not(.hero-section) .btn-outline-custom:hover {
  background: var(--blue-50);
  color: var(--blue-700);
}

.btn-white-outline {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.2s;
}

.btn-white-outline:hover { background: rgba(255,255,255,0.25); color: white; }

.btn-primary-sm {
  background: var(--blue-600);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
}

.btn-primary-sm:hover { background: var(--blue-700); color: white; }

/* ============ SECTIONS ============ */
.section-gap { padding: 80px 0; }

.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-500);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--gray-500);
  max-width: 520px;
  margin: 0 auto;
}

.section-text {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.8;
}

/* ============ VISION & MISSION ============ */
.vm-section { background: var(--gray-50); }

.vm-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  height: 100%;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, box-shadow 0.3s;
}

.vm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.vm-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 22px;
  margin-bottom: 20px;
}

.vm-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.vm-card p { color: var(--gray-600); line-height: 1.8; margin: 0; }

/* ============ ABOUT ============ */
.about-visual {
  position: relative;
  height: 380px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.about-block {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  transition: all 0.3s;
}

.about-block:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-blue);
  color: var(--blue-600);
  transform: translateY(-2px);
}

.about-block i { color: var(--blue-500); }
.ab-1 { border-top: 3px solid var(--blue-500); }
.ab-2 { border-top: 3px solid #8b5cf6; }
.ab-3 { border-top: 3px solid #06b6d4; }
.ab-4 { border-top: 3px solid var(--accent); }

.stat-pill {
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  text-align: center;
}

.stat-pill strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--blue-700);
  line-height: 1;
}

.stat-pill span {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
}

/* ============ SOCIETIES ============ */
.societies-section { background: var(--blue-900);font-size: 16px; }
.societies-section .section-label { color: var(--blue-300);font-size: 16px; }
.societies-section .section-title { color: white;font-size: 16px; }
.societies-section .section-subtitle { color: var(--blue-200);font-size: 24px; }

.society-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  height: 100%;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.society-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-6px);
}

.society-card.featured {
  background: rgba(37,99,190,0.4);
  border-color: rgba(96,165,250,0.4);
}

.society-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.society-icon.titan { background: rgba(16,185,129,0.2); color: #10b981; }
.society-icon.devsquad { background: rgba(59,130,246,0.2); color: var(--blue-300); }
.society-icon.dom { background: rgba(245,158,11,0.2); color: var(--accent); }

.society-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-300);
  font-weight: 700;
  margin-bottom: 8px;
}

.society-card h4 {
  font-family: var(--font-display);
  color: white;
  font-size: 22px;
  margin-bottom: 12px;
}

.society-card p { color: rgba(255,255,255,0.65); font-size: 14px; line-height: 1.8; }

.society-footer { margin-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; }

.society-badge {
  font-size: 12px;
  color: var(--blue-300);
  font-weight: 500;
}

/* ============ EVENTS SCROLL ============ */
.events-preview-section { background: var(--gray-50); }

.events-scroll-wrapper { overflow-x: auto; padding-bottom: 12px; }
.events-scroll-wrapper::-webkit-scrollbar { height: 6px; }
.events-scroll-wrapper::-webkit-scrollbar-track { background: var(--gray-200); border-radius: 3px; }
.events-scroll-wrapper::-webkit-scrollbar-thumb { background: var(--blue-400); border-radius: 3px; }

.events-scroll-track {
  display: flex;
  gap: 20px;
  padding: 8px 4px;
}

.event-scroll-card {
  min-width: 260px;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: transform 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
}

.event-scroll-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.event-poster-wrap {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.event-poster-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.event-scroll-card:hover .event-poster-wrap img { transform: scale(1.05); }

.event-overlay {
  position: absolute; inset: 0;
  background: rgba(10,22,40,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.event-scroll-card:hover .event-overlay { opacity: 1; }

.event-poster-placeholder {
  height: 180px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
}

.event-scroll-info {
  padding: 16px;
}

.event-date-badge {
  font-size: 12px;
  color: var(--blue-600);
  font-weight: 600;
  margin-bottom: 6px;
}

.event-scroll-info h6 {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--gray-800);
  font-size: 14px;
}

/* ============ PAGE HERO ============ */
.page-hero {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  padding: 60px 0;
}

.page-hero-content { color: white; }
.page-hero-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.page-hero p { color: var(--blue-200); font-size: 17px; margin: 0; line-height: 1.8; }

.back-link {
  display: inline-flex; align-items: center;
  color: var(--blue-200);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.back-link:hover { color: white; }

/* ============ EVENT CARDS ============ */
.event-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.event-card-poster {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.event-card-poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.event-card:hover .event-card-poster img { transform: scale(1.05); }

.event-card-overlay {
  position: absolute; inset: 0;
  background: rgba(10,22,40,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}

.event-card:hover .event-card-overlay { opacity: 1; }

.event-card-poster-ph {
  height: 220px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
}

.event-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-society-tag {
  font-size: 11px;
  background: var(--blue-50);
  color: var(--blue-600);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 10px;
}

.event-card-title {
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
  line-height: 1.4;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: var(--gray-500);
  flex: 1;
}

.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}

.reg-badge {
  font-size: 12px;
  font-weight: 600;
  display: flex; align-items: center;
}

.reg-badge.open { color: var(--success); }
.reg-badge.open .fas { font-size: 7px; }
.reg-badge.closed { color: var(--danger); }
.reg-badge.closed .fas { font-size: 7px; }

/* ============ EVENT DETAIL ============ */
.event-detail-poster {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.event-detail-poster img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
}

.event-detail-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}

.event-detail-card h3 {
  font-family: var(--font-display);
  color: var(--gray-900);
}

.event-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.meta-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.meta-icon {
  width: 40px; height: 40px;
  background: var(--blue-50);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-600);
  flex-shrink: 0;
}

.meta-label { font-size: 12px; color: var(--gray-500); font-weight: 500; }
.meta-value { font-weight: 600; color: var(--gray-800); font-size: 15px; }

.payment-card {
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius);
  padding: 24px;
}

.payment-card h5 { color: var(--blue-800); margin-bottom: 10px; }

.upi-display {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-top: 10px;
}

.upi-label { font-size: 13px; color: var(--gray-500); font-weight: 500; }
.upi-id { font-weight: 700; color: var(--blue-700); font-size: 15px; flex: 1; }
.btn-copy {
  background: var(--blue-100);
  border: none;
  color: var(--blue-600);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-copy:hover { background: var(--blue-200); }

/* ============ REGISTRATION FORM ============ */
.reg-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
}

.reg-card-header {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  padding: 28px;
  color: white;
}

.reg-card-header h4 { font-family: var(--font-display); margin-bottom: 6px; }
.reg-card-body { padding: 28px; }

.custom-input {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--gray-50);
}

.custom-input:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
  background: white;
  outline: none;
}

.form-label { font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }

.file-upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--gray-400);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  background: var(--gray-50);
}

.file-upload-area:hover {
  border-color: var(--blue-400);
  background: var(--blue-50);
  color: var(--blue-500);
}

.file-upload-area.has-file {
  border-color: var(--success);
  background: rgba(16,185,129,0.05);
  color: var(--success);
}

.file-input {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
}

.file-name-display {
  font-size: 13px;
  color: var(--success);
  font-weight: 600;
  margin-top: 8px;
}

.reg-closed-card {
  padding: 48px 32px;
  text-align: center;
}

.reg-closed-icon {
  width: 72px; height: 72px;
  background: rgba(239,68,68,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: var(--danger);
  margin: 0 auto 20px;
}

.reg-closed-card h4 { color: var(--gray-900); margin-bottom: 10px; }
.reg-closed-card p { color: var(--gray-500); }

/* ============ OFFICE BEARERS ============ */
.year-selector-wrap {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--gray-200);
}

.year-label { font-weight: 600; color: var(--gray-700); white-space: nowrap; }

.year-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.year-tab {
  padding: 8px 18px;
  border-radius: 30px;
  border: 1.5px solid var(--gray-300);
  color: var(--gray-600);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.year-tab:hover {
  border-color: var(--blue-400);
  color: var(--blue-600);
}

.year-tab.active {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: white;
  box-shadow: var(--shadow-blue);
}

.selected-year-header {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gray-100);
}

.selected-year-header h3 {
  font-family: var(--font-display);
  color: var(--blue-800);
  margin: 0;
}

.bearer-section { margin-bottom: 40px; }

.bearer-section-header {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 24px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.dept-header {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
}

.bearer-section-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: white;
}

.bearer-section-header h4 { color: white; margin: 0; font-family: var(--font-display); }

.bearer-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.bearer-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.2s;
}

.bearer-item:last-child { border-bottom: none; }
.bearer-item:hover { background: var(--blue-50); }

.bearer-num {
  width: 28px; height: 28px;
  background: var(--blue-100);
  color: var(--blue-600);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.bearer-position { font-weight: 600; color: var(--blue-700); }
.bearer-separator { color: var(--gray-400); margin: 0 4px; }
.bearer-name { color: var(--gray-800); font-weight: 500; }

.society-bearers-label {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gray-900);
  margin-bottom: 20px;
  font-weight: 700;
}

.society-bearer-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  height: 100%;
}

.sbc-header {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.society-bearer-card.titan .sbc-header { background: linear-gradient(135deg, #064e3b, #059669); }
.society-bearer-card.devsquad .sbc-header { background: linear-gradient(135deg, var(--blue-800), var(--blue-600)); }
.society-bearer-card.dom .sbc-header { background: linear-gradient(135deg, #78350f, #d97706); }
.society-bearer-card.default .sbc-header { background: linear-gradient(135deg, var(--gray-700), var(--gray-500)); }

.sbc-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 18px;
}

.sbc-header h5 { color: white; margin: 0; font-family: var(--font-display); }

.sbc-list { padding: 8px 0; }

.sbc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid var(--gray-100);
  gap: 12px;
}

.sbc-item:last-child { border-bottom: none; }
.sbc-position { font-weight: 600; color: var(--gray-600); font-size: 14px; }
.sbc-name { font-weight: 600; color: var(--gray-900); font-size: 14px; }

/* ============ EMPTY STATE ============ */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-icon {
  width: 80px; height: 80px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  color: var(--gray-400);
  margin: 0 auto 20px;
}

.empty-state h4 { color: var(--gray-700); margin-bottom: 8px; }
.empty-state p { color: var(--gray-500); }

/* ============ FOOTER ============ */
.main-footer {
  background: var(--blue-900);
  color: var(--blue-200);
  padding: 60px 0 30px;
}

.brand-icon-sm {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 14px;
  flex-shrink: 0;
}

.footer-brand .fw-600 { color: white; font-weight: 600; }
.text-muted-light { font-size: 12px; color: var(--blue-300); }
.footer-desc { font-size: 14px; color: var(--blue-300); line-height: 1.7; }

.footer-heading {
  color: white;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0; margin: 0;
}

.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--blue-300); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-links.no-link li { color: var(--blue-300); font-size: 14px; }

.footer-divider { border-color: rgba(255,255,255,0.1); margin: 32px 0 20px; }
.footer-copy { color: var(--blue-400); font-size: 13px; }
.footer-insta-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: white; font-size: 17px; text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.footer-insta-icon:hover { color: white; opacity: 0.85; transform: translateY(-2px); }
.admin-portal-link { color: var(--blue-400); font-size: 13px; text-decoration: none; transition: color 0.2s; }
.admin-portal-link:hover { color: white; }

/* ============ LOGIN PAGE ============ */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}

.login-container { width: 100%; max-width: 420px; }

.login-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
}

.login-header { text-align: center; margin-bottom: 32px; }

.login-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: white;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-blue);
}

.login-header h2 { font-family: var(--font-display); color: var(--gray-900); margin-bottom: 4px; }
.login-header p { color: var(--gray-500); font-size: 14px; }

.input-icon-wrap { position: relative; }
.input-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gray-400); font-size: 14px; }

.back-link-sm { color: var(--gray-500); font-size: 13px; text-decoration: none; }
.back-link-sm:hover { color: var(--blue-600); }

/* ============ ADMIN LAYOUT ============ */
.admin-body { background: var(--gray-50); margin: 0; padding: 0; }

.admin-layout { display: flex; min-height: 100vh; box-sizing: border-box; }

.admin-sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--blue-900);
  position: fixed; left: 0; top: 0; bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  min-width: 0;
}

.sidebar-brand .fw-600 { color: white; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-sub { font-size: 11px; color: var(--blue-300); }

.sidebar-nav { padding: 10px 10px; }

.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-link i { width: 16px; text-align: center; opacity: 0.85; flex-shrink: 0; font-size: 13px; }
.sidebar-link:hover { background: rgba(255,255,255,0.1); color: white; }
.sidebar-link.active { background: var(--blue-600); color: white; }
.sidebar-link.logout { color: rgba(239,68,68,0.8); margin-top: 8px; }
.sidebar-link.logout:hover { background: rgba(239,68,68,0.1); color: #ef4444; }

.sidebar-group-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #93c5fd;
  font-weight: 800;
  padding: 12px 12px 5px;
  opacity: 0.7;
}

.admin-main {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  max-width: calc(100vw - 260px);
  box-sizing: border-box;
}

.admin-topbar {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky; top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.admin-page-title { font-family: var(--font-display); color: var(--gray-800); font-size: 17px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-user { font-size: 13px; color: var(--gray-500); font-weight: 500; white-space: nowrap; }

.admin-content { padding: 24px; flex: 1; min-width: 0; box-sizing: border-box; }

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

.admin-stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  display: flex; align-items: center; gap: 20px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.admin-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.ast-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.events-icon { background: rgba(37,99,190,0.1); color: var(--blue-600); }
.reg-icon { background: rgba(16,185,129,0.1); color: var(--success); }
.bearer-icon { background: rgba(245,158,11,0.1); color: var(--accent); }

.ast-num { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--gray-900); line-height: 1; }
.ast-label { font-size: 13px; color: var(--gray-500); font-weight: 500; margin-top: 4px; }

.admin-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 20px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.admin-card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
}

.admin-card-header h6 { font-weight: 700; color: var(--gray-800); }
.admin-card-body { padding: 20px; }

.admin-table-wrap { overflow-x: auto; width: 100%; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th {
  background: var(--gray-50);
  padding: 10px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--gray-50); }

.badge-open { background: rgba(16,185,129,0.1); color: var(--success); padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-closed { background: rgba(239,68,68,0.1); color: var(--danger); padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }

.btn-action {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  text-decoration: none;
  background: white;
  transition: all 0.2s;
  cursor: pointer;
  font-size: 13px;
  margin-right: 4px;
}

.btn-action:hover { background: var(--blue-50); color: var(--blue-600); border-color: var(--blue-300); }
.btn-action.danger:hover { background: rgba(239,68,68,0.1); color: var(--danger); border-color: var(--danger); }

.btn-toggle {
  padding: 4px 12px;
  border-radius: 20px;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-toggle.open { background: rgba(16,185,129,0.1); color: var(--success); }
.btn-toggle.open:hover { background: rgba(16,185,129,0.2); }
.btn-toggle.closed { background: rgba(239,68,68,0.1); color: var(--danger); }
.btn-toggle.closed:hover { background: rgba(239,68,68,0.2); }

.admin-poster-thumb {
  width: 44px; height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
}

.no-poster-thumb {
  width: 44px; height: 56px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400);
}

.actions-cell { white-space: nowrap; }
.empty-admin { color: var(--gray-500); }
.empty-admin a { color: var(--blue-600); }

.society-chip {
  font-size: 12px;
  background: var(--blue-50);
  color: var(--blue-700);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}

/* Poster upload in admin */
.poster-upload-area {
  width: 100%;
  aspect-ratio: 3/4;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--gray-50);
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}

.poster-upload-area:hover { border-color: var(--blue-400); background: var(--blue-50); }

.poster-placeholder { text-align: center; color: var(--gray-400); padding: 20px; }

.poster-preview-img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.poster-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s;
}

.poster-upload-area:hover .poster-overlay { opacity: 1; }

.poster-input {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.qa-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 20px 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s;
}

.qa-item:hover {
  background: var(--blue-50);
  border-color: var(--blue-300);
  color: var(--blue-700);
}

.qa-icon {
  width: 44px; height: 44px;
  background: var(--blue-100);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--blue-600);
}

.custom-switch .form-check-input { width: 44px; height: 22px; cursor: pointer; }
.custom-switch .form-check-label { font-size: 14px; font-weight: 500; color: var(--gray-700); padding-left: 8px; cursor: pointer; }

.sidebar-toggle {
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--gray-600);
  cursor: pointer;
  padding: 4px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .hero-section { min-height: auto; padding: 60px 0; }
}

@media (max-width: 768px) {
  .section-gap { padding: 50px 0; }
  .hero-title { font-size: 32px; }
  .page-hero-title { font-size: 28px; }
  .admin-content { padding: 16px; }
  .reg-card-body { padding: 20px; }
  .event-detail-card { padding: 24px; }
}

@media (max-width: 576px) {
  .top-bar .container { flex-direction: column; gap: 4px; text-align: center; }
  .vm-card { padding: 28px; }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-section .hero-badge,
.hero-section .hero-title,
.hero-section .hero-subtitle,
.hero-section .d-flex {
  animation: fadeInUp 0.6s ease both;
}

.hero-section .hero-badge { animation-delay: 0.1s; }
.hero-section .hero-title { animation-delay: 0.2s; }
.hero-section .hero-subtitle { animation-delay: 0.3s; }
.hero-section .d-flex { animation-delay: 0.4s; }

/* ============ LOGOS IN NAVBAR ============ */
.nav-college-logo {
  height: 62px;
  width: auto;
  object-fit: contain;
}

.nav-dept-logo {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.nav-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-200);
  flex-shrink: 0;
}

/* Make navbar slightly taller to accommodate logos */
.main-navbar .container {
  min-height: 76px;
}

/* Footer logo sizes */
.footer-college-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.footer-dept-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

/* ============ MAIN EVENT BLOCK (events listing) ============ */
.main-event-block {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.main-event-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.main-event-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 22px; flex-shrink: 0;
}

.main-event-title {
  font-family: var(--font-display);
  font-size: 26px; color: var(--gray-900); margin: 0 0 4px;
}

.main-event-desc { color: var(--gray-500); font-size: 14px; }

/* ============ SUB EVENT CARDS ============ */
.subevent-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
  display: flex; flex-direction: column; gap: 10px;
}

.subevent-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.subevent-card.closed { opacity: 0.7; }

.subevent-card-top {
  display: flex; justify-content: space-between; align-items: center;
}

.subevent-type-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}

.subevent-type-badge.solo { background: rgba(16,185,129,0.1); color: #059669; }
.subevent-type-badge.team { background: rgba(139,92,246,0.1); color: #7c3aed; }

.subevent-fee {
  font-weight: 700; font-size: 16px; color: var(--blue-700);
}

.subevent-name {
  font-weight: 700; color: var(--gray-900); font-size: 14px; margin: 0;
}

.subevent-progress-wrap {
  display: flex; align-items: center; gap: 8px;
}

.subevent-progress-bar {
  flex: 1; height: 6px; background: var(--gray-200); border-radius: 3px; overflow: hidden;
}

.subevent-progress-fill {
  height: 100%; background: var(--blue-500); border-radius: 3px; transition: width 0.3s;
}

.subevent-count { font-size: 11px; color: var(--gray-500); white-space: nowrap; }

.reg-status-badge {
  font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}

.reg-status-badge.open-badge { color: var(--success); }
.reg-status-badge.open-badge .fas { font-size: 7px; }
.reg-status-badge.closed-badge { color: var(--danger); }
.reg-status-badge.full-badge { color: var(--accent); }

/* ============ SUB EVENT DETAIL CARDS ============ */
.subevent-detail-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  display: flex; flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.subevent-detail-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.sdc-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--gray-100);
}

.sdc-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

.sdc-title {
  font-family: var(--font-display); font-size: 20px;
  color: var(--gray-900); margin-bottom: 8px;
}

.sdc-desc { font-size: 14px; color: var(--gray-500); margin: 0; }

.sdc-meta {
  padding: 16px 24px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}

.sdc-meta-item {
  display: flex; align-items: flex-start; gap: 12px;
}

.sdc-meta-item > i {
  width: 32px; height: 32px;
  background: var(--blue-50); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-600); font-size: 13px; flex-shrink: 0;
  padding: 8px;
}

.sdc-meta-label { font-size: 11px; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.sdc-meta-val { font-weight: 600; color: var(--gray-800); font-size: 15px; }

.sdc-progress-wrap {
  padding: 0 24px 16px;
  display: flex; align-items: center; gap: 10px;
}

.sdc-progress-bar {
  flex: 1; height: 8px; background: var(--gray-200); border-radius: 4px; overflow: hidden;
}

.sdc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-400));
  border-radius: 4px;
}

.sdc-pct { font-size: 12px; color: var(--gray-500); white-space: nowrap; }

.sdc-rulebook {
  margin: 0 24px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
}

.sdc-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
}

/* ============ REGISTRATION INFO CARD ============ */
.reg-info-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.ric-header {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  padding: 16px 20px;
}

.ric-header h5 { color: white; margin: 0; font-size: 15px; }

.ric-body { padding: 16px 20px; }

.ric-item {
  display: flex; justify-content: space-between;
  align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  flex-wrap: wrap;
}

.ric-item:last-child { border-bottom: none; }

.ric-label { font-size: 12px; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.ric-val { font-weight: 600; color: var(--gray-800); font-size: 14px; text-align: right; }

.ric-item.fee-highlight { background: var(--blue-50); margin: 0 -20px; padding: 10px 20px; }
.fee-amount { font-size: 22px; color: var(--blue-700); font-family: var(--font-display); }

/* ============ RULEBOOK CARD ============ */
.rulebook-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.rulebook-header {
  background: var(--gray-800);
  color: white; padding: 12px 16px; font-size: 14px; font-weight: 600;
}

.rulebook-body {
  padding: 16px; font-size: 13px; color: var(--gray-600);
  line-height: 1.8; white-space: pre-line;
}

/* ============ TEAM MEMBER BLOCKS ============ */
.form-section-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--blue-500);
  margin-bottom: 12px; margin-top: 4px;
  padding-bottom: 6px; border-bottom: 2px solid var(--blue-100);
}

.team-member-block {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
}

.leader-block {
  background: var(--blue-50);
  border-color: var(--blue-200);
}

.tmb-label {
  font-size: 13px; font-weight: 700; color: var(--gray-700);
  margin-bottom: 12px;
}

.leader-block .tmb-label { color: var(--blue-700); }

.optional-member { border-style: dashed; }

/* ============ PARTICIPATION TYPE SELECTOR (admin form) ============ */
.part-type-selector {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.part-type-option {
  cursor: pointer;
  flex: 1;
  min-width: 140px;
}

.part-type-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.part-type-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  background: var(--gray-50);
  transition: all 0.2s;
  color: var(--gray-500);
}

.part-type-card:hover {
  border-color: var(--blue-300);
  background: var(--blue-50);
  color: var(--blue-600);
}

.part-type-card.active {
  border-color: var(--blue-500);
  background: var(--blue-50);
  color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* ============ CONFIG BLOCKS ============ */
.config-block {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--gray-50);
}

.config-block-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--blue-600);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue-100);
}

.solo-config-block { border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.03); }
.solo-config-block .config-block-label { color: #059669; border-color: rgba(16,185,129,0.2); }

.team-config-block { border-color: rgba(139,92,246,0.3); background: rgba(139,92,246,0.03); }
.team-config-block .config-block-label { color: #7c3aed; border-color: rgba(139,92,246,0.2); }

/* ============ REG TYPE TOGGLE (participant form) ============ */
.reg-type-toggle {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.reg-type-btn {
  flex: 1;
  min-width: 160px;
  cursor: pointer;
}

.reg-type-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.reg-type-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-600);
  transition: all 0.2s;
  font-size: 15px;
}

.reg-type-btn:hover span {
  border-color: var(--blue-300);
  background: var(--blue-50);
  color: var(--blue-700);
}

.reg-type-btn.selected span {
  border-color: var(--blue-500);
  background: var(--blue-600);
  color: white;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

/* ============ FEE DISPLAY BOX ============ */
.fee-display-box {
  background: var(--blue-50);
  border: 2px solid var(--blue-200);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--blue-700);
  margin-bottom: 12px;
}

/* ============ HERO LOGO ============ */
.hero-logo-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.hero-vista-logo {
  max-width: 340px; width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
  animation: floatLogo 4s ease-in-out infinite;
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ============ HERO MOTTO ============ */
.hero-motto {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.motto-word {
  font-family: var(--font-display); font-weight: 700;
  font-size: 14px; letter-spacing: 0.12em;
  color: var(--blue-400);
}
.motto-dot { color: var(--blue-300); font-size: 18px; }

/* ============ VM LIST ============ */
.vm-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.vm-list li {
  padding-left: 20px; position: relative;
  font-size: 14px; line-height: 1.7; color: var(--gray-600);
}
.vm-list li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--blue-400); font-weight: 700;
}

/* ============ QUALITY POLICY ============ */
.qp-section { background: var(--gray-50); }
.qp-card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-md); height: 100%;
}
.qp-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  border-radius: var(--radius); display: flex;
  align-items: center; justify-content: center;
  color: white; font-size: 22px; margin-bottom: 20px;
}

/* ============ OBJECTIVES ============ */
.obj-box {
  background:linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border:1px solid #ddd6fe; border-radius:var(--radius-lg);
  padding:36px; box-shadow:var(--shadow-md); height:100%;
}
.obj-box-icon {
  width:52px; height:52px; border-radius:var(--radius);
  background:#7c3aed; color:white;
  display:flex; align-items:center; justify-content:center;
  font-size:22px; margin-bottom:20px;
}
.obj-list   { display:flex; flex-direction:column; gap:10px; }
.obj-item   { display:flex; align-items:flex-start; gap:14px; background:white; border:1px solid #ede9fe; border-radius:var(--radius); padding:13px 18px; box-shadow:var(--shadow-sm); }
.obj-icon   { width:34px; height:34px; border-radius:10px; background:linear-gradient(135deg,#7c3aed,#6d28d9); color:white; display:flex; align-items:center; justify-content:center; font-size:14px; flex-shrink:0; margin-top:1px; }
.obj-text   { font-size:15px; color:var(--gray-700); line-height:1.7; }
/* ============ PROGRAMMES ============ */
.programmes-section { background: var(--blue-800); }
.programmes-section .section-label { color: var(--blue-300); }
.programmes-section .section-title { color: white; }

.programme-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg); padding: 28px 24px;
  text-align: center; transition: all 0.3s;
  height: 100%;
}
.programme-card:hover {
  background: rgba(255,255,255,0.13);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.programme-card.featured-prog {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
}
.prog-icon {
  width: 56px; height: 56px;
  background: var(--blue-500); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: white; margin: 0 auto 16px;
}
.prog-level {
  font-size: 18px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--blue-300); margin-bottom: 8px;
}
.prog-title { color: white; font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.prog-desc { color: rgba(255,255,255,0.65); font-size: 13px; line-height: 1.7; margin: 0; }

/* ═══════════════════════ HERO ═══════════════════════ */
.hero-logo-float { display:flex; justify-content:center; align-items:center; }
.hero-vista-logo {
  max-width:360px; width:100%;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.18));
  animation: vistaFloat 5s ease-in-out infinite;
}
@keyframes vistaFloat {
  0%,100% { transform:translateY(0px); }
  50%      { transform:translateY(-16px); }
}
.hero-motto { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:18px; }
.motto-word { font-family:var(--font-display); font-size:13px; font-weight:800; letter-spacing:0.14em; color:var(--blue-300); }
.motto-sep  { color:var(--blue-400); font-size:20px; font-weight:300; }

/* ═══════════════════════ DEPT INTRO ═══════════════════════ */
.dept-intro-section { padding-top:0; }
.dept-intro-card {
  display:flex; align-items:flex-start; gap:24px;
  background:var(--blue-50); border:1px solid var(--blue-100);
  border-radius:var(--radius-lg); padding:28px 32px;
}
.dept-intro-icon {
  width:48px; height:48px; min-width:48px;
  background:var(--blue-600); border-radius:var(--radius);
  display:flex; align-items:center; justify-content:center;
  color:white; font-size:20px;
}
.dept-intro-text p { margin:0; font-size:17px; color:var(--gray-700); line-height:1.8; }

/* ═══════════════════════ VM SECTION ═══════════════════════ */
.vm-section { background:white; }
.vm-card {
  border-radius:var(--radius-lg); padding:36px;
  border:1px solid var(--gray-200); box-shadow:var(--shadow-md);
}
/* Vision and Mission — same background colour */
.vision-card  { background:linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border-color:var(--blue-200); }
.mission-card { background:linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border-color:var(--blue-200); }
.vm-card-icon {
  width:52px; height:52px; border-radius:var(--radius);
  display:flex; align-items:center; justify-content:center;
  font-size:22px; margin-bottom:20px;
}
.vision-icon  { background:var(--blue-600); color:white; }
.mission-icon { background:linear-gradient(135deg,#10b981,#059669); color:white; }
.vm-card-title { font-family:var(--font-display); font-size:24px; font-weight:700; color:var(--gray-900); margin-bottom:14px; }
.vm-card-body  { font-size:17px; color:var(--gray-700); line-height:1.8; margin:0; }
.vm-mission-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:12px; }
.vm-mission-list li { position:relative; padding-left:22px; font-size:16px; color:var(--gray-700); line-height:1.8; }
.vm-mission-list li::before { content:'→'; position:absolute; left:0; color:var(--blue-500); font-weight:700; }

/* ═══════════════════════ QUALITY POLICY ═══════════════════════ */
.qp-section { background:var(--gray-50); }
/* Quality Policy wrapped in a card box */
.qp-box {
  background:linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border:1px solid var(--blue-200); border-radius:var(--radius-lg);
  padding:36px; box-shadow:var(--shadow-md); height:100%;
}
.qp-box-icon {
  width:52px; height:52px; border-radius:var(--radius);
  background:var(--blue-600); color:white;
  display:flex; align-items:center; justify-content:center;
  font-size:22px; margin-bottom:20px;
}
.qp-body p  { font: size 40px; color:var(--gray-700); line-height:1.9; margin-bottom:14px; }
.qp-body p:last-child { margin-bottom:0; }
.obj-list   { display:flex; flex-direction:column; gap:10px; }
.obj-item   { display:flex; align-items:flex-start; gap:12px; background:white; border:1px solid var(--gray-200); border-radius:var(--radius); padding:13px 18px; box-shadow:var(--shadow-sm); }
.obj-item::before { content:''; display:inline-block; width:7px; height:7px; background:var(--blue-400); border-radius:50%; flex-shrink:0; margin-top:6px; }
.obj-text   { font-size:15px; color:var(--gray-700); line-height:1.7; }

/* ═══════════════════════ PROGRAMMES ═══════════════════════ */
.programmes-section { background:var(--blue-900); }
.prog-card {
  background:rgba(255,255,255,0.07);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:var(--radius-lg); padding:24px 16px;
  text-align:center; transition:all 0.3s;
  height:100%;
  display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
}
.prog-card:hover { background:rgba(255,255,255,0.13); transform:translateY(-6px); }
.prog-card-featured { background:rgba(255,255,255,0.15); border-color:rgba(255,255,255,0.3); }
.prog-badge {
  display:inline-block; font-size:11px; font-weight:700;
  letter-spacing:0.05em; text-transform:none;
  background:rgba(255,255,255,0.15); color:var(--blue-200);
  padding:3px 12px; border-radius:20px; margin-bottom:16px;
}
.prog-badge.msc { background:rgba(139,92,246,0.3); color:#c4b5fd; }
.prog-icon-wrap {
  width:56px; height:56px; background:rgba(255,255,255,0.12);
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:22px; color:var(--blue-200); margin:0 auto 16px;
}
.prog-card h5  { color:white; font-size:20px; font-weight:700; margin-bottom:10px; }
.prog-card p   { color:rgba(255,255,255,0.6); font-size:13px; line-height:1.7; margin-bottom:14px; text-align:center; }
.prog-peos     { display:flex; flex-wrap:wrap; gap:6px; justify-content:center; }
.prog-peo-tag  { font-size:13px; padding:5px 14px; border-radius:20px; background:rgba(255,255,255,0.1); color:rgba(255,255,255,0.85); font-weight:500; }

/* ═══════════════════════ SOCIETIES ═══════════════════════ */
.societies-section { background:white; }
.society-card {
  background:var(--gray-50); border:1px solid var(--gray-200);
  border-radius:var(--radius-lg); padding:32px 28px;
  transition:all 0.3s; height:100%;
}
.society-card:hover       { transform:translateY(-4px); box-shadow:var(--shadow-lg); border-color:var(--blue-200); }
.society-card-featured    { background:var(--blue-600); border-color:var(--blue-600); }
.society-card-featured h4,
.society-card-featured p,
.society-card-featured .society-tag-line { color:white!important; }
.society-card-featured .society-link     { color:rgba(255,255,255,0.8); }
.society-icon-wrap {
  width:56px; height:56px; border-radius:var(--radius);
  display:flex; align-items:center; justify-content:center;
  font-size:22px; color:white; margin-bottom:16px;
}
.titan-bg { background:linear-gradient(135deg,#10b981,#059669); }
.dev-bg   { background:linear-gradient(135deg,#3b82f6,#2563eb); }
.dom-bg   { background:linear-gradient(135deg,#8b5cf6,#7c3aed); }
.society-card-featured .dev-bg { background:rgba(255,255,255,0.2); }
.society-tag-line { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:var(--blue-500); margin-bottom:8px; }
.society-card h4  { font-weight:700; margin-bottom:12px; }
.society-card p   { font-size:14px; color:var(--gray-600); line-height:1.8; margin-bottom:16px; }
.society-link     { font-size:13px; font-weight:600; color:var(--blue-600); text-decoration:none; }
.society-link:hover { text-decoration:underline; }

/* ═══════════════════════ EVENTS PREVIEW ═══════════════════════ */
.events-preview-section { background:var(--gray-50); }
.event-preview-card { background:white; border:1px solid var(--gray-200); border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-sm); transition:all 0.3s; height:100%; }
.event-preview-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.ep-poster { position:relative; height:180px; overflow:hidden; }
.ep-poster img { width:100%; height:100%; object-fit:cover; transition:transform 0.4s; }
.event-preview-card:hover .ep-poster img { transform:scale(1.05); }
.ep-poster-blank { height:180px; background:linear-gradient(135deg,var(--blue-600),var(--blue-800)); display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,0.4); }
.ep-overlay { position:absolute; inset:0; background:rgba(0,0,0,0.5); display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity 0.3s; }
.event-preview-card:hover .ep-overlay { opacity:1; }
.btn-white-custom { background:white; color:var(--blue-700); font-weight:600; border:none; border-radius:20px; padding:8px 20px; }
.ep-body    { padding:20px; }
.ep-badge   { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.08em; color:var(--blue-500); margin-bottom:8px; }
.ep-title   { font-size:17px; font-weight:700; color:var(--gray-900); margin-bottom:8px; }
.ep-desc    { font-size:13px; color:var(--gray-500); line-height:1.7; margin-bottom:14px; }
.ep-cta     { font-size:13px; font-weight:700; color:var(--blue-600); text-decoration:none; }
.ep-cta:hover { text-decoration:underline; }

/* ─── Nav Dropdown ─────────────────────────────────────────── */
.nav-dropdown {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 6px;
  min-width: 200px;
}
.nav-dropdown .dropdown-item {
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  transition: background 0.15s;
}
.nav-dropdown .dropdown-item:hover {
  background: #eff6ff;
  color: #1d4ed8;
}
.nav-dropdown .dropdown-item i { width: 16px; }

/* ─── Societies Heading Fix ────────────────────────────────── */
.societies-heading-wrap {
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.societies-heading-wrap .section-label {
  display: block;
  margin-bottom: 10px;
  line-height: 1.4;
  letter-spacing: 0.12em;
}
.societies-heading-wrap .section-title {
  margin-bottom: 16px;
  line-height: 1.2;
  font-size: 2.2rem;
}
.societies-subtitle {
  line-height: 1.85;
  font-size: 15px;
  color: #64748b;
  margin: 0 auto;
  max-width: 500px;
  display: block;
}

/* ─── Society card accent — darker palette ─────────────────── */
.soc2-strip { height: 5px; }
.soc2-card  { border-color: #dde3ea; }
/* ── Outline primary custom button ─────────────── */
.btn-outline-primary-custom {
  display: inline-flex; align-items: center;
  padding: 12px 28px; border-radius: var(--radius-lg);
  font-size: 15px; font-weight: 600;
  border: 2px solid var(--blue-600); color: var(--blue-600);
  background: transparent; text-decoration: none;
  transition: all 0.2s ease;
}
.btn-outline-primary-custom:hover {
  background: var(--blue-600); color: white;
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.25);
}

/* ── Main event sponsors section ───────────────── */
.main-sponsors-section {
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 18px; padding: 24px 28px; margin-bottom: 8px;
}
.main-sponsors-label {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: #64748b; margin-bottom: 18px;
  display: flex; align-items: center; gap: 6px;
}
.main-sponsors-list {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
}
.main-sponsor-logo {
  height: 40px; width: auto; object-fit: contain;
}