/* ===== RESET AND BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
  overflow-x: hidden;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 10px;
  overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed !important;
  top: 0 !important;
  width: 100% !important;
  background: rgba(255, 255, 255, 0.95) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  backdrop-filter: blur(10px) !important;
  z-index: 900 !important;
  padding: 1rem 0 !important;
  border-radius: 0 0 20px 20px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.nav-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.nav-logo {
  height: 40px !important;
  width: auto !important;
  display: block !important;
}

.nav-menu {
  display: flex !important;
  list-style: none !important;
  gap: 1rem !important;
}

.nav-link {
  text-decoration: none !important;
  color: #333 !important;
  font-weight: 500 !important;
  transition: color 0.3s ease !important;
  padding: 0.5rem 1rem !important;
  border-radius: 20px !important;
  transition: all 0.3s ease !important;
  position: relative !important;
}

.nav-link:hover,
.nav-link.active {
  color: #667eea !important;
  background: rgba(102, 126, 234, 0.1) !important;
}

.mobile-nav-icons {
  display: none !important;
  align-items: center !important;
  gap: 1rem !important;
}

.mobile-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.mobile-icon-link:hover {
  background: #667eea;
  color: white;
  transform: scale(1.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 0 0 50px 50px;
  margin-bottom: 2rem;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* ===== WELCOME HERO ===== */
