/* ============================================
   Anand-Milind's Academy of Music (AMA)
   Modern, Lightweight & Fully Responsive Stylesheet
   ============================================ */

/* --------------------------------------------
   1. DESIGN SYSTEM & CSS CUSTOM PROPERTIES
   -------------------------------------------- */
:root {
  --primary-blue: #02628c;
  --secondary-blue: #00749a;
  --accent-orange: #c25934;
  --accent-yellow: #efcf4f;
  --text-dark: #000000;
  --text-body: #00293a;
  --bg-cream: #f7f5ef;
  --bg-card: #ffffff;
  --bg-dark: #111111;
  --font-heading: 'Ubuntu', sans-serif;
  --font-body: 'Noto Sans', sans-serif;
  --font-lobster: 'Lobster', cursive;
  --font-roboto: 'Roboto', sans-serif;
  --font-ace: 'AceSans-Demo', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------
   2. FONT IMPORTS & BASE RESETS
   -------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Expletus+Sans:ital,wght@0,400;0,600;0,700;1,400;1,500;1,600;1,700&family=Faustina:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,600;1,700&family=Fredoka+One&family=Great+Vibes&family=Lobster&family=Noto+Sans:ital,wght@0,200;0,300;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Rubik:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&family=Ubuntu:ital,wght@0,300;0,400;0,700;1,300;1,400;1,500;1,700&family=Roboto:wght@400;500;700&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  list-style: none;
  text-decoration: none;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html, body {
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  background: var(--bg-cream) url('../images/about_bg_card.jpg') center top/cover fixed no-repeat;
  color: var(--text-dark);
  font-family: var(--font-body);
}

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

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

/* Hidden Audio Elements */
#audio-player,
body #audio-player,
.audio-player {
  display: none !important;
}

/* --------------------------------------------
   3. FLOATING ACTION BUTTONS (WhatsApp & Scroll)
   -------------------------------------------- */
.whatsapp_main {
  position: fixed;
  bottom: 80px;
  right: 15px;
  z-index: 999;
  will-change: transform;
  transition: transform var(--transition-fast);
}

.whatsapp_main:hover {
  transform: scale(1.08);
}

.whatsapp_img {
  background-color: #ffffff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

#scroll-up-button {
  position: fixed;
  right: 15px;
  bottom: 15px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  color: #ffffff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  will-change: transform;
}

#scroll-up-button:hover {
  background: var(--primary-blue);
  transform: translateY(-3px);
}

/* --------------------------------------------
   4. NAVIGATION BAR (#home & #part-1)
   -------------------------------------------- */
#part-1 .header-2,
#home .header-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

#part-1 .logo img,
#home .header-2 .logo img {
  width: 250px;
  height: auto;
  max-height: 150px;
  object-fit: contain;
}

#part-1 .nav-item,
#home .nav-item {
  color: #ffffff;
  font-size: 2.2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-left: 3rem;
  transition: color var(--transition-fast);
}

#part-1 .nav-item:hover,
#home .nav-item:hover {
  color: var(--accent-yellow);
}

#part-1 .icons,
#home .icons {
  font-size: 2.8rem;
  color: #ffffff;
  cursor: pointer;
  display: none;
  z-index: 12;
}

#part-1 #check,
#home #check {
  display: none;
}

/* --------------------------------------------
   5. HOME HERO SECTION (#home)
   -------------------------------------------- */
#home {
  width: 100%;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

#home .header {
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#home .img-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
}

#home .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.55;
  animation: heroZoom 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

#home .banner {
  position: relative;
  z-index: 2;
  text-align: left;
  padding: 14rem 8% 6rem;
  max-width: 1200px;
  width: 100%;
  margin: 0;
}

#home .banner h1 {
  font-size: clamp(2.8rem, 4.2vw, 4.8rem);
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.5);
  animation: moveBanner 1s 0.3s forwards ease-out;
  opacity: 0;
}

#home .banner h1 span {
  font-family: var(--font-lobster);
  color: var(--accent-yellow);
}

#home .banner p {
  font-family: var(--font-body);
  font-size: 2.4rem;
  color: #ffffff;
  margin: 1.5rem 0 2.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  animation: moveBanner 1s 0.5s forwards ease-out;
  opacity: 0;
}

#home .banner button {
  padding: 1.4rem 3.2rem;
  background-color: var(--primary-blue);
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: background-color var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
  animation: moveBanner 1s 0.7s forwards ease-out;
  opacity: 0;
}

#home .banner button:hover {
  background-color: var(--accent-yellow);
  color: #000000;
  transform: translateY(-2px);
}

@keyframes moveBanner {
  0% { transform: translateY(30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* --------------------------------------------
   6. HEADING SECTION (#heading)
   -------------------------------------------- */
#heading {
  background: rgba(247, 245, 239, 0.85);
  width: 100%;
  padding: 5rem 2rem 2rem;
  text-align: center;
}

#heading h2 {
  font-size: 3.2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-orange);
}

#heading h2 span {
  color: var(--primary-blue);
}

