/* Root + base */
:root {
  --primary: #263238;
  --secondary: #263238;
  --hover-color: #c3a3ff;
  --scroll-btn-size: 40px;
  --scroll-btn-bottom: 30px;
  --stack-gap: 12px;
}
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #f9f5ff, #f0e6ff);
  padding-top: 10px;
}

/* Navbar */
.navbar {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 999;
}

/* Logo sizes */
@media (min-width: 769px) {
  .navbar-brand img { height: 30px; width: auto; margin: 0 auto; display: block; text-align: center; }
}
@media (max-width: 768px) {
  .navbar-nav { text-align: center; width: 100%; }
  .navbar-brand img { width: auto; height: 30px; max-width: 100%; }
}

/* Links */
.nav-link {
  color: #ffffff !important; font-weight: 500; font-size: 0.9rem;
  padding: 10px 18px !important; border-radius:4px; transition: background-color 0.3s ease;
}
.nav-link:hover { background-color: var(--hover-bg); color: #fff !important; }

/* Dropdown */
.dropdown-menu {
  border-radius: 8px; padding: 10px 0;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  animation: fadeIn 0.3s ease;
}
.dropdown-item {
  padding: 10px 20px; font-weight: 500; font-size: 0.9rem; color: #263238;
  border-left: 3px solid transparent; transition: all 0.3s ease;
}
.dropdown-item:hover { background-color: #ECEFF1; border-left: 3px solid #263238; color: #263238; }
.dropdown-toggle::after { display: none !important; }
@media (max-width: 768px) {
  .dropdown-menu { position: static; width: 100%; box-shadow: none; }
  .d-flex.gap-2 { flex-direction: column; width: 100%; margin-top: 15px; }
}

/* Enroll glow button */
.btn-enroll {
  position: relative; overflow: hidden; padding: 10px 24px; font-weight: 600; font-size: 1rem;
  border-radius: 8px; background: #c3ff00ff; color: white; border: none; z-index: 1;
}
.btn-enroll::before {
  content: ""; position: absolute; top: -3px; left: -3px; right: -3px; bottom: -3px;
  background: linear-gradient(90deg, #00ff08ff, #c3ff00ff, #ff0000ff);
  background-size: 300% 300%; border-radius: 10px; z-index: -1; animation: glowMove 3s linear infinite;
}
.btn-enroll::after {
  content: ""; position: absolute; top: 2px; left: 2px; right: 2px; bottom: 2px;
  background: #263238; border-radius: 6px; z-index: -1;
}
.btn-enroll:hover { transform: translateY(-2px); box-shadow: 0 0 20px rgba(255, 247, 0, 0.6); transition: transform 0.3s ease, box-shadow 0.3s ease; color: yellow; }

/* Animations */
@keyframes fadeIn { from{opacity:0; transform: translateY(10px);} to{opacity:1; transform: translateY(0);} }
@keyframes glowMove { 0%{background-position:0% 50%;} 50%{background-position:100% 50%;} 100%{background-position:0% 50%;} }

/* Focus cleanup */
.nav-link:focus, .dropdown-toggle:focus { outline: none; box-shadow: none; }

/* Hamburger */
.hamburger-icon{ width:50px; height:25px; position:relative; display:flex; flex-direction:column; justify-content:space-between; border:none; background:transparent; }
.hamburger-icon .bar{ height:3px; width:100%; background-color:white; border-radius:2px; transition:all .4s ease-in-out; }
.hamburger-icon.open .bar:nth-child(1){ transform: rotate(45deg) translateY(10px); }
.hamburger-icon.open .bar:nth-child(2){ opacity:0; }
.hamburger-icon.open .bar:nth-child(3){ transform: rotate(-45deg) translateY(-10px); }
.hamburger-icon:focus{ outline:none; box-shadow:none; }

/* Footer */
footer {
  background: linear-gradient(135deg, #263238, #263238); color: #ffffff; padding-top: 80px;
  font-size: 0.9rem; box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2); position: relative; z-index: 1;
}
footer h5 { font-weight: 600; margin-bottom: 20px; color: #ffffff; position: relative; }
footer h5::before { content: "★"; position: absolute; left: -25px; color: #ffc107; font-size: 1.1rem; }
footer p, footer a { color: #ccc; line-height: 1.7; }
footer a { text-decoration: none; transition: color 0.3s ease; }
footer a:hover { color: #ffffff; text-decoration: underline; }
footer hr { border-color: rgba(255, 255, 255, 0.1); }
footer .bottom-footer { font-size: 0.85rem; color: #aaa; padding: 20px 0 0; }

/* Social buttons */
.footer-social a{
  width:44px; height:44px; border-radius:50%; display:grid; place-items:center;
  background:#6f42c1; color:#fff; text-decoration:none; box-shadow:0 6px 16px rgba(111,66,193,.28);
  transition:.25s ease; padding:0; border:none;
}
.footer-social a:hover{ background:#8b5cf6; transform:translateY(-2px); }
@media (max-width: 768px){ .footer-social{ justify-content:center !important; } }

/* Global Scroll Down Button */
.scroll-down-btn {
  position: fixed; bottom: var(--scroll-btn-bottom); right: 25px; background: transparent; color: #fff;
  font-size: 2rem; text-decoration: none; border-radius: 50%; width: var(--scroll-btn-size); height: var(--scroll-btn-size);
  display: flex; align-items: center; justify-content: center; z-index: 999; border: 3px solid transparent;
  background-image: linear-gradient(#263238, #263238),
    linear-gradient(90deg, #ff9500ff, #00d9ffff, #00d9ffff, #ff9500ff);
  background-origin: border-box; background-clip: padding-box, border-box;
  animation: borderRun 4s linear infinite, bounce 5s infinite; cursor: pointer;
}
.scroll-down-btn:hover{ box-shadow:0 0 20px rgba(255,247,0,.6); }
.scroll-down-btn i{ font-size:1rem; }
@keyframes borderRun { 0%{background-position:0% 50%, 0 0;} 50%{background-position:100% 50%, 0 0;} 100%{background-position:0% 50%, 0 0;} }
@keyframes bounce { 0%,20%,50%,80%,100%{transform:translateY(0);} 40%{transform:translateY(-8px);} 60%{transform:translateY(-4px);} }

/* Flash bar (below navbar) */
.global-flash{
  position: fixed; left:0; right:0; top:72px; z-index:2000; pointer-events:none;
}
.global-flash .alert{ pointer-events:auto; }
.global-flash.hide{ opacity:0; transition: opacity .5s ease; }

/* ==== Loader CSS ==== */
.mca-loader-overlay{
  position: fixed; inset: 0; z-index: 20000; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 50% 30%, rgba(38,50,56,.85), rgba(18,24,27,.94) 55%, rgba(0,0,0,.98));
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  transition: opacity .35s ease, visibility .35s ease; opacity: 1; visibility: visible;
}
.mca-loader-overlay.is-hidden{ opacity: 0; visibility: hidden; }

.mca-loader{ position:relative; width:160px; height:160px; display:grid; place-items:center;
  filter: drop-shadow(0 12px 38px rgba(111,66,193,.35));
}
.ring{ position:absolute; inset:0; border-radius:50%;
  --c1:#6f42c1; --c2:#8b5cf6; --c3:#00d9ff;
  background: conic-gradient(from 0deg, var(--c1) 0deg, var(--c2) 120deg, var(--c3) 240deg, var(--c1) 360deg);
  mask: radial-gradient(circle at center, transparent 56px, black 58px),
        radial-gradient(circle at center, black 78px, transparent 80px);
  -webkit-mask-composite: source-in, xor; mask-composite: intersect;
  animation: spin 3.8s linear infinite, glowPulse 2.2s ease-in-out infinite; opacity:.95;
}
.ring-outer{ filter: blur(.25px) saturate(1.08); }
.orbit{ width:136px; height:136px; animation: spin 6.5s linear infinite reverse; }
.orbit-path{ opacity:.55; stroke-dasharray:226 226; stroke-dashoffset:0; animation: sweep 2.8s ease-in-out infinite; }
.orbit-dot{ transform-origin:50px 50px; animation: orbit 2.8s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(255,255,255,.55)); fill:#ffbb00ff; }
.core{ width:84px; height:84px; border-radius:24px;
  background: radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,.10), rgba(255,255,255,.02)),
              linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
  border:1px solid rgba(255,255,255,.18); position:relative; box-shadow: inset 0 0 18px rgba(255,255,255,.08), 0 10px 28px rgba(0,0,0,.25);
  backdrop-filter: blur(8px); display:grid; place-items:center;
}
.core::after{
  content:""; position:absolute; inset:-1px; border-radius:24px; padding:1px;
  background: linear-gradient(135deg, rgba(139,92,246,.55), rgba(0,217,255,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity:.55;
}
.logo-dot{ width:18px; height:18px; border-radius:50%;
  background: radial-gradient(circle at 35% 35%, #fff, #c9c1ff 60%, #6f42c1 100%);
  box-shadow: 0 0 18px rgba(139,92,246,.75), 0 0 36px rgba(0,217,255,.35); animation: breathe 2.2s ease-in-out infinite;
}
.shine{ position:absolute; inset:0; border-radius:24px;
  background: linear-gradient(120deg, rgba(255,255,255,.35), rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,.15));
  mix-blend-mode: screen; transform: translateX(-120%); animation: shineMove 2.6s linear infinite;
}
.label{ position:absolute; bottom:-28px; left:50%; transform:translateX(-50%);
  font: 600 12px/1 'Poppins',system-ui,-apple-system,Segoe UI,Roboto,Arial;
  letter-spacing:.16em; text-transform: uppercase; color:#e8e6ff; opacity:.7;
}
@keyframes spin { to{ transform: rotate(360deg); } }
@keyframes glowPulse{ 0%,100%{filter: drop-shadow(0 8px 28px rgba(111,66,193,.35)); opacity:.95;} 50%{filter: drop-shadow(0 12px 42px rgba(0,217,255,.38)); opacity:1;} }
@keyframes orbit{ 0%,100%{ transform: rotate(0deg) translateY(0);} 50%{ transform: rotate(180deg) translateY(.5px);} }
@keyframes sweep{ 0%,100%{ stroke-dashoffset:0; opacity:.55;} 50%{ stroke-dashoffset:226; opacity:.85;} }
@keyframes breathe{ 0%,100%{ transform: scale(1);} 50%{ transform: scale(1.08);} }
@keyframes shineMove{ from{ transform: translateX(-120%);} to{ transform: translateX(120%);} }
@media (max-width: 480px){ .mca-loader{ width:132px; height:132px; } .core{ width:74px; height:74px; } .label{ bottom:-24px; font-size:11px; } }
@media (prefers-reduced-motion: reduce){ .ring,.orbit,.orbit-path,.orbit-dot,.logo-dot,.shine{ animation:none !important; } }

/* Form card polish (from @push) */
.mca-form-card.pro{
  background: radial-gradient(100% 120% at 0% 0%, rgba(198,182,255,.25), transparent 40%),
              radial-gradient(80% 80% at 100% 100%, rgba(138,92,245,.18), transparent 50%),
              linear-gradient(180deg,#ffffff 0%, #fbfaff 100%);
  border-radius: 1.25rem; box-shadow: 0 20px 60px rgba(23,16,72,.12), 0 6px 18px rgba(23,16,72,.08); position: relative;
}
.mca-form-card.pro::before{
  content:""; position:absolute; inset: -1px; border-radius:1.3rem;
  background: linear-gradient(135deg, rgba(138,92,246,.45), rgba(198,182,255,.35));
  filter: blur(10px); opacity:.4; z-index:-1;
}
.pro-header{ background: linear-gradient(90deg, #6f42c1, #8a5cf5); color:#fff; }
.has-icon .form-control, .has-icon .form-select{
  padding-left: 3rem; border-radius: .9rem; border: 1px solid #e9e3ff; background: #fff;
  transition: box-shadow .25s ease, border-color .25s ease, transform .05s ease;
}
.has-icon .form-control:focus, .has-icon .form-select:focus{
  border-color:#8a5cf5; box-shadow:0 0 0 4px rgba(138,92,245,.16);
}
.form-floating>label i{ position:relative; left:.15rem; opacity:.9; }
.form-control.is-invalid, .form-select.is-invalid{ border-color:#dc3545 !important; box-shadow:0 0 0 4px rgba(220,53,69,.08) !important; }
.btn-gradient{
  position: relative; overflow: hidden; border:0; background: linear-gradient(90deg, #06a888ff, #8a5cf5);
  color:#fff; border-radius:.9rem; font-weight:600; transition: transform .15s ease, box-shadow .3s ease;
}
.btn-gradient:hover{ transform: translateY(-2px); color:#fff; box-shadow:0 10px 28px rgba(204, 219, 0, 0.35); }
.btn-gradient .btn-shine{
  position:absolute; inset:0; pointer-events:none; background: linear-gradient(120deg, transparent 0%, rgba(250, 250, 8, 0.38) 50%, transparent 100%);
  transform: translateX(-100%); animation: shine 2.2s infinite linear; mix-blend-mode: screen;
}
@keyframes shine{ from{ transform: translateX(-100%);} to{ transform: translateX(100%);} }
@media (max-width:576px){ .mca-form-card .card-body{ padding:1.25rem !important; } }

/* Google top banner kill + never translate UI */
.goog-te-banner-frame.skiptranslate,.goog-te-banner-frame,.goog-te-banner,#goog-gt-tt,.goog-te-balloon-frame,.VIpgJd-ZVi9od-ORHb-OEVmcd,.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,.VIpgJd-ZVi9od-l4eHX-hSRGPd{
  display:none !important; visibility:hidden !important; height:0 !important;
}
html, body { top:0 !important; position: static !important; }

/* Translate button + panel stack */
#mca-translate{
  position: fixed; right: 30px;
  bottom: calc(var(--scroll-btn-bottom) + var(--scroll-btn-size) + var(--stack-gap));
  z-index: 10050; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 10px; transform: none;
}
.mca-trans-btn{
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: #263238; color:#fff; border: 0; cursor: pointer; box-shadow: 0 8px 22px rgba(0,0,0,.25);
  position: relative; isolation: isolate;
}
.mca-trans-btn i{ font-size: 1.2rem; line-height: 1; }
.mca-trans-btn::before{
  content:""; position:absolute; inset:-2px; border-radius: inherit;
  background: linear-gradient(90deg,#ff9500,#00d9ff,#6f42c1,#ff9500);
  background-size: 300% 300%; z-index:-1; filter: blur(.6px); animation: mcaGlow 3.2s linear infinite;
}
@keyframes mcaGlow{ 0%{background-position:0% 50%;} 50%{background-position:100% 50%;} 100%{background-position:0% 50%;} }
.mca-trans-btn:hover{ transform: translateY(-2px); }
.mca-trans-panel{
  width: 220px; max-width: 80vw; background: #ffffff; border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,.25); border: 1px solid rgba(0,0,0,.06); overflow: hidden;
}
.mca-lang-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap:.5rem; padding:.65rem; }
@media (min-width: 420px){ .mca-lang-grid{ grid-template-columns: repeat(3, 1fr); } }
.btn-chip{
  display:inline-flex; align-items:center; justify-content:center; padding:.55rem .65rem; border-radius: 999px; width:100%;
  font-weight:600; font-size:.92rem; letter-spacing:.01em; color:#263238; background:#fff; border:1px solid #cfd8dc;
  position:relative; overflow:hidden; transition: transform .12s ease, box-shadow .25s ease, border-color .2s ease;
}
.btn-chip::before{
  content:""; position:absolute; inset:-1px; border-radius:inherit; z-index:0;
  background: linear-gradient(90deg,#ff9500,#00d9ff,#6f42c1,#ff9500); background-size: 300% 300%; opacity:0; transition: opacity .2s ease;
}
.btn-chip:hover{ transform: translateY(-1px); border-color:#b0bec5; box-shadow:0 6px 20px rgba(0,0,0,.08); }
.btn-chip:hover::before{ opacity:.35; animation: mcaGlow 3.2s linear infinite; }
.btn-chip.is-active{ color:#fff; border-color: transparent; background: linear-gradient(90deg,#263238,#263238); box-shadow: 0 8px 26px rgba(0,0,0,.18); }
.btn-chip.is-active::before{ opacity:0; animation:none; }
#google_translate_element { display:none !important; }
#google_translate_element .goog-te-gadget,
#google_translate_element .goog-te-gadget > span,
.goog-logo-link { display:none !important; }
.notranslate, .notranslate * { -webkit-user-select: text; user-select: text; }
@media (max-width: 768px){
  #mca-translate{ right: 30px; bottom: calc(var(--scroll-btn-bottom) + var(--scroll-btn-size) + 8px); }
  .mca-trans-btn{ width: 30px; height: 30px; }
}
