/* =============================================
   FULLSTACK DEVELOPMENT COURSE - MAIN CSS
   ============================================= */

:root {
  --primary: #0f172a;
  --secondary: #1e40af;
  --accent: #06b6d4;
  --accent2: #f59e0b;
  --light: #f8fafc;
  --text: #334155;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --gradient: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1e40af 100%);
  --gradient-accent: linear-gradient(135deg, #06b6d4, #3b82f6);
  --shadow: 0 4px 24px rgba(15,23,42,0.12);
  --shadow-lg: 0 16px 48px rgba(15,23,42,0.2);
  --radius: 12px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Syne', sans-serif;
  color: var(--primary);
  line-height: 1.2;
}

a { text-decoration: none; color: var(--secondary); transition: all 0.3s; }
a:hover { color: var(--accent); }

/* ---- TOP BAR ---- */
.top-bar {
  background: var(--primary);
  color: #94a3b8;
  padding: 8px 0;
  font-size: 0.8rem;
}
.top-bar a { color: #94a3b8; margin: 0 4px; }
.top-bar a:hover { color: var(--accent); }

/* ---- NAVBAR ---- */
#mainNav {
  background: var(--primary);
  border-bottom: 2px solid rgba(6,182,212,0.3);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
#mainNav .navbar-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: -0.5px;
}
#mainNav .navbar-brand:hover { color: var(--accent); }
#mainNav .nav-link { color: #cbd5e1 !important; font-weight: 500; padding: 8px 14px !important; border-radius: 8px; transition: all 0.3s; }
#mainNav .nav-link:hover { color: #fff !important; background: rgba(255,255,255,0.1); }
#mainNav .dropdown-menu { background: var(--primary); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); }
#mainNav .dropdown-item { color: #cbd5e1; padding: 8px 16px; }
#mainNav .dropdown-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-enroll { background: var(--gradient-accent) !important; color: #fff !important; padding: 8px 20px !important; border-radius: 50px !important; font-weight: 600; }
.btn-enroll:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(6,182,212,0.4); }

