/* =========================================
   1. VARIABLES & RESET
   (Centralized colors & Animation speeds)
========================================= */

:root {
  /* Brand Colors */
  --primary: #38bdf8;         /* Sky 400 */
  --primary-hover: #0ea5e9;   /* Sky 500 */
  --accent-blue: #2563eb;
  --accent-red: #dc2626;
  --accent-green: #16a34a;
  --accent-purple: #9333ea;

  /* Backgrounds */
  --bg-body: #f9fafb;         /* Slate 50 */
  --bg-dark: #020617;         /* Slate 950 */
  --bg-card-dark: #0f172a;    /* Slate 900 */
  --bg-white: #ffffff;

  /* Text Colors */
  --text-main: #020617;
  --text-muted: #475569;      /* Slate 600 */
  --text-light: #f8fafc;      /* Slate 50 */
  --text-placeholder: #94a3b8;

  /* Borders & UI */
  --border-color: #334155;
  --border-light: #e2e8f0;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 25px 50px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --trans-fast: 0.15s ease;
  --trans-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--trans-smooth);
}

/* =========================================
   2. SHARED COMPONENTS
   (Buttons, Inputs, Cards - Consolidated)
========================================= */

/* --- Buttons --- */
.btn,
.auth-btn,
.profile-btn,
.hero-actions .btn-primary,
.btn-save {
  display: inline-block;
  width: 100%;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  background: var(--primary);
  color: var(--bg-dark);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  /* Smooth color and transform transition */
  transition: transform var(--trans-fast), 
              background-color var(--trans-fast), 
              box-shadow var(--trans-fast);
}

.hero-actions .btn-primary,
.btn-save {
  width: auto;
  border-radius: var(--radius-pill);
}

.btn:hover,
.auth-btn:hover,
.profile-btn:hover,
.hero-actions .btn-primary:hover,
.btn-save:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
}

.btn:active,
.auth-btn:active,
.profile-btn:active {
  transform: scale(0.98);
}

/* --- Forms & Inputs --- */
.auth-form input,
.auth-form select,
.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="file"],
.contact-form input,
.contact-form textarea,
.manage-table select {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-dark); 
  color: var(--text-light);
  font-family: inherit;
  /* Glow transition */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Light theme overrides for contact/manage forms */
.contact-form input,
.contact-form textarea,
.manage-table select {
  background: var(--bg-white);
  color: var(--text-main);
  border-color: var(--border-light);
}

.auth-form input:focus,
.profile-form input:focus,
.contact-form input:focus,
.manage-table select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.auth-form label,
.profile-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: #cbd5f5;
  font-weight: 500;
}

/* --- Cards --- */
.auth-card,
.profile-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-dark);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.05);
  /* Gentle lift on load or hover if you want */
  animation: slideUp 0.6s ease-out;
}

/* =========================================
   3. NAVBAR (Updated)
========================================= */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 5%;
  background: var(--bg-dark);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* --- Branding (Logo + Text) --- */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem; 
  text-decoration: none;
  color: inherit;
  transform: translateZ(0); 
}

.brand-logo img {
  height: 50px; 
  width: 50px;
  border-radius: 50%;
  object-fit: cover;
  
  /* Normal State: Faint Sky Blue (Not Gray) - Brighter than background */
  border: 2px solid rgba(56, 189, 248, 0.2);
  
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

/* HOVER EFFECT: Scale Up + Lift + Shadow + Blue Border */
.brand-logo:hover img {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 10px 20px rgba(56, 189, 248, 0.3); 
  border-color: var(--primary);
}

.brand-text {
  font-size: 1.4rem;
  font-weight: 800; 
  letter-spacing: -0.02em;
  color: var(--text-light);
  text-transform: uppercase;
  white-space: nowrap; 
  transition: color 0.3s ease;
}

/* --- Navigation Links --- */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem; 
  align-items: center; 
  height: 100%;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: flex;
  align-items: center; 
  height: 100%; /* Ensures the list item fills the navbar height */
}

.nav-links a {
  font-size: 0.9rem; 
  font-weight: 500;
  color: #cbd5f5; 
  transition: color 0.3s ease;
  position: relative;
  display: flex; 
  align-items: center;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Underline Animation (Excluded for Profile) */
.nav-links a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
  position: absolute;
  bottom: -4px;
  left: 0;
}

.nav-links a:not(.profile-link):hover::after {
  width: 100%;
}

/* --- Navbar Profile Image --- */

