/* ======================================================
   KiteFlyPro – Global Stylesheet
   ====================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ─── CSS Variables ─────────────────────────────────── */
:root {
  --primary: #0B2F9E;
  --primary-light: #1B4A9E;
  --primary-dark: #071D6B;
  --secondary: #2E6BBE;
  --accent: #F9A826;
  --accent-hover: #FFB83B;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --dark: #1E293B;
  --light: #F8FAFC;
  --gray: #64748B;
  --gray-light: #E2E8F0;
  --white: #FFFFFF;
  --hero-gradient: linear-gradient(145deg, #1E4B9E 0%, #2E6BBE 100%);
  --nav-gradient: linear-gradient(135deg, #0B2F9E 0%, #1B4A9E 100%);
  --footer-gradient: linear-gradient(135deg, #0A1A3A 0%, #0B2F9E 100%);
  --card-shadow: 0 8px 32px rgba(11, 47, 158, 0.12);
  --card-hover-shadow: 0 20px 60px rgba(11, 47, 158, 0.22);
  --radius: 20px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Poppins', sans-serif;
}

/* ─── Reset & Base ───────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

/* ─── Typography ─────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.75rem);
}

h4 {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

p {
  margin-bottom: 1rem;
  color: var(--gray);
}

/* ─── Navigation ─────────────────────────────────────── */
.navbar {
  background: var(--nav-gradient) !important;
  padding: 0.75rem 0;
  box-shadow: 0 4px 20px rgba(11, 47, 158, 0.4);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white) !important;
}

.navbar-brand .brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent) 0%, #FF8C00 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(249, 168, 38, 0.4);
  animation: floatKite 3s ease-in-out infinite;
}

.brand-text .brand-kite {
  font-weight: 800;
  color: var(--white);
}

.brand-text .brand-lovers {
  font-weight: 300;
  color: var(--accent);
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.45rem 0.75rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.15);
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.navbar-toggler {
  border: none;
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px;
  padding: 6px 10px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  filter: brightness(10);
}

/* Mobile nav backdrop */
.navbar-collapse.show {
  background: rgba(11, 47, 158, 0.97);
  border-radius: 0 0 16px 16px;
  padding: 1rem;
}

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  font-family: var(--font);
  font-weight: 600;
  border-radius: 50px;
  padding: 0.65rem 1.75rem;
  transition: var(--transition);
  border: none;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #FF8C00 100%);
  color: var(--white) !important;
  box-shadow: 0 4px 20px rgba(249, 168, 38, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #FFA500 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(249, 168, 38, 0.5);
  color: var(--white) !important;
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.7) !important;
  color: var(--white) !important;
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: var(--white) !important;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--primary);
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(11, 47, 158, 0.3);
}

.btn-secondary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(11, 47, 158, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #0EA572 0%, var(--success) 100%);
}

/* ─── Hero Section ───────────────────────────────────── */
.hero-section {
  background: var(--hero-gradient);
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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-section::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249, 168, 38, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent) 0%, #FFD700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-kite-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
}

.kite-svg-container {
  animation: floatKite 4s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(249, 168, 38, 0.4));
}

/* ─── Section Titles ─────────────────────────────────── */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(11, 47, 158, 0.1) 0%, rgba(46, 107, 190, 0.1) 100%);
  color: var(--primary);
  border: 1px solid rgba(11, 47, 158, 0.2);
  border-radius: 50px;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

/* ─── Cards ──────────────────────────────────────────── */
.card {
  border: none;
  border-radius: var(--radius) !important;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  overflow: hidden;
  background: var(--white);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow);
}

.tool-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius) !important;
  background: var(--white);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  cursor: pointer;
  height: 100%;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--nav-gradient);
  transform: scaleX(0);
  transition: var(--transition);
}

.tool-card:hover::before {
  transform: scaleX(1);
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(11, 47, 158, 0.1);
}

.tool-icon {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  transition: var(--transition);
}

.tool-card:hover .tool-icon {
  transform: scale(1.1) rotate(5deg);
}

.tool-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.tool-card p {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  color: var(--gray);
}