/* --------------------------------------------
   7. MOVIE POSTER CAROUSEL (#movie)
   -------------------------------------------- */
#movie {
  padding: 2rem 0;
  overflow: hidden;
  background-color: rgba(247, 245, 239, 0.85);
}

#movie .image-slider {
  display: flex;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  height: 320px;
}

#movie .image-slider::before,
#movie .image-slider::after {
  content: '';
  position: absolute;
  top: 0;
  width: 10%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

#movie .image-slider::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-cream), transparent);
}

#movie .image-slider::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-cream), transparent);
}

#movie .image-slider-track {
  display: flex;
  gap: 20px;
  animation: scrollTrack 25s linear infinite;
  will-change: transform;
}

#movie .image-slider-track:hover {
  animation-play-state: paused;
}

@keyframes scrollTrack {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

#movie .slide {
  flex: 0 0 220px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#movie .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

#movie .slide img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* --------------------------------------------
   8. INTRO AMA SECTION (#intro-ama)
   -------------------------------------------- */
#intro-ama .header {
  width: 100%;
  min-height: 80vh;
  position: relative;
  overflow: hidden;
  background: #000000;
}

#intro-ama .img-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.45;
}

#intro-ama .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#intro-ama .content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 80vh;
}

#intro-ama .content h2,
#intro-ama .content h3 {
  font-size: 3.8rem;
  font-family: var(--font-heading);
  color: var(--accent-yellow);
  font-weight: 700;
  margin-bottom: 2rem;
  max-width: 600px;
}

#intro-ama .content p {
  font-family: var(--font-roboto);
  color: #ffffff;
  font-size: 2.2rem;
  line-height: 1.6;
  max-width: 650px;
  font-weight: 500;
}

#intro-ama .content span {
  color: var(--accent-yellow);
}

#intro-ama .image img {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
  object-fit: cover;
  border-radius: 24px;
  border: 4px solid var(--accent-yellow);
  box-shadow: var(--shadow-lg);
  z-index: 3;
}

/* --------------------------------------------
   9. ABOUT US HOMEPAGE SECTION (#about-us)
   -------------------------------------------- */
#about-us {
  padding: 8rem 2rem;
  background-color: rgba(247, 245, 239, 0.88);
}

#about-us .main {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}

#about-us .main img {
  flex: 1;
  max-width: 550px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

#about-us .all-text {
  flex: 1;
}

#about-us .all-text h4,
#about-us .all-text .about-us-tag {
  font-family: var(--font-lobster);
  font-size: 3.5rem;
  color: var(--accent-orange);
  margin-bottom: 0.5rem;
}

#about-us .all-text h2 {
  font-size: 2.8rem;
  font-family: var(--font-heading);
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

#about-us .all-text p {
  color: var(--text-body);
  font-family: var(--font-roboto);
  font-size: 1.8rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

#about-us .btn button {
  padding: 1.4rem 2.8rem;
  font-size: 1.5rem;
  border-radius: 30px;
  font-weight: 700;
  letter-spacing: 2px;
  background-color: var(--accent-orange);
  color: #ffffff;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

#about-us .btn button:hover {
  background-color: var(--primary-blue);
  color: #ffffff;
  transform: translateY(-2px);
}

/* --------------------------------------------
   10. SPECIALITY & COURSES CARDS (#class-detail)
   -------------------------------------------- */
#class-detail {
  padding: 8rem 2rem;
  background-color: rgba(247, 245, 239, 0.88);
  text-align: center;
}

#class-detail .header h2 {
  font-family: var(--font-lobster);
  font-size: 4rem;
  color: var(--accent-orange);
  margin-bottom: 1rem;
}

#class-detail .header h4,
#class-detail .header h3,
#class-detail .header .section-tagline {
  font-size: 2.4rem;
  font-family: var(--font-heading);
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

#class-detail .header p {
  font-size: 1.8rem;
  font-family: var(--font-heading);
  color: var(--text-body);
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

#class-detail .header h4 span,
#class-detail .header .section-tagline span {
  color: var(--primary-blue);
  font-family: var(--font-lobster);
}

#class-detail .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto 5rem;
  padding: 0 1rem;
}

#class-detail .feature-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 3rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  will-change: transform;
}

#class-detail .feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

#class-detail .feature-card .icon img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

#class-detail .feature-card .head h4,
#class-detail .feature-card .head h3 {
  text-transform: uppercase;
  color: var(--secondary-blue);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
}

#class-detail .btn {
  margin-top: 2rem;
}

#class-detail button {
  padding: 1.4rem 3.5rem;
  font-size: 1.6rem;
  border-radius: 30px;
  font-weight: 700;
  letter-spacing: 2px;
  background-color: var(--accent-orange);
  color: #ffffff;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