.profile-link {
  display: flex !important; 
  align-items: center;      
  justify-content: center;
  height: 50px; /* Match logo height to ensure vertical alignment */
  padding: 0;
  margin-left: 0.5rem;
}

.navbar .profile-img {
  width: 40px; 
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(56, 189, 248, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: block; 
  margin: 0; /* Ensures no browser default margins apply */
}

.navbar .profile-img:hover {
  transform: scale(1.1);
  border-color: var(--primary);
}

/* =========================================
   4. HERO SECTION
========================================= */

.hero-strong {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 0 10%;
  /* Added a dark overlay to ensure text readability against the image */
  background: linear-gradient(rgba(2, 6, 23, 0.6), rgba(2, 6, 23, 0.6)),
              url("/assets/images/hero.jpg") center / cover no-repeat;
  color: var(--text-light);
  position: relative;
}

.hero-inner {
  max-width: 720px;
  /* Optional: Adds the slide-up animation used elsewhere */
  animation: slideUp 0.8s ease-out;
}

/* BIG TITLE */
.hero-title {
  font-size: clamp(3rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* TAGLINE */
.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #cbd5f5; /* Or use var(--text-placeholder) if you want it darker */
  margin-bottom: 2.2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =========================================
   5. SECTIONS & DOMAINS
========================================= */

.section {
  text-align: center;
  padding: 4rem 5%;
}

.section-light {
  background: var(--bg-body);
}

.section h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
}

.section-subtext {
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.domains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 1rem 5%;
}

.domain-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border-top: 5px solid var(--bg-dark);
  box-shadow: var(--shadow-sm);
  text-align: left;
  /* Card Lift Animation */
  transition: transform var(--trans-smooth), 
              box-shadow var(--trans-smooth),
              border-top-color var(--trans-smooth);
}

.domain-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
}

.domain-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.domain-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--primary);
}

/* =========================================
   6. AUTH & PROFILE PAGES
========================================= */

.auth-container,
.profile-container,
.profile-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-card-dark), var(--bg-dark));
  padding: 2rem;
}

.auth-title, .profile-card h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-weight: 700;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-placeholder);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Specific File Input Styling */
.input-file-label-register {
  display: inline-block;
  padding: 0.6rem 1rem;
  background-color: var(--accent-blue);
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.1s;
  text-align: center;
}
.input-file-label-register:hover {
  background-color: #1d4ed8;
  transform: scale(1.02);
}

.auth-note,
.auth-link {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-placeholder);
}

.auth-link a {
  color: var(--primary);
  font-weight: 500;
}
.auth-link a:hover {
  text-decoration: underline;
}

/* Profile View Specifics */
.profile-section {
  flex-direction: column;
  padding-top: 6rem;
}

.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--primary);
  background: var(--bg-dark);
  /* Image Hover Effect */
  transition: transform var(--trans-bounce), border-color 0.3s;
}

.profile-img:hover {
  transform: scale(1.1);
  border-color: var(--primary-hover);
}

.profile-card p {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: #cbd5f5;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 0.5rem;
}
.profile-card p:last-of-type {
  border-bottom: none;
}

.profile-card p strong {
  color: var(--text-light);
  display: inline-block;
  min-width: 80px;
}

.profile-msg {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 1rem;
  padding: 0.5rem;
  border-radius: 6px;
}
.profile-msg.success { background: rgba(34, 197, 94, 0.1); color: #4ade80; }
.profile-msg.error { background: rgba(239, 68, 68, 0.1); color: #f87171; }

/* =========================================
   7. CONTACT PAGE
========================================= */

.contact-page {
  min-height: 100vh;
  padding: 6rem 10% 4rem;
  background: linear-gradient(rgba(255,255,255,0.95), rgba(255,255,255,0.95)),
              url("/assets/images/contact-bg.jpg") center / cover;
}

.contact-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  animation: slideUp 0.6s ease-out;
}

.contact-left {
  padding: 3rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)),
              url("/assets/images/WhatsApp Image 2025-12-21 at 18.46.04.jpeg") center / cover;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.contact-left:hover {
  transform: translateY(-5px);
}

.contact-left h1 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.contact-form {
  background: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-success {
  color: var(--accent-green);
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

/* =========================================
   8. TEAM SECTION & ROLES
========================================= */

/* Main Page Header (Our Team) */
.team-heading-section {
  text-align: center;
  padding: 3rem 10% 1rem; /* Top padding ensures it clears the navbar nicely */
  background: var(--bg-body);
}

.team-heading-section h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--bg-dark);
  margin-bottom: 0.5rem;
}