/* ---- HERO ---- */
.hero-section {
  background: var(--gradient);
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
  min-height: 85vh;
  display: flex;
  align-items: center;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1571171637578-41bc2dd41cd2?w=1400&fit=crop') center/cover no-repeat;
  opacity: 0.07;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,80 C360,0 1080,0 1440,80 Z' fill='%23fff'/%3E%3C/svg%3E") no-repeat bottom/100%;
}
.hero-section .container { position: relative; z-index: 2; }
.hero-badge {
  display: inline-block;
  background: rgba(6,182,212,0.2);
  border: 1px solid rgba(6,182,212,0.5);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.1;
}
.hero-title span { color: var(--accent); }
.hero-subtitle { color: #94a3b8; font-size: 1.15rem; margin-bottom: 36px; max-width: 520px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary-custom {
  background: var(--gradient-accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(6,182,212,0.3);
}
.btn-primary-custom:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(6,182,212,0.4); color: #fff; }
.btn-outline-custom {
  background: transparent;
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}
.btn-outline-custom:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; transform: translateY(-2px); }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.hero-stat-item { text-align: center; }
.hero-stat-num { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat-label { color: #94a3b8; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.hero-image-area { position: relative; }
.hero-image-area img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.hero-image-badge {
  position: absolute;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}
.hero-image-badge-1 { bottom: -20px; left: -20px; }
.hero-image-badge-2 { top: -16px; right: -16px; }
.hero-image-badge i { font-size: 1.5rem; color: var(--accent); }

/* ---- SECTIONS ---- */
.section-padding { padding: 90px 0; }
.section-light { background: var(--light); }
.section-dark { background: var(--primary); }
.section-badge {
  display: inline-block;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.3);
  color: var(--secondary);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; margin-bottom: 16px; }
.section-subtitle { color: var(--text-light); font-size: 1.05rem; max-width: 580px; }
.title-underline { width: 60px; height: 4px; background: var(--gradient-accent); border-radius: 2px; margin: 16px 0 24px; }

/* ---- COURSE CARDS ---- */
.course-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.35s;
  height: 100%;
}
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.course-card-img { position: relative; overflow: hidden; height: 200px; }
.course-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.course-card:hover .course-card-img img { transform: scale(1.05); }
.course-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gradient-accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.course-card-body { padding: 24px; }
.course-card-body h4 { font-size: 1.1rem; margin-bottom: 12px; }
.course-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-light); margin-bottom: 16px; }
.course-meta span { display: flex; align-items: center; gap: 5px; }
.course-meta i { color: var(--accent); }
.tech-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tech-tag { background: rgba(6,182,212,0.1); color: var(--secondary); padding: 3px 10px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }
.course-card-footer { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-top: 1px solid var(--border); background: #fafafa; }
.course-price { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.btn-view-course { background: var(--gradient-accent); color: #fff; padding: 8px 20px; border-radius: 50px; font-weight: 600; font-size: 0.85rem; }
.btn-view-course:hover { opacity: 0.9; color: #fff; transform: translateY(-1px); }

/* ---- TECH STACK ---- */
.tech-item {
  text-align: center;
  padding: 28px 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.tech-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.tech-item img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 12px; }
.tech-item h6 { font-weight: 700; font-size: 0.9rem; margin: 0; }

/* ---- TESTIMONIALS ---- */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  height: 100%;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  font-family: 'Syne', sans-serif;
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: 10px; left: 20px;
  line-height: 1;
}
.testimonial-text { color: var(--text); font-size: 1rem; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); }
.testimonial-author-name { font-weight: 700; color: var(--primary); }
.testimonial-author-role { color: var(--text-light); font-size: 0.85rem; }
.stars { color: var(--accent2); font-size: 0.9rem; margin-bottom: 12px; }

/* ---- COUNTRY SECTION ---- */
.country-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s;
  display: block;
  color: var(--primary);
}
.country-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--accent); color: var(--secondary); }
.country-flag { font-size: 2.5rem; margin-bottom: 10px; display: block; }
.country-name { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.country-courses { color: var(--text-light); font-size: 0.8rem; }

/* ---- BLOG ---- */
.blog-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.35s;
  height: 100%;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-card-img { height: 200px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-body { padding: 24px; }
.blog-category { color: var(--secondary); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.blog-card-body h4 { font-size: 1.05rem; margin: 8px 0 12px; }
.blog-meta { color: var(--text-light); font-size: 0.82rem; display: flex; gap: 16px; flex-wrap: wrap; }
.blog-meta i { color: var(--accent); }
.read-more { color: var(--secondary); font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; margin-top: 16px; }
.read-more:hover { color: var(--accent); }

/* ---- WHY LEARN ---- */
.why-item {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  align-items: flex-start;
}
.why-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
  color: #fff;
}
.why-content h5 { font-weight: 700; margin-bottom: 6px; }
.why-content p { color: var(--text-light); font-size: 0.92rem; margin: 0; }

/* ---- SEO CONTENT ---- */
.seo-content-section {
  background: #fff;
  padding: 70px 0;
  border-top: 1px solid var(--border);
}
.seo-content-section h2 { font-size: 2rem; margin-bottom: 20px; }
.seo-content-section h3 { font-size: 1.3rem; color: var(--secondary); margin: 28px 0 12px; }
.seo-content-section p { color: var(--text); line-height: 1.8; margin-bottom: 16px; }

/* ---- REGISTER FORM ---- */
.register-form-section {
  background: var(--light);
  padding: 80px 0;
}
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}
.form-label { font-weight: 600; color: var(--primary); font-size: 0.9rem; }
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: all 0.3s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(6,182,212,0.1);
  outline: none;
}
.btn-submit {
  background: var(--gradient-accent);
  color: #fff;
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  width: 100%;
  transition: all 0.3s;
}
.btn-submit:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(6,182,212,0.3); }