.welcome-hero {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  padding: 3rem;
  border-radius: 20px;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.welcome-content h2 {
  color: #667eea;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.welcome-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #666;
  font-weight: 500;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: #667eea;
  color: white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background: white;
  color: #667eea;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
  padding: 1rem;
  max-width: 100%;
  overflow-x: hidden;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.feature-card:hover {
  border-color: #667eea;
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.applications-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.app-tag {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ===== TOPICS SECTION ===== */
.topics-section {
  padding: 4rem 0;
  background: white;
  margin: 2rem 0;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 3rem;
}

.topic-category {
  margin-bottom: 4rem;
}

.category-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 4px solid #667eea;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 100%;
  overflow-x: hidden;
}

.topic-card {
  background: white;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-decoration: none;
  color: inherit;
  display: block;
  animation: fadeInUp 0.6s ease forwards;
}

.topic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
  text-decoration: none;
  color: inherit;
}

.topic-card:nth-child(1) {
  animation-delay: 0.1s;
}

.topic-card:nth-child(2) {
  animation-delay: 0.2s;
}

.topic-card:nth-child(3) {
  animation-delay: 0.3s;
}

.topic-card:nth-child(4) {
  animation-delay: 0.4s;
}

.topic-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.topic-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.topic-card p {
  color: #666;
  font-size: 0.9rem;
}

/* ===== OS TABS ===== */
.os-tabs {
  margin: 2rem 0;
}

.tab-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tab-btn {
  background: #f8f9fa;
  border: 2px solid #ddd;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.tab-content {
  display: none;
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.tab-content.active {
  display: block;
}

/* ===== INSTALL STEPS ===== */
.install-steps {
  margin: 2rem 0;
}

.step-card {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.step-number {
  background: #667eea;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  color: #333;
  margin-bottom: 1rem;
}

/* ===== FIRST PROGRAM METHODS ===== */
.first-program-methods {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.method-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.method-card:hover {
  border-color: #667eea;
}

.procedure {
  margin: 2rem 0;
}

.procedure-card {
  margin-bottom: 1rem;
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.step-by-step {
  margin: 1.5rem 0;
}

.step {
  padding: 0.8rem 0;
  border-bottom: 1px solid #eee;
}

.step:last-child {
  border-bottom: none;
}

.output-example {
  margin: 2rem 0;
}

.output-box {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

/* ===== LEARNING PATH ===== */
.learning-path {
  margin: 2rem 0;
}

.path-section {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border-left: 5px solid #667eea;
}

.path-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.path-number {
  background: #667eea;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.path-header h3 {
  color: #333;
  margin: 0;
  flex: 1;
}

.path-duration {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  padding: 0.3rem 1rem;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 500;
}

.path-topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 100%;
  overflow-x: hidden;
}

.path-topic {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.path-topic:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: #667eea;
  color: #667eea;
  text-decoration: none;
}
/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: #f8f9fa;
  padding: 1rem 0;
  margin-top: 80px;
  border-radius: 0 0 20px 20px;
}

.breadcrumb a {
  color: #667eea;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: #666;
}

/* ===== MAIN CONTENT LAYOUT ===== */
.main-content {
  padding: 2rem 0;
  padding-top: 80px;
}

.main-content .container {
  transition: margin 0.3s ease;
}

.content-layout {
  display: grid;
  grid-template-columns: 250px 2.0fr;
  gap: 3rem;
  max-width: 100%;
  overflow-x: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: sticky;
  top: 100px;
  height: calc(100vh - 120px);
  overflow-y: auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(102, 126, 234, 0.1);
  padding: 1.5rem;
}

.sidebar-content h3 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu li {
  margin-bottom: 0.5rem;
}

.sidebar-menu a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #666;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}

.sidebar-search {
  margin-bottom: 20px;
  padding: 0 10px;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 10px 35px 10px 12px;
  border: 2px solid #e1e5e9;
  border-radius: 30px;
  font-size: 14px;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #007bff;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-input.loading {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%236c757d' d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z' opacity='.25'/%3E%3Cpath fill='%236c757d' d='M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z'%3E%3CanimateTransform attributeName='transform' dur='0.75s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 35px center;
  background-size: 16px;
}

.search-icon {
  position: absolute;
  right: 12px;
  color: #6c757d;
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 35px;
  background: none;
  border: none;
  font-size: 18px;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.search-clear:hover {
  background-color: #e9ecef;
  color: #495057;
}

.search-results {
  margin-top: 15px;
}

.search-results h4 {
  font-size: 14px;
  color: #495057;
  margin-bottom: 10px;
  padding: 0 10px;
  font-weight: 600;
}

.search-results ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-results li {
  margin-bottom: 2px;
}

.search-result-link {
  display: block;
  padding: 8px 15px;
  color: #495057;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 14px;
}

.search-result-link:hover {
  background-color: #e3f2fd;
  color: #667eea;
}

.search-result-link mark {
  background-color: #fff3cd;
  color: #667eea;
  padding: 1px 2px;
  border-radius: 2px;
}

.no-results {
  text-align: center;
  padding: 20px 10px;
  color: #6c757d;
}

.no-results p {
  margin: 0;
  font-size: 14px;
}

/* ===== ARTICLE CONTENT ===== */
.article-content {
  background: white;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  max-width: 100%;
}

.article-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 2rem;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.article-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.article-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

.article-body {
  padding: 2rem;
  background-color: white;
  border-radius: 30px;
  overflow-x: hidden;
}

.content-section {
  margin-bottom: 3rem;
  max-width: 100%;
  overflow-x: hidden;
}

.content-section ul {
  list-style: none;
  padding: 0.2rem 1rem;
}

.content-section li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  color: #555;
}

.content-section li strong {
  color: #333;
  font-weight: 600;
}

.content-section i {
  color: #667eea;
}

.content-section h2 {
  color: #333;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.content-section h3 {
  color: #333;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.content-section h4 {
  color: #333;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.content-section p {
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 1.1rem;
}

.content-section p code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Helvetica Neue", monospace;
  font-size: 0.95rem;
  font-weight: 600;
  font-style: normal;
  color: #8f1eff;

  background: rgba(102, 126, 234, 0.06);
  border: 1px solid rgba(102, 126, 234, 0.14);
  border-radius: 8px;
  padding: 0.12rem 0.4rem;
  margin: 1px;

  /* box feel */
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
  display: inline-block;
  vertical-align: middle;

  /* handle long inline snippets */
  max-width: 100%;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;

  /* keep good contrast while still subtle */
  opacity: 0.98;
}

/* ===== HIGHLIGHT BOXES ===== */
.info-box {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  padding: 1.5rem;
  border-radius: 15px;
  margin: 2rem 0;
  border-left: 4px solid #667eea;
  list-style: none;
}

.info-box h3 {
  color: #667eea;
  margin-bottom: 1rem;
}

.info-box h4 {
  color: #2c3e50;
  font-size: 1.2rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-box ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  text-align: left;
}

.info-box li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  color: #555;
  line-height: 1.5;
  padding: 0.5rem 0;
}

.info-box li:last-child {
  margin-bottom: 0;
}

.rules-box {
  background: #fff3e0;
  padding: 1.5rem;
  border-radius: 15px;
  margin: 2rem 0;
  border-left: 4px solid #ff9800;
}

.rules-box h4 {
  color: #ff9800;
  margin-bottom: 1rem;
}

/* ===== QUIZ SECTION ===== */
.quiz-section {
  background: #e3f2fd;
  padding: 2rem;
  border-radius: 20px;
  margin: 2rem 0;
}

.quiz-question {
  margin-bottom: 2rem;
}

.quiz-question h4 {
  color: #333;
  margin-bottom: 1rem;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.quiz-option {
  background: white;
  border: 2px solid #ddd;
  padding: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.quiz-option:hover {
  border-color: #667eea;
}

.quiz-option.correct {
  background: #28a745;
  color: white;
  border-color: #28a745;
}

.quiz-option.incorrect {
  background: #dc3545;
  color: white;
  border-color: #dc3545;
}

.quiz-feedback {
  margin-top: 1rem;
  font-weight: 600;
}

/* ===== PAGE NAVIGATION ===== */
.page-navigation {
  display: flex;
  justify-content: space-between !important;
  margin-top: 3rem !important;
  padding-top: 2rem !important;
  border-top: 1px solid #eee !important;
}

.nav-btn {
  background: #667eea !important;
  color: white !important;
  padding: 1rem 2rem !important;
  border-radius: 25px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.nav-btn:hover {
  background: #5a6fd8 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3) !important;
  color: white !important;
  text-decoration: none !important;
}

.prev-btn {
  margin-right: auto;
}

.next-btn {
  margin-left: auto;
}
/* ===== FOOTER ===== */
.footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 4rem 0 2rem 0;
    text-align: left;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-logo-col .nav-logo {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1rem;
    display: inline-block;
}
.footer-logo-col .nav-logo img {
    width: 2.2rem;
    height: 2.2rem;
}
.footer-logo-col p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    max-width: 250px;
    line-height: 1.5;
}
.footer-socials {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}
.footer-col h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}
.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.9rem;
    padding-left: 0;
}
.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}
.footer-bottom .heart {
    color: #667eea;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

footer a {
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.3s ease;
}
footer a:hover {
  text-decoration: none;
  color: white;
}
.footer-socials a:hover {
    color: white;
    transform: translateY(-2px);
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.mt-1 {
  margin-top: 1rem;
}

.grid-container {
  max-width: 100%;
  overflow-x: hidden;
}

.external-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.external-link:hover {
  text-decoration: underline;
}

kbd {
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  font-family: monospace;
  font-size: 0.9rem;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5a6fd8;
}

.code-example pre::-webkit-scrollbar,
pre[class*="language-"]::-webkit-scrollbar,
.code-preview pre::-webkit-scrollbar {
  height: 8px;
}

.code-example pre::-webkit-scrollbar-track,
pre[class*="language-"]::-webkit-scrollbar-track,
.code-preview pre::-webkit-scrollbar-track {
  background: #2d2d2d;
  border-radius: 4px;
}

.code-example pre::-webkit-scrollbar-thumb,
pre[class*="language-"]::-webkit-scrollbar-thumb,
.code-preview pre::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 4px;
}

.code-example pre::-webkit-scrollbar-thumb:hover,
pre[class*="language-"]::-webkit-scrollbar-thumb:hover,
.code-preview pre::-webkit-scrollbar-thumb:hover {
  background: #5a6fd8;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===== LANGUAGE RIBBON ===== */
.language-ribbon-wrapper {
  position: relative;
  margin: 15px 0;
}

.scroll-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #667eea;
  transition: all 0.2s ease;
}

.scroll-button:hover {
  background: #667eea;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.scroll-button.left {
  left: -15px;
}

.scroll-button.right {
  right: -15px;
}
#language-ribbon-container {
    margin-bottom: 20px;
    padding: 0 10px;
}

.language-ribbon-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

/* Scroll Button Styles */
.scroll-button {
    width: 40px; 
    height: 40px; 
    min-width: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0 5px;
    transition: background-color 0.2s;
}

.scroll-button:hover {
    background-color: #f0f0f0;
}

.scroll-button i {
    font-size: 16px;
    color: #4a5568;
    line-height: 1;
}

/* Ribbon Scrollable Area */
.language-ribbon {
    display: flex;
    overflow-x: auto;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 12px 15px;
    border-radius: 30px;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.02), 0 2px 10px rgba(0, 0, 0, 0.05);
    flex-grow: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.language-ribbon::-webkit-scrollbar {
    display: none;
}

/* Language Link Items */
.language-ribbon-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    margin-right: 10px;
    background: white;
    border-radius: 20px;
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
    flex-shrink: 0;
}

.language-ribbon-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.language-ribbon-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Mobile Media Query Fixes */
@media (max-width: 768px) {
    #language-ribbon-container {
        padding: 0;
    }
    
    .language-ribbon-wrapper {
        padding: 0 5px;
    }

    .language-ribbon {
        padding: 8px 10px;
        border-radius: 20px;
    }
    
    .language-ribbon-item {
        padding: 6px 12px;
        margin-right: 6px;
        font-size: 0.85rem;
        border-radius: 18px;
    }
    
    .language-ribbon-item:hover {
        transform: translateY(-1px);
    }
    
    .scroll-button {
        width: 32px;
        height: 32px;
        min-width: 32px;
        margin: 0 2px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }
    
    .scroll-button i {
        font-size: 12px;
    }
}/* ===== RESPONSIVE DESIGN - TABLET (768px and below) ===== */
@media (max-width: 800px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none !important;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 2rem;
  }

  .welcome-hero {
    grid-template-columns: 1fr;
    text-align: center;
    overflow-x: auto;
    overflow-y: auto;
    scroll-behavior: auto;
    padding: 0%;
    margin-bottom: 30%;
    margin: 0%;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    flex-direction: column;
    text-align: center;
  }

  .tab-buttons {
    flex-direction: column;
  }

  .content-layout {
    grid-template-columns: 1fr;
    overflow-x: hidden;
  }

  .main-content .container {
    margin-left: 0 !important;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    z-index: 999;
    transition: left 0.3s ease;
    border-radius: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .sidebar.sidebar-open {
    left: 0;
  }

  .topics-grid {
    grid-template-columns: 1fr;
  }

/* ===== CODE STYLES ===== */
.code-header {
  background: #b7c4ff;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 18px;
  margin-bottom: 10px;
}

.code-header span {
  font-size: 1.0rem;
  color: rgb(255, 255, 255);
  font-weight: 500;
}

.code-dots {
  display: flex;
  gap: 0.5rem;
}

.code-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-dots span:nth-child(1) {
  background: #ff5f57;
}

.code-dots span:nth-child(2) {
  background: #ffbd2e;
}

.code-dots span:nth-child(3) {
  background: #28ca42;
}

.code-preview pre {
  margin: 0;
  padding: 1.5rem;
  background: transparent;
  font-size: 0.9rem;
  line-height: 1.5;
}

.code-example {
  margin: 2rem 0;
  max-width: 100%;
  overflow-x: auto;
}

.code-example h4 {
  color: #333;
  margin-bottom: 1rem;
}

.code-example pre,
pre[class*="language-"],
.code-preview pre {
  background: #1e1e1e !important;
  border-radius: 15px;
  padding: 1.5rem;
  overflow-x: auto;
  overflow-y: auto;
  margin-bottom: 1rem;
  max-width: 100%;
  white-space: pre;
  word-wrap: normal;
  font-size: 0.9rem;
  line-height: 1.5;
  scroll-behavior: auto;
}

.code-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
  max-width: 100%;
  overflow-x: auto;
}

