/* ============================================================
   STUDY JUNCTION – MAIN STYLESHEET
   Color Palette: Blue #1a56db | Orange #f97316 | Dark #1e293b
   ============================================================ */

/* ── RESET & BASE ────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #1a56db;
  --blue-dark: #1344b5;
  --blue-light: #3b82f6;
  --blue-pale: #eff6ff;
  --orange: #f97316;
  --orange-dark: #ea6b0a;
  --orange-light: #fb923c;
  --orange-pale: #fff7ed;
  --dark: #1e293b;
  --dark-2: #334155;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --border: #e2e8f0;
  --white: #ffffff;
  --bg-light: #f8fafc;
  --success: #10b981;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .10);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, .16);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
}

/* ── UTILITIES ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-tag {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--blue);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 14px;
  line-height: 1.2;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(26, 86, 219, 0.35);
}

.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  box-shadow: 0 8px 24px rgba(26, 86, 219, 0.45);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ── REVEAL ANIMATION ────────────────────────────────────── */
/* Content is visible by default. JS adds .js-ready to body, which
   then enables the hidden-until-scrolled animation progressively. */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
  will-change: opacity, transform;
}

/* Only hide content if JS is confirmed running */
body.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
}

body.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  body.js-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-study {
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--blue);
  letter-spacing: 0.05em;
}

.logo-junction {
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--orange);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--dark-2);
  transition: all var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
  background: var(--blue-pale);
}

.nav-link.nav-cta {
  background: var(--blue);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 100px;
  margin-left: 8px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(26, 86, 219, 0.3);
}

.nav-link.nav-cta:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 86, 219, 0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

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

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f2671 0%, #1a56db 50%, #1e40af 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.shape-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
  animation: floatShape 8s ease-in-out infinite;
}

.shape-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
  animation: floatShape 10s ease-in-out infinite reverse;
}

.shape-3 {
  width: 250px;
  height: 250px;
  top: 30%;
  left: 20%;
  animation: floatShape 12s ease-in-out infinite 2s;
}

@keyframes floatShape {

  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-30px) rotate(10deg);
  }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 24px 40px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(249, 115, 22, 0.2);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: #fbbf24;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease both;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
  animation: fadeInLeft 0.9s ease 0.15s both;
}

.hero-highlight {
  background: linear-gradient(135deg, #f97316, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-top: 4px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 36px;
  line-height: 1.7;
  animation: fadeInLeft 0.9s ease 0.25s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 36px;
  animation: fadeInLeft 0.9s ease 0.35s both;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-item .stat-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
  display: inline-block;
}

.stat-plus {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--orange);
}

.stat-item p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 8px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  animation: fadeInLeft 0.9s ease 0.45s both;
}

/* Hero Visual */
.hero-visual {
  animation: fadeInRight 0.9s ease 0.3s both;
}

.hero-card-stack {
  position: relative;
}

.hero-main-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-xl);
}

.hero-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.icon-cell {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  transition: all var(--transition);
}

.icon-cell:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.icon-cell span {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 6px;
}

.icon-cell p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.hero-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 500;
}

.badge-live {
  font-size: 0.8rem;
}

.floating-badge {
  position: absolute;
  background: white;
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

.badge-top {
  top: -20px;
  left: -24px;
}

.badge-bottom {
  bottom: -20px;
  right: -24px;
  animation-delay: 3s;
}

.badge-icon {
  font-size: 1.4rem;
}

.floating-badge strong {
  display: block;
  font-size: 0.85rem;
  color: var(--dark);
  line-height: 1.2;
}

.floating-badge small {
  font-size: 0.7rem;
  color: var(--gray);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Hero Highlights Bar */
.hero-highlights {
  width: 100%;
  background: var(--white);
  padding: 0;
  position: relative;
  z-index: 1;
}

.highlights-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 32px;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
  position: relative;
  transition: color var(--transition);
}

.highlight-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: var(--border);
}

.highlight-item:hover {
  color: var(--blue);
}

.hi-icon {
  font-size: 1.5rem;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── ABOUT ──────────────────────────────────────────────── */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.about-image-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: white;
  box-shadow: var(--shadow-xl);
}

.about-icon-display {
  font-size: 5rem;
}

.about-img-placeholder p {
  font-size: 1.4rem;
  font-weight: 700;
}