#class-detail button:hover {
  background-color: var(--primary-blue);
  transform: translateY(-2px);
}

/* --- Counter Section --- */
.live-counter {
  background: #ffffff;
  padding: 4rem 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  max-width: 1000px;
  margin: 4rem auto 0;
}

.live-counter .container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.counter-number h2,
.counter-number .counter-val {
  font-size: 4.5rem;
  font-family: var(--font-heading);
  color: var(--accent-orange);
  font-weight: 700;
  display: block;
}

.counter-number p {
  font-size: 1.8rem;
  font-weight: 600;
  font-family: var(--font-body);
}

/* --------------------------------------------
   11. TESTIMONIALS SECTION (#testimonial)
   -------------------------------------------- */
#testimonial {
  padding: 8rem 2rem;
  background-color: rgba(247, 245, 239, 0.88);
  text-align: center;
}

#testimonial .content h3,
#testimonial .content .section-subtitle {
  font-family: var(--font-lobster);
  font-size: 3.5rem;
  color: var(--accent-orange);
  display: block;
}

#testimonial .content h2 {
  font-size: 2.8rem;
  font-family: var(--font-heading);
  color: var(--primary-blue);
  margin-bottom: 3rem;
}

#testimonial .wrapper {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

#testimonial button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: #ffffff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

#testimonial button:hover {
  background: var(--accent-orange);
  transform: translateY(-50%) scale(1.1);
}

#testimonial #prev { left: -20px; }
#testimonial #next { right: -20px; }

.testimonial-container {
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  border-radius: 20px;
  padding: 4rem 3rem;
  box-shadow: var(--shadow-md);
}

.testimonial-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.testimonial-slide.active {
  display: flex;
  opacity: 1;
}

.testimonial-slide img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 3px solid var(--accent-orange);
}

.testimonial-slide h3 {
  font-size: 2.2rem;
  font-family: var(--font-heading);
  color: var(--primary-blue);
}

.testimonial-slide h6,
.testimonial-slide .designation {
  font-size: 1.5rem;
  color: var(--accent-orange);
  margin-bottom: 1.5rem;
  font-weight: 600;
  display: block;
}

.testimonial-slide p {
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-body);
  font-family: var(--font-roboto);
}

/* --------------------------------------------
   12. AGELESS ART & GENERATIONS (#head & #cards)
   -------------------------------------------- */
#head {
  padding: 8rem 2rem;
  background: url('../images/about_bg_card.jpg') center/cover fixed no-repeat;
  text-align: center;
  color: #ffffff;
  position: relative;
}

#head::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

#head .container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

#head h3,
#head .section-subtitle {
  font-family: var(--font-lobster);
  font-size: 3.8rem;
  color: var(--accent-yellow);
  display: block;
}

#head h2 {
  font-size: 3rem;
  font-family: var(--font-heading);
  margin-bottom: 2rem;
}

#head p {
  font-size: 1.8rem;
  line-height: 1.6;
  font-family: var(--font-heading);
}

#cards {
  padding: 6rem 2rem;
  background: url('../images/about_bg_card.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

#cards .ui-card {
  width: 320px;
  height: 480px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}

#cards .ui-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

#cards .ui-card:hover img {
  transform: scale(1.1);
  opacity: 0.4;
}

#cards .description {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  text-align: center;
}

#cards .description h3 {
  font-size: 2.8rem;
  color: #ffffff;
  font-family: var(--font-heading);
}

/* --------------------------------------------
   13. ROAD TO PROFESSIONALISM & PLAYER (#about-class)
   -------------------------------------------- */
#about-class {
  padding: 8rem 2rem;
  background-color: rgba(247, 245, 239, 0.88);
}

#about-class .container-2 {
  max-width: 1100px;
  margin: 0 auto 5rem;
  text-align: center;
}

#about-class .content-2 h3,
#about-class .content-2 h2 {
  font-family: var(--font-lobster);
  font-size: 4rem;
  color: var(--accent-orange);
  margin-bottom: 1.5rem;
}

#about-class .content-2 p {
  font-size: 1.8rem;
  line-height: 1.8;
  color: var(--text-body);
  font-family: var(--font-roboto);
}

#about-class .row {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 5rem;
}

#about-class .column {
  flex: 1;
}

#about-class .content h3,
#about-class .content .section-subtitle {
  font-family: var(--font-lobster);
  font-size: 3rem;
  color: var(--accent-orange);
  display: block;
}

#about-class .content h1,
#about-class .content h2 {
  font-size: 2.6rem;
  font-family: var(--font-heading);
  color: var(--primary-blue);
  margin-bottom: 2rem;
}

#about-class .content p {
  font-size: 1.6rem;
  line-height: 1.6;
  margin-bottom: 3rem;
  font-family: var(--font-roboto);
}

#about-class .bar {
  margin-bottom: 2rem;
}