/* ─── Stats Section ──────────────────────────────────── */
.stats-section {
  background: var(--nav-gradient);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='0.04'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

.stat-item {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 1rem;
}

.stat-number {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  display: block;
  line-height: 1;
}

.stat-number span {
  color: var(--accent);
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 0.5rem;
  display: block;
}

/* ─── Testimonials ───────────────────────────────────── */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  border-left: 4px solid var(--primary);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}

.testimonial-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--nav-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.stars {
  color: var(--accent);
  font-size: 0.9rem;
}

/* ─── Footer ─────────────────────────────────────────── */
.site-footer {
  background: var(--footer-gradient);
  color: rgba(255, 255, 255, 0.85);
  padding: 5rem 0 0;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-brand .brand-tagline {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  line-height: 1.6;
}

.footer-heading {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  padding: 0.3rem 0;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.footer-contact-item i {
  color: var(--accent);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* ─── Page Sections ──────────────────────────────────── */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: rgba(11, 47, 158, 0.03);
}

/* ─── Calculator Sections ────────────────────────────── */
.calculator-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
}

.calculator-tabs .nav-link {
  color: var(--gray);
  font-weight: 600;
  border-radius: var(--radius-sm) !important;
  padding: 0.6rem 1.25rem;
  transition: var(--transition);
}

.calculator-tabs .nav-link.active {
  background: var(--nav-gradient) !important;
  color: var(--white) !important;
  border: none;
  box-shadow: 0 4px 15px rgba(11, 47, 158, 0.3);
}

.result-card {
  background: linear-gradient(135deg, rgba(11, 47, 158, 0.05) 0%, rgba(46, 107, 190, 0.05) 100%);
  border: 2px solid rgba(11, 47, 158, 0.1);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
}

.result-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.result-label {
  color: var(--gray);
  font-size: 0.85rem;
}

/* ─── Form Styles ────────────────────────────────────── */
.form-control,
.form-select {
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font);
  transition: var(--transition);
  font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 47, 158, 0.1);
  outline: none;
}

.form-label {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* ─── Range Sliders ──────────────────────────────────── */
.form-range::-webkit-slider-thumb {
  background: var(--primary);
}

.form-range::-webkit-slider-runnable-track {
  background: var(--gray-light);
  border-radius: 4px;
}

/* ─── Festival Cards ─────────────────────────────────── */
.festival-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  height: 100%;
}

.festival-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow);
}

.festival-card-img {
  height: 200px;
  background: var(--nav-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.festival-card-img .kite-emoji {
  font-size: 4rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.festival-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--success);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.festival-card-body {
  padding: 1.5rem;
}

.festival-card-body h5 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.festival-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.festival-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--gray);
}

.festival-meta-item i {
  color: var(--primary);
}

/* Organizer contact block on festival cards */
.festival-organizer {
  border-top: 1px solid var(--gray-light);
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.festival-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--gray);
  overflow: hidden;
}

.festival-contact-item i {
  color: var(--primary);
  font-size: 0.75rem;
  flex-shrink: 0;
  width: 14px;
  text-align: center;
}

.festival-contact-item a {
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.festival-contact-item a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.festival-contact-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── OTP Input Boxes ────────────────────────────────── */
.otp-boxes .otp-box {
  width: 50px;
  height: 60px;
  font-size: 1.5rem;
  border: 2px solid var(--gray-light);
  border-radius: 12px;
  transition: var(--transition);
}

.otp-boxes .otp-box:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11, 47, 158, 0.15);
  transform: translateY(-2px);
}

#otpModal .modal-content {
  border-radius: 20px;
  border: none;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

#otpModal .modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#otpModal .btn-primary {
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
}

/* ─── Kite Designer ──────────────────────────────────── */
#kiteCanvas {
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  cursor: crosshair;
  background: #f0f4ff;
  max-width: 100%;
}

.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: var(--transition);
}

.color-swatch.active,
.color-swatch:hover {
  border-color: var(--primary);
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(11, 47, 158, 0.3);
}

/* ─── Page Hero (inner pages) ────────────────────────── */
.page-hero {
  background: var(--nav-gradient);
  padding: 4rem 0 3rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--light);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-hero h1 {
  color: var(--white);
  font-weight: 800;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
}

/* ─── FAQ Accordion ──────────────────────────────────── */
.accordion-item {
  border: none;
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 10px rgba(11, 47, 158, 0.06);
}