/* ---- PAGE HERO ---- */
.page-hero {
  background: var(--gradient);
  padding: 70px 0 60px;
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 50px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,50 L1440,0 L1440,50 Z' fill='%23fff'/%3E%3C/svg%3E") no-repeat bottom/100%;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.page-hero p { color: #94a3b8; }
.breadcrumb-item a { color: var(--accent); }
.breadcrumb-item.active { color: #94a3b8; }

/* ---- CTA SECTION ---- */
.cta-section {
  background: var(--gradient);
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(6,182,212,0.15), transparent 60%);
}
.cta-section .container { position: relative; z-index: 2; }
.cta-section h2 { color: #fff; font-size: 2.4rem; margin-bottom: 16px; }
.cta-section p { color: #94a3b8; font-size: 1.1rem; margin-bottom: 32px; }

/* ---- DETAIL PAGE ---- */
.course-detail-sidebar {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: sticky;
  top: 90px;
}
.sidebar-price { font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--primary); }
.sidebar-includes li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; display: flex; align-items: center; gap: 10px; }
.sidebar-includes li i { color: var(--accent); }
.syllabus-item {
  background: var(--light);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  border-left: 4px solid var(--accent);
}
.syllabus-item h6 { font-weight: 700; margin-bottom: 4px; color: var(--primary); }
.syllabus-item p { color: var(--text-light); font-size: 0.87rem; margin: 0; }

/* ---- BLOG DETAIL ---- */
.blog-detail-content { font-size: 1.05rem; line-height: 1.85; }
.blog-detail-content h2 { font-size: 1.7rem; margin: 32px 0 16px; }
.blog-detail-content h3 { font-size: 1.35rem; margin: 24px 0 12px; color: var(--secondary); }
.blog-detail-content img { border-radius: var(--radius); margin: 24px 0; max-width: 100%; }
.blog-detail-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  background: var(--light);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text);
}
.author-box {
  background: var(--light);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 40px;
}
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }

/* ---- PAGINATION ---- */
.pagination .page-link {
  color: var(--secondary);
  border-radius: 8px !important;
  margin: 0 3px;
  border: 1.5px solid var(--border);
  padding: 8px 16px;
  font-weight: 600;
}
.pagination .page-item.active .page-link { background: var(--gradient-accent); border-color: transparent; color: #fff; }
.pagination .page-link:hover { background: var(--light); border-color: var(--accent); }

/* ---- SUCCESS MESSAGE ---- */
.alert-success-custom {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border: 1px solid #6ee7b7;
  border-radius: var(--radius);
  padding: 24px;
  color: #065f46;
}

/* ---- FOOTER ---- */
.footer-section {
  background: var(--primary);
  color: #94a3b8;
  padding: 70px 0 30px;
}
.footer-heading { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-text { font-size: 0.92rem; line-height: 1.7; color: #94a3b8; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #94a3b8; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; transition: all 0.2s; }
.footer-links a i { font-size: 0.7rem; color: var(--accent); }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.city-links { display: flex; flex-wrap: wrap; gap: 8px; }
.city-links a { background: rgba(255,255,255,0.06); color: #94a3b8; padding: 5px 12px; border-radius: 50px; font-size: 0.8rem; transition: all 0.2s; }
.city-links a:hover { background: rgba(6,182,212,0.2); color: var(--accent); }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: rgba(255,255,255,0.08); color: #94a3b8; border-radius: 50%; margin-right: 8px; transition: all 0.3s; }
.social-links a:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.footer-divider { border-color: rgba(255,255,255,0.08); margin: 36px 0 24px; }
.footer-copy { color: #64748b; font-size: 0.87rem; }
.footer-bottom-link { color: #64748b; font-size: 0.85rem; margin-left: 20px; }
.footer-bottom-link:hover { color: var(--accent); }

/* ---- UTILITIES ---- */
.text-gradient { background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.bg-gradient-custom { background: var(--gradient); }
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.lazy { opacity: 0; transition: opacity 0.4s; }
.lazy.loaded { opacity: 1; }

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
  .hero-section { padding: 70px 0 90px; min-height: auto; }
  .hero-image-area { margin-top: 40px; }
  .hero-image-badge-1, .hero-image-badge-2 { display: none; }
}
@media (max-width: 767px) {
  .section-padding { padding: 60px 0; }
  .hero-stats { gap: 20px; }
  .form-card { padding: 28px 20px; }
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fadeup { animation: fadeInUp 0.6s ease forwards; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* ---- COUNTER ANIMATION ---- */
.counter-section { background: var(--gradient); padding: 60px 0; }
.counter-item { text-align: center; padding: 20px; }
.counter-num { font-family: 'Syne', sans-serif; font-size: 3rem; font-weight: 800; color: #fff; display: block; }
.counter-label { color: #94a3b8; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* ---- STICKY SIDEBAR ---- */
@media (max-width: 991px) {
  .course-detail-sidebar { position: static; }
}
