/* ============================================================
   Alpha Computer Institute — Global Stylesheet
   ============================================================ */

:root {
  --primary: #0579cc;
  --primary-dark: #045e9e;
  --accent: #00bcd4;
  --dark: #0a2a44;
  --dark-2: #0e3a5c;
  --muted: #5b6378;
  --light: #f5f7ff;
  --white: #ffffff;
  --border: #e3e7f3;
  --shadow: 0 10px 30px rgba(18, 51, 184, 0.12);
  --radius: 14px;
  --max: 1180px;
  --font: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 80px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; }
.logo-mark {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 20px;
  box-shadow: var(--shadow);
}
.logo-img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #fff; }
.logo b { color: var(--primary); }
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .5px; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  transition: background .2s, color .2s;
}
.nav-links a:hover, .nav-links a.active { background: var(--light); color: var(--primary); }
.nav-cta { margin-left: 8px; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.hamburger span { width: 26px; height: 3px; background: var(--dark); border-radius: 3px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255,122,24,.35), transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -100px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(30,79,255,.4), transparent 70%);
  border-radius: 50%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero .badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 13px;
  margin-bottom: 22px;
}
.hero h1 { font-size: 48px; line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 18px; color: #c7cce0; margin-bottom: 30px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; }
.hero-stats .num { font-size: 30px; font-weight: 700; color: #fff; }
.hero-stats .lbl { font-size: 13px; color: #aab1cc; }

.hero-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px;
  padding: 26px;
  backdrop-filter: blur(8px);
}
.hero-card .video-wrap { margin-bottom: 0; }

/* ---------- Section headings ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head .kicker {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.section-head h2 { font-size: 36px; margin: 10px 0 14px; }
.section-head p { color: var(--muted); font-size: 16px; }

.bg-light { background: var(--light); }

/* ---------- Feature / cards grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 26px;
  background: var(--light);
  margin-bottom: 18px;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- Course cards ---------- */
.course-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.course-thumb {
  height: 160px;
  display: grid; place-items: center;
  font-size: 50px;
  color: #fff;
  position: relative;
}
.course-body { padding: 22px; }
.course-body .tag {
  font-size: 12px; font-weight: 600;
  color: var(--primary); background: var(--light);
  padding: 4px 12px; border-radius: 50px;
}
.course-body h3 { font-size: 19px; margin: 12px 0 8px; }
.course-body p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.course-meta {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 14px;
}
.course-meta .price { font-size: 20px; font-weight: 700; color: var(--dark); }
.course-meta .price del { color: var(--muted); font-size: 14px; font-weight: 400; margin-right: 6px; }

/* ---------- Video player ---------- */
.video-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
  margin: 0 auto;
}
.video-wrap video { width: 100%; display: block; border-radius: 16px; }
.video-poster {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.play-btn {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  transition: transform .2s;
}
.video-poster:hover .play-btn { transform: scale(1.08); }
.play-btn::after {
  content: '';
  width: 0; height: 0;
  border-left: 22px solid var(--primary);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  margin-left: 6px;
}
.video-poster span { position: absolute; bottom: 18px; left: 20px; color: #fff; font-weight: 600; }

/* ---------- Video gallery ---------- */
.video-thumb {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}
.video-thumb:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.video-thumb .vt-cover {
  height: 150px; display: grid; place-items: center;
  font-size: 40px; color: #fff; position: relative;
}
.video-thumb .vt-cover::after {
  content: '▶';
  position: absolute;
  width: 50px; height: 50px;
  background: rgba(255,255,255,.9);
  color: var(--primary);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 18px;
}
.video-thumb .vt-body { padding: 16px; }
.video-thumb h4 { font-size: 16px; margin-bottom: 4px; }
.video-thumb p { font-size: 13px; color: var(--muted); }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  font-size: 42px; font-weight: 700; color: #fff;
}
.team-card h3 { font-size: 19px; }
.team-card .role { color: var(--primary); font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.team-card p { color: var(--muted); font-size: 14px; }
.team-social { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.team-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--light);
  display: grid; place-items: center;
  color: var(--primary);
  font-size: 14px; font-weight: 700;
  transition: background .2s, color .2s;
}
.team-social a:hover { background: var(--primary); color: #fff; }

/* ---------- Blog ---------- */
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-cover { height: 180px; display: grid; place-items: center; font-size: 46px; color: #fff; }
.blog-body { padding: 22px; }
.blog-body .meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.blog-body h3 { font-size: 19px; margin-bottom: 10px; }
.blog-body p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.blog-body a.read { color: var(--primary); font-weight: 600; font-size: 14px; }

/* ---------- Store ---------- */
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-img { height: 200px; display: grid; place-items: center; font-size: 60px; background: var(--light); }
.product-body { padding: 20px; }
.product-body h3 { font-size: 17px; margin-bottom: 6px; }
.product-body .rating { color: var(--accent); font-size: 14px; margin-bottom: 10px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; }
.product-foot .price { font-size: 20px; font-weight: 700; color: var(--primary); }

/* ---------- Page banner ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.page-banner h1 { font-size: 40px; margin-bottom: 10px; }
.page-banner p { color: #c7cce0; }
.breadcrumb { margin-top: 14px; font-size: 14px; color: #aab1cc; }
.breadcrumb a { color: var(--accent); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-img {
  height: 380px; border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; font-size: 90px; color: #fff;
}
.about-grid h2 { font-size: 32px; margin-bottom: 18px; }
.about-grid p { color: var(--muted); margin-bottom: 16px; }
.check-list li { display: flex; gap: 10px; margin-bottom: 12px; color: var(--dark); }
.check-list li::before { content: '✔'; color: #fff; background: var(--primary); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; flex-shrink: 0; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--primary); color: #fff; }
.stats-band .grid-4 { text-align: center; }
.stats-band .num { font-size: 40px; font-weight: 800; }
.stats-band .lbl { font-size: 14px; opacity: .9; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  text-align: center;
  border-radius: 24px;
  padding: 56px 30px;
  margin: 60px auto;
  max-width: var(--max);
}
.cta h2 { font-size: 32px; margin-bottom: 12px; }
.cta p { margin-bottom: 26px; opacity: .95; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.info-box { background: var(--light); border-radius: var(--radius); padding: 26px; margin-bottom: 18px; display: flex; gap: 16px; }
.info-box .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.info-box h4 { font-size: 16px; }
.info-box p { color: var(--muted); font-size: 14px; }
form .field { margin-bottom: 18px; }
form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
form input, form textarea, form select {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 15px;
}
form input:focus, form textarea:focus, form select:focus { outline: 2px solid var(--primary); border-color: transparent; }
.form-msg { margin-top: 14px; padding: 12px 16px; border-radius: 10px; background: #e7fbe9; color: #1a7f37; display: none; }

/* ---------- Map ---------- */
.map-embed { border-radius: var(--radius); overflow: hidden; height: 320px; border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #c7cce0; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 40px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer p { font-size: 14px; margin-bottom: 12px; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: 14px; transition: color .2s; }
.footer ul li a:hover { color: var(--accent); }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer .logo small { color: #aab1cc; }
.social-row { display: flex; gap: 10px; margin-top: 14px; }
.social-row a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; font-weight: 700; transition: background .2s; }
.social-row a:hover { background: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; text-align: center; font-size: 13px; }

/* ---------- Testimonials ---------- */
.testi-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.testi-card .stars { color: var(--accent); margin-bottom: 12px; }
.testi-card p { font-style: italic; color: var(--dark); margin-bottom: 18px; }
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-who .av { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--accent)); color: #fff; display: grid; place-items: center; font-weight: 700; }
.testi-who b { display: block; font-size: 15px; }
.testi-who small { color: var(--muted); }

/* ---------- Course detail ---------- */
.course-detail-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; align-items: start; }
.course-hero-thumb { height: 90px; width: 90px; border-radius: 18px; display: grid; place-items: center; font-size: 44px; color: #fff; margin-bottom: 18px; }
.course-content h2 { font-size: 26px; margin: 34px 0 14px; }
.course-content p { color: var(--muted); margin-bottom: 14px; }
.curriculum { counter-reset: mod; }
.curriculum li {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 12px;
}
.curriculum li::before {
  counter-increment: mod; content: counter(mod, decimal-leading-zero);
  font-weight: 700; color: var(--primary); background: var(--light);
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
}
.curriculum li b { display: block; font-size: 16px; color: var(--dark); }
.curriculum li span { font-size: 14px; color: var(--muted); }
.price-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; position: sticky; top: 96px;
  box-shadow: var(--shadow);
}
.price-card .now { font-size: 34px; font-weight: 800; color: var(--dark); }
.price-card .was { color: var(--muted); text-decoration: line-through; font-size: 16px; margin-left: 8px; }
.price-card .off { background: #e7fbe9; color: #1a7f37; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 50px; margin-left: 8px; }
.price-card ul { margin: 18px 0; }
.price-card ul li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.price-card ul li span { color: var(--muted); margin-left: auto; font-weight: 600; }
.price-card .btn { width: 100%; margin-top: 8px; text-align: center; }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 1500;
  display: flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff;
  padding: 12px 18px; border-radius: 50px;
  font-weight: 600; font-size: 15px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
.wa-float .wa-ico { font-size: 22px; line-height: 1; }
@media (max-width: 640px) { .wa-float span.wa-txt { display: none; } .wa-float { padding: 14px; border-radius: 50%; } }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
  background: var(--light); border: 1px solid var(--border);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.06); }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ---------- Course card image ---------- */
.course-thumb img, .course-hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-thumb.has-img, .course-hero-thumb.has-img { padding: 0; overflow: hidden; }

/* ---------- Admin tabs ---------- */
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.admin-tabs a { padding: 10px 18px; border-radius: 10px; background: #fff; border: 1px solid var(--border); font-weight: 600; font-size: 14px; color: var(--dark); }
.admin-tabs a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Theme toggle button ---------- */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent;
  cursor: pointer; font-size: 18px; line-height: 1;
  display: grid; place-items: center; margin-left: 8px; flex-shrink: 0;
  transition: background .2s, transform .2s;
}
.theme-toggle:hover { background: var(--light); transform: rotate(15deg); }

/* ---------- Dark mode ---------- */
[data-theme="dark"] {
  --light: #16263a;
  --muted: #9fb0c4;
  --border: #25384f;
  --shadow: 0 12px 32px rgba(0,0,0,.5);
}
[data-theme="dark"] body { background: #0b1622; color: #e7edf5; }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4 { color: #e7edf5; }
[data-theme="dark"] .navbar { background: rgba(11,22,34,.92); }
[data-theme="dark"] .nav-links a { color: #cfdcea; }
[data-theme="dark"] .nav-links.open { background: #0f1b2a; }
[data-theme="dark"] .theme-toggle { border-color: #2f455f; }
[data-theme="dark"] .card,
[data-theme="dark"] .course-card,
[data-theme="dark"] .video-thumb,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .product-card,
[data-theme="dark"] .testi-card,
[data-theme="dark"] .price-card,
[data-theme="dark"] .curriculum li { background: #13212f; border-color: #25384f; }
[data-theme="dark"] .bg-light { background: #0e1b29; }
[data-theme="dark"] .info-box { background: #0e1b29; }
[data-theme="dark"] .card .icon,
[data-theme="dark"] .product-img,
[data-theme="dark"] .team-social a,
[data-theme="dark"] .course-body .tag { background: #1a2c40; }
[data-theme="dark"] .course-meta .price,
[data-theme="dark"] .price-card .now,
[data-theme="dark"] .curriculum li b,
[data-theme="dark"] .check-list li,
[data-theme="dark"] .testi-card p { color: #e7edf5; }
[data-theme="dark"] .course-meta { border-top-color: #25384f; }
[data-theme="dark"] form input,
[data-theme="dark"] form textarea,
[data-theme="dark"] form select { background: #0e1b29; color: #e7edf5; border-color: #25384f; }
[data-theme="dark"] .map-embed { border-color: #25384f; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-grid, .course-detail-grid { grid-template-columns: 1fr; }
  .price-card { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 38px; }
}
@media (max-width: 640px) {
  section { padding: 56px 0; }
  .nav-links {
    position: fixed; top: 72px; right: -100%;
    flex-direction: column; align-items: stretch;
    background: #fff; width: 75%; height: calc(100vh - 72px);
    padding: 20px; gap: 4px;
    box-shadow: -10px 0 30px rgba(0,0,0,.1);
    transition: right .3s ease;
  }
  .nav-links.open { right: 0; }
  .hamburger { display: flex; }
  .grid-4, .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .section-head h2 { font-size: 28px; }
}
