/* 
  S S Academy & Higher Studies - Main Stylesheet
  File: assets/css/style.css
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #0a1128;        /* Deep Midnight Navy */
  --primary-light: #101f42;  /* Medium Navy */
  --secondary: #3f4cff;      /* Royal Blue */
  --accent: #7b2cff;         /* Electric Purple */
  --accent-light: #f5f0ff;   /* Soft Lavender */
  --accent-glow: rgba(123, 44, 255, 0.35);
  --cta: #ffbf22;            /* Golden Yellow */
  --cta-hover: #e0a316;
  --text-dark: #0f172a;      /* Clean Dark Slate */
  --text-muted: #64748b;     /* Slate Muted */
  --bg-light: #f8fafc;       /* Extremely soft grey-blue */
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-dark-bg: rgba(10, 17, 40, 0.75);
  --glass-dark-border: rgba(255, 255, 255, 0.08);
  --font-heading: 'Plus Jakarta Sans', 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(10, 17, 40, 0.08), 0 4px 6px -4px rgba(10, 17, 40, 0.08);
  --shadow-lg: 0 20px 25px -5px rgba(10, 17, 40, 0.12), 0 8px 10px -6px rgba(10, 17, 40, 0.12);
  --shadow-glow: 0 0 20px var(--accent-glow);
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-lg: 24px;
  --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

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

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

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

ul {
  list-style: none;
}

section {
  position: relative;
  padding: 80px 0;
}

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

/* --- Background Decor & Animated Blobs --- */
.bg-decor {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: blob-drift 25s infinite alternate ease-in-out;
}

.blob-1 {
  top: 10%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: var(--secondary);
  animation-duration: 20s;
}

.blob-2 {
  bottom: 20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: var(--accent);
  animation-duration: 28s;
  animation-delay: -5s;
}

.blob-3 {
  top: 40%;
  left: 30%;
  width: 300px;
  height: 300px;
  background: var(--cta);
  opacity: 0.08;
  animation-duration: 35s;
  animation-delay: -2s;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(63, 76, 255, 0.05) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  opacity: 0.8;
}

@keyframes blob-drift {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(50px, -40px) scale(1.1) rotate(180deg);
  }
  100% {
    transform: translate(-30px, 60px) scale(0.95) rotate(360deg);
  }
}

/* --- Global Components --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  gap: 8px;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(63, 76, 255, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(123, 44, 255, 0.3);
}

.btn-accent:hover {
  background-color: #621ecc;
  transform: translateY(-2px);
}

.btn-cta {
  background-color: var(--cta);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(255, 191, 34, 0.35);
}

.btn-cta:hover {
  background-color: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 191, 34, 0.5);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--secondary);
  color: var(--secondary);
}

.btn-outline:hover {
  background-color: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background-color: var(--bg-light);
  transform: translateY(-2px);
}

.section-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary);
  background-color: var(--accent-light);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
  z-index: 1;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
  position: relative;
}

.section-header h2 span {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* --- Floating Social/Contact Buttons --- */
.floating-contacts {
  position: fixed;
  bottom: 30px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
  transition: var(--transition);
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  cursor: pointer;
}

.float-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.float-phone {
  background-color: #25d366; /* WhatsApp Green / Phone theme */
}

.float-fb {
  background-color: #1877f2;
}

.float-yt {
  background-color: #ff0000;
}

.float-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

/* --- Public Header & Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  background-color: rgba(10, 17, 40, 0.96); /* Relatable Deep Navy backdrop */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header.scrolled {
  background-color: var(--primary); /* Solid Navy when scrolling */
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: var(--transition);
}

header.scrolled .header-container {
  height: 70px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(63, 76, 255, 0.25);
}

.main-logo {
  height: 45px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

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

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.3px;
  transition: var(--transition);
}

.logo-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

header.scrolled .logo-name {
  color: var(--white);
}

header.scrolled .logo-sub {
  color: rgba(255, 255, 255, 0.7);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--cta);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--white);
}

header.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

header.scrolled .nav-link:hover, header.scrolled .nav-link.active {
  color: var(--cta);
}

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

header.scrolled .nav-link:hover::after, header.scrolled .nav-link.active::after {
  background-color: var(--cta);
}

.header-cta {
  display: flex;
  align-items: center;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--white);
  border-radius: 3px;
  transition: var(--transition);
  position: absolute;
}

