/*
Template: Saahib
Description: A responsive Bootstrap theme.
Version: 2.0 (Refactored)
*/

/* ---------------------------------------------
Table of contents
------------------------------------------------
01. Global Styles
    - Font Import
    - CSS Variables
    - Reset
    - Body & Typography
    - Scrollbar
    - Helper Classes
02. UI Components
    - Preloader
    - Header
    - Banner
    - Services
    - About Us
    - Pricing
    - Team
    - Testimonials
    - Events
    - Contact Us
    - Footer
03. Responsive Design
--------------------------------------------- */

/* ---------------------------------------------
01. Global Styles
--------------------------------------------- */

/* --- Font Import --- */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900");

/* --- CSS Variables --- */
:root {
  --font-family: "Poppins", sans-serif;
  --primary-color: #f76821;
  --primary-hover-color: #f75505;
  --dark-bg: #121212;
  --card-bg: #181818;
  --light-text: #fff;
  --dark-text: #1e1e1e;
  --bg-dark-solid: #121212;
  --muted-text: #d3d3d3;
  --body-text-color: #4a4a4a;
  --border-radius: 22px;
  --border-radius-large: 25px;
  --shadow: 0 4px 32px 0 rgba(247, 104, 33, 0.18);
  --glow: 0 0 0 2px var(--primary-color), 0 0 16px 0 rgba(247, 104, 33, 0.26);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --glass-hover-bg: rgba(255, 255, 255, 0.08);
  --glass-hover-border: 1px solid rgba(247, 104, 33, 0.3);
  --glass-hover-shadow: 0 20px 40px rgba(247, 104, 33, 0.1);
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
}

/* --- Reset --- */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
figure,
header,
nav,
section,
article,
aside,
footer,
figcaption {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
}

ul,
li {
  padding: 0;
  margin: 0;
  list-style: none;
}

header,
nav,
section,
article,
aside,
footer,
hgroup {
  display: block;
}

/* --- Body & Typography --- */
html,
body {
  font-family: var(--font-family);
  -ms-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--dark-bg);
  color: var(--light-text);
  overflow-x: hidden !important;
  /* hides and prevents horizontal scroll */
  overscroll-behavior-x: none;
  /* no sideways bounce on mobile */
}

a {
  text-decoration: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-text);
  margin-top: 0px;
  margin-bottom: 0px;
  font-weight: 700;
}

p {
  font-size: 14px;
  line-height: 28px;
  color: var(--body-text-color);
}

img {
  width: 100%;
  overflow: hidden;
}

::selection {
  background: var(--primary-color);
  color: var(--light-text);
}

::-moz-selection {
  background: var(--primary-color);
  color: var(--light-text);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
  background: var(--card-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover-color);
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--card-bg);
}

/* --- Helper Classes --- */
.clearfix:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}

.clearfix {
  display: inline-block;
}

html[xmlns] .clearfix {
  display: block;
}

* html .clearfix {
  height: 1%;
}

.section {
  padding-top: 30px;
  margin-top: 120px;
}

.section-heading {
  margin-bottom: 60px;
}

.section-heading h2 {
  font-size: 36px;
  font-weight: 600;
  text-transform: capitalize;
  margin: 20px 0;
  line-height: 44px;
}

.section-heading h2 em {
  color: var(--primary-color);
  font-style: normal;
}

.section-heading h6 {
  color: var(--primary-color);
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
}

.main-button a {
  display: inline-block;
  background-color: var(--light-text);
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 500;
  height: 40px;
  line-height: 40px;
  padding: 0px 25px;
  border-radius: var(--border-radius);
  transition: all 0.3s;
}

.main-button a:hover {
  background-color: var(--primary-color);
  color: var(--light-text);
}

/* Stunning background effect for the body */
.stunning-background {
  font-family: var(--font-family);
  background-color: var(--dark-bg);
  color: var(--light-text);
  background-image: radial-gradient(
      at 0% 0%,
      hsla(0, 0%, 100%, 0.1) 0px,
      transparent 50%
    ),
    radial-gradient(at 98% 99%, hsla(0, 0%, 100%, 0.1) 0px, transparent 50%);
  /* This uses multiple background gradients to create a starfield effect */
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  position: relative;
}

/* ---------------------------------------------
02. UI Components
--------------------------------------------- */

/* --- Preloader --- */
/* --- NEW PRELOADER STYLES --- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark-bg);
  background-image: radial-gradient(
      at 0% 0%,
      hsla(0, 0%, 100%, 0.1) 0px,
      transparent 50%
    ),
    radial-gradient(at 98% 99%, hsla(0, 0%, 100%, 0.05) 0px, transparent 50%);
  z-index: 9999;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  opacity: 1;
  visibility: visible;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-favicon {
  width: 160px;
  /* Adjust the size of your favicon as needed */
  height: auto;
  animation: pulse 2.5s infinite ease-in-out;
}