#about-class .bar-name {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  font-family: var(--font-heading);
}

#about-class .bars {
  height: 12px;
  background: #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}

#about-class .bar-per {
  height: 100%;
  background: var(--primary-blue);
  border-radius: 6px;
  width: 100%;
  transition: width 1.5s ease-out;
}

#about-class .player {
  background: #ffffff;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

#about-class .player .img-Box {
  width: 100%;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

#about-class .player .img-Box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#about-class .player audio {
  width: 100%;
  border-radius: 30px;
}

/* --------------------------------------------
   14. FOOTER (#footer)
   -------------------------------------------- */
#footer footer {
  background: #ffffff;
  padding: 6rem 2rem 2rem;
  border-top: 1px solid #e5e5e5;
}

#footer .footer-info {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  justify-content: space-between;
}

#footer .about { flex: 2; min-width: 300px; }
#footer .link { flex: 1; min-width: 180px; }
#footer .contact { flex: 2; min-width: 300px; }

#footer .about img {
  width: 200px;
  height: auto;
  margin-bottom: 1.5rem;
}

#footer h2 {
  font-size: 2.4rem;
  color: var(--secondary-blue);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

#footer h3 {
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

#footer p {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--text-body);
}

#footer .link ul li {
  margin-bottom: 1rem;
}

#footer .link ul li a {
  font-size: 1.6rem;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-weight: 600;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

#footer .link ul li a:hover {
  color: var(--accent-orange);
  padding-left: 5px;
}

#footer .contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

#footer .contact i {
  font-size: 1.8rem;
  margin-top: 3px;
}

#footer .copyright {
  text-align: center;
  padding-top: 4rem;
  margin-top: 4rem;
  border-top: 1px solid #eeeeee;
  font-size: 1.5rem;
  font-weight: 600;
}

/* --------------------------------------------
   15. ABOUT US PAGE SPECIFIC STYLES (#part-1 & #part-2 & #part-3 & #gallery)
   -------------------------------------------- */
#part-1 {
  position: relative;
  width: 100%;
}

#part-1 .header {
  position: relative;
  width: 100%;
  height: 50vh;
  overflow: hidden;
  background: #000000;
}

#part-1 .header .img-wrapper {
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

#part-1 .header .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#part-1 .banner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

#part-1 .banner h1,
#part-1 .banner h2 {
  font-family: var(--font-lobster);
  font-size: 5rem;
  color: #ffffff;
  text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.5);
  font-weight: normal;
}

#part-2 {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 4rem auto;
  background-color: rgba(247, 245, 239, 0.88);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

#part-2 .row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 6rem;
}

#part-2 .left, #part-2 .right {
  flex: 1;
}

#part-2 img {
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  width: 100%;
}

#part-2 .content p {
  font-size: 1.8rem;
  line-height: 1.8;
  color: var(--text-body);
  font-family: var(--font-roboto);
}

#part-3 {
  padding: 8rem 2rem;
  background-color: rgba(247, 245, 239, 0.88);
  text-align: center;
}

#part-3 h3,
#part-3 .section-subtitle {
  font-family: var(--font-lobster);
  font-size: 4rem;
  color: var(--accent-orange);
  display: block;
}

#part-3 h2 {
  font-size: 2.8rem;
  font-family: var(--font-heading);
  color: var(--primary-blue);
  margin-bottom: 4rem;
}

#part-3 .container-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

#part-3 .card {
  background: #ffffff;
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  border: 2px solid transparent;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
}

#part-3 .card:hover,
#part-3 .card:focus-within {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-orange);
}

#part-3 .card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 1.5rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#part-3 .card:hover img {
  transform: scale(1.1);
}

#part-3 .card h3 {
  font-size: 2.2rem;
  font-family: var(--font-heading);
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

#part-3 .card p {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--text-body);
  max-height: 0;
  opacity: 0;
  transform: translateY(12px);
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0;
}

#part-3 .card:hover p,
#part-3 .card:focus-within p {
  max-height: 250px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 1rem;
}

#part-3 .btn {
  margin-top: 4rem;
}

#part-3 button {
  padding: 1.4rem 3.5rem;
  font-size: 1.6rem;
  border-radius: 30px;
  font-weight: 700;
  background-color: var(--accent-orange);
  color: #ffffff;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

#part-3 button:hover {
  background-color: var(--primary-blue);
  transform: translateY(-2px);
}

#gallery {
  padding: 6rem 2rem;
  text-align: center;
  background-color: rgba(247, 245, 239, 0.88);
}

#gallery h2 {
  font-family: var(--font-lobster);
  font-size: 4rem;
  color: var(--accent-orange);
  margin-bottom: 3rem;
}

#gallery .grid-container {
  columns: 3 280px;
  column-gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

#gallery .grid-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 2.5rem;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  padding: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease, z-index 0.4s ease;
  break-inside: avoid;
}