header.scrolled .hamburger span {
  background-color: var(--white);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

.hamburger.open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* --- Hero Slider Section --- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Match 16:9 banner image ratio perfectly */
  margin-top: 80px; /* Shift banner down below the navbar */
  background-color: var(--primary);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0;
}

.hero .bg-decor .blob {
  opacity: 0.25;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-bg-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(25px) brightness(0.6);
  transform: scale(1.1); /* Prevent blurred edges outline */
  opacity: 0.7;
  z-index: 1;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the container fully with matching aspect ratio */
  opacity: 1;
  z-index: 2;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none;
}

.slide-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 650px;
  transform: translateY(30px);
  transition: transform 0.8s ease, opacity 0.8s ease;
  opacity: 0;
}

.slide.active .slide-content {
  transform: translateY(0);
  opacity: 1;
}

.slide-content h1 {
  color: var(--white);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.slide-content h1 span {
  color: var(--cta);
  display: block;
}

.slide-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 35px;
}

.slider-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  padding: 0 24px;
}

.slider-arrows {
  display: flex;
  gap: 12px;
}

.slider-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.slider-arrow:hover {
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background-color: var(--cta);
  transform: scale(1.3);
  width: 20px;
  border-radius: 5px;
}

/* --- About Section --- */
.about {
  background-color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-wrapper {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.about-img-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(63, 76, 255, 0.1), rgba(123, 44, 255, 0.1));
  z-index: 1;
}

.about-visual::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--accent);
  border-radius: var(--border-radius-lg);
  z-index: 1;
  opacity: 0.15;
  display: none; /* Removed background border as per user request */
}

.about-content h2 {
  font-size: 2.25rem;
  margin-bottom: 20px;
}

.about-content h2 span {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-content .lead {
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 35px;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-feature-icon {
  width: 24px;
  height: 24px;
  color: var(--secondary);
  flex-shrink: 0;
}

.about-feature-item span {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
}

/* --- Courses Section --- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.course-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 42, 0.04);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.course-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--secondary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(63, 76, 255, 0.1);
}

.course-card:hover::after {
  transform: scaleX(1);
}

.course-icon-container {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
}

.course-card:hover .course-icon-container {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: var(--white);
  transform: rotate(5deg) scale(1.05);
}

.course-icon-container svg {
  width: 28px;
  height: 28px;
}

.course-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--primary);
  line-height: 1.4;
}

.course-card p {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.course-card .course-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--secondary);
}

.course-card .course-link svg {
  width: 16px;
  height: 16px;
  transition: var(--transition);
}

.course-card:hover .course-link {
  color: var(--accent);
}

.course-card:hover .course-link svg {
  transform: translateX(4px);
}

/* --- Why Choose Us Section --- */
.why-choose {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  overflow: hidden;
}

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

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  z-index: 2;
  position: relative;
}

.why-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  padding: 35px 30px;
  transition: var(--transition);
}

.why-card:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(123, 44, 255, 0.25);
  transform: translateY(-5px);
}

.why-icon {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  background-color: rgba(123, 44, 255, 0.15);
  color: var(--cta);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(123, 44, 255, 0.25);
  transition: var(--transition);
}

.why-card:hover .why-icon {
  background-color: var(--accent);
  color: var(--white);
  box-shadow: 0 0 15px var(--accent-glow);
}

.why-icon svg {
  width: 26px;
  height: 26px;
}

.why-card h3 {
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 12px;
}

.why-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.925rem;
  line-height: 1.6;
}

/* --- Gallery Preview & dedicated gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.gallery-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
  background-color: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.gallery-img-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 17, 40, 0.85) 0%, rgba(10, 17, 40, 0.2) 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

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

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

.gallery-info {
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-card:hover .gallery-info {
  transform: translateY(0);
}

.gallery-info h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.gallery-info p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.825rem;
}

.gallery-more {
  text-align: center;
}

/* --- Contact & Enquiry Section --- */
.contact-section {
  background: linear-gradient(135deg, #101f42 0%, #0a1128 100%);
  color: var(--white);
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 50px;
  align-items: stretch;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  padding: 24px;
  display: flex;
  gap: 20px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: rgba(63, 76, 255, 0.15);
  color: var(--cta);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
}

.contact-info-details h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 8px;
}

.contact-info-details p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
}

.contact-info-details a {
  color: rgba(255, 255, 255, 0.7);
  word-break: break-all; /* Prevent long email strings from overflowing on mobile */
}

