/* ========== CSS VARIABLES ========== */
:root {
  --accent: #ff5f01;
  --accent-hover: #e55400;
  --accent-glow: rgba(255,95,1,.22);
  --accent-soft: rgba(255,95,1,.07);
  --accent-soft2: rgba(255,95,1,.12);
  --font: 'Inter', sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --transition: .4s cubic-bezier(.25,.46,.45,.94);
  --spring: .55s cubic-bezier(.68,-.55,.27,1.55);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.08);
}

[data-theme="light"] {
  --bg: #fafafa; --bg-alt: #f2f3f5; --bg-tert: #e8eaed;
  --text: #111; --text-sec: #555; --text-muted: #999;
  --border: #e5e5e5; --card: #fff; --card-hover: #fff;
  --nav-bg: rgba(250,250,250,.82); --nav-border: rgba(0,0,0,.06);
  --input-bg: #f5f5f5; --hero-overlay: linear-gradient(135deg,rgba(250,250,250,.95),rgba(250,250,250,.88));
  --dd-bg: #fff; --dd-shadow: 0 20px 60px rgba(0,0,0,.1);
  --glass: rgba(255,255,255,.65); --glass-border: rgba(255,255,255,.3);
  --cursor-mix: #111;
  --section-dark: #1a1a1a; --section-dark-text: #fff;
}

[data-theme="dark"] {
  --bg: #0a0a0a; --bg-alt: #111; --bg-tert: #1a1a1a;
  --text: #f0f0f0; --text-sec: #aaa; --text-muted: #666;
  --border: #222; --card: #141414; --card-hover: #1a1a1a;
  --nav-bg: rgba(10,10,10,.88); --nav-border: rgba(255,255,255,.05);
  --input-bg: #1a1a1a; --hero-overlay: linear-gradient(135deg,rgba(10,10,10,.96),rgba(10,10,10,.90));
  --dd-bg: #141414; --dd-shadow: 0 20px 60px rgba(0,0,0,.5);
  --glass: rgba(20,20,20,.65); --glass-border: rgba(255,255,255,.06);
  --cursor-mix: #fff;
  --section-dark: #000; --section-dark-text: #fff;
}

/* ========== RESET & GLOBAL ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background .5s, color .5s;
  cursor: none; /* Custom cursor default */
}
a { text-decoration: none; color: inherit; cursor: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button { cursor: none; font-family: var(--font); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ========== UTILITIES ========== */
::selection { background: var(--accent); color: #fff; text-shadow: none; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-clip: content-box; border: 3px solid transparent; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background-color: var(--accent); border: 0; }
html { scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }

/* ========== CUSTOM CURSOR ========== */
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%; pointer-events: none; z-index: 99999;
  transition: transform .15s, background .3s; mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed; top: 0; left: 0; width: 40px; height: 40px;
  border: 1.5px solid var(--cursor-mix); border-radius: 50%; pointer-events: none;
  z-index: 99998; transition: width .35s var(--spring), height .35s var(--spring), border-color .3s, opacity .3s;
  opacity: .4; mix-blend-mode: difference;
}
.cursor-ring.hover { width: 64px; height: 64px; border-color: var(--accent); opacity: .6; }
.cursor-dot.hover { transform: scale(2.5); background: var(--accent); }
/* Hide custom cursor on touch devices to prevent interference */
@media (hover: none), (max-width: 1024px) {
  .cursor-dot, .cursor-ring { display: none !important; }
  * { cursor: auto !important; }
}

/* ========== SCROLL PROGRESS ========== */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; background: var(--accent); z-index: 10001;
  transform-origin: left; transform: scaleX(0); width: 100%;
}

/* ========== PAGE LOADER (Mobile Fix Applied) ========== */
.page-loader {
  position: fixed; inset: 0; z-index: 100000; /* Higher z-index */
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
  transition: opacity 0.6s ease-out, visibility 0.6s, transform 0.8s ease-in-out;
  width: 100%;
  transform: translateY(0);
}
.page-loader.loaded {
  opacity: 0; visibility: hidden; 
  transform: translateY(-100%);
  pointer-events: none;
}
.loader-bar { width: 180px; height: 4px; background: var(--border); border-radius: 3px; overflow: hidden; }
.loader-bar-inner { height: 100%; background: var(--accent); width: 0%; transition: width 0.2s linear; }
.loader-logo { font-size: 1.6rem; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.loader-logo span { color: var(--accent); }

/* ========== PAGE HEADER ========== */
.page-header { padding: 140px 0 50px; border-bottom: 1px solid var(--border); text-align: center; position: relative; overflow: hidden; }
.page-header .hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.page-header .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-header .hero-bg::after { content: ''; position: absolute; inset: 0; background: var(--hero-overlay); }
.page-header .hero-mesh { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.page-header .hero-mesh .mesh-orb { position: absolute; border-radius: 50%; filter: blur(80px); animation: meshFloat 20s ease-in-out infinite; }
.page-header .hero-mesh .mesh-orb:nth-child(1) { width: 400px; height: 400px; top: -10%; right: -5%; background: var(--mesh1); }
.page-header .hero-mesh .mesh-orb:nth-child(2) { width: 350px; height: 350px; bottom: -5%; left: -5%; background: var(--mesh2); animation-delay: -7s; animation-duration: 25s; }
@keyframes meshFloat { 0%, 100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-40px) scale(1.05); } 66% { transform: translate(-20px,30px) scale(.95); } }
.page-header .container { position: relative; z-index: 2; }
.page-header .breadcrumb, .page-header h1, .page-header p { position: relative; z-index: 2; }
.page-header h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 16px; letter-spacing: -.02em; }
.breadcrumb { font-size: .9rem; color: var(--text-muted); font-weight: 500; }
.breadcrumb a { color: var(--accent); transition: opacity .3s; }
.breadcrumb a:hover { opacity: .7; }
.breadcrumb span { margin: 0 8px; opacity: .5; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px;
  border-radius: 50px; font-weight: 600; font-size: .9rem; border: none;
  transition: all var(--transition);
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 20px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 35px var(--accent-glow); }
/* ========== NAVBAR & DROPDOWN ========== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1001; transition: all var(--transition); }
.navbar.scrolled { background: var(--nav-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--nav-border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 800; }
.logo-icon { width: 42px; height: 42px; background: var(--accent); border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .95rem; transition: transform var(--transition); flex-shrink: 0; }
.logo-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.logo:hover .logo-icon { transform: rotate(-8deg) scale(1.05); }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > li { position: relative; }
.nav-links > li > a { padding: 9px 18px; font-size: .95rem; font-weight: 500; color: var(--text-sec); border-radius: 50px; transition: all var(--transition); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--text); background: var(--accent-soft); }
.dd-arrow { font-size: .5rem; transition: transform .3s; }
li.dd-open > a .dd-arrow { transform: rotate(180deg); }
.nav-dropdown { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(10px); min-width: 240px; background: var(--dd-bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--dd-shadow); padding: 8px; opacity: 0; visibility: hidden; transition: all .3s; z-index: 100; }
.nav-dropdown::before { content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
li.dd-open > .nav-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown li a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-size: .85rem; font-weight: 500; color: var(--text-sec); border-radius: 10px; transition: all .25s; }
.nav-dropdown li a:hover { background: var(--accent-soft); color: var(--accent); padding-left: 18px; }

/* --- Active state for dropdown item --- */
.nav-dropdown li a.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}
.nav-dropdown li a.active i {
  background: var(--accent);
  color: #fff;
}