#gallery .grid-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

#gallery .grid-item:nth-child(1) { transform: rotate(-2deg); }
#gallery .grid-item:nth-child(2) { transform: rotate(2.5deg); }
#gallery .grid-item:nth-child(3) { transform: rotate(1deg); }
#gallery .grid-item:nth-child(4) { transform: rotate(-2.5deg); }
#gallery .grid-item:nth-child(5) { transform: rotate(2deg); }
#gallery .grid-item:nth-child(6) { transform: rotate(-1.5deg); }

#gallery .grid-item:hover {
  transform: scale(1.05) rotate(0deg) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

/* --------------------------------------------
   16. EVENTS PAGE GRID & HOVER OVERLAY (#event-grid)
   -------------------------------------------- */
#event-grid {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 4rem auto;
  background-color: rgba(247, 245, 239, 0.88);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

#event-grid .grid-container {
  columns: 2 400px;
  column-gap: 2.5rem;
}

#event-grid .event-card {
  display: inline-block;
  width: 100%;
  margin-bottom: 2.5rem;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #ffffff;
  padding: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  break-inside: avoid;
}

#event-grid .event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

#event-grid .event-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  display: block;
}

#event-grid .event-overlay {
  position: absolute;
  inset: 6px;
  border-radius: 14px;
  background: linear-gradient(to top, rgba(2, 98, 140, 0.95), rgba(194, 89, 52, 0.88));
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

#event-grid .event-card:hover .event-overlay {
  opacity: 1;
  pointer-events: auto;
}

#event-grid .event-overlay h3 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--accent-yellow);
  margin-bottom: 1rem;
  transform: translateY(15px);
  transition: transform 0.4s ease;
}

#event-grid .event-overlay p {
  font-family: var(--font-body);
  font-size: 1.5rem;
  line-height: 1.5;
  color: #ffffff;
  transform: translateY(15px);
  transition: transform 0.4s ease 0.05s;
}

#event-grid .event-card:hover .event-overlay h3,
#event-grid .event-card:hover .event-overlay p {
  transform: translateY(0);
}

/* --------------------------------------------
   17. CONTACT PAGE FORM & DETAILS (#contactdetails & #map)
   -------------------------------------------- */
#contactdetails {
  padding: 8rem 2rem;
  max-width: 1200px;
  margin: 4rem auto;
  background-color: rgba(247, 245, 239, 0.88);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

#contactdetails .container {
  display: flex;
  gap: 5rem;
  align-items: flex-start;
}

#contactdetails .content { flex: 1; }
#contactdetails .form { flex: 1; }

#contactdetails h2 {
  font-size: 3rem;
  font-family: var(--font-heading);
  color: var(--accent-orange);
  margin-bottom: 1.5rem;
}

#contactdetails p {
  font-size: 1.8rem;
  line-height: 1.6;
  margin-bottom: 3rem;
}

#contactdetails p span {
  font-weight: 700;
  color: var(--primary-blue);
}

#contactdetails .contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

#contactdetails .contact i {
  font-size: 2.2rem;
  color: var(--primary-blue);
  margin-top: 4px;
}

#contactdetails .contact h4,
#contactdetails .contact .info-text {
  font-size: 1.6rem;
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.5;
  display: block;
}

.login-box {
  background: #ffffff;
  padding: 4rem 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.user-box {
  position: relative;
  margin-bottom: 3rem;
}

.user-box input {
  width: 100%;
  padding: 1.2rem 0;
  font-size: 1.6rem;
  color: var(--text-dark);
  border: none;
  border-bottom: 2px solid #ccc;
  background: transparent;
  transition: border-color var(--transition-fast);
}

.user-box label {
  position: absolute;
  top: 1.2rem;
  left: 0;
  font-size: 1.6rem;
  color: #777;
  pointer-events: none;
  transition: all var(--transition-fast);
}

.user-box input:focus ~ label,
.user-box input:valid ~ label {
  top: -1.8rem;
  font-size: 1.3rem;
  color: var(--primary-blue);
  font-weight: 600;
}

.user-box input:focus {
  border-bottom-color: var(--primary-blue);
}

.login-box button {
  padding: 1.4rem 4rem;
  background-color: var(--accent-orange);
  color: #ffffff;
  border-radius: 30px;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.login-box button:hover {
  background-color: var(--primary-blue);
  transform: translateY(-2px);
}

#map {
  width: 100%;
  padding: 0;
}

#map iframe {
  width: 100%;
  height: 500px;
  border: none;
}


/* ============================================
   18. RESPONSIVE MEDIA QUERIES & BREAKPOINTS
   (Enforcing Image-First Order & Fluid Sizing)
   ============================================ */

