/* ============================================
   IGNITE Bible College & Research Center
   Master Stylesheet
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400&family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --clr-primary: #6B0F1A;
  --clr-primary-dark: #4a0a12;
  --clr-primary-light: #8c1f2e;
  --clr-secondary: #D4A017;
  --clr-secondary-light: #e8be4a;
  --clr-accent: #F7931E;
  --clr-bg: #FFFFFF;
  --clr-bg-alt: #FDF8F0;
  --clr-bg-dark: #1a0a0d;
  --clr-text: #222222;
  --clr-text-light: #555555;
  --clr-text-muted: #888888;
  --clr-white: #FFFFFF;
  --clr-border: #e8e0d6;

  /* Gradients */
  --grad-gold-burgundy: linear-gradient(135deg, #D4A017 0%, #6B0F1A 100%);
  --grad-burgundy-dark: linear-gradient(135deg, #6B0F1A 0%, #4a0a12 100%);
  --grad-hero-overlay: linear-gradient(180deg, rgba(26,10,13,0.7) 0%, rgba(107,15,26,0.6) 100%);
  --grad-gold-shine: linear-gradient(135deg, #D4A017 0%, #F7931E 50%, #D4A017 100%);

  /* Fonts */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', 'Segoe UI', sans-serif;
  --font-button: 'Montserrat', 'Arial', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;

  /* Borders & Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --shadow-sm: 0 2px 8px rgba(107,15,26,0.08);
  --shadow-md: 0 4px 20px rgba(107,15,26,0.12);
  --shadow-lg: 0 8px 40px rgba(107,15,26,0.16);
  --shadow-xl: 0 16px 60px rgba(107,15,26,0.2);
  --shadow-gold: 0 4px 20px rgba(212,160,23,0.3);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 80px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--clr-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }

p {
  margin-bottom: 1rem;
  color: var(--clr-text-light);
}

.text-gold { color: var(--clr-secondary); }
.text-burgundy { color: var(--clr-primary); }
.text-accent { color: var(--clr-accent); }
.text-white { color: var(--clr-white); }
.text-center { text-align: center; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --- Section --- */
.section {
  padding: var(--space-xxl) 0;
}

.section--alt {
  background-color: var(--clr-bg-alt);
}

.section--dark {
  background: var(--grad-burgundy-dark);
  color: var(--clr-white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--clr-secondary);
}

.section--dark p {
  color: rgba(255,255,255,0.85);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  margin-bottom: var(--space-xs);
}

.section-header .subtitle {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: var(--grad-gold-burgundy);
  margin: var(--space-sm) auto var(--space-md);
  border-radius: 2px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-base);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow-md);
  border-bottom: 2px solid var(--clr-secondary);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-logo img {
  height: 55px;
  width: auto;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-text .college-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-primary);
  line-height: 1.2;
}

.nav-logo-text .tagline {
  font-size: 0.65rem;
  color: var(--clr-secondary);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-family: var(--font-button);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text);
  position: relative;
  padding: 0.3rem 0;
  letter-spacing: 0.5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-gold-burgundy);
  transition: width var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--clr-primary);
}

.nav-links a.active {
  color: var(--clr-primary);
  font-weight: 600;
}

.nav-cta {
  background: var(--grad-gold-burgundy);
  color: var(--clr-white) !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: var(--radius-xl);
  font-weight: 600 !important;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  color: var(--clr-white) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--clr-primary);
  border-radius: 3px;
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--grad-hero-overlay);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--clr-white);
  max-width: 900px;
  padding: var(--space-lg);
}

.hero-content .hero-logo {
  width: 120px;
  height: auto;
  margin: 0 auto var(--space-md);
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
  animation: floatUp 3s ease-in-out infinite;
}

.hero-content h1 {
  color: var(--clr-white);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin-bottom: var(--space-sm);
  text-shadow: 2px 2px 20px rgba(0,0,0,0.3);
}

.hero-content h1 span {
  color: var(--clr-secondary);
}

.hero-content .hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--clr-secondary-light);
  font-family: var(--font-heading);
  font-style: italic;
  margin-bottom: var(--space-xs);
}

.hero-content .hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-lg);
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* Page Hero (smaller for inner pages) */
.hero--page {
  min-height: 50vh;
}