.nav-dropdown li a i { width: 34px; height: 34px; min-width: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: .78rem; transition: all .25s; }
.nav-dropdown li a:hover i { background: var(--accent); color: #fff; }
.dd-text { display: flex; flex-direction: column; }
.dd-label { font-size: .68rem; color: var(--text-muted); font-weight: 400; }
.dd-divider { height: 1px; background: var(--border); margin: 5px 8px; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.theme-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); color: var(--text); display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.theme-btn:hover { border-color: var(--accent); color: var(--accent); transform: rotate(15deg); }
.nav-cta { padding: 10px 24px; background: var(--accent); color: #fff; border-radius: 50px; font-size: .84rem; font-weight: 600; border: none; transition: all var(--transition); box-shadow: 0 4px 18px var(--accent-glow); }
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
.mobile-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--text); align-items: center; justify-content: center; transition: all var(--transition); }
@media (max-width: 768px) { .nav-links, .nav-cta { display: none; } .mobile-toggle { display: flex; } }

/* Mobile Menu */
.mobile-menu {
  display: none; position: fixed; top: 76px; left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 999; padding: 24px;
  flex-direction: column; gap: 2px; overflow-y: auto;
  width: 100%;
  max-width: 100vw;
}
.mobile-menu.open { display: flex; }
.mobile-menu > a {
  padding: 15px 18px; font-size: 1rem; font-weight: 500;
  border-radius: var(--radius); transition: all var(--transition);
}
.mobile-menu > a:hover { background: var(--accent-soft); color: var(--accent); }
.mob-dd-trigger {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px; font-size: 1rem; font-weight: 500;
  border-radius: var(--radius); border: none; background: none;
  width: 100%; font-family: var(--font); color: var(--text); transition: all var(--transition);
}
.mob-dd-trigger:hover, .mob-dd-trigger.open { background: var(--accent-soft); color: var(--accent); }
.mob-dd-trigger .dd-arrow { font-size: .6rem; transition: transform .3s; }
.mob-dd-trigger.open .dd-arrow { transform: rotate(180deg); }
.mob-sub { max-height: 0; overflow: hidden; transition: max-height .35s; padding-left: 16px; }
.mob-sub.open { max-height: 300px; }
.mob-sub a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; font-size: .92rem; font-weight: 500;
  color: var(--text-sec); border-radius: var(--radius); transition: all var(--transition);
}
.mob-sub a:hover { background: var(--accent-soft); color: var(--accent); }
.mob-sub a i {
  width: 34px; height: 34px; min-width: 34px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: .78rem;
}
/* ========== FOOTER ========== */
.footer { background: #0a0a0a; color: #aaa; padding: 64px 0 0; width: 100%; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: .86rem; line-height: 1.8; color: #666; margin-bottom: 18px; }
.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  color: #666; font-size: .9rem; transition: all var(--transition);
}
.footer-socials a:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); }
.footer-col h4 { color: #fff; font-size: .92rem; font-weight: 700; margin-bottom: 18px; }
.footer-col a { display: block; font-size: .84rem; color: #666; padding: 5px 0; transition: all var(--transition); }
.footer-col a:hover { color: var(--accent); padding-left: 5px; }
.footer-bottom {
  padding: 22px 0; display: flex; align-items: center;
  justify-content: center; font-size: .8rem; color: #555;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ========== TOAST ========== */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--section-dark); color: #fff; padding: 14px 24px; border-radius: 50px;
  font-size: .9rem; font-weight: 500; z-index: 9999; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,.3); transition: transform .4s ease; border-left: 4px solid var(--accent);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* =========================================
   NEW POLICY LAYOUT (Document Style)
   ========================================= */

.policies-single-layout {
  padding: 80px 0 120px;
}

/* The Section Card */
.policy-section {
  background: var(--card);
  padding: 40px;
  margin-bottom: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  transition: transform 0.3s ease;
}

.policy-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

/* Section Header */
.policy-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--bg-alt);
}