/* --- Medium Desktop & Laptops (< 1200px) --- */
@media (max-width: 1200px) {
  #part-1 .header-2,
  #home .header-2 {
    padding: 1.5rem 5%;
  }

  #home .banner {
    left: 8%;
    width: 84%;
  }

  #home .banner h1 {
    font-size: 4.8rem;
  }

  #intro-ama .content h3 {
    font-size: 3.4rem;
  }

  #intro-ama .content p {
    font-size: 2rem;
  }

  #intro-ama .image img {
    width: 320px;
    height: 320px;
  }
}

/* --- Tablets & Mobile Landscape (< 992px) --- */
@media (max-width: 992px) {
  #home,
  #home .header {
    min-height: 480px;
  }

  #home .banner {
    padding: 10rem 1.5rem 4rem;
  }

  /* Navigation Bar */
  #part-1 .header-2,
  #home .header-2 {
    padding: 1.5rem 4%;
  }

  /* ------------------------------------------
     RESPONSIVE IMAGE-FIRST ORDERING (RULES)
     ------------------------------------------ */

  /* 1. Intro AMA Section (#intro-ama) */
  #intro-ama .header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    min-height: auto;
  }

  #intro-ama .image {
    order: 1; /* IMAGE COMES FIRST */
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    z-index: 3;
  }

  #intro-ama .image img {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin: 0 auto;
    width: 100%;
    max-width: 360px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  #intro-ama .content {
    order: 2; /* CONTENT COMES AFTER IMAGE */
    padding: 0;
    min-height: auto;
    text-align: center;
    align-items: center;
  }

  #intro-ama .content h3 {
    max-width: 100%;
    font-size: 3.2rem;
  }

  #intro-ama .content p {
    max-width: 100%;
    font-size: 1.8rem;
  }

  /* 2. Homepage About Us Section (#about-us) */
  #about-us {
    padding: 6rem 2rem;
  }

  #about-us .main {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }

  #about-us .main img {
    order: 1; /* IMAGE COMES FIRST */
    width: 100%;
    max-width: 500px;
    height: auto;
  }

  #about-us .all-text {
    order: 2; /* CONTENT COMES AFTER IMAGE */
    width: 100%;
  }

  /* 3. Road To Professionalism & Audio Player (#about-class) */
  #about-class {
    padding: 6rem 2rem;
  }

  #about-class .row {
    flex-direction: column;
    gap: 3.5rem;
  }

  #about-class .right-column {
    order: 1; /* PLAYER & MILIND SIR IMAGE COME FIRST */
    width: 100%;
  }

  #about-class .left-column {
    order: 2; /* CONTENT & PROGRESS BARS COME AFTER */
    width: 100%;
    text-align: center;
  }

  #about-class .player {
    max-width: 480px;
    margin: 0 auto;
  }

  #about-class .player .img-Box {
    height: auto;
    max-height: 320px;
    aspect-ratio: 4 / 3;
  }

  /* 4. About Us Page History & Vision (#part-2) */
  #part-2 {
    padding: 6rem 2rem;
  }

  #part-2 .row {
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 4.5rem;
  }

  #part-2 .row .left,
  #part-2 .row .right {
    width: 100%;
  }

  /* Row 1: Left column has image, Right has content */
  #part-2 .row:nth-child(1) .left {
    order: 1; /* IMAGE COMES FIRST */
  }

  #part-2 .row:nth-child(1) .right {
    order: 2; /* CONTENT COMES SECOND */
  }

  /* Row 2: Right column has image (hindustani.jpeg), Left has content */
  #part-2 .row:nth-child(2) .right {
    order: 1; /* IMAGE COMES FIRST ON RESPONSIVE */
  }

  #part-2 .row:nth-child(2) .left {
    order: 2; /* CONTENT COMES SECOND ON RESPONSIVE */
  }

  #part-2 img {
    max-width: 550px;
    margin: 0 auto;
    display: block;
  }

  /* Contact Details Page (#contactdetails) */
  #contactdetails {
    padding: 6rem 2rem;
  }

  #contactdetails .container {
    flex-direction: column;
    gap: 4rem;
  }

  #contactdetails .content,
  #contactdetails .form {
    width: 100%;
  }
}