.about-img-placeholder small {
  font-size: 0.85rem;
  opacity: 0.8;
}

.about-badge-card {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  border: 2px solid var(--border);
}

.about-badge-card .abc-icon {
  font-size: 1.8rem;
}

.about-badge-card strong {
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 600;
}

.about-badge-card p {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue);
}

.about-content h3 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.3;
}

.about-content>p {
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.75;
}

.vision-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}

.vm-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
}

.vm-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.vm-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 10px;
}

.vm-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.vm-card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.6;
}

.methodology h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}

.method-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.method-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--dark-2);
  font-weight: 500;
}

/* ── COURSES ────────────────────────────────────────────── */
.courses {
  background: var(--bg-light);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.course-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cc-9 {
  background: linear-gradient(135deg, #1a56db, #3b82f6);
}

.cc-10 {
  background: linear-gradient(135deg, #0891b2, #06b6d4);
}

.cc-science {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

.cc-commerce {
  background: linear-gradient(135deg, #059669, #10b981);
}

.cc-arts {
  background: linear-gradient(135deg, #f97316, #fb923c);
}

.class-badge {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 100px;
}

.stream-tag {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}

.science-tag {
  background: rgba(124, 58, 237, 0.3);
}

.commerce-tag {
  background: rgba(5, 150, 105, 0.3);
}

.arts-tag {
  background: rgba(249, 115, 22, 0.3);
}

.course-body {
  padding: 24px;
}

.course-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.course-body p {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 18px;
  line-height: 1.6;
}

.subjects-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.subject-chip {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--dark-2);
  padding: 4px 12px;
}

.course-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cf-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gray);
}

/* ── FACULTY ────────────────────────────────────────────── */
.faculty {
  background: var(--white);
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.faculty-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 20px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.faculty-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-light);
}

.faculty-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.faculty-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.faculty-subject {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 100px;
  margin-bottom: 4px;
  background: var(--blue-pale);
  color: var(--blue);
}

.science-sub {
  background: #f3e8ff;
  color: #7c3aed;
}

.commerce-sub {
  background: #d1fae5;
  color: #059669;
}

.arts-sub {
  background: #fff7ed;
  color: #f97316;
}

.faculty-exp {
  font-size: 0.8rem;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 8px;
}

.faculty-desc {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 12px;
}

.faculty-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.faculty-tags span {
  background: var(--bg-light);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--dark-2);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ── BRANCHES ───────────────────────────────────────────── */
.branches {
  background: var(--bg-light);
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 28px;
}

.branch-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.branch-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--border);
  background: var(--blue-pale);
}

.branch-icon {
  font-size: 2.2rem;
}

.branch-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.branch-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 100px;
  background: var(--blue-pale);
  color: var(--blue);
  border: 1px solid rgba(26, 86, 219, 0.2);
}

.main-badge {
  background: var(--orange-pale);
  color: var(--orange);
  border-color: rgba(249, 115, 22, 0.2);
}

.branch-details {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.branch-info-item {
  display: flex;
  gap: 14px;
}

.bi-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.branch-info-item strong {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark-2);
  display: block;
  margin-bottom: 2px;
}

.branch-info-item p {
  font-size: 0.85rem;
  color: var(--gray);
}

.branch-info-item a {
  color: var(--blue);
}

.branch-info-item a:hover {
  text-decoration: underline;
}

.map-placeholder {
  margin: 0 24px 24px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 2px dashed #93c5fd;
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-inner {
  text-align: center;
}

.map-pin {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 8px;
}

.map-inner p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
}

.map-link {
  display: inline-block;
  background: var(--blue);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  transition: all var(--transition);
}

.map-link:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

/* ── GALLERY ─────────────────────────────────────────────── */
.gallery {
  background: var(--dark);
}

.gallery .section-header .section-tag {
  background: rgba(26, 86, 219, 0.3);
  color: #93c5fd;
}

.gallery .section-header h2 {
  color: var(--white);
}