.accordion-button {
  font-weight: 600;
  color: var(--dark);
  background: var(--white);
  border-radius: var(--radius-sm) !important;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, rgba(11, 47, 158, 0.06) 0%, rgba(46, 107, 190, 0.06) 100%);
  color: var(--primary);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-body {
  color: var(--gray);
  line-height: 1.7;
}

/* ─── Modal ──────────────────────────────────────────── */
.modal-content {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(11, 47, 158, 0.2);
}

.modal-header {
  background: var(--nav-gradient);
  color: var(--white);
  border: none;
  padding: 1.5rem 2rem;
}

.modal-header .btn-close {
  filter: brightness(10);
}

/* ─── Loader ─────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--nav-gradient);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-kite {
  font-size: 3rem;
  animation: floatKite 1.5s ease-in-out infinite;
  margin-bottom: 1.5rem;
}

.loader-dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  margin: 0 3px;
  animation: loaderBounce 1s ease-in-out infinite;
}

.loader-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.loader-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

/* ─── Breadcrumb ─────────────────────────────────────── */
.breadcrumb-wrapper {
  background: rgba(11, 47, 158, 0.05);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-light);
}

.breadcrumb-item a {
  color: var(--primary);
}

.breadcrumb-item.active {
  color: var(--gray);
}

/* ─── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ─── Utility Classes ────────────────────────────────── */
.text-primary {
  color: var(--primary) !important;
}

.text-accent {
  color: var(--accent) !important;
}

.bg-primary-soft {
  background: rgba(11, 47, 158, 0.06);
}

.bg-gradient-primary {
  background: var(--nav-gradient);
}

.rounded-xl {
  border-radius: var(--radius);
}

.shadow-soft {
  box-shadow: var(--card-shadow);
}

.font-bold {
  font-weight: 700;
}

/* ─── Page Transitions ───────────────────────────────── */
.page-view {
  animation: fadeInUp 0.4s ease forwards;
}

/* ─── Progress Bar ───────────────────────────────────── */
.progress-bar-custom {
  height: 8px;
  background: var(--gray-light);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--nav-gradient);
  border-radius: 4px;
  transition: width 0.8s ease;
}

/* ─── SEO Content ────────────────────────────────────── */
.seo-content {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--gray);
}

.seo-content strong {
  color: var(--dark);
}

.seo-content h3 {
  color: var(--primary);
  margin: 1.5rem 0 0.75rem;
}

/* ─── Wind Meter ─────────────────────────────────────── */
.wind-meter {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--white);
  text-align: center;
}

.wind-gauge {
  width: 150px;
  height: 75px;
  border-radius: 75px 75px 0 0;
  background: linear-gradient(to right, #10B981, #F9A826, #EF4444);
  position: relative;
  margin: 0 auto 1rem;
  overflow: hidden;
}

.wind-needle {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 4px;
  height: 65px;
  background: white;
  border-radius: 4px 4px 0 0;
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(-80deg);
  transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Timeline ───────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: -2.6rem;
  top: 0.25rem;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border: 3px solid var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(11, 47, 158, 0.1);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timeline-content h5 {
  color: var(--dark);
  font-weight: 700;
}

.timeline-content p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ─── Custom File Upload ────────────────────────────── */
.custom-file-upload {
  position: relative;
  width: 100%;
}

.custom-file-upload .form-control {
  padding-left: 1rem;
  background: rgba(11, 47, 158, 0.02);
  border: 2px dashed var(--gray-light);
}

.custom-file-upload .form-control:focus {
  border-style: solid;
  border-color: var(--primary);
  background: #fff;
}

/* Festival card image with background */
.festival-card-img {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transition: var(--transition);
}

.festival-card:hover .festival-card-img {
  transform: scale(1.05);
}

.modal-body img {
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}

.modal-body img:hover {
  transform: scale(1.02);
}

/* ─── Internal Linking Section ───────────────────────── */

/* Outer section wrapper */
.ilink-section {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

/* Decorative background */
.ilink-section__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, #F8FAFC 0%, #EEF2FF 55%, #F8FAFC 100%);
  z-index: 0;
}

.ilink-section__bg::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11,47,158,.07) 0%, transparent 70%);
}