/* --- Mobile Devices & Small Tablets (< 768px) --- */
@media (max-width: 768px) {
  /* Navigation Bar Mobile Hamburger Trigger */
  #home .header-2 .logo img,
  #part-1 .logo img {
    width: 160px;
  }

  #part-1 .icons,
  #home .icons {
    display: flex;
    align-items: center;
  }

  #part-1 #check:checked ~ .icons #menu-icon,
  #home #check:checked ~ .icons #menu-icon {
    display: none;
  }

  #part-1 .icons #close-icon,
  #home .icons #close-icon {
    display: none;
  }

  #part-1 #check:checked ~ .icons #close-icon,
  #home #check:checked ~ .icons #close-icon {
    display: block;
  }

  #part-1 .navbar,
  #home .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    transition: height var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  #part-1 #check:checked ~ .navbar,
  #home #check:checked ~ .navbar {
    height: 260px;
    padding: 15px 0;
  }

  #part-1 .nav-item,
  #home .nav-item {
    display: block;
    font-size: 1.8rem;
    margin: 1rem 0;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
  }

  #part-1 #check:checked ~ .navbar .nav-item,
  #home #check:checked ~ .navbar .nav-item {
    opacity: 1;
    transform: translateY(0);
  }

  /* Hero Banner Sizing */
  #home,
  #home .header {
    min-height: 380px;
  }

  #home .banner {
    width: 100%;
    padding: 8rem 5% 3rem;
    text-align: left;
  }

  #home .banner h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    white-space: normal;
  }

  #home .banner p {
    font-size: 1.8rem;
  }

  #home .banner button {
    padding: 1.2rem 2.4rem;
    font-size: 1.4rem;
  }

  #part-1 .header {
    height: 38vh;
  }

  #part-1 .banner h2 {
    font-size: 3.6rem;
  }

  /* Heading Section */
  #heading {
    padding: 4rem 1.5rem 1.5rem;
  }

  #heading h2 {
    font-size: 2.2rem;
  }

  /* Movie Poster Carousel Sizing */
  #movie .image-slider {
    height: 230px;
  }

  #movie .slide {
    flex: 0 0 150px;
    height: 210px;
  }

  /* Course Grid Sizing */
  #class-detail {
    padding: 6rem 1.5rem;
  }

  #class-detail .header h2,
  #part-3 h3,
  #gallery h2,
  #testimonial .content h3 {
    font-size: 3.2rem;
  }

  #class-detail .header h4,
  #part-3 h2,
  #testimonial .content h2 {
    font-size: 2.2rem;
  }

  #class-detail .header p {
    font-size: 1.6rem;
  }

  #class-detail .grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.8rem;
  }

  #class-detail .feature-card {
    padding: 2.2rem 1.5rem;
  }

  #class-detail .feature-card .icon img {
    width: 70px;
    height: 70px;
  }

  /* Live Counter */
  .live-counter {
    padding: 3rem 1.5rem;
    margin-top: 3rem;
  }

  .counter-number h2 {
    font-size: 3.4rem;
  }

  .counter-number p {
    font-size: 1.5rem;
  }

  /* Testimonials Responsive */
  #testimonial {
    padding: 6rem 1.5rem;
  }

  .testimonial-container {
    padding: 3rem 1.5rem;
  }

  #testimonial #prev { left: 0px; }
  #testimonial #next { right: 0px; }

  #testimonial button {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }

  .testimonial-slide img {
    width: 85px;
    height: 85px;
  }

  .testimonial-slide p {
    font-size: 1.5rem;
  }

  /* Ageless Art & Generation Cards */
  #head {
    padding: 6rem 1.5rem;
  }

  #head h3 {
    font-size: 3rem;
  }

  #head h2 {
    font-size: 2.2rem;
  }

  #head p {
    font-size: 1.6rem;
  }

  #cards {
    gap: 2rem;
    padding: 4rem 1.5rem;
  }

  #cards .ui-card {
    width: 100%;
    max-width: 320px;
    height: 380px;
  }

  /* About Class Content */
  #about-class .content-2 h3 {
    font-size: 3.2rem;
  }

  #about-class .content-2 p {
    font-size: 1.6rem;
  }

  #about-class .content h3 {
    font-size: 2.4rem;
  }

  #about-class .content h1 {
    font-size: 2rem;
  }

  /* Gallery & Event Grids Sizing */
  #gallery .grid-container,
  #event-grid .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
  }

  #gallery .grid-item img,
  #event-grid img {
    height: 220px;
  }

  /* Footer Responsive */
  #footer footer {
    padding: 4rem 1.5rem 2rem;
  }

  #footer .footer-info {
    gap: 3rem;
  }

  #footer .about,
  #footer .link,
  #footer .contact {
    flex: 1 1 100%;
    min-width: 100%;
  }

  /* Floating Buttons */
  .whatsapp_main {
    bottom: 75px;
    right: 12px;
  }

  .whatsapp_img {
    width: 50px;
    height: 50px;
  }

  #scroll-up-button {
    bottom: 12px;
    right: 12px;
    width: 46px;
    height: 46px;
    font-size: 16px;
  }
}

