/* ===== ROOT & BASE ===== */
:root {
  --primary: #8b3a3a;
  --primary-light: #c17f5a;
  --secondary: #b5945a;
  --accent: #c9a84c;
  --pink: #a85c5c;
  --green: #7a9a6a;
  --dark: #1a1109;
  --dark2: #231a0e;
  --dark3: #1e1508;
  --card-bg: rgba(255,240,210,0.04);
  --glass: rgba(255,235,190,0.07);
  --text: #f0e6cc;
  --text-muted: #a89070;
  --border: rgba(200,170,110,0.15);
  --gradient1: linear-gradient(135deg,#8b3a3a,#c17f5a);
  --gradient2: linear-gradient(135deg,#b5945a,#8b3a3a);
  --gradient3: linear-gradient(135deg,#c9a84c,#b5945a);
  --gradient4: linear-gradient(135deg,#7a9a6a,#b5945a);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* ===== TEXT GRADIENT ===== */
.text-gradient {
  background: linear-gradient(135deg, #c9a84c, #d4a86a, #c17f5a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradShift 3s ease infinite;
  background-size: 200%;
}
@keyframes gradShift {
  0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%}
}

/* ===== NAVBAR ===== */
#mainNav {
  background: rgba(26,17,9,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
  padding: 10px 0;
}
#mainNav.scrolled {
  background: rgba(26,17,9,0.98);
  box-shadow: 0 4px 30px rgba(139,58,58,0.3);
}
.brand-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #8b3a3a, #a85c5c);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: white;
  box-shadow: 0 4px 15px rgba(139,58,58,0.5);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 18px; color: white; }
.brand-sub { font-size: 10px; color: var(--primary-light); letter-spacing: 2px; text-transform: uppercase; }
.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: all 0.3s;
  position: relative;
}
.nav-link:hover, .nav-link.active { color: white !important; background: var(--glass); }
.nav-link::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--primary-light);
  border-radius: 10px; transition: width 0.3s;
}
.nav-link:hover::after, .nav-link.active::after { width: 60%; }
.btn-glow {
  background: linear-gradient(135deg, #8b3a3a, #a85c5c);
  border: none; color: white; font-weight: 600;
  box-shadow: 0 4px 20px rgba(139,58,58,0.4);
  transition: all 0.3s;
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139,58,58,0.6);
  color: white;
}
.navbar-toggler {
  border-color: var(--border);
  background: var(--glass);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.8%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== HERO ===== */
.hero-section {
  background: linear-gradient(135deg, #1a1109 0%, #804413 50%, #1e1205 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}
.hero-bg-shapes .shape {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: 0.3; animation: float 6s ease-in-out infinite;
}
.shape-1 { width: 400px; height: 400px; background: #8b3a3a; top: -100px; right: -100px; animation-delay: 0s; }
.shape-2 { width: 300px; height: 300px; background: #a85c5c; bottom: -50px; left: -50px; animation-delay: 2s; }
.shape-3 { width: 200px; height: 200px; background: #b5945a; top: 40%; left: 30%; animation-delay: 4s; }
@keyframes float { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-20px) scale(1.05)} }

.floating-notes {
  position: absolute; width: 100%; height: 100%;
  top: 0; left: 0; pointer-events: none; z-index: 1;
}
.floating-notes span {
  position: absolute; font-size: clamp(20px, 4vw, 40px);
  color: rgba(255,255,255,0.15);
  animation: noteFloat 4s ease-in-out infinite;
}
.floating-notes span:nth-child(1){top:10%;left:5%;animation-delay:0s;font-size:50px}
.floating-notes span:nth-child(2){top:20%;left:85%;animation-delay:1s;font-size:35px}
.floating-notes span:nth-child(3){top:60%;left:8%;animation-delay:2s;font-size:45px}
.floating-notes span:nth-child(4){top:70%;right:10%;animation-delay:0.5s;font-size:30px}
.floating-notes span:nth-child(5){top:40%;left:45%;animation-delay:3s;font-size:25px}
.floating-notes span:nth-child(6){bottom:15%;left:60%;animation-delay:1.5s;font-size:40px}
@keyframes noteFloat {
  0%,100%{transform:translateY(0) rotate(0deg) opacity(0.15)}
  50%{transform:translateY(-30px) rotate(10deg)}
}

.hero-content { position: relative; z-index: 2; padding-top: 80px; }
.hero-badge {
  display: inline-flex; align-items: center;
  background: rgba(139,58,58,0.2);
  border: 1px solid rgba(139,58,58,0.4);
  border-radius: 50px; padding: 6px 18px;
  font-size: 13px; color: #d4a86a;
  backdrop-filter: blur(10px);
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 800; line-height: 1.1;
  color: white; margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 17px; color: var(--text-muted);
  line-height: 1.8; max-width: 500px;
}
.stat-item { display: flex; flex-direction: column; }
.stat-num {
  font-size: 28px; font-weight: 800;
  background: linear-gradient(135deg, #d4a86a, #b5945a);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.btn-hero-primary {
  background: linear-gradient(135deg, #8b3a3a, #a85c5c);
  border: none; color: white; font-weight: 600;
  padding: 14px 30px; border-radius: 50px;
  font-size: 15px; transition: all 0.3s;
  box-shadow: 0 8px 30px rgba(139,58,58,0.4);
}
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(139,58,58,0.6); color: white; }
.btn-hero-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: white; font-weight: 600;
  padding: 14px 30px; border-radius: 50px;
  font-size: 15px; transition: all 0.3s;
  backdrop-filter: blur(10px);
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.1); border-color: white; transform: translateY(-3px); color: white; }

/* HERO VISUAL */
.hero-visual {
  position: relative; width: 500px; height: 500px;
  margin: 0 auto;
}
.hero-circle-1 {
  position: absolute; width: 400px; height: 400px;
  border-radius: 50%; top: 50px; left: 50px;
  background: radial-gradient(circle, rgba(139,58,58,0.2) 0%, transparent 70%);
  border: 2px solid white;
  animation: spin 20s linear infinite;
}
.hero-circle-2 {
  position: absolute; width: 300px; height: 300px;
  border-radius: 50%; top: 100px; left: 100px;
  border: 2px dashed black;
  animation: spin 15s linear infinite reverse;
}
@keyframes spin { from{transform:rotate(0)} to{transform:rotate(360deg)} }
.hero-center-icon {
  position: absolute; width: 100px; height: 100px;
  background: linear-gradient(135deg, #8b3a3a, #a85c5c);
  border-radius: 50%; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: white;
  box-shadow: 0 0 60px rgba(139,58,58,0.6);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{box-shadow:0 0 60px rgba(68, 28, 28, 0.6)} 50%{box-shadow:0 0 100px rgba(122, 59, 59, 0.9)} }
.hero-card {
  position: absolute; background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px; padding: 16px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: white;
  animation: heroCardFloat 3s ease-in-out infinite;
}
.hero-card i { font-size: 28px; }
.card-1 { top: 20px; left: 20px; animation-delay: 0s; }
.card-2 { top: 20px; right: 20px; animation-delay: 1s; }
.card-3 { bottom: 20px; left: 20px; animation-delay: 2s; }
.card-4 { bottom: 20px; right: 20px; animation-delay: 1.5s; }
@keyframes heroCardFloat {
  0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)}
}

.hero-scroll-hint {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5); font-size: 20px;
  animation: bounce 2s infinite; z-index: 2;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(10px)} }