@media (max-width: 992.2px) {
  .preloader-favicon {
    width: 17vh;
    height: auto;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

#gradient-canvas {
  width: 100%;
  height: 100%;
  --gradient-color-1: #1a1a1d;
  --gradient-color-2: #3c1e0a;
  --gradient-color-3: #121212;
  --gradient-color-4: #3c2a1e;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

/*
 * Modern Header Styles
 * Version: 3.2 (Final Responsive & Scroll Fixes)
 */

/* ---------------------------------------------
   FONTS & GLOBAL VARIABLES
--------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css");

:root {
  --primary-color: #f76821;
  --primary-hover-color: #e65c19;
  --light-text: #ffffff;
  --muted-text: #b0b0b0;
  --bg-dark-glass: rgba(18, 18, 18, 0.5);
  --bg-dark-solid: #121212;
  --border-color: rgba(255, 255, 255, 0.1);
  --border-radius: 22px;
  --shadow: 0 4px 32px 0 rgba(247, 104, 33, 0.18);
  --dark-bg: #121212;
  --card-bg: #181818;
}

body {
  font-family: "Poppins", sans-serif;
  padding-top: 80px;
  /* Space for the fixed header */
  background-color: #121212;
}

/* Container for the fixed button */
.whatsapp-fixed-button {
  position: fixed; /* Makes the element stay in the same place when scrolling */
  bottom: 24px; /* Adjust distance from the bottom */
  right: 24px; /* Adjust distance from the right */
  z-index: 1000; /* Ensures the button is on top of other content */
}

/* Styling for the button link */
.whatsapp-fixed-button a {
  display: flex; /* Aligns the icon and text horizontally */
  align-items: center;
  justify-content: center; /* Centers the icon */
  background-color: var(--primary-color);
  color: white;
  width: 62px; /* Set a fixed width and height for a circular shape */
  height: 62px;
  text-decoration: none;
  border-radius: 50%; /* Makes the button perfectly circular */
  /* Removed box-shadow and related transitions for a flat look */
  transition: background-color 0.3s ease;
}

/* Hover effect for the button */
.whatsapp-fixed-button a:hover {
  transform: scale(1.1) translateY(-2px);
  transition: transform 0.3s ease;
}

/* Styling for the icon */
.whatsapp-fixed-button img {
  height: 50px; /* Slightly larger icon for better visibility */
  width: auto;
  vertical-align: middle;
}

/* ---------------------------------------------
   MAIN HEADER STYLES
--------------------------------------------- */
.header-area {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  /* fallback for Android */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.4s ease, border-color 0.4s ease,
    box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
  /* default transparent */
  -webkit-tap-highlight-color: transparent;
}

.header-area.scrolled {
  background: var(--bg-dark-glass, rgba(18, 18, 18, 0.6));
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.header-area .container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-nav {
  position: relative;
  /* anchor abs elements (hamburger, mobile panel) */
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  width: 100%;
}

.logo img {
  max-width: 140px;
  height: auto;
}

/* ---------------------------------------------
   DESKTOP NAVIGATION
--------------------------------------------- */
.main-nav .nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav .nav > li {
  margin: 0 20px;
  display: flex;
  align-items: center;
  height: 80px;
}

.main-nav .nav > li > a {
  color: var(--light-text, #ffffff);
  font-size: 16px;
  font-weight: 500;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

/* Underline animation on hover (desktop) */
.main-nav .nav > li > a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color, #f76821);
  transition: width 0.3s ease;
}

.main-nav .nav > li > a:hover::after,
.main-nav .nav > li > a.active::after {
  width: 100%;
}

.main-nav .nav > li > a:hover {
  color: var(--primary-color, #f76821);
}

/* ---------------------------------------------
   REGIONS DROPDOWN (DESKTOP)
--------------------------------------------- */
.main-nav .nav li.has-sub {
  position: relative;
}

#regions-menu-link {
  cursor: pointer;
  display: flex;
  align-items: center;
}

#current-region-display {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Desktop dropdown panel */
.main-nav .nav li .sub-menu {
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  background: var(--bg-dark-solid, #181818);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: top 0.3s ease, opacity 0.3s ease;
  z-index: 10;
}

/* Show submenu by hover (desktop) */
.main-nav .nav li.has-sub:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  top: 100%;
}

/* Also allow JS class to force show (desktop) */
.main-nav .nav li .sub-menu.show {
  opacity: 1;
  visibility: visible;
  top: 100%;
}

.sub-menu li a {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: var(--muted-text, #d3d3d3);
  font-size: 15px;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sub-menu li a:hover {
  background-color: var(--primary-color, #f76821);
  color: var(--light-text, #ffffff);
}

.sub-menu li a.active-region {
  color: var(--primary-color, #f76821);
  font-weight: 600;
}

.flag-icon {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 3px;
  margin-right: 12px;
}

/* ---------------------------------------------
   CTA BUTTON & MOBILE TRIGGER
--------------------------------------------- */
.header-btn {
  background: var(--primary-color, #f76821);
  color: var(--light-text, #ffffff);
  border: none;
  padding: 0 30px;
  height: 50px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 20px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.header-btn:hover {
  background: var(--primary-hover-color, #f75505);
  transform: scale(1.05);
}

/* --- Mobile Menu Trigger (expects: <a class="menu-trigger"><span></span></a>) --- */
.menu-trigger {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 1001;
  /* above header content */
}

/* If an <img> is still inside .menu-trigger, hide it on mobile to avoid overlap */
@media (max-width: 1024px) {
  .menu-trigger img {
    display: none;
  }
}

/* Base hamburger line; will create 3 bars via ::before/::after */
.menu-trigger span,
.menu-trigger span::before,
.menu-trigger span::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--light-text, #ffffff);
  border-radius: 2px;
  transition: all 0.3s ease;
  content: "";
  display: block;
}

.menu-trigger span {
  top: 50%;
  transform: translateY(-50%);
}

.menu-trigger span::before {
  top: -9px;
}

.menu-trigger span::after {
  top: 9px;
}

.menu-trigger {
  transform: rotate(0deg);
  /* <— explicit value, not 'none' */
  transition: transform 0.5s ease;
  /* applies on open AND close */
  transform-origin: 50% 50%;
}

/* Open state (menu open) */
.menu-trigger.active {
  transform: rotate(90deg);
  /* shows vertical | | | while open */
}

@media (max-width: 1024px) {
  .menu-trigger {
    display: block;
  }
}

/* ---------------------------------------------
   MOBILE & TABLET RESPONSIVE STYLES
--------------------------------------------- */
@media (max-width: 1024px) {
  /* Hide desktop nav & CTA by default; open via .active */
  .main-nav .nav,
  .header-btn {
    display: none;
  }

  /* Mobile navigation panel */
  .main-nav .nav {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--bg-dark-solid, #181818);
    padding: 15px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    flex-direction: column;
    align-items: center;
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  }

  /* Open state (supports either .active or .show for safety) */
  .main-nav .nav.active,
  .main-nav .nav.show {
    display: flex;
  }

  .main-nav .nav > li {
    width: 90%;
    margin: 0;
    padding: 0;
    height: auto;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    text-align: left;
    display: block;
    /* override flex item sizing */
  }

  .main-nav .nav > li:last-of-type {
    border-bottom: none;
  }

  .main-nav .nav > li > a {
    padding: 15px 10px;
    width: 100%;
    justify-content: space-between;
  }

  .main-nav .nav > li > a::after {
    display: none;
  }

  /* Mobile dropdown: hidden by default */
  .main-nav .nav li.has-sub .sub-menu {
    position: static;
    display: none;
    width: 100%;
    opacity: 1;
    visibility: visible;
    /* visible but not displayed */
    box-shadow: none;
    border: none;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0;
    padding: 5px 0 5px 20px;
    /* indent items */
    transform: none;
  }

  /* Open submenu via .open on the li (toggled by JS) */
  .main-nav .nav li.has-sub.open > .sub-menu {
    display: block;
  }

  /* Region link arrow on mobile (now actually visible) */
  #regions-menu-link::after {
    content: "▾";
    margin-left: auto;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1;
    transition: transform 0.2s ease;
  }

  /* Rotate arrow when open */
  .main-nav .nav li.has-sub.open #regions-menu-link::after {
    transform: rotate(180deg);
  }
}

/* --- Banner Styles (Scoped to .hero-banner) --- */
.hero-banner {
  background-image: linear-gradient(
    125deg,
    #1d1d1d 0%,
    var(--glass-bg) 45%,
    var(--primary-hover-color) 100%
  );
  border-radius: var(--border-radius-large);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  padding: 2.5rem 1.5rem 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-banner:hover {
  transform: translateY(-5px);
  box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
}

.hero-banner .hero-content {
  position: relative;
  z-index: 10;
}

.hero-banner .display-4 {
  font-weight: 800 !important;
  font-size: 2.25rem !important;
  line-height: 1.2 !important;
  text-align: left !important;
}

.hero-banner .highlight {
  color: var(--primary-color);
  text-shadow: 0 0 15px rgba(247, 104, 33, 0.5);
}

.hero-banner .lead {
  font-size: 1rem !important;
  color: var(--muted-text) !important;
  max-width: 500px;
  margin-top: 1rem;
  text-align: left !important;
}

.hero-banner .btn-custom {
  background-color: var(--primary-color);
  color: var(--light-text);
  border: none;
  border-radius: var(--border-radius);
  padding: 0.8rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

.hero-banner .btn-custom:hover {
  background-color: var(--primary-hover-color);
  color: var(--light-text);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), var(--shadow);
}

.hero-banner .hero-image-wrapper {
  margin-top: 1.5rem;
}

.hero-banner .hero-image-wrapper img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  transition: transform 0.4s ease-in-out;
  display: block;
}

.hero-banner:hover .hero-image-wrapper img {
  transform: scale(1.03);
}

/* --- Responsive Adjustments for Tablets --- */
@media (min-width: 768px) {
  .hero-banner {
    padding: 3rem 3rem 0;
  }

  .hero-banner .display-4 {
    font-size: 3rem !important;
  }
}

/* --- Responsive Adjustments for Desktops --- */
@media (min-width: 992px) {
  .hero-banner {
    padding: 0;
    min-height: 750px;
    display: flex;
    align-items: center;
  }

  .hero-banner .hero-content {
    padding: 4rem 5rem;
  }

  .hero-banner .display-4 {
    font-size: 3.5rem !important;
  }

  .hero-banner .lead {
    font-size: 1.1rem !important;
    margin-top: 1.5rem;
  }

  .hero-banner .btn-custom {
    margin-top: 2.5rem;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
  }

  .hero-banner .hero-image-wrapper {
    position: absolute;
    right: 3%;
    bottom: 0;
    width: 42%;
    height: 100%;
    max-width: 550px;
    margin-top: 0;
  }

  .hero-banner .hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom center;
  }
}

/* --- Responsive Adjustments for Extra Large Screens --- */
@media (min-width: 1400px) {
  .hero-banner {
    min-height: 900px;
  }

  .hero-banner .hero-content {
    padding: 5rem 6rem;
  }

  .hero-banner .display-4 {
    font-size: 4rem !important;
  }

  .hero-banner .hero-image-wrapper {
    width: 45%;
    max-width: 600px;
  }
}

/* --- SASS FEATURES SECTION --- */
.sass-section {
  padding: 120px 0;
  position: relative;
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px auto;
}

.section-intro .sass-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-intro h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-top: 10px;
}

/* --- DESKTOP: Feature Icon Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 40px;
}

/* --- MOBILE: Accordion Styles --- */
.features-accordion-item {
  background-color: var(--glass-bg);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  border: var(--glass-border);
}

.features-accordion-header {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.features-accordion-header h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--muted-text);
}

.features-accordion-item.active .features-accordion-header h4 {
  color: var(--light-text);
}

.features-accordion-header .accordion-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.4s ease;
  stroke: var(--primary-color);
  stroke-width: 2.5;
}

.features-accordion-item.active .accordion-icon {
  transform: rotate(135deg);
}

.features-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
  padding: 0 1.5rem;
}

.features-accordion-body .feature-grid {
  grid-template-columns: repeat(2, 1fr);
  /* 2 columns on mobile */
  gap: 20px;
  padding-bottom: 1.5rem;
}

/* --- Universal Feature Item Styling --- */
.feature-item {
  position: relative;
  text-align: center;
  cursor: pointer;
  padding-bottom: 1rem;
  transition: background-color 0.3s ease;
  border-radius: 12px;
}

.feature-item.expanded {
  background-color: rgba(255, 255, 255, 0.03);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 1rem auto 15px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--glass-bg);
  border: var(--glass-border);
  transition: all 0.3s ease;
}

.feature-icon svg {
  width: 36px;
  height: 36px;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
  background-color: var(--primary-color);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 20px rgba(247, 104, 33, 0.2);
}

.feature-item:hover .feature-icon svg {
  color: var(--light-text);
}

.feature-title {
  font-weight: 600;
  color: var(--muted-text);
  font-size: 0.9rem;
}

.feature-item:hover .feature-title,
.feature-item.expanded .feature-title {
  color: var(--light-text);
}

/* MOBILE: Fade & Slide-in Description */
.feature-description-mobile {
  font-size: 0.85rem;
  color: var(--muted-text);
  padding: 0.5rem 1rem 1rem 1rem;
  min-height: 60px;
  /* Reserve space to reduce layout shift */
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.feature-description-mobile.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tooltip (Desktop only) */
@media (min-width: 992px) {
  .feature-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-15px);
    width: 220px;
    padding: 15px;
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--muted-text);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
  }

  .feature-item:hover .feature-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
  }
}