/* --- Small Mobile Screens (< 480px) --- */
@media (max-width: 480px) {
  #home,
  #home .header {
    min-height: 320px;
  }

  #home .banner {
    padding: 7rem 1rem 2rem;
  }

  #part-1 .logo img,
  #home .header-2 .logo img {
    width: 130px;
  }

  #home .banner h1 {
    font-size: 2.6rem;
  }

  #home .banner p {
    font-size: 1.5rem;
    margin: 1rem 0 2rem;
  }

  #home .banner button {
    padding: 1rem 2rem;
    font-size: 1.3rem;
  }

  #part-1 .banner h2 {
    font-size: 2.8rem;
  }

  #movie .image-slider {
    height: 180px;
  }

  #movie .slide {
    flex: 0 0 120px;
    height: 160px;
  }

  #intro-ama .image img {
    max-width: 280px;
  }

  #intro-ama .content h3 {
    font-size: 2.4rem;
  }

  #intro-ama .content p {
    font-size: 1.5rem;
  }

  #about-us .all-text h4 {
    font-size: 2.8rem;
  }

  #about-us .all-text h2 {
    font-size: 2.2rem;
  }

  #about-us .all-text p {
    font-size: 1.5rem;
  }

  #class-detail .grid {
    grid-template-columns: 1fr;
  }

  #part-3 .container-2 {
    grid-template-columns: 1fr;
  }

  #gallery .grid-container,
  #event-grid .grid-container {
    grid-template-columns: 1fr;
  }

  #gallery .grid-item img,
  #event-grid img {
    height: 220px;
  }

  .login-box {
    padding: 3rem 1.8rem;
  }

  #map iframe {
    height: 320px;
  }

  #contactdetails h2 {
    font-size: 2.4rem;
  }

  #contactdetails p {
    font-size: 1.5rem;
  }
}

/* Screen Reader Only Utility Class for Accessible SEO Headings */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Screen Reader Only Utility Class for Accessible SEO Headings */
/* Screen Reader Only Utility Class for Accessible SEO Headings */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   OUR JOURNEY TIMELINE STYLES (Merged Single-Card Layout)
   ============================================ */
.journey-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 8rem 2rem;
  position: relative;
}

/* Curved Path Background SVG Container */
.journey-path-svg-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.journey-path-svg-bg path {
  stroke: url(#journeyPathGradient);
  stroke-width: 4;
  fill: none;
  stroke-dasharray: 8 6;
  animation: pathFlow 30s linear infinite;
}

@keyframes pathFlow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 500; }
}

/* Unified Milestone Card */
.journey-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 4rem;
  border-radius: 24px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(2, 98, 140, 0.14);
  margin-bottom: 7rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

/* Clearfix for Floated Image and Wrapping Text */
.journey-card::after {
  content: "";
  display: table;
  clear: both;
}

.journey-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(2, 98, 140, 0.16);
}

/* Badge / Milestone Era Tag */
.journey-era-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: #ffffff;
  padding: 0.6rem 1.6rem;
  border-radius: 30px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  box-shadow: 0 4px 12px rgba(2, 98, 140, 0.3);
}

.journey-era-badge i {
  color: var(--accent-yellow);
}

.journey-card h2 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--primary-blue);
  margin-bottom: 2rem;
  line-height: 1.35;
}

/* Inline Image Card Floated inside Card */
.journey-image-inline {
  width: 44%;
  max-width: 480px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
  border: 4px solid #ffffff;
  background: #ffffff;
  position: relative;
  transition: transform var(--transition-normal);
}

.journey-image-inline:hover {
  transform: scale(1.02);
}

.journey-image-inline.float-right {
  float: right;
  margin: 0.5rem 0 2rem 3rem;
}

.journey-image-inline.float-left {
  float: left;
  margin: 0.5rem 3rem 2rem 0;
}

.journey-image-inline img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.journey-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: #ffffff;
  padding: 1.8rem 1.2rem 0.8rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.5px;
}

/* Paragraphs & Text Flow */
.journey-card p {
  font-family: var(--font-body);
  font-size: 1.65rem;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 1.8rem;
}

.journey-card p:last-child {
  margin-bottom: 0;
}

/* Quote Box Styling */
.journey-quote-box {
  background: linear-gradient(135deg, rgba(194, 89, 52, 0.08), rgba(239, 207, 79, 0.12));
  border-left: 4px solid var(--accent-orange);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 1.7rem;
  color: var(--primary-blue);
  font-weight: 600;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .journey-card {
    padding: 3rem 2.5rem;
  }

  .journey-image-inline.float-right,
  .journey-image-inline.float-left {
    width: 48%;
    margin-bottom: 1.5rem;
  }

  .journey-image-inline img {
    height: 260px;
  }
}

@media (max-width: 768px) {
  .journey-card {
    padding: 2.5rem 1.8rem;
    margin-bottom: 5rem;
  }

  .journey-image-inline.float-right,
  .journey-image-inline.float-left {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 1rem 0 2rem 0;
  }

  .journey-image-inline img {
    height: 250px;
  }

  .journey-card h2 {
    font-size: 2.2rem;
  }

  .journey-card p {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .journey-container {
    padding: 2rem 1rem 4rem 1rem;
  }

  .journey-card {
    padding: 2rem 1.4rem;
  }

  .journey-card h2 {
    font-size: 1.9rem;
  }

  .journey-image-inline img {
    height: 220px;
  }
}