.team-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Individual Section Titles (Faculty, Core, etc.) */
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-main);
}

/* Section Container */
.team-section {
  /* MODERATE PADDING: 2.5rem gives it breathing room without being huge */
  padding: 2.5rem 10%;
  background: var(--bg-body);
}

.team-section:nth-child(even) {
  background: white;
}

.team-grid {
  display: grid;
  /* CHANGED: Replaced '1fr' with '320px'. 
     This allows cards to be between 250px and 320px wide, but no larger. */
  grid-template-columns: repeat(auto-fit, minmax(250px, 320px));
  gap: 2rem;
  /* This ensures the entire cluster of cards stays in the center */
  justify-content: center;
}

/* --- Card Styling --- */
.team-card {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 1px solid rgba(0,0,0,0.04);
  /* Smooth transitions for the "floating" feel */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-6px); /* A subtle lift */
  box-shadow: var(--shadow-hover);
}

.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid var(--border-light);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.team-card:hover img {
  transform: scale(1.08);
  border-color: var(--primary);
}

.team-card h3 {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  font-weight: 700;
  color: var(--text-muted);
}

.team-card p {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.team-card small {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--primary);
}

/* Role Specific Colors (Preserved & Enhanced) */
.team-card.faculty { border-top: 4px solid var(--accent-blue); background: linear-gradient(to bottom, #eff6ff, white); }
.team-card.faculty h3 { color: var(--accent-blue); }
.team-card.faculty:hover img { border-color: var(--accent-blue); }

.team-card.core { border-top: 4px solid var(--accent-red); background: linear-gradient(to bottom, #fef2f2, white); }
.team-card.core h3 { color: var(--accent-red); }
.team-card.core:hover img { border-color: var(--accent-red); }

.team-card.senior { border-top: 4px solid var(--accent-green); background: linear-gradient(to bottom, #f0fdf4, white); }
.team-card.senior h3 { color: var(--accent-green); }
.team-card.senior:hover img { border-color: var(--accent-green); }

.team-card.member { border-top: 4px solid var(--text-muted); background: linear-gradient(to bottom, #f8fafc, white); }
.team-card.member h3 { color: var(--text-muted); }

/* =========================================
   9. ABOUT PAGE
========================================= */

.about-hero {
  text-align: center;
  padding: 6rem 10% 4rem;
  background: linear-gradient(135deg, var(--bg-dark), #0f172a);
  color: var(--text-light);
}

.about-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  animation: slideUp 0.8s ease-out;
}

.about-intro {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: #cbd5f5;
  line-height: 1.8;
  animation: slideUp 0.8s ease-out 0.2s backwards; /* slight delay */
}

.about-block {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 5%;
}

.about-block h2 {
  font-size: 2rem;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
}

.about-block h2::after {
  content: "";
  display: block;
  width: 50%;
  height: 4px;
  background: var(--primary);
  margin: 0.5rem auto 0;
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}

.about-block:hover h2::after {
  width: 80%;
}

/* =========================================
   10. ADMIN & APPROVAL TABLES
========================================= */

.approval-title,
.manage-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 3rem 0;
  color: var(--text-dark);
}

.approval-table-wrapper,
.manage-table-wrapper {
  padding: 0 5%;
  overflow-x: auto;
  margin-bottom: 4rem;
  animation: fadeIn 0.8s ease-out;
}

.approval-table,
.manage-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.approval-table thead,
.manage-table thead {
  background: var(--bg-dark);
  color: var(--text-light);
}

.approval-table th, .manage-table th,
.approval-table td, .manage-table td {
  padding: 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.approval-table th, .manage-table th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Role Badges within Tables */
.role-badge {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.role-faculty { background: #e0f2fe; color: var(--accent-blue); }
.role-admin { background: #fee2e2; color: var(--accent-red); }
.role-core, .role-senior { background: #dcfce7; color: var(--accent-green); }
.role-member { background: #f3e8ff; color: var(--accent-purple); }

/* Action Buttons */
.action-cell {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-approve,
.btn-reject {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-approve { background: #dcfce7; color: #166534; }
.btn-approve:hover { background: #22c55e; color: white; transform: scale(1.05); }

.btn-reject { background: #fee2e2; color: #991b1b; }
.btn-reject:hover { background: #ef4444; color: white; transform: scale(1.05); }

.update-success {
  max-width: 600px;
  margin: 0 auto 2rem;
  padding: 1rem;
  background: #dcfce7;
  color: #166534;
  text-align: center;
  border-radius: var(--radius-md);
  border: 1px solid #bbf7d0;
}

/* =========================================
   11. FOOTER (UPDATED)
========================================= */

.site-footer {
  background: var(--bg-dark); 
  color: #cbd5f5;       /* Light Blue-Grey text */
  padding-top: 4rem;
  margin-top: auto;     /* Pushes footer to bottom if page content is short */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5% 3rem;
  
  /* Flexbox Layout */
  display: flex;
  flex-wrap: wrap;    /* <--- THIS STOPS THE OVERLAPPING */
  justify-content: space-between;
  gap: 3rem;
}

.footer-col {
  flex: 1;
  min-width: 250px;   /* Ensures columns don't get too skinny */
}

/* Brand Section Specifics */
.footer-brand {
  flex: 1.5; /* Gives the description a bit more width than links */
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-brand h3 {
  color: var(--text-light);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-placeholder);
  max-width: 380px;
}

/* Headings for Links/Contact */
.footer-col h4 {
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Links List */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.footer-col ul li a {
  color: #cbd5f5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--primary); /* Sky Blue highlight */
  text-decoration: underline;
}

/* Bottom Copyright Bar */
.footer-bottom {
  background: var(--bg-card-dark); /* Slightly lighter dark background */
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Footer Responsive Overrides */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center; /* Center everything */
    text-align: center;
    gap: 2.5rem;
  }

  .footer-brand-row {
    justify-content: center;
  }

  .footer-brand p {
    margin: 0 auto; /* Center the paragraph text */
  }

  .footer-col {
    width: 100%;
    min-width: auto;
  }
}

.events-menu {
  display: flex;
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.events-menu a {
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  background: #e5e7eb;
  color: #111827;
  text-decoration: none;
  font-weight: 600;
}

.events-menu a.active {
  background: #2563eb;
  color: #fff;
}

.event-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.event-badge.ongoing {
  background: #22c55e;
  color: #fff;
}

.event-badge.past {
  background: #9ca3af;
  color: #fff;
}

.no-events {
  text-align: center;
  color: #6b7280;
  font-size: 1.1rem;
}

.event-detail {
  max-width: 900px;
  margin: auto;
}

.event-poster {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 1.5rem;
}

.event-body h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.event-date,
.event-time,
.event-venue {
  margin: 0.4rem 0;
  color: #374151;
}

.event-description {
  margin-top: 1.5rem;
  line-height: 1.7;
  color: #111827;
}

.event-badge {
  display: inline-block;
  margin: 0.6rem 0;
  padding: 0.3rem 0.8rem;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 700;
}

.event-badge.upcoming {
  background: #2563eb;
  color: #fff;
}

.event-badge.ongoing {
  background: #16a34a;
  color: #fff;
}

.event-badge.past {
  background: #9ca3af;
  color: #fff;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.event-form-section {
  max-width: 700px;
  margin: auto;
}

.event-form label {
  display: block;
  margin-top: 1.2rem;
  font-weight: 600;
}

.event-form input,
.event-form textarea {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.4rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row > div {
  flex: 1;
}

.form-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

.btn-draft {
  background: #6b7280;
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
}

.btn-publish {
  background: #2563eb;
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
}

/* =========================================
   12. ANIMATIONS & RESPONSIVE (GLOBAL)
========================================= */

/* Fade In for general content */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Slide Up for Cards/Hero */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Page Load Animation */
@keyframes pageFadeIn {
  from { opacity: 0; transform: scale(0.99); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .contact-left {
    min-height: 250px;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 1rem;
  }
  .nav-links {
    margin-top: 1rem;
    gap: 1.2rem;
    font-size: 0.9rem;
  }

  .hero-strong {
    text-align: center;
    padding: 0 5%;
  }
  .hero-inner {
    margin: 0 auto;
  }
  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .hero-actions .btn-primary {
    width: 100%;
  }
  
  /* Note: Footer specific responsive styles are handled in Section 11 */

  .action-cell {
    flex-direction: column;
  }
}

/* =========================================
   13. SUCCESS / CONFIRMATION PAGE (Dark Mode)
========================================= */

.success-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  /* Match the dark body background */
  background: var(--bg-dark); 
  width: 100%; 
}

.success-card {
  /* Dark Card Background */
  background: var(--bg-card-dark);
  padding: 3rem;
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 500px;
  width: 90%;
  /* Subtle border and shadow for depth */
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-lg);
  /* Slide Up Animation */
  animation: slideUp 0.6s ease-out;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  /* Green Glow */
  background: rgba(22, 163, 74, 0.2); 
  color: var(--accent-green);
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent-green);
}

.success-card h1 {
  color: var(--text-light);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.success-text {
  font-size: 1.1rem;
  margin-top: 0.8rem;
  color: #cbd5f5; /* Light blue-grey */
  font-weight: 500;
}

.info-text {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.info-text strong {
  color: var(--primary); /* Sky blue highlight */
}

/* Button Container */
.success-actions {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem; /* Adds space between buttons */
  flex-wrap: wrap; 
}

/* Scoped Buttons */
.success-actions .btn-primary {
  background: var(--primary);
  color: var(--bg-dark);
  padding: 0.8rem 2rem;
  border-radius: var(--radius-pill); /* Rounded buttons looks better here */
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.success-actions .btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
}

.success-actions .btn-secondary {
  background: transparent;
  color: var(--text-light);
  padding: 0.8rem 2rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 1px solid var(--border-color);
  font-weight: 500;
  transition: all 0.2s ease;
}

.success-actions .btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(56, 189, 248, 0.1);
}

/* =========================================
   14. GALLERY UPLOADS
========================================= */

.gallery-grid {
  display: grid;
  /* Uses auto-fill for responsive thumbnails */
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); 
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-item {
  display: block; /* CRITICAL: Allows the link to wrap the image */
  position: relative;
  transition: transform var(--trans-fast);
  text-decoration: none; /* Removes underline from link */
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-4px);
  z-index: 10;
}

.gallery-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.gallery-item:hover img {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--accent-red); /* Matches your site's red (#dc2626) */
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  border: 2px solid white; /* Adds a small border to pop against the image */
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background 0.2s ease;
}

.delete-btn:hover {
  background: #b91c1c; /* Darker red on hover */
  transform: scale(1.1);
}

.sortable-ghost { opacity: 0.5; }

/* =========================================
   15. SPLIT CONTACT PAGE LAYOUT (Updated)
========================================= */

.contact-split-layout {
  display: flex;
  min-height: calc(100vh - 70px); 
  width: 100%;
  background: var(--bg-body);
}

/* --- Left Side (Visuals) --- */
.contact-left-panel {
  flex: 2; 
  /* UPDATED IMAGE PATH from your previous code */
  background: linear-gradient(rgba(2, 6, 23, 0.85), rgba(2, 6, 23, 0.85)),
              url("/assets/images/WhatsApp Image 2025-12-21 at 18.46.04.jpeg") center / cover no-repeat;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 6rem;
}

.display-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.display-subtitle {
  font-size: 1.1rem;
  color: #cbd5f5;
  max-width: 500px;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.contact-info-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* UPDATED: Removed icon styling, simple text block */
.info-item {
  display: flex;
  flex-direction: column; /* Stack Title and Text vertically */
  gap: 0.2rem;
}

.info-item h3 {
  font-size: 1.25rem; /* Slightly larger title */
  margin: 0;
  color: var(--primary); /* Sky blue text for the label instead of an icon */
  font-weight: 700;
}

.info-item p {
  color: #e2e8f0;
  font-size: 1.05rem;
  margin: 0;
}

/* --- Right Side (Form) --- */
/* (Keep the rest of the Right Side CSS the same as before) */
.contact-right-panel {
  flex: 1;
  background: white;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: -5px 0 20px rgba(0,0,0,0.05); 
}

.form-header {
  margin-bottom: 2rem;
}

.form-header h2 {
  font-size: 2rem;
  color: var(--text-dark);
  font-weight: 700;
}

.form-header p {
  color: var(--text-muted);
}

/* Form Styling */
.modern-form .input-group {
  margin-bottom: 1.5rem;
}

.modern-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.modern-form input,
.modern-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-body);
  color: var(--text-main);
  transition: all 0.2s ease;
  font-family: inherit;
}

.modern-form input:focus,
.modern-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
  background: white;
  outline: none;
}

.modern-form button {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  margin-top: 1rem;
}

.contact-success-msg {
  background: #dcfce7;
  color: #166534;
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .contact-split-layout {
    flex-direction: column;
  }
  
  .contact-left-panel {
    padding: 3rem 2rem;
    flex: none; /* Auto height based on content */
  }

  .contact-right-panel {
    padding: 3rem 2rem;
    flex: none;
  }
}




/* --- Add to end of style.css --- */
.menu-toggle {
    display: none; /* Hidden on Desktop */
}