/* --- How we make it happen --- */

.how-it-works-section {
  padding: 120px 0;
  position: relative;
  overflow-x: hidden;
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px auto;
}

.section-intro h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--light-text);
}

.section-intro p {
  color: var(--muted-text);
  font-size: 1.1rem;
}

.timeline-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background-color: var(--card-bg);
  border-radius: 3px;
}

#timeline-progress {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 0;
  background-image: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--primary-hover-color)
  );
  border-radius: 3px;
  transition: height 0.1s linear;
}

#timeline-orb {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 3px solid var(--dark-bg);
  box-shadow: 0 0 15px 5px rgba(247, 104, 33, 0.5);
  transition: top 0.1s linear;
  z-index: 2;
}

/* Container for each step row */
.timeline-step-row {
  margin-bottom: 80px;
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.timeline-step-row:nth-child(odd) {
  transform: translateX(-30px);
}

.timeline-step-row:nth-child(even) {
  transform: translateX(30px);
}

.timeline-step-row.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.step-card {
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: var(--border-radius);
  padding: 40px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease-in-out;
  position: relative;
}

.step-card:hover {
  transform: scale(1.03);
  border-color: var(--primary-color);
}

.step-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  opacity: 0.15;
  position: absolute;
  top: 10px;
  right: 25px;
}

.step-icon {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.step-icon svg {
  width: 40px;
  height: 40px;
}

.step-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--light-text);
}

.step-card p {
  font-size: 0.95rem;
  color: var(--muted-text);
  line-height: 1.7;
}

/* --- Mobile Optimization --- */
@media (max-width: 991.98px) {
  .timeline-wrapper::before,
  #timeline-progress,
  #timeline-orb {
    left: 20px;
  }

  .timeline-step-row {
    transform: translateY(50px);
  }

  .timeline-step-row:nth-child(even) {
    transform: translateY(50px);
  }

  .timeline-step-row.is-visible {
    transform: translateY(0);
  }

  .step-card-col {
    padding-left: 40px;
    /* Space for the line */
  }
}

/* Pricing card styles */

body.modal-open {
  overflow: hidden;
}

/* --- MODERN AURORA BACKGROUND --- */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(
      circle at 15% 25%,
      var(--primary-glow),
      transparent 30%
    ),
    radial-gradient(circle at 85% 75%, rgba(50, 100, 255, 0.2), transparent 40%);
  filter: blur(100px);
  z-index: -1;
  animation: moveAurora 20s infinite alternate;
}

@keyframes moveAurora {
  from {
    transform: translate(0, -50px) scale(1);
  }

  to {
    transform: translate(50px, 50px) scale(1.2);
  }
}