.contact-info-details a:hover {
  color: var(--cta);
}

.contact-social-group {
  margin-top: 30px;
}

.contact-social-group h4 {
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contact-form-panel {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 40px;
  color: var(--text-dark);
  box-shadow: var(--shadow-lg);
}

.contact-form-panel h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.contact-form-panel p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

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

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

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  max-width: 100%; /* Prevent horizontal select option stretching */
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background-color: #f8fafc;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(63, 76, 255, 0.15);
}

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

/* --- Footer --- */
footer {
  background-color: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 4fr 3fr 2fr 3fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo-panel .logo-link {
  margin-bottom: 20px;
}

.footer-logo-panel p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-heading {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--cta);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a::before {
  content: '→';
  color: var(--cta);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-links a:hover::before {
  transform: translateX(3px);
}

.footer-contact-info li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.footer-contact-info svg {
  width: 18px;
  height: 18px;
  color: var(--cta);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-info span {
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a:hover {
  color: var(--white);
}

/* --- Mobile Bottom Sticky Navigation --- */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65px;
  background-color: var(--white);
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 16px rgba(10, 17, 40, 0.06);
  z-index: 998;
  display: none;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bottom-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 100%;
  position: relative;
  align-items: center;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  height: 100%;
}

.mobile-nav-item.active {
  color: var(--secondary);
  font-weight: 600;
}

.mobile-nav-item svg {
  width: 20px;
  height: 20px;
  margin-bottom: 3px;
}

/* Raised CTA logic */
.mobile-nav-item.raised {
  position: relative;
  z-index: 10;
  height: auto;
}

.mobile-nav-raised-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cta), #f39c12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 191, 34, 0.4), 0 0 0 5px var(--white);
  transform: translateY(-24px);
  transition: var(--transition);
}

.mobile-nav-raised-btn svg {
  width: 26px;
  height: 26px;
  margin: 0;
  color: var(--primary);
}

.mobile-nav-item.raised span {
  transform: translateY(-16px);
  font-weight: 700;
  color: var(--primary);
}

.mobile-nav-raised-btn:active {
  transform: translateY(-24px) scale(0.9);
}

/* Add bottom padding to body when bottom nav is active */
body.has-bottom-nav {
  padding-bottom: 75px;
}

/* --- Dedicated Gallery Page & Lightbox --- */
.gallery-header-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 140px 0 80px;
}

.gallery-header-section h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 12px;
}

.gallery-header-section p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 17, 40, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  object-fit: contain;
}

.lightbox-caption {
  color: var(--white);
  margin-top: 15px;
  text-align: center;
}

.lightbox-caption h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 5px;
}

.lightbox-caption p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background-color: var(--white);
  color: var(--primary);
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

/* --- Alert Messages --- */
.alert {
  padding: 16px 24px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 30px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-danger {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* --- Page Hero Utility --- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 140px 0 60px;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
  color: var(--cta);
}

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

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  header.scrolled {
    background-color: var(--primary);
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--primary);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transition: var(--transition);
    align-items: flex-start;
    z-index: 999;
  }
  
  .nav-menu.open {
    left: 0;
  }
  
  .nav-link {
    font-size: 1.25rem;
    color: var(--white);
    width: 100%;
  }
  
  .header-cta {
    display: none; /* Accessible via mobile bottom navigation */
  }
  
  .hamburger {
    display: block;
  }
  
  .hero {
    height: auto;
  }
  
  .hero-slider {
    min-height: auto;
  }
  
  .slide-content h1 {
    font-size: 2.5rem;
  }
  
  .slide-content p {
    font-size: 1rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-features {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .slider-controls {
    left: 0;
    transform: none;
    width: 100%;
    justify-content: space-between;
    padding: 0 20px;
    bottom: 20px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-form-panel {
    padding: 24px 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .floating-contacts {
    bottom: 80px; /* Shift up to avoid bottom nav overlaps */
    right: 15px;
    gap: 8px;
  }
  
  .float-btn {
    width: 40px;
    height: 40px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  }
  
  .float-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .mobile-bottom-nav {
    display: block;
  }
  
  body {
    padding-bottom: 65px;
  }
  
  .lightbox-prev, .lightbox-next {
    display: none; /* Rely on gestures/tapping or simple controls on mobile */
  }
}

@media (max-width: 576px) {
  section {
    padding: 60px 0;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .courses-grid {
    grid-template-columns: 1fr;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