.gallery .section-header p {
  color: var(--gray-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}

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

.gallery-item.g-large {
  grid-column: span 2;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: transform var(--transition);
}

.gallery-item:hover .gallery-placeholder {
  transform: scale(1.05);
}

.gallery-emoji {
  font-size: 3.5rem;
}

.gallery-placeholder p {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.gp-blue {
  background: linear-gradient(135deg, #1a56db, #3b82f6);
}

.gp-orange {
  background: linear-gradient(135deg, #f97316, #fb923c);
}

.gp-green {
  background: linear-gradient(135deg, #059669, #10b981);
}

.gp-purple {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.gp-teal {
  background: linear-gradient(135deg, #0891b2, #22d3ee);
}

.gp-crimson {
  background: linear-gradient(135deg, #dc2626, #f87171);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 38, 113, 0.7);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 100px;
}

/* ── TESTIMONIALS ───────────────────────────────────────── */
.testimonials {
  background: var(--blue-pale);
}

.testimonials-carousel {
  position: relative;
  overflow: hidden;
}

.testi-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 24px;
}

.testi-card {
  min-width: calc(33.333% - 16px);
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  position: relative;
  flex-shrink: 0;
}

.testi-quote {
  font-size: 5rem;
  color: var(--blue);
  opacity: 0.15;
  line-height: 0.7;
  margin-bottom: 8px;
  font-family: Georgia, serif;
  font-weight: 900;
}

.testi-text {
  font-size: 0.92rem;
  color: var(--dark-2);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.testi-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--dark);
}

.testi-author small {
  font-size: 0.75rem;
  color: var(--gray);
}

.testi-stars {
  font-size: 0.9rem;
}

.testi-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.testi-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.testi-btn:hover {
  background: var(--blue-dark);
  transform: scale(1.1);
}

.testi-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-light);
  cursor: pointer;
  transition: all var(--transition);
}

.testi-dot.active {
  background: var(--blue);
  width: 22px;
  border-radius: 4px;
}

/* ── CONTACT ────────────────────────────────────────────── */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 28px;
}

.ci-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.ci-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.ci-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark-2);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ci-item p {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 2px;
}

.ci-item a {
  color: var(--blue);
}

.ci-item a:hover {
  text-decoration: underline;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 100px;
  margin-top: 8px;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:hover {
  background: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

.wa-icon {
  display: flex;
}

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-form h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark-2);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #ef4444;
}

.form-error {
  display: block;
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 4px;
  min-height: 18px;
  font-weight: 500;
}

.form-submit {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  justify-content: center;
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

.form-success {
  text-align: center;
  font-weight: 600;
  color: var(--success);
  margin-top: 16px;
  font-size: 0.95rem;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.8);
}

.footer-top {
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.2fr 1.2fr;
  gap: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 90px;
  /* filter: brightness(0) invert(1); */
}

.footer-logo-text .logo-study {
  color: #93c5fd;
}

.footer-logo-text .logo-junction {
  color: #fb923c;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition);
}

.social-btn:hover {
  background: var(--blue);
  color: white;
  transform: translateY(-3px);
}

.footer-links-col h4,
.footer-contact-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.footer-links-col a:hover {
  color: var(--orange-light);
}

.footer-contact-col p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
}

.footer-contact-col a {
  color: #93c5fd;
}

.footer-contact-col a:hover {
  text-decoration: underline;
}

.footer-badge {
  margin-top: 16px;
  display: inline-block;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fb923c;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ── SCROLL TO TOP ───────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--blue-dark);
  transform: translateY(-4px);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 2;
    max-width: 480px;
    margin: 0 auto;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    max-width: 340px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testi-card {
    min-width: calc(50% - 12px);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    transition: transform var(--transition);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-link {
    border-radius: var(--radius-sm);
    padding: 12px 16px;
  }

  .nav-link.nav-cta {
    text-align: center;
    border-radius: var(--radius-sm);
  }

  .hamburger {
    display: flex;
  }

  .section {
    padding: 64px 0;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .highlights-row {
    flex-direction: column;
    gap: 0;
  }

  .highlight-item::after {
    display: none;
  }

  .highlight-item {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .vision-mission {
    grid-template-columns: 1fr;
  }

  .method-list {
    grid-template-columns: 1fr;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .faculty-grid {
    grid-template-columns: 1fr;
  }

  .branches-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item.g-large {
    grid-column: span 2;
  }

  .testi-card {
    min-width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-row {
    flex-direction: column;
    text-align: center;
  }

  .floating-badge.badge-top {
    display: none;
  }

  .floating-badge.badge-bottom {
    display: none;
  }

  .about-badge-card {
    right: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.g-large {
    grid-column: span 1;
  }

  .hero-highlight {
    font-size: 1.5rem;
  }
}