/* --- SECTION STYLING --- */
.pricing-section {
  padding: 50px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.section-intro h2 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.section-intro p {
  color: var(--muted-text);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 15px auto 0;
}

/* --- ENHANCED GLASSMORPHISM CONTROLS --- */
.plan-finder-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

.plan-finder-container {
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 25px 30px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 10;
}

.form-label {
  font-weight: 500;
  color: var(--muted-text);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

/* --- RESPONSIVE LEVEL SELECTOR (TABS & DROPDOWN) --- */
#level-tabs {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
}

.level-tab {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  color: var(--muted-text);
  padding: 10px 20px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.level-tab:hover {
  background: rgba(0, 0, 0, 0.3);
  color: var(--light-text);
}

.level-tab.active {
  background: var(--primary-color);
  color: var(--light-text);
  border-color: var(--primary-color);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* --- CUSTOM DROPDOWN STYLES --- */
.custom-dropdown {
  position: relative;
}

.custom-dropdown-toggle {
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  color: var(--light-text);
  border-radius: var(--border-radius-md);
  padding: 0.85rem 1.25rem;
  height: 54px;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s ease;
}

.custom-dropdown-toggle span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-dropdown-toggle.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.custom-dropdown-toggle:not(.disabled):hover {
  border-color: var(--primary-color);
}

.custom-dropdown-toggle::after {
  content: "";
  border: solid var(--muted-text);
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-left: 10px;
}

.custom-dropdown.open .custom-dropdown-toggle::after {
  transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
}

.custom-dropdown-menu {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: #1a1a1e;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  max-height: 200px;
  overflow-y: auto;
}

.custom-dropdown.open .custom-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-dropdown-item {
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--light-text);
}

.custom-dropdown-item:hover,
.custom-dropdown-item.selected {
  background-color: var(--primary-color);
  color: var(--light-text);
}

/* Responsive display for controls */
.plan-finder-controls-mobile {
  display: block;
}

@media (min-width: 1200px) {
  .plan-finder-container {
    width: fit-content;
  }

  #level-tabs {
    display: flex;
  }

  .plan-finder-controls-mobile {
    display: none;
  }
}

/* --- SLEEK RESULT CARD --- */
#pricing-result-container {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  position: relative;
  z-index: 1;
}

#pricing-result-container.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pricing-card-wrapper {
  padding: 1px;
  background: linear-gradient(135deg, var(--glass-border), var(--glass-border));
  border-radius: var(--border-radius-lg);
  transition: all 0.4s ease;
  height: 100%;
}

.pricing-card-wrapper.is-featured,
.pricing-card-wrapper:hover {
  background: linear-gradient(
    135deg,
    hsla(0, 0%, 100%, 0.1),
    hsla(0, 0%, 100%, 0.2)
  );
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 1199.98px) {
  .pricing-card-wrapper {
    background: linear-gradient(
      135deg,
      hsla(0, 0%, 100%, 0.05),
      hsla(0, 0%, 100%, 0.1)
    );
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
}

.pricing-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.05);
}

.popular-badge {
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--primary-hover-color)
  );
  color: var(--light-text);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 20px;
  align-self: center;
}

.plan-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--light-text);
}

.plan-sessions {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 10px 15px;
  margin-bottom: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  transition: all 0.3s ease;
}

.plan-sessions i {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-right: 10px;
}

.plan-sessions span {
  font-weight: 500;
  color: var(--light-text);
}

.plan-description {
  color: var(--muted-text);
  margin-bottom: 30px;
  font-weight: 300;
  flex-grow: 1;
}

.plan-price {
  display: flex;
  justify-content: center;
  align-items: baseline;
  margin-bottom: 10px;
  line-height: 1;
  transition: all 0.3s ease;
}

.plan-price .price-value {
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary-color);
}

.plan-price .price-term {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted-text);
  margin-left: 8px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 35px 0;
  flex-grow: 1;
  text-align: left;
}

.plan-features li {
  margin-bottom: 15px;
  color: #d1d1d6;
  font-weight: 400;
  display: flex;
  align-items: center;
}

.plan-features li i {
  color: var(--primary-color);
  margin-right: 12px;
  font-size: 1.2rem;
}

.btn {
  transition: all 0.3s ease;
}

.btn-enroll {
  background: linear-gradient(
    95deg,
    var(--primary-color),
    var(--primary-hover-color)
  );
  color: var(--light-text) !important;
  border: none;
  border-radius: var(--border-radius-md);
  padding: 15px 30px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-enroll:hover {
  color: var(--light-text);
  transform: scale(1.03);
  box-shadow: 0 6px 25px var(--primary-glow);
}

.btn-customize {
  background: rgba(255, 255, 255, 0.1);
  color: var(--light-text) !important;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 15px 30px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 15px;
}

.btn-customize:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--glass-border-light);
}

/* --- SUBJECT SELECTOR MODAL --- */
.subject-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.subject-modal-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

.subject-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 700px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  z-index: 1051;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.subject-modal-backdrop.is-visible .subject-modal {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.subject-modal-header {
  padding: 25px 30px;
  border-bottom: 1px solid var(--glass-border);
}

.subject-modal-header h4 {
  margin: 0;
  font-weight: 600;
  color: var(--light-text);
}

.subject-modal-body {
  padding: 30px;
  overflow-y: auto;
  max-height: 60vh;
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.subject-checkbox {
  display: block;
}

.subject-checkbox input {
  display: none;
}

.subject-checkbox label {
  display: block;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.subject-checkbox label:hover {
  background: rgba(0, 0, 0, 0.3);
  border-color: var(--glass-border-light);
}

.subject-checkbox input:checked + label {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--light-text);
  box-shadow: 0 0 15px var(--primary-glow);
}

.subject-modal-footer {
  padding: 20px 30px;
  border-top: 1px solid var(--glass-border);
  text-align: right;
}

/* -------- Tutors section styles --------- */
.tutors-section {
  padding: 120px 0;
  position: relative;
}

.section-intro h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-intro p {
  color: var(--muted-text);
  font-size: 1.1rem;
}

/* Responsive container for intro and tutor preview */
.tutor-display-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Tutor Thumbnail Navigator */
.tutor-thumbnail-nav {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.tutor-thumb {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 3px solid var(--card-bg);
  transition: all 0.3s ease;
}

.tutor-thumb.active,
.tutor-thumb:hover {
  border-color: var(--primary-color);
  transform: scale(1.1);
}

/* Desktop Tutor Preview Card */
.desktop-tutor-preview {
  display: none;
  /* Hidden on mobile by default */
  background-color: var(--glass-bg);
  border-radius: var(--border-radius);
  padding: 40px;
  color: var(--light-text);
  border: var(--glass-border);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.preview-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.preview-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--light-text);
}

.preview-badge {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 5px;
}

.preview-tagline {
  display: inline-block;
  font-style: italic;
  color: var(--muted-text);
  background-color: var(--dark-text);
  font-size: 1.1rem;
  border-left: 3px solid var(--primary-color);
  padding-left: 15px;
  margin: 20px 0;
}

.preview-details {
  color: var(--muted-text);
  margin-bottom: 30px;
}

.btn-view-full-profile {
  background-color: var(--primary-color);
  color: var(--light-text);
  border: none;
  border-radius: 12px;
  padding: 12px 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-view-full-profile:hover {
  background-color: var(--primary-hover-color);
}

/* Full-Screen Overlay */
.tutor-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tutor-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.tutor-overlay-content {
  width: 90%;
  max-width: 1200px;
  height: 90vh;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  border: var(--glass-border);
  display: flex;
  overflow: hidden;
}

.overlay-left-pane {
  flex: 0 0 40%;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  text-align: left;
  color: var(--light-text);
}

.overlay-left-pane::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(18, 18, 18, 0.9) 20%,
    transparent 80%
  );
}

.overlay-hero-content {
  position: relative;
  z-index: 2;
}

.overlay-name {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--light-text);
}