.ilink-section__bg::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,168,38,.08) 0%, transparent 70%);
}

/* Section header */
.ilink-header {
  text-align: center;
  margin-bottom: 3rem;
}

.ilink-header__badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #0B2F9E, #2E6BBE);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(11,47,158,.25);
}

.ilink-header__title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.6rem;
}

.ilink-header__sub {
  font-size: 1rem;
  color: var(--gray);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Group Card (the outer panel) ────────────────────── */
.ilink-group-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(11,47,158,.10);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ilink-group-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(11,47,158,.18);
}

/* Gradient header strip */
.ilink-group-header {
  background: var(--g-gradient);
  padding: 1.5rem 1.75rem;
  position: relative;
  overflow: hidden;
}

.ilink-group-header::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}

.ilink-group-title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.ilink-group-desc {
  color: rgba(255,255,255,.72);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Pages list inside the card */
.ilink-group-pages {
  padding: 0.75rem;
  flex: 1;
  background: #fff;
}

/* Individual page link row */
.ilink-page-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--dark);
  transition: var(--transition);
  position: relative;
  margin-bottom: 0.25rem;
  border: 1.5px solid transparent;
}

.ilink-page-card:last-child {
  margin-bottom: 0;
}

.ilink-page-card:hover {
  background: linear-gradient(135deg, rgba(11,47,158,.05) 0%, rgba(46,107,190,.04) 100%);
  border-color: rgba(11,47,158,.15);
  color: var(--primary);
}

.ilink-page-card:hover .ilink-page-card__icon {
  background: var(--g-gradient, var(--nav-gradient));
  color: #fff;
  box-shadow: 0 4px 14px rgba(11,47,158,.3);
}

.ilink-page-card:hover .ilink-page-card__arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--g-accent, var(--accent));
}

/* Icon bubble */
.ilink-page-card__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(11,47,158,.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition);
}

/* Text block wrapper */
.ilink-page-card__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ilink-page-card__label {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  transition: color 0.25s ease;
}

.ilink-page-card:hover .ilink-page-card__label {
  color: var(--primary);
}

.ilink-page-card__desc {
  font-size: 0.74rem;
  color: var(--gray);
  line-height: 1.4;
  margin-top: 0.15rem;
  transition: color 0.25s ease;
}

.ilink-page-card:hover .ilink-page-card__desc {
  color: var(--secondary);
}

/* Arrow indicator */
.ilink-page-card__arrow {
  flex-shrink: 0;
  color: var(--g-accent, var(--accent));
  font-size: 0.75rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* ── Home CTA Banner ──────────────────────────────────── */
.ilink-home-cta {
  margin-top: 3rem;
}

.ilink-home-btn {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(135deg, #0B2F9E 0%, #071D6B 100%);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  text-decoration: none;
  color: #fff;
  transition: var(--transition);
  box-shadow: 0 8px 30px rgba(11,47,158,.30);
  position: relative;
  overflow: hidden;
}

.ilink-home-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(249,168,38,.12) 0%, transparent 60%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.ilink-home-btn:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(11,47,158,.40);
}

.ilink-home-btn:hover::before {
  opacity: 1;
}

.ilink-home-btn:hover .ilink-home-btn__arrow {
  transform: translateX(6px);
}

.ilink-home-btn__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(249,168,38,.18);
  border: 2px solid rgba(249,168,38,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
}

.ilink-home-btn__text {
  flex: 1;
}

.ilink-home-btn__text strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
}

.ilink-home-btn__text small {
  color: rgba(255,255,255,.65);
  font-size: 0.83rem;
}

.ilink-home-btn__arrow {
  font-size: 1.1rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}

/* ─── Legacy Internal Linking Buttons (kept for compat) ─ */
.btn-internal-link {
  font-size: 0.85rem;
  padding: 0.45rem 1.25rem;
  border-radius: 50px;
  background: transparent;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.btn-internal-link-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-internal-link-primary:hover {
  background: var(--primary);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 47, 158, 0.2);
}

.btn-internal-link-secondary {
  border: 2px solid var(--secondary);
  color: var(--secondary);
}

.btn-internal-link-secondary:hover {
  background: var(--secondary);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 107, 190, 0.2);
}