.hero--page h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-top: var(--space-sm);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.breadcrumb a {
  color: var(--clr-secondary-light);
}

.breadcrumb a:hover {
  color: var(--clr-secondary);
}

.breadcrumb span {
  color: rgba(255,255,255,0.5);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-button);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  border: none;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--grad-gold-burgundy);
  color: var(--clr-white);
  box-shadow: 0 4px 15px rgba(212,160,23,0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212,160,23,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--clr-white);
  border: 2px solid var(--clr-secondary);
}

.btn-secondary:hover {
  background: var(--clr-secondary);
  color: var(--clr-primary);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--clr-primary);
  border: 2px solid var(--clr-primary);
}

.btn-outline:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--grad-burgundy-dark);
  padding: var(--space-lg) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  text-align: center;
}

.stat-item {
  padding: var(--space-sm);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--clr-secondary);
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--clr-border);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-secondary);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: var(--space-md);
}

.card-body h3 {
  margin-bottom: 0.5rem;
}

.card-body p {
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

/* Feature Card */
.feature-card {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--clr-border);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-gold-burgundy);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

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

.feature-icon {
  width: 70px;
  height: 70px;
  background: var(--clr-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  font-size: 1.8rem;
  color: var(--clr-primary);
  transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
  background: var(--clr-primary);
  color: var(--clr-secondary);
  transform: scale(1.1);
}

.feature-card h4 {
  margin-bottom: 0.5rem;
}

/* Glass Card */
.glass-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.15);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.glass-card:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* Course Card */
.course-card {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--clr-border);
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.course-card-header {
  background: var(--grad-burgundy-dark);
  color: var(--clr-white);
  padding: var(--space-md);
  text-align: center;
}

.course-card-header h3 {
  color: var(--clr-secondary);
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

.course-card-header p {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  margin: 0;
}

.course-card-body {
  padding: var(--space-md);
}

.course-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--clr-border);
}

.course-detail:last-child {
  border-bottom: none;
}

.course-detail-icon {
  color: var(--clr-secondary);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.course-detail strong {
  color: var(--clr-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.course-detail span {
  display: block;
  color: var(--clr-text-light);
  font-size: 0.95rem;
}

.course-card-footer {
  padding: 0 var(--space-md) var(--space-md);
  text-align: center;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

/* ============================================
   WHY CHOOSE / FEATURES GRID
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}

.why-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  transition: all var(--transition-base);
}

.why-item:hover {
  border-color: var(--clr-secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.why-item-icon {
  width: 50px;
  height: 50px;
  background: var(--grad-gold-burgundy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
}

.why-item h4 {
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}

.why-item p {
  font-size: 0.9rem;
  margin: 0;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: var(--grad-gold-burgundy);
  padding: var(--space-xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '✝';
  position: absolute;
  font-size: 20rem;
  color: rgba(255,255,255,0.03);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cta-banner h2 {
  color: var(--clr-white);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: var(--space-xs);
}

.cta-banner p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
}

.cta-banner .btn-secondary {
  border-color: var(--clr-white);
  color: var(--clr-white);
}

.cta-banner .btn-secondary:hover {
  background: var(--clr-white);
  color: var(--clr-primary);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-slider {
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-track {
  display: flex;
  transition: transform var(--transition-slow);
}

.testimonial-card {
  min-width: 100%;
  padding: var(--space-lg);
  text-align: center;
}

.testimonial-card .quote {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--clr-text);
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

.testimonial-card .quote::before {
  content: '"';
  font-size: 4rem;
  color: var(--clr-secondary);
  line-height: 0;
  display: block;
  margin-bottom: -0.5rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--clr-primary);
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-sm);
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--clr-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.testimonial-dot.active {
  background: var(--clr-secondary);
  transform: scale(1.2);
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-md) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: var(--grad-gold-burgundy);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-lg);
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
  text-align: right;
}

.timeline-content {
  width: 45%;
  padding: var(--space-md);
  background: var(--clr-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: var(--clr-secondary);
  border-radius: 50%;
  border: 3px solid var(--clr-white);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--clr-secondary);
}

/* ============================================
   ACCORDION / FAQ
   ============================================ */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  transition: all var(--transition-base);
}

.accordion-item:hover {
  border-color: var(--clr-secondary);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--clr-primary);
  transition: all var(--transition-fast);
  background: none;
  width: 100%;
  text-align: left;
}

.accordion-header:hover {
  background: var(--clr-bg-alt);
}

.accordion-icon {
  transition: transform var(--transition-base);
  color: var(--clr-secondary);
  font-size: 1.2rem;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.accordion-body-inner {
  padding: 0 var(--space-md) var(--space-md);
  color: var(--clr-text-light);
  line-height: 1.7;
}

/* ============================================
   TABS
   ============================================ */
.tabs {
  margin: var(--space-lg) 0;
}

.tab-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.tab-btn {
  font-family: var(--font-button);
  font-weight: 600;
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius-xl);
  cursor: pointer;
  background: var(--clr-bg-alt);
  color: var(--clr-text-light);
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.tab-btn:hover {
  border-color: var(--clr-secondary);
  color: var(--clr-primary);
}

.tab-btn.active {
  background: var(--grad-gold-burgundy);
  color: var(--clr-white);
  border-color: transparent;
}

.tab-panel {
  display: none;
  animation: fadeUp 0.5s ease;
}

.tab-panel.active {
  display: block;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-sm);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item::after {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 2rem;
  transition: transform var(--transition-base);
}

.gallery-item:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--clr-white);
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--clr-primary);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--clr-bg);
  color: var(--clr-text);
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--clr-secondary);
  box-shadow: 0 0 0 3px rgba(212,160,23,0.15);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-control.error {
  border-color: #e74c3c;
}