.overlay-badge {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 10px;
}

.overlay-right-pane {
  flex-grow: 1;
  padding: 50px;
  overflow-y: auto;
}

.profile-section-title {
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--light-text);
  font-size: 1.2rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 10px;
}

.profile-tagline {
  font-style: italic;
  color: var(--muted-text);
  margin: 0 0 25px 0;
  font-size: 1.1rem;
  border-left: 3px solid var(--primary-color);
  padding-left: 15px;
}

p {
  color: var(--muted-text);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.fact-item {
  font-size: 0.9rem;
}

.fact-item strong {
  color: var(--muted-text);
  display: block;
  font-weight: 600;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: 8px;
}

.achievement-item .icon {
  font-size: 1.5rem;
}

.courses-accordion .accordion-item {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 12px !important;
  margin-bottom: 10px;
}

.courses-accordion .accordion-button {
  background-color: transparent;
  color: var(--light-text);
  font-weight: 600;
  box-shadow: none;
}

.courses-accordion .accordion-button:not(.collapsed) {
  color: var(--primary-color);
}

.courses-accordion .accordion-body {
  color: var(--muted-text);
  font-size: 0.9rem;
}

.courses-accordion .accordion-button::after {
  filter: brightness(0) invert(1);
}

.cta-block {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  margin-top: 40px;
}

.cta-block h4 {
  color: var(--light-text);
  font-weight: 700;
}

.cta-block p {
  line-height: normal;
  margin-bottom: 18px;
  margin-top: 10px;
}

.btn-book-trial {
  background-color: var(--primary-color);
  color: var(--light-text);
  border: none;
  border-radius: 12px;
  padding: 10px 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.btn-book-trial:hover {
  background-color: var(--primary-hover-color);
}

.overlay-close,
.overlay-nav {
  position: absolute;
  top: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1051;
}

.overlay-close {
  right: 20px;
}

.overlay-nav {
  top: 50%;
  transform: translateY(-50%);
}

.overlay-nav.prev {
  left: 20px;
}

.overlay-nav.next {
  right: 20px;
}

/* --- MEDIA QUERIES --- */
@media (min-width: 992px) {
  .tutor-display-wrapper {
    flex-direction: row;
    align-items: flex-start;
  }

  .section-intro {
    flex: 0 0 40%;
    text-align: left;
    margin: 0;
  }

  .desktop-tutor-preview {
    display: block;
    flex-grow: 1;
  }
}

@media (max-width: 991.98px) {
  .section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
  }

  .tutor-thumbnail-nav {
    justify-content: center;
  }

  .tutor-overlay-content {
    flex-direction: column;
    height: 95vh;
  }

  .overlay-left-pane {
    flex: 0 0 250px;
    justify-content: flex-end;
    text-align: left;
  }

  .overlay-right-pane {
    padding: 30px;
  }

  .overlay-name {
    font-size: 1.8rem;
  }
}

/* --- REDESIGNED REGISTRATION SECTION --- */

/* --- Section & Container Styles --- */
.registration-section {
  padding: 100px 0;
  overflow: hidden;
}

.graphic-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.graphic-container svg {
  max-width: 400px;
  width: 100%;
  height: auto;
}

.form-container {
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 576px) {
  .form-container {
    padding: 25px;
  }
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header h2 {
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--light-text);
}

.form-header p {
  color: var(--muted-text);
}

/* --- Form Element Styles --- */
.form-label {
  font-weight: 600;
  color: var(--muted-text);
  margin-bottom: 0.5rem;
}

.form-control,
.custom-dropdown-btn {
  background-color: var(--glass-bg);
  border: var(--glass-border);
  color: var(--light-text);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* CORRECTED: Set min-height for wrapping */
.custom-dropdown-btn {
  min-height: 50px;
  height: auto;
  /* Allow height to grow */
  white-space: normal;
  /* Allow text to wrap */
  line-height: 1.4;
  /* Adjust line height for wrapped text */
}

.form-control {
  height: 50px;
}

.custom-dropdown-btn:hover {
  background-color: var(--glass-hover-bg);
}

.form-control:focus,
.custom-dropdown-btn:focus {
  background-color: var(--glass-bg);
  color: var(--light-text);
  border-color: var(--primary-color);
  box-shadow: var(--glow);
  outline: none;
}

.submit-btn {
  background-color: var(--primary-color);
  color: var(--light-text);
  border-radius: 12px;
  width: 100%;
  border: none;
  padding: 0.9rem;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background-color: var(--primary-hover-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* --- Validation Styles --- */
.was-validated .form-control:invalid,
.was-validated .form-control:invalid:focus {
  border-color: var(--bs-danger);
  box-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
}

.was-validated
  input[type="hidden"][required]:invalid
  ~ .dropdown
  .custom-dropdown-btn {
  border-color: var(--bs-danger) !important;
}

/* --- Custom Dropdown Styles --- */
.dropdown-menu {
  background-color: var(--card-bg);
  border: var(--glass-border);
  border-radius: 12px;
  padding: 0.5rem 0;
  width: 100%;
}

.dropdown-item {
  color: var(--muted-text);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  white-space: normal;
  /* Allow item text to wrap */
}

.dropdown-item img {
  width: 24px;
  height: auto;
  flex-shrink: 0;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
  background-color: var(--primary-color);
  color: var(--light-text);
  outline: none;
}

.custom-dropdown-btn {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-dropdown-btn.disabled {
  background-color: rgba(24, 24, 24, 0.5);
  color: var(--muted-text);
  pointer-events: none;
}

#country-code-btn {
  border-radius: 12px 0 0 12px;
  background-color: rgba(0, 0, 0, 0.3);
  border-right: none;
  width: auto;
  gap: 10px;
  color: var(--light-text);
}

#country-code-btn img {
  width: 24px;
}

/* --- CSS For Form Status Messages --- */

#form-status {
  /* Layout and Spacing */
  padding: 12px 15px;
  margin-top: 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;

  /* Hide it by default */
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Style for when a message is present */
#form-status.status-success,
#form-status.status-error {
  opacity: 1;
  transform: translateY(0);
}

/* Green theme for success messages */
.status-success {
  background-color: rgba(45, 212, 191, 0.1); /* Teal background */
  color: #0d9488; /* Teal text */
  border: 1px solid rgba(45, 212, 191, 0.3);
}

/* Red theme for error messages */
.status-error {
  background-color: rgba(248, 113, 113, 0.1); /* Red background */
  color: #dc2626; /* Red text */
  border: 1px solid rgba(248, 113, 113, 0.3);
}

/* --- Loading Animation for Submit Button --- */

.is-loading .loading-dots::after {
  content: ".";
  animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
  0%,
  20% {
    color: rgba(0, 0, 0, 0);
    text-shadow: 0.25em 0 0 rgba(0, 0, 0, 0), 0.5em 0 0 rgba(0, 0, 0, 0);
  }
  40% {
    color: white; /* Or your button's text color */
    text-shadow: 0.25em 0 0 rgba(0, 0, 0, 0), 0.5em 0 0 rgba(0, 0, 0, 0);
  }
  60% {
    text-shadow: 0.25em 0 0 white, 0.5em 0 0 rgba(0, 0, 0, 0);
  }
  80%,
  100% {
    text-shadow: 0.25em 0 0 white, 0.5em 0 0 white;
  }
}

/* --- SVG Animation --- */
.geo-group {
  animation: subtle-rotate 40s linear infinite;
  transform-origin: center;
}

.geo-shape {
  animation: float-up-down 8s ease-in-out infinite;
}

.geo-shape.shape-2 {
  animation-delay: -2s;
  animation-duration: 10s;
}

.geo-shape.shape-3 {
  animation-delay: -4s;
  animation-duration: 12s;
}

.geo-line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw-line 10s ease-in-out infinite;
}

.geo-line.line-2 {
  animation-delay: -5s;
}

@keyframes subtle-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes float-up-down {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes draw-line {
  0%,
  100% {
    stroke-dashoffset: 100;
  }

  50% {
    stroke-dashoffset: 0;
  }
}

/* --- Testimonials --- */
.section-testimonials h2 {
  color: var(--light-text);
}

.section-testimonials h6 {
  padding-top: 120px;
}

.slider-container {
  width: 90%;
  margin: 0 auto;
  position: relative;
  padding: 2rem;
  border-radius: 12px;
}

.slider-track {
  display: flex;
  gap: 2rem;
  animation: scroll 40s linear infinite;
  width: fit-content;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 470px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-card:hover {
  background: var(--glass-hover-bg);
  border: var(--glass-hover-border);
  box-shadow: var(--glass-hover-shadow);
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--primary-color) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 1s ease;
}

.testimonial-card:hover::before {
  transform: translateX(100%);
}

.testimonial-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.testimonial-text {
  color: var(--light-text);
  margin-top: 20px;
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.author-info {
  border-top: 1px solid #ddd;
  padding-top: 1rem;
}

.author-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--muted-text);
  display: block;
}

.author-role {
  font-size: 0.8rem;
  color: #a9a4a4;
}

/* --- Upcoming Batches --- */
/* --- UPCOMING BATCHES SECTION --- */
.batches-section {
  padding: 60px 0;
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.section-intro h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-intro p {
  color: var(--muted-text);
  font-size: 1rem;
}

/* --- Tab Styling --- */
.batch-tabs .nav-tabs {
  border-bottom: none;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.batch-tabs .nav-link {
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: var(--border-radius);
  color: var(--muted-text);
  font-weight: 600;
  margin: 5px;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.batch-tabs .nav-link.active {
  background-color: var(--primary-color);
  color: var(--light-text);
  border-color: var(--primary-color);
}

.batch-tabs .nav-link:hover:not(.active) {
  border-color: var(--primary-color);
  color: var(--light-text);
}

/* --- Agenda View Layout --- */
.batch-entry {
  display: flex;
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  align-items: center;
}

.batch-entry:hover {
  border-color: var(--primary-color);
}

.date-block {
  text-align: center;
  flex: 0 0 80px;
  border-right: 1px solid var(--glass-border);
  padding-right: 20px;
  margin-right: 20px;
}

.date-block .month {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted-text);
  text-transform: uppercase;
}

.date-block .day {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--light-text);
  line-height: 1;
}

.details-block {
  flex-grow: 1;
}

.details-block h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--light-text);
}