.policy-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.policy-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  margin: 0;
}

/* Paragraph Typography */
.policy-content {
  color: var(--text-sec);
  font-size: 1rem;
  line-height: 1.9; /* Better readability for long text */
}

.policy-content p {
  margin-bottom: 20px;
  text-align: justify;
}

/* List Styling for Instructions */
.policy-content ol, .policy-content ul {
  margin: 20px 0;
  padding-left: 24px;
  list-style-position: outside;
  color: var(--text);
}

.policy-content li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 10px;
}

/* Custom bullet points */
.policy-content ul li::marker {
  color: var(--accent);
}

/* Alert Box Styling */
.alert-box {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(255, 95, 1, 0.05);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.alert-box i { color: var(--accent); margin-top: 3px; }

/* Strong Highlight */
.highlight {
  color: var(--text);
  font-weight: 600;
}

/* Contact Section Bottom */
.policy-contact-section {
  text-align: center;
  padding-top: 20px;
}
.policy-contact-section h3 { margin-bottom: 10px; color: var(--text); }
.policy-contact-section p { color: var(--text-muted); margin-bottom: 24px; }

/* Mobile Adjustments */
@media (max-width: 600px) {
  .policy-section {
    padding: 24px;
    border-radius: var(--radius);
  }
  .policy-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .policy-section h2 {
    font-size: 1.3rem;
  }
  .policy-content {
    font-size: 0.95rem;
    line-height: 1.7;
  }
  .policy-content li {
    margin-left: -10px; /* Adjust list indentation for mobile */
  }
}

/* ========== BACK TO TOP (FROM INDEX) ========== */
  .back-top {
    position: fixed; bottom: 28px; right: 28px;
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--accent); color: #fff; border: none;
    font-size: 1.05rem; display: flex; align-items: center; justify-content: center;
    z-index: 900; opacity: 0; visibility: hidden; transform: translateY(18px);
    transition: all var(--transition); box-shadow: 0 6px 24px var(--accent-glow);
  }

  /* ========== WHATSAPP FLOAT (FROM INDEX) ========== */
  .whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 88px;
    width: 56px;
    height: 56px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
  }
  .whatsapp-float::before {
    content: 'Chat on WhatsApp';
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #111;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    pointer-events: none;
  }
  .whatsapp-float::after {
    content: '';
    position: absolute;
    right: 62px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    pointer-events: none;
  }
  .whatsapp-float:hover::before,
  .whatsapp-float:hover::after {
    opacity: 1;
    visibility: visible;
  }
  .whatsapp-float:hover {
    background-color: #20bd5a;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
    color: #fff;
  }
  @media (max-width: 768px) {
     .whatsapp-float {
        right: 20px;
        bottom: 90px;
    }
    .whatsapp-float::before,
    .whatsapp-float::after {
      display: none;
    }
  }
  
  @media (max-width: 600px) {
    .back-top {
      bottom: 20px;
      right: 20px;
      width: 44px;
      height: 44px;
    }
    /* Keep WhatsApp float identical to <768px Courses styles */
    .whatsapp-float {
      bottom: 90px;
      right: 20px;
      width: 56px;
      height: 56px;
      font-size: 30px;
    }
  }
  .back-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
  .back-top:hover { transform: translateY(-3px); box-shadow: 0 10px 32px var(--accent-glow); }