.error-message {
  font-size: 0.8rem;
  color: #e74c3c;
  margin-top: 0.3rem;
  display: none;
}

.form-control.error + .error-message {
  display: block;
}

/* Contact Cards */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.contact-card {
  text-align: center;
  padding: var(--space-lg);
  background: var(--clr-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  transition: all var(--transition-base);
}

.contact-card:hover {
  border-color: var(--clr-secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.contact-card-icon {
  width: 60px;
  height: 60px;
  background: var(--grad-gold-burgundy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  font-size: 1.5rem;
}

.contact-card h4 {
  margin-bottom: 0.5rem;
}

.contact-card p,
.contact-card a {
  font-size: 0.9rem;
  color: var(--clr-text-light);
}

.contact-card a:hover {
  color: var(--clr-primary);
}

/* Map */
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
  margin-top: var(--space-lg);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   STEPPER
   ============================================ */
.stepper {
  max-width: 700px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: var(--space-md);
  position: relative;
  padding-bottom: var(--space-lg);
}

.step:last-child {
  padding-bottom: 0;
}

.step::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 55px;
  width: 3px;
  height: calc(100% - 55px);
  background: var(--clr-border);
}

.step:last-child::before {
  display: none;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--grad-gold-burgundy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  z-index: 1;
}

.step-content h4 {
  margin-bottom: 0.3rem;
}

.step-content p {
  font-size: 0.95rem;
}

/* ============================================
   NEWS CARDS
   ============================================ */
.news-card {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--clr-border);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.news-card-img {
  height: 200px;
  background: var(--grad-gold-burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.news-card-body {
  padding: var(--space-md);
}

.news-date {
  font-size: 0.8rem;
  color: var(--clr-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-card-body h4 {
  margin: 0.4rem 0;
}

.news-card-body p {
  font-size: 0.9rem;
}

/* ============================================
   FACULTY CARD
   ============================================ */
.faculty-card {
  text-align: center;
  padding: var(--space-lg);
  background: var(--clr-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  transition: all var(--transition-base);
}

.faculty-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-secondary);
}

.faculty-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-sm);
  border: 3px solid var(--clr-secondary);
  background: var(--clr-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.faculty-card h4 {
  margin-bottom: 0.2rem;
}

.faculty-card .role {
  font-size: 0.85rem;
  color: var(--clr-secondary);
  font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--clr-bg-dark);
  color: rgba(255,255,255,0.8);
  padding: var(--space-xxl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-about .footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.footer-about .footer-logo img {
  height: 50px;
}

.footer-about .footer-logo span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-secondary);
}

.footer-about p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

.footer h4 {
  color: var(--clr-secondary);
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: 0.8rem;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--clr-secondary);
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--clr-secondary);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.footer-contact li span:first-child {
  color: var(--clr-secondary);
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: var(--space-sm);
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--clr-secondary);
  color: var(--clr-primary);
  border-color: var(--clr-secondary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--grad-gold-burgundy);
  color: var(--clr-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  z-index: 999;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Scroll Animation Classes */
.anim {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.anim.visible {
  opacity: 1;
}

.anim-up {
  transform: translateY(40px);
}

.anim-up.visible {
  transform: translateY(0);
}

.anim-left {
  transform: translateX(-40px);
}

.anim-left.visible {
  transform: translateX(0);
}

.anim-right {
  transform: translateX(40px);
}

.anim-right.visible {
  transform: translateX(0);
}

.anim-zoom {
  transform: scale(0.9);
}

.anim-zoom.visible {
  transform: scale(1);
}

.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.2s; }
.anim-delay-3 { transition-delay: 0.3s; }
.anim-delay-4 { transition-delay: 0.4s; }

/* ============================================
   APPLICATION FORM PREVIEW
   ============================================ */
.form-preview {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.form-preview img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--clr-border);
  margin-bottom: var(--space-md);
}

/* ============================================
   POSTER SECTION
   ============================================ */
.poster-section {
  text-align: center;
}

.poster-section img {
  max-width: 500px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
  .grid-2,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline::before {
    left: 30px;
  }
  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: row;
    text-align: left;
    padding-left: 60px;
  }
  .timeline-content {
    width: 100%;
  }
  .timeline-dot {
    left: 30px;
  }
}

/* Mobile Nav */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--clr-white);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-md);
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-base);
    z-index: 1000;
  }
  .nav-links.active {
    right: 0;
  }
  .nav-links a {
    font-size: 1.1rem;
  }
  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
  }
  .mobile-overlay.active {
    display: block;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-content h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
  }
  .hero--page {
    min-height: 40vh;
  }
  .section {
    padding: var(--space-xl) 0;
  }
  .nav-logo-text .college-name {
    font-size: 0.8rem;
  }
  .tab-nav {
    gap: 0.3rem;
  }
  .tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }
  .nav-logo img {
    height: 40px;
  }
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   APPLICATION FORM PAGE
   ============================================ */