.details-block p {
  font-size: 0.9rem;
  color: var(--muted-text);
  margin-bottom: 15px;
}

.status-and-progress {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.batch-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-dot.upcoming {
  background-color: var(--primary-color);
}

.status-dot.live {
  background-color: #28a745;
}

.status-dot.finished {
  background-color: var(--muted-text);
}

.progress-bar-container {
  flex-grow: 1;
  height: 6px;
  background-color: var(--card-bg);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.action-block {
  flex: 0 0 180px;
  text-align: right;
}

.btn-register {
  background-color: var(--primary-color);
  color: var(--light-text);
  border: none;
  border-radius: 10px;
  padding: 10px 25px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-register:hover {
  background-color: var(--primary-hover-color);
}

.btn-register:disabled {
  background-color: var(--card-bg);
  color: var(--body-text-color);
  cursor: not-allowed;
}

.batch-entry.is-finished {
  opacity: 0.7;
}

/* --- View More/Less Button Styles --- */
.view-toggle-container {
  text-align: center;
  margin-top: 10px;
}

.btn-view-toggle {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 10px;
  padding: 10px 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 0 5px;
}

.btn-view-toggle:hover {
  background-color: var(--primary-color);
  color: var(--light-text);
}

/* --- Responsive Card Hiding Logic --- */
.tab-pane .batch-entry {
  display: none;
  /* Hide all by default */
}

/* Show all when .show-all is present */
.tab-pane.show-all .batch-entry {
  display: flex;
}

/* Show first 4 by default on large screens */
.tab-pane:not(.show-all) .batch-entry:nth-child(-n + 4) {
  display: flex;
}

@media (max-width: 1199.98px) {
  /* Show first 3 on medium screens */
  .tab-pane:not(.show-all) .batch-entry:nth-child(-n + 3) {
    display: flex;
  }

  .tab-pane:not(.show-all) .batch-entry:nth-child(4) {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .batches-section {
    padding: 40px 0;
  }

  .section-intro h2 {
    font-size: 2rem;
  }

  .batch-entry,
  .tab-pane.show-all .batch-entry {
    /* Ensure mobile layout is maintained */
    flex-direction: column;
    align-items: flex-start;
  }

  .date-block {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
    margin-bottom: 15px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .date-block .day {
    font-size: 2rem;
  }

  .action-block {
    width: 100%;
    text-align: left;
    margin-top: 15px;
    flex: 0 0 25px;
  }

  .btn-register {
    width: 100%;
    text-align: center;
  }

  /* FIX: More specific selector to remove extra space on mobile */
  .batch-entry .details-block .status-and-progress {
    margin-bottom: 0;
  }

  /* Show first 2 on small screens */
  .tab-pane:not(.show-all) .batch-entry:nth-child(-n + 2) {
    display: flex;
  }

  .tab-pane:not(.show-all) .batch-entry:nth-child(3) {
    display: none;
  }
}

/* --- OPTIMIZED FAQ SECTION STYLES --- */

/* --- FAQ SECTION (Bootstrap 5.3.3 compatible) --- */

.faq-section {
  padding: 80px 0;
  position: relative;
}

@media (min-width: 992px) {
  .faq-section {
    padding: 120px 0;
  }
}

/* Intro */
.faq-intro h2 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--light-text, #fff);
}

@media (min-width: 992px) {
  .faq-intro h2 {
    font-size: 2.8rem;
  }
}

.faq-intro p {
  color: var(--muted-text, #cfcfcf);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.faq-contact-link {
  color: var(--primary-color, #f76821);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.faq-contact-link:hover {
  color: var(--primary-hover-color, #f75505);
  text-decoration: underline;
}

/* --- Accordion shell --- */
.faq-accordion .accordion-item {
  background: var(--glass-bg, rgba(24, 24, 24, 0.45));
  border: var(--glass-border, 1px solid rgba(255, 255, 255, 0.08));
  border-radius: 15px;
  margin-bottom: 15px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* Only animate paint-style props; avoid layout jank during collapse */
  transition: border-color 0.25s ease, background-color 0.25s ease,
    box-shadow 0.25s ease;
  /* Helps some engines isolate repaints */
  contain: layout paint;
}

.faq-accordion .accordion-item:hover {
  border-color: rgba(247, 104, 33, 0.5);
}

/* Buttons */
.faq-accordion .accordion-button {
  background-color: transparent;
  color: var(--light-text, #fff);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 15px !important;
  box-shadow: none;
  padding: 20px;
}

@media (min-width: 992px) {
  .faq-accordion .accordion-button {
    font-size: 1.1rem;
    padding: 25px;
  }
}

.faq-accordion .accordion-button:focus {
  box-shadow: none;
}

.faq-accordion .accordion-button.collapsed {
  border-bottom: 0;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--primary-color, #f76821);
}

/* Indicator (+ / −) — override default chevron */
.faq-accordion .accordion-button::after {
  content: "+";
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
  font-size: 2rem;
  font-weight: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: 30px;
  height: 30px;
  color: var(--muted-text, #cfcfcf);
  background-image: none !important;
  transform: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
  content: "−";
  transform: rotate(180deg);
  color: var(--primary-color, #f76821);
}

/* Body */
.faq-accordion .accordion-body {
  color: var(--muted-text, #cfcfcf);
  padding: 0 20px 20px 20px;
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (min-width: 992px) {
  .faq-accordion .accordion-body {
    padding: 0 25px 25px 25px;
  }
}

/* Keep Bootstrap's height transition intact (no layout conflicts) */
.faq-accordion .accordion-collapse {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  /* separator instead of button border */
}

.faq-accordion .accordion-collapse.collapsing {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
  /* Bootstrap default */
}

/* Reduced motion friendliness */
@media (prefers-reduced-motion: reduce) {
  .faq-accordion .accordion-item,
  .faq-accordion .accordion-button::after,
  .faq-accordion .accordion-collapse.collapsing {
    transition: none !important;
  }
}

/* -------------Footer Design-------------------*/
/* --- OPTIMIZED RICH FOOTER STYLES --- */

.rich-footer {
  background-color: var(--glass-bg);
  /* Responsive padding */
  padding-top: 60px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 992px) {
  .rich-footer {
    padding-top: 80px;
  }
}

.footer-logo img {
  max-width: 150px;
  margin-bottom: 20px;
}

.footer-tagline {
  color: var(--muted-text);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 15px;
  /* Use gap for consistent spacing */
}

.footer-socials a {
  color: var(--muted-text);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-heading {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--light-text);
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--muted-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* Newsletter Form */
.newsletter-form .form-control {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  color: var(--light-text);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
}

.form-control::placeholder {
  color: var(--body-text-color);
}

.newsletter-form .form-control:focus {
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--light-text);
  border-color: var(--primary-color);
  box-shadow: none;
}

.newsletter-form .btn-subscribe {
  background-color: var(--primary-color);
  color: var(--light-text);
  border-radius: var(--border-radius);
  width: 100%;
  border: none;
  padding: 0.75rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.newsletter-form .btn-subscribe:hover {
  background-color: var(--primary-hover-color);
}

/* Sub-Footer */
.sub-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 25px 0;
  margin-top: 40px;
  /* Reduced margin for tighter look */
  font-size: 0.9rem;
  color: var(--body-text-color);
}

@media (min-width: 992px) {
  .sub-footer {
    margin-top: 60px;
  }
}

.sub-footer a {
  color: var(--body-text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.sub-footer a:hover {
  color: var(--primary-color);
}

/* Responsive alignment for sub-footer links */
.legal-links a {
  margin: 0 10px;
}

@media (min-width: 768px) {
  .legal-links a:first-child {
    margin-left: 0;
  }

  .legal-links a:last-child {
    margin-right: 0;
  }
}

/* ---------------------------------------------
03. Responsive Design
--------------------------------------------- */
body {
  overflow-x: hidden;
}

@media (max-width: 992px) {
  /* --- Banner --- */
  .main-banner {
    padding-top: 100px;
  }

  .main-banner .item {
    padding: 100px 60px 140px 60px;
    margin-left: 0px;
    text-align: center;
  }

  .main-banner .item h2,
  .main-banner .item p {
    width: 100%;
  }

  .main-banner .item h2 {
    font-size: 36px;
    line-height: 50px;
  }

  .main-banner .item .buttons {
    justify-content: center;
  }

  .main-banner .owl-nav {
    left: 50% !important;
    transform: translateX(-50px) !important;
    bottom: 60px;
  }

  /* --- Sections --- */
  .about-us::before,
  .contact-us::before {
    display: none;
  }

  .about-us .section-heading {
    margin-left: 0px;
    margin-top: 120px;
  }

  .events .item .image img {
    position: relative;
    max-width: 100%;
    top: 0;
  }

  .events .item ul {
    margin-top: 30px;
  }

  .events .item ul li {
    display: block;
    width: 100% !important;
    text-align: left;
    margin-bottom: 20px;
  }

  .events .item ul li:last-child {
    text-align: left;
  }

  .contact-us .section-heading {
    margin-right: 0px;
  }

  .contact-us .contact-us-content {
    margin-top: 40px;
  }
}

@media (max-width: 767px) {
  /* --- Banner --- */
  .main-banner .item {
    padding: 80px 30px 120px 30px !important;
  }

  .main-banner .owl-nav {
    left: 30px !important;
    transform: none !important;
  }

  /* --- Pricing Filter --- */
  .event_filter {
    padding: 15px 10px;
    border-radius: 30px;
  }

  .event_filter li {
    margin: 0px 5px;
  }

  /* --- Testimonials --- */
  .testimonial-card {
    min-width: 80vw;
  }
}

/* --- Blog pages Styles --- */

.blog-section {
  padding: 60px 0;
}

/* --- MODIFIED: Featured Article Slider --- */
.featured-slider-container {
  position: relative;
  min-height: 500px;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 80px;
}

.featured-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: flex-end;
  padding: 60px;
}

.featured-slide.active {
  opacity: 1;
}

.featured-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(18, 18, 18, 0.9) 20%,
    transparent 70%
  );
  z-index: 1;
}

.featured-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.featured-category {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 15px;
}

.featured-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--light-text);
}

.btn-read-more {
  background-color: var(--primary-color);
  color: var(--light-text);
  border: none;
  border-radius: 12px;
  padding: 12px 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-read-more:hover {
  background-color: var(--primary-hover-color);
}

/* --- Trending Section --- */
.trending-section {
  margin-bottom: 80px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--light-text);
}

.trending-scroll-container {
  display: flex;
  overflow-x: auto;
  padding-bottom: 20px;
  gap: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--card-bg);
}

.trending-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.trending-scroll-container::-webkit-scrollbar-track {
  background: var(--card-bg);
  border-radius: 4px;
}

.trending-scroll-container::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 4px;
}

.trending-card {
  flex: 0 0 300px;
}

/* --- Filter Controls with Arrows --- */
.filter-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 50px;
}

.filter-scroll-container {
  flex-grow: 1;
  display: flex;
  gap: 15px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.filter-scroll-container::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background: var(--glass-bg);
  border: var(--glass-border);
  color: var(--muted-text);
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-btn:hover {
  background-color: var(--primary-hover-color);
  color: var(--light-text);
  border-color: var(--primary-hover-color);
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: var(--light-text);
  border-color: var(--primary-color);
}

.scroll-arrow {
  background: var(--glass-bg);
  border: var(--glass-border);
  color: var(--light-text);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.scroll-arrow:hover {
  background-color: var(--primary-color);
}

.scroll-arrow.d-none {
  display: none !important;
}

/* --- Blog Card Enhancements --- */
.blog-card {
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 15px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInSlideUp 0.5s ease-out forwards;
}

.blog-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-img-wrapper {
  overflow: hidden;
  position: relative;
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .card-img-top {
  transform: scale(1.1);
}

/* MODIFIED: Read time badge styling */
.read-time-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(0, 0, 0, 0.6);
  color: var(--light-text);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(5px);
}

.card-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-category {
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--light-text);
  flex-grow: 1;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--muted-text);
  border-top: 1px solid var(--glass-border);
  padding-top: 15px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.author-img-small {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.read-more-arrow {
  opacity: 0;
  transition: opacity 0.3s ease;
  color: var(--primary-color);
}

.blog-card:hover .read-more-arrow {
  opacity: 1;
}

.meta-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

/* --- "View More" Button --- */
.view-more-container {
  text-align: center;
  margin-top: 60px;
}

.btn-view-more {
  background-color: var(--primary-color);
  color: var(--light-text);
  border: none;
  border-radius: 12px;
  padding: 12px 40px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-view-more:hover {
  background-color: var(--primary-hover-color);
}

.btn-view-more.d-none {
  display: none !important;
}

/* --- Utility & Animations --- */
.loading-placeholder,
.error-placeholder {
  text-align: center;
  padding: 40px;
  color: var(--muted-text);
}

.no-results-message {
  text-align: center;
  padding: 40px 0;
  display: none;
}

@keyframes fadeInSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- SINGLE BLOG POST TEMPLATE --- */

.article-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--light-text);
}

.article-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(18, 18, 18, 0.7);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.article-category {
  background-color: var(--primary-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 20px;
}

.article-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--light-text);
}

.article-meta-info {
  font-size: 1rem;
  color: var(--muted-text);
}

/* Main Content Area */
.article-section {
  padding: 80px 0;
}

.article-body {
  max-width: 750px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--body-text-color);
}

/* --- MODIFIED: Comprehensive Content Styling --- */

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  font-weight: 600;
  color: var(--light-text);
  margin-top: 1.5em;
  margin-bottom: 0.8em;
}

.article-body h1 {
  font-size: 2.2rem;
}

.article-body h2 {
  font-size: 1.8rem;
}

.article-body h3 {
  font-size: 1.5rem;
}

.article-body h4 {
  font-size: 1.2rem;
}

.article-body h5 {
  font-size: 1.1rem;
}

.article-body h6 {
  font-size: 1rem;
  color: var(--muted-text);
}

.article-body p {
  margin-bottom: 1.25em;
}

.article-body a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px dotted var(--primary-color);
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.article-body a:hover {
  color: var(--primary-hover-color);
  border-bottom-color: var(--primary-hover-color);
}

.article-body blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 25px;
  margin: 30px 0;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--muted-text);
}

.article-body blockquote p {
  margin-bottom: 0;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  margin: 30px 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.article-body figure {
  margin: 30px 0;
}

.article-body figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted-text);
  margin-top: 10px;
}

.article-body ul,
.article-body ol {
  padding-left: 25px;
  margin-bottom: 20px;
}

.article-body li {
  margin-bottom: 0.5em;
}

.article-body hr {
  border: 0;
  height: 1px;
  background-image: linear-gradient(
    to right,
    rgba(255, 255, 255, 0),
    var(--glass-border),
    rgba(255, 255, 255, 0)
  );
  margin: 40px 0;
}

.article-body pre {
  background-color: #282c34;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  padding: 20px;
  margin: 30px 0;
  overflow-x: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.article-body code {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95rem;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2px 5px;
  border-radius: 4px;
}

.article-body pre code {
  background-color: transparent;
  padding: 0;
}

.article-body table {
  width: 100%;
  margin: 30px 0;
  border-collapse: collapse;
  color: var(--body-text-color);
}

.article-body th,
.article-body td {
  border: 1px solid var(--glass-border);
  padding: 12px 15px;
  text-align: left;
}

.article-body th {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--light-text);
  font-weight: 600;
}

.article-body tr:nth-of-type(even) {
  background-color: rgba(0, 0, 0, 0.2);
}

.article-body .task-list-item {
  list-style-type: none;
}

.article-body .task-list-item input[type="checkbox"] {
  margin-right: 10px;
}

.article-body .alert {
  padding: 20px;
  margin: 30px 0;
  border-left-width: 5px;
  border-left-style: solid;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.03);
}