code[class*="language-"] {
  color: #f8f8f2;
}

.code-comparison {
  display: flex;
  flex-direction: column;
}

  .quiz-options {
    grid-template-columns: 1fr;
  }

  .page-navigation {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .nav-btn {
    text-align: center !important;
    width: 100%;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .path-topics {
    grid-template-columns: 1fr;
  }

  .sidebar-search {
    padding: 0 5px;
  }

  .search-input {
    font-size: 16px;
  }

  .info-box {
    padding: 1rem;
    margin: 1.5rem 0;
    border-left: 3px solid #667eea;
    list-style: none;
  }

  .info-box h3 {
    margin-bottom: 0.60rem;
    font-size: 1.1rem;
  }

  .info-box h4 {
    font-size: 1rem;
  }

  .info-box li {
    margin-bottom: 8px;
    font-size: 0.8rem;
    padding: 0.25rem 0;
  }

  .rules-box {
    padding: 0.5rem;
    margin: 0.75rem 0;
  }

  .rules-box h4 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
  }

  .code-preview pre {
    border-radius: 10px;
    padding: 0.25rem;
    margin-bottom: 0.25rem;
    max-width: 100%;
    white-space: pre;
    word-wrap: normal;
    font-size: 0.4rem;
    line-height: 1.5;
  }

  .content-section {
    margin: 5%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .article-body {
    padding: 0%;
  }

  .content-section {
    padding: 0%;
    margin: 0%;
  }

  .content-section {
    padding-top: 50px;
  }

  .feature-card {
    padding: 12px;
  }

  .mobile-nav-icons {
    display: flex !important;
  }

  .mobile-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
  }

  .mobile-icon-link:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
  }

  .sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .quiz-section{
    padding: 1rem;
    margin: 0.8rem;
  }

  .quiz-question {
  margin-bottom: 1rem;
}

.quiz-option{
  padding: 0.8rem;
}


.stat-item{
  padding: 0.8rem;
  width: 90%;
  align-self: center;
  margin-bottom: 0.8rem;
}

.stat-number{
  font-size: 1.6rem;
}
}

/* ===== MOBILE SIDEBAR STYLES ===== */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.overlay-active {
  display: block;
  opacity: 1;
}

.sidebar-close {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(102, 126, 234, 0.1);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: #667eea;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.sidebar-close:hover {
  background: #667eea;
  color: white;
  transform: rotate(90deg);
}