.application-form-wrapper {
  max-width: 750px;
  margin: 0 auto;
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--clr-border);
  overflow: hidden;
}

.app-form-header {
  text-align: center;
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  border-bottom: 2px solid var(--clr-border);
  background: var(--clr-bg-alt);
}

.app-form-body {
  padding: var(--space-lg);
  max-width: 100%;
}

.app-form-footer {
  text-align: center;
  padding: var(--space-md) var(--space-lg);
  background: var(--clr-bg-alt);
  border-top: 2px solid var(--clr-border);
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  line-height: 1.8;
}

.required {
  color: #e74c3c;
  font-weight: 700;
}

/* Radio Buttons */
.radio-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 400 !important;
  color: var(--clr-text) !important;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.radio-label:hover {
  border-color: var(--clr-secondary);
  background: var(--clr-bg-alt);
}

.radio-label input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--clr-border);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.radio-label input[type="radio"]:checked {
  border-color: var(--clr-primary);
  background: var(--clr-primary);
}

.radio-label input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

.radio-label:has(input:checked) {
  border-color: var(--clr-primary);
  background: rgba(107,15,26,0.05);
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 400 !important;
}

.checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--clr-border);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: all var(--transition-fast);
}

.checkbox-label input[type="checkbox"]:checked {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Declaration Box */
.declaration-box {
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
}

/* Submission Success Modal */
.submission-success {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.success-modal {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: fadeUp 0.5s ease;
}

/* Social SVG Icons */
.social-link svg {
  fill: currentColor;
  transition: fill var(--transition-fast);
}

/* Application form responsive */
@media (max-width: 768px) {
  .application-form-wrapper {
    margin: 0 -0.5rem;
    border-radius: var(--radius-md);
  }
  .app-form-body {
    padding: var(--space-md);
  }
  .radio-group {
    gap: 0.5rem;
  }
  .radio-label {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .app-form-body div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}