/* ===== TICKER ===== */
.ticker-wrap {
  background: linear-gradient(135deg, #8b3a3a, #a85c5c);
  padding: 12px 0; overflow: hidden;
  position: relative; z-index: 10;
}
.ticker {
  display: flex; white-space: nowrap;
  animation: ticker 30s linear infinite;
}
.ticker-item {
  font-size: 13px; font-weight: 600; color: white;
  padding: 0 60px; letter-spacing: 0.5px;
}
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ===== SECTION COMMONS ===== */
.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(139,58,58,0.2), rgba(168,92,92,0.2));
  border: 1px solid rgba(139,58,58,0.4);
  color: #d4a86a; font-size: 12px;
  font-weight: 600; padding: 5px 16px;
  border-radius: 50px; text-transform: uppercase; letter-spacing: 1px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800; color: white;
  margin: 10px 0;
}
.section-subtitle { color: var(--text-muted); font-size: 16px; max-width: 600px; margin: 0 auto; }

/* ===== COURSES ===== */
.section-courses { background: linear-gradient(180deg, var(--dark) 0%, var(--dark2) 100%); }
.course-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px; overflow: hidden;
  cursor: pointer; transition: all 0.4s;
  position: relative;
}
.course-card:hover {
  transform: translateY(-10px);
  border-color: rgba(139,58,58,0.5);
  box-shadow: 0 20px 60px rgba(139,58,58,0.3);
}
.course-ribbon {
  position: absolute; top: 16px; right: -8px;
  background: linear-gradient(135deg, #d4a86a, #a85c5c);
  color: white; font-size: 11px; font-weight: 700;
  padding: 4px 16px; border-radius: 4px 4px 0 4px;
  z-index: 2;
  box-shadow: -2px 2px 10px rgba(0,0,0,0.3);
}
.course-icon {
  width: 80px; height: 80px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: white;
  margin: 24px auto 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.course-content { padding: 20px 24px 24px; }
.course-content h4 { font-weight: 700; font-size: 20px; color: white; margin-bottom: 8px; }
.course-content p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; line-height: 1.6; }
.course-meta {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 14px; align-items: center;
}
.course-meta span { display: flex; align-items: center; }
.course-price {
  margin-left: auto !important;
  font-weight: 700 !important; font-size: 14px !important;
  color: #7a9a6a !important;
}
.course-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.course-tags span {
  background: rgba(139,58,58,0.2);
  border: 1px solid rgba(139,58,58,0.3);
  color: #d4a86a; font-size: 11px;
  padding: 3px 10px; border-radius: 50px;
}

/* ===== ADMISSION STEPS ===== */
.section-admission {
  background: linear-gradient(135deg, var(--dark2) 0%, #1e1005 100%);
}
.step-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 30px 20px;
  text-align: center; transition: all 0.3s;
  position: relative; overflow: hidden;
}
.step-card:hover { transform: translateY(-8px); border-color: rgba(139,58,58,0.5); }
.step-number {
  position: absolute; top: -10px; left: 20px;
  font-size: 60px; font-weight: 900;
  color: rgba(139,58,58,0.1);
  line-height: 1; font-family: 'Poppins', sans-serif;
}
.step-icon {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, #8b3a3a, #a85c5c);
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-size: 28px; color: white;
  margin: 0 auto 16px;
  box-shadow: 0 8px 30px rgba(139,58,58,0.4);
}
.step-card h5 { color: white; font-weight: 700; margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: 13px; }
.btn-apply {
  background: linear-gradient(135deg, #8b3a3a, #a85c5c);
  border: none; color: white; font-weight: 700;
  padding: 16px 50px; border-radius: 50px;
  font-size: 16px; transition: all 0.3s;
  box-shadow: 0 8px 30px rgba(139,58,58,0.4);
}
.btn-apply:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(139,58,58,0.6); color: white; }

/* ===== NOTICE BOARD ===== */
.section-notice { background: linear-gradient(180deg, var(--dark) 0%, var(--dark3) 100%); }
.notice-list { display: flex; flex-direction: column; gap: 12px; }
.notice-item {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 18px 20px;
  display: flex; align-items: center; gap: 16px;
  cursor: pointer; transition: all 0.3s;
}
.notice-item:hover { border-color: rgba(139,58,58,0.5); transform: translateX(5px); }
.notice-item.urgent { border-left: 4px solid #a85c5c; }
.notice-date {
  min-width: 50px; text-align: center;
  background: rgba(139,58,58,0.2);
  border-radius: 10px; padding: 8px;
}
.notice-date .day { display: block; font-size: 20px; font-weight: 800; color: #d4a86a; line-height: 1; }
.notice-date .month { display: block; font-size: 10px; color: var(--text-muted); text-transform: uppercase; }
.notice-body { flex: 1; }
.notice-body h5 { color: white; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.notice-body p { color: var(--text-muted); font-size: 13px; margin: 0; }
.notice-tag {
  font-size: 10px; font-weight: 700; padding: 2px 10px;
  border-radius: 50px; display: inline-block; margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.urgent-tag { background: rgba(168,92,92,0.2); color: #a85c5c; border: 1px solid rgba(168,92,92,0.3); }
.exam-tag { background: rgba(201,168,76,0.2); color: #c9a84c; border: 1px solid rgba(201,168,76,0.3); }
.event-tag { background: rgba(181,148,90,0.2); color: #b5945a; border: 1px solid rgba(181,148,90,0.3); }
.info-tag { background: rgba(122,154,106,0.2); color: #7a9a6a; border: 1px solid rgba(122,154,106,0.3); }
.holiday-tag { background: rgba(193,127,90,0.2); color: #c17f5a; border: 1px solid rgba(193,127,90,0.3); }
.notice-arrow { color: var(--text-muted); font-size: 14px; }

.notice-sidebar { position: sticky; top: 100px; }
.sidebar-title {
  color: white; font-size: 15px; font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(139,58,58,0.3);
  margin-bottom: 16px;
}
.upcoming-events, .quick-links {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 20px;
}
.event-mini {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 13px; color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.event-mini:last-child { border: none; }
.event-dot { width: 10px; height: 10px; border-radius: 50%; min-width: 10px; }
.quick-link-item {
  display: flex; align-items: center;
  padding: 10px 12px; font-size: 13px; color: var(--text-muted);
  border-radius: 8px; text-decoration: none; transition: all 0.3s;
  margin-bottom: 4px;
}
.quick-link-item:hover { background: rgba(139,58,58,0.15); color: #d4a86a; }

/* ===== CERTIFICATIONS ===== */
.section-cert { background: linear-gradient(135deg, var(--dark2) 0%, #1e1005 100%); }
.cert-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  cursor: pointer; transition: all 0.3s;
}
.cert-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(139,58,58,0.3); }
.cert-preview {
  height: 180px; display: flex;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.cert-preview.completion { background: linear-gradient(135deg, rgba(139,58,58,0.3), rgba(168,92,92,0.3)); }
.cert-preview.merit { background: linear-gradient(135deg, rgba(201,168,76,0.3), rgba(193,127,90,0.3)); }
.cert-preview.performance { background: linear-gradient(135deg, rgba(122,154,106,0.3), rgba(181,148,90,0.3)); }
.cert-inner { text-align: center; padding: 20px; position: relative; }
.cert-big-icon { font-size: 40px; color: rgba(255,255,255,0.4); margin-bottom: 10px; display: block; }
.cert-lines { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cert-line { height: 4px; border-radius: 10px; background: rgba(255,255,255,0.2); width: 120px; }
.cert-line.short { width: 60px; }
.cert-line.medium { width: 90px; }
.cert-seal {
  position: absolute; bottom: 10px; right: 10px;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #c9a84c, #ef4444);
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-size: 18px; color: white;
}
.cert-info { padding: 20px; }
.cert-info h5 { color: white; font-weight: 700; margin-bottom: 8px; }
.cert-info p { color: var(--text-muted); font-size: 13px; margin-bottom: 12px; }
.cert-badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 4px 14px; border-radius: 50px;
  background: rgba(139,58,58,0.2); color: #d4a86a;
  border: 1px solid rgba(139,58,58,0.3);
}
.merit-badge { background: rgba(201,168,76,0.2); color: #c9a84c; border-color: rgba(201,168,76,0.3); }
.perf-badge { background: rgba(122,154,106,0.2); color: #7a9a6a; border-color: rgba(122,154,106,0.3); }

/* ===== INSTRUCTORS ===== */
.section-instructors { background: var(--dark); }
.instructor-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px; text-align: center;
  padding: 30px 20px; transition: all 0.3s;
}
.instructor-card:hover { transform: translateY(-8px); border-color: rgba(139,58,58,0.5); }
.instructor-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: rgba(255,255,255,0.7);
  margin: 0 auto 16px;
  position: relative;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.instructor-instrument {
  position: absolute; bottom: -5px; right: -5px;
  width: 32px; height: 32px;
  background: var(--dark2);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: white;
}
.instructor-info h5 { color: white; font-weight: 700; margin-bottom: 4px; }
.inst-role { color: var(--primary-light); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.inst-exp { color: var(--text-muted); font-size: 12px; margin-bottom: 10px; line-height: 1.5; }
.inst-rating { color: #c9a84c; font-size: 13px; }
.inst-rating span { color: var(--text-muted); font-size: 12px; margin-left: 4px; }

/* ===== CONTACT ===== */
.section-contact { background: linear-gradient(135deg, var(--dark2) 0%, #1a1109 100%); }
.contact-info-list { display: flex; flex-direction: column; gap: 16px; }
.contact-info-item {
  display: flex; align-items: flex-start; gap: 14px;
  color: var(--text-muted); font-size: 14px;
}
.ci-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: linear-gradient(135deg, #8b3a3a, #a85c5c);
  border-radius: 12px; display: flex;
  align-items: center; justify-content: center;
  color: white; font-size: 16px;
}
.contact-form-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 24px; padding: 36px;
}
.contact-form-card h4 { color: white; font-weight: 700; }
.custom-input {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid var(--border) !important;
  color: white !important; border-radius: 12px !important;
  padding: 12px 16px !important;
  transition: all 0.3s;
}
.custom-input:focus {
  border-color: rgba(139,58,58,0.6) !important;
  box-shadow: 0 0 0 3px rgba(139,58,58,0.15) !important;
  background: rgba(139,58,58,0.05) !important;
  outline: none !important;
}
.custom-input::placeholder { color: var(--text-muted) !important; }
.btn-submit {
  background: linear-gradient(135deg, #8b3a3a, #a85c5c);
  border: none; color: white; font-weight: 700;
  padding: 14px; border-radius: 12px;
  font-size: 15px; transition: all 0.3s;
  box-shadow: 0 8px 30px rgba(139,58,58,0.4);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(139,58,58,0.6); color: white; }

/* ===== FOOTER ===== */
.main-footer { background: #130d04; border-top: 1px solid var(--border); }
.footer-heading { color: white; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-desc { color: var(--text-muted); font-size: 13px; line-height: 1.7; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 13px; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary-light); }
.social-links { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: white; text-decoration: none;
  transition: all 0.3s;
}
.social-btn:hover { transform: translateY(-3px); color: white; }
.social-btn.fb { background: #1877f2; }
.social-btn.ig { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.social-btn.yt { background: #ff0000; }
.social-btn.tw { background: #1da1f2; }
.btn-newsletter {
  background: linear-gradient(135deg, #8b3a3a, #a85c5c);
  border: none; color: white; font-weight: 600;
  border-radius: 10px; padding: 10px; transition: all 0.3s;
}
.btn-newsletter:hover { opacity: 0.9; color: white; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0; text-align: center;
  color: var(--text-muted); font-size: 13px;
}

/* ===== CHAT FAB ===== */
.chat-fab {
  position: fixed; bottom: 30px; right: 30px;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #8b3a3a, #a85c5c);
  border: none; color: white; font-size: 24px;
  cursor: pointer; z-index: 999;
  box-shadow: 0 8px 30px rgba(139,58,58,0.5);
  transition: all 0.3s; display: flex;
  align-items: center; justify-content: center;
  animation: chatPulse 2s ease-in-out infinite;
}
.chat-fab:hover { transform: scale(1.1); }
@keyframes chatPulse {
  0%,100%{box-shadow:0 8px 30px rgba(139,58,58,0.5)}
  50%{box-shadow:0 8px 50px rgba(139,58,58,0.8)}
}
.chat-badge {
  position: absolute; top: -4px; right: -4px;
  width: 22px; height: 22px; background: #ef4444;
  border-radius: 50%; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--dark);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 30px; left: 30px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--glass); backdrop-filter: blur(10px);
  border: 1px solid var(--border); color: white;
  font-size: 16px; cursor: pointer; z-index: 999;
  opacity: 0; transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.back-to-top.visible { opacity: 1; }
.back-to-top:hover { background: var(--primary); border-color: var(--primary); }

/* ===== OVERLAY / MODAL SYSTEM ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0;
  animation: fadeIn 0.3s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
.modal-box {
  background: linear-gradient(135deg, #231a0e 0%, #1e1508 100%);
  border: 1px solid rgba(139,58,58,0.3);
  border-radius: 24px; width: 100%;
  max-width: 520px; max-height: 90vh;
  overflow-y: auto; position: relative;
  box-shadow: 0 25px 80px rgba(0,0,0,0.7);
  animation: slideUp 0.3s ease;
}
.modal-box.wide { max-width: 700px; }
.modal-box.wider { max-width: 860px; }
@keyframes slideUp { from{transform:translateY(30px);opacity:0} to{transform:translateY(0);opacity:1} }
.modal-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { color: white; font-weight: 700; font-size: 20px; margin: 0; }
.modal-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--border);
  color: white; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.modal-close:hover { background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.4); }
.modal-body { padding: 24px 28px 28px; }
.form-label { color: var(--text-muted); font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.btn-modal-primary {
  background: linear-gradient(135deg, #8b3a3a, #a85c5c);
  border: none; color: white; font-weight: 700;
  width: 100%; padding: 14px; border-radius: 12px;
  font-size: 15px; cursor: pointer; transition: all 0.3s;
  margin-top: 8px;
}
.btn-modal-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.social-login {
  display: flex; gap: 10px; margin-bottom: 20px;
}
.btn-social {
  flex: 1; padding: 10px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--glass);
  color: white; font-size: 13px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 8px; transition: all 0.3s;
}
.btn-social:hover { border-color: rgba(139,58,58,0.5); background: rgba(139,58,58,0.1); }
.divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-muted); font-size: 12px; margin-bottom: 20px;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-switch {
  text-align: center; margin-top: 16px;
  color: var(--text-muted); font-size: 13px;
}
.auth-switch a { color: var(--primary-light); cursor: pointer; font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

/* ===== DASHBOARD ===== */
.dash-stat {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px;
  display: flex; align-items: center; gap: 16px;
}
.dash-stat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: white;
}
.dash-stat-num { font-size: 24px; font-weight: 800; color: white; }
.dash-stat-label { font-size: 12px; color: var(--text-muted); }
.progress-card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px; margin-bottom: 12px;
}
.progress-card h6 { color: white; font-weight: 600; margin-bottom: 4px; }
.progress { background: rgba(255,255,255,0.1); border-radius: 10px; height: 8px; }
.schedule-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.schedule-time {
  min-width: 70px; text-align: center;
  background: rgba(139,58,58,0.2); border-radius: 8px;
  padding: 6px; font-size: 12px; color: #d4a86a; font-weight: 600;
}
.schedule-info h6 { color: white; font-size: 14px; font-weight: 600; margin: 0; }
.schedule-info p { color: var(--text-muted); font-size: 12px; margin: 0; }

/* ===== PAYMENT ===== */
.payment-method {
  display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap;
}
.pay-btn {
  flex: 1; min-width: 100px; padding: 12px;
  border-radius: 12px; border: 2px solid var(--border);
  background: var(--glass); color: white;
  font-weight: 600; font-size: 13px; cursor: pointer;
  transition: all 0.3s; text-align: center;
}
.pay-btn.active, .pay-btn:hover {
  border-color: var(--primary);
  background: rgba(139,58,58,0.15);
}
.pay-btn i { display: block; font-size: 22px; margin-bottom: 4px; }
.payment-summary {
  background: rgba(139,58,58,0.1);
  border: 1px solid rgba(139,58,58,0.3);
  border-radius: 14px; padding: 16px;
  margin-bottom: 20px;
}
.payment-row {
  display: flex; justify-content: space-between;
  font-size: 14px; padding: 4px 0;
}
.payment-row.total {
  border-top: 1px solid var(--border);
  margin-top: 8px; padding-top: 10px;
  font-weight: 700; color: #7a9a6a; font-size: 16px;
}

/* ===== CHAT ===== */
.chat-window {
  display: flex; flex-direction: column; height: 460px;
}
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.chat-msg {
  display: flex; gap: 10px; align-items: flex-start;
  animation: msgIn 0.3s ease;
}
@keyframes msgIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
.chat-msg.sent { flex-direction: row-reverse; }
.chat-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; min-width: 34px;
}
.chat-bubble {
  max-width: 75%; padding: 10px 14px;
  border-radius: 14px; font-size: 13px; line-height: 1.5;
}
.received .chat-avatar { background: linear-gradient(135deg, #8b3a3a, #a85c5c); color: white; }
.received .chat-bubble { background: rgba(255,255,255,0.08); color: var(--text); border-radius: 4px 14px 14px 14px; }
.sent .chat-avatar { background: linear-gradient(135deg, #7a9a6a, #b5945a); color: white; }
.sent .chat-bubble { background: linear-gradient(135deg, #8b3a3a, #a85c5c); color: white; border-radius: 14px 4px 14px 14px; }
.chat-time { font-size: 10px; color: var(--text-muted); margin-top: 4px; text-align: right; }
.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex; gap: 10px; align-items: center;
}
.chat-input {
  flex: 1; background: var(--glass);
  border: 1px solid var(--border); border-radius: 50px;
  padding: 10px 16px; color: white; font-size: 13px;
  outline: none; transition: all 0.3s;
}
.chat-input:focus { border-color: rgba(139,58,58,0.5); }
.chat-input::placeholder { color: var(--text-muted); }
.chat-send {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #8b3a3a, #a85c5c);
  border: none; color: white; font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.chat-send:hover { transform: scale(1.1); }

/* ===== CERT VIEW ===== */
.cert-view-display {
  background: linear-gradient(135deg, #1e1005, #1a1109);
  border: 3px solid rgba(139,58,58,0.5);
  border-radius: 20px; padding: 40px;
  text-align: center; margin-bottom: 20px;
  position: relative;
}
.cert-view-display::before {
  content: ''; position: absolute; inset: 8px;
  border: 1px solid rgba(139,58,58,0.2);
  border-radius: 14px; pointer-events: none;
}
.cert-logo-big {
  font-size: 60px;
  background: linear-gradient(135deg, #d4a86a, #b5945a);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 16px;
}
.cert-view-display h2 { color: white; font-family: 'Playfair Display', serif; margin-bottom: 8px; }
.cert-view-display .cert-name { font-size: 28px; font-weight: 800; color: #d4a86a; margin: 10px 0; }
.cert-view-display p { color: var(--text-muted); font-size: 14px; }

/* ===== TOAST ===== */
.toast-msg {
  position: fixed; bottom: 100px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, #8b3a3a, #a85c5c);
  color: white; padding: 12px 28px;
  border-radius: 50px; font-size: 14px; font-weight: 600;
  z-index: 99999; opacity: 0; transition: all 0.4s;
  box-shadow: 0 8px 30px rgba(139,58,58,0.5);
  pointer-events: none;
}
.toast-msg.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.toast-msg.success { background: linear-gradient(135deg, #7a9a6a, #059669); }
.toast-msg.error { background: linear-gradient(135deg, #ef4444, #dc2626); }

/* ===== COURSE DETAIL ===== */
.course-detail-hero {
  height: 120px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 60px; color: white; margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.course-detail-hero::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.2);
}
.course-detail-hero i { position: relative; z-index: 1; }
.curriculum-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: var(--glass);
  border: 1px solid var(--border); border-radius: 10px;
  margin-bottom: 8px; font-size: 13px; color: var(--text-muted);
}
.curriculum-item i { color: #7a9a6a; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-title { font-size: 32px; }
  .hero-stats { gap: 20px; }
  .modal-box { max-width: 100%; border-radius: 20px 20px 0 0; margin-top: auto; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .contact-form-card { padding: 24px 16px; }
}
/* ===== CHAT ADDITIONS (Day 9) ===================================== */

/* Sender name shown above each bubble */
.chat-sender-name {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 2px;
  padding-left: 2px;
}

/* Green pulsing dot next to "Online" status text */
.chat-online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: dotPulse 1.8s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

/* Typing indicator — three bouncing dots */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  min-height: 28px;
}

.typing-indicator span:not(#typingName) {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.2s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%           { transform: translateY(-6px); opacity: 1; }
}

/* Loading placeholder shown while history is being fetched */
.chat-loading {
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}