/* Chanakya Judicial Academy - Custom Styles */

:root {
  --navy: #1a3a5c;
  --navy-dark: #0f1f35;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --gold-dark: #a07830;
  --light-bg: #f5f7fa;
  --text-dark: #1e293b;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Nav link underline animation */
.nav-link {
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hero gradient overlay */
.hero-overlay {
  background: linear-gradient(135deg, rgba(15,31,53,0.92) 0%, rgba(26,58,92,0.80) 60%, rgba(201,168,76,0.20) 100%);
}

/* Gold divider */
.gold-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
}

/* Section title */
.section-title {
  font-family: 'Georgia', serif;
  color: var(--navy-dark);
}

/* Card hover effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(26,58,92,0.15);
}

/* Gold button */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(201,168,76,0.35);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  box-shadow: 0 6px 25px rgba(201,168,76,0.5);
  transform: translateY(-2px);
}

/* Navy button */
.btn-navy {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-navy:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
}

/* Stat counter cards */
.stat-card {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  border-top: 3px solid var(--gold);
}

/* Course card */
.course-card {
  border-top: 4px solid var(--gold);
}

/* Testimonial card */
.testimonial-card {
  border-left: 4px solid var(--gold);
}

/* Gallery image hover */
.gallery-item {
  overflow: hidden;
}
.gallery-item img {
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-overlay {
  background: linear-gradient(to top, rgba(15,31,53,0.85), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Timeline */
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--navy));
}

/* Mobile menu transition */
#mobile-menu {
  transition: max-height 0.35s ease, opacity 0.35s ease;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}
#mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 9998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(26,58,92,0.4);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--gold);
}

/* Breadcrumb */
.breadcrumb-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  border-bottom: 3px solid var(--gold);
}

/* Form focus ring */
.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

/* Media card */
.media-card {
  border-top: 3px solid var(--gold);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(26,58,92,0.12);
}

/* Fade in animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Pulse ring for badge */
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}
.pulse-ring::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  animation: pulseRing 2s infinite;
}

/* Table striped */
.table-striped tr:nth-child(even) {
  background: rgba(26,58,92,0.04);
}

/* Tag badge */
.tag-badge {
  background: rgba(201,168,76,0.12);
  color: var(--gold-dark);
  border: 1px solid rgba(201,168,76,0.3);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 10px;
  border-radius: 9999px;
}

/* Accordion */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion-content.open {
  max-height: 600px;
}