.article-body .alert-note {
  border-color: #3498db;
}

.article-body .alert-warning {
  border-color: #f1c40f;
}

.article-body .alert-tip {
  border-color: #2ecc71;
}

.article-body .footnotes {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  font-size: 0.9rem;
}

/* NEW: Additional Content Styling */
.article-body kbd {
  background-color: #333;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9em;
  box-shadow: 1px 1px 0 #555;
}

.article-body details {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 15px 20px;
  margin: 20px 0;
}

.article-body summary {
  font-weight: 600;
  color: var(--light-text);
  cursor: pointer;
}

.article-body dl {
  margin: 20px 0;
}

.article-body dt {
  font-weight: 600;
  color: var(--light-text);
}

.article-body dd {
  margin-left: 20px;
  margin-bottom: 10px;
}

.article-body mark {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 2px 4px;
  border-radius: 3px;
}

/* Sticky Sidebar */
.sticky-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}

.widget-title {
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--light-text);
}

.author-bio {
  text-align: center;
}

.author-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 2px solid var(--primary-color);
}

/* MODIFIED: Enhanced Social Share Card */
.share-card {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--primary-hover-color)
  );
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  color: var(--light-text);
}

.share-card .widget-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.share-card p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 25px;
  color: var(--light-text);
}

.social-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--light-text);
  margin: 0 8px;
  transition: all 0.3s ease;
}

.social-share a:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.related-posts-section {
  border-top: 1px solid var(--glass-border);
  padding-top: 60px;
  margin-top: 80px;
  color: var(--light-text);
}

.related-post-card {
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 15px;
  transition: all 0.3s ease;
  height: 100%;
  overflow: hidden;
}

.related-post-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

h2 {
  color: var(--light-text);
}

.related-post-card img {
  height: 180px;
  object-fit: cover;
}

.related-post-card .card-body {
  padding: 20px;
}

.related-post-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--light-text);
}

.skeleton {
  animation: skeleton-loading 1.5s linear infinite alternate;
}

@keyframes skeleton-loading {
  0% {
    background-color: hsl(200, 20%, 30%);
  }

  100% {
    background-color: hsl(200, 20%, 40%);
  }
}

.skeleton-text {
  width: 100%;
  height: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 0.25rem;
}

.skeleton-text:last-child {
  width: 80%;
}

.skeleton-title {
  width: 70%;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 0.25rem;
}

.skeleton-hero {
  height: 60vh;
}

.skeleton-img {
  height: 80px;
  width: 80px;
  border-radius: 50%;
}
