/* ====== UMUMIY STILLAR ====== */
:root {
  --primary-color: #35424a;
  --secondary-color: #e8491d;
  --light-bg: #efe4ad;
  --dark-text: #333333;
  --light-text: #ffffff;
  --section-bg: #ffffff;
  --footer-bg: #35424a;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.8;
  color: var(--dark-text);
  background-color: var(--light-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ====== HEADER STILLARI ====== */
header {
  background: var(--primary-color);
  color: var(--light-text);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

header h1 {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: 1px;
}

/* ====== NAVIGATSIYA MENYUSI ====== */
nav {
  display: flex;
  justify-content: center;
  background: var(--secondary-color);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

nav a {
  color: var(--light-text);
  text-decoration: none;
  padding: 10px 20px;
  margin: 0 5px;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

nav a:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

nav a.active {
  background: var(--primary-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ====== ASOSIY KONTENT ====== */
.main-container {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.section {
  display: none;
  background: var(--section-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 30px;
  margin-bottom: 30px;
  animation: fadeIn 0.5s ease-out;
}

.section.active {
  display: block;
}

.section h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 10px;
  margin-top: 0;
}

.section h3 {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin: 20px 0 10px;
}

.section p {
  margin-bottom: 15px;
}

.section ul, .section ol {
  padding-left: 25px;
  margin-bottom: 20px;
}

.section li {
  margin-bottom: 8px;
}

.section hr {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--secondary-color), transparent);
  margin: 25px 0;
}

/* ====== VIDEO KONTEYNER ====== */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin: 20px 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ====== Table ======*/
/* Table container */
.table {
  width: 100%;
  overflow-x: auto;
  margin: 30px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* Main table styles */
.table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 0.95rem;
}

/* Table header styles */
.table thead {
  background-color: #35424a;
  color: white;
}

.table th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Table body styles */
.table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e0e0e0;
}

/* Zebra striping for rows */
.table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

/* Hover effect for rows */
.table tbody tr:hover {
  background-color: #f1f1f1;
}

/* Special cell styling */
.table td:first-child {
  font-weight: 600;
  color: #2c3e50;
}

/* Emoji/icon alignment */
.table td {
  vertical-align: middle;
}

/* Responsive table */
@media (max-width: 768px) {
  .table {
    border: 1px solid #ddd;
  }
  
  .table thead {
    display: none;
  }
  
  .table tr {
    display: block;
    margin-bottom: 15px;
    border-bottom: 2px solid #ddd;
  }
  
  .table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px dotted #ddd;
    text-align: right;
  }
  
  .table td::before {
    content: attr(data-label);
    font-weight: bold;
    margin-right: auto;
    padding-right: 20px;
    text-align: left;
    color: #35424a;
  }
  
  .table td:first-child {
    background-color: #f8f9fa;
    font-weight: 700;
  }
}

/* Color coding for cells */
.table td:contains("✅") {
  color: #27ae60;
}

.table td:contains("❌") {
  color: #e74c3c;
}

/* Add some animation */
.table tbody tr {
  transition: all 0.2s ease;
}

/* ====== FOOTER ====== */
footer {
  background: var(--footer-bg);
  color: var(--light-text);
  padding: 20px;
  margin-top: auto;
}

footer a {
  color: var(--light-text);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

footer a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ====== ANIMATSIYALAR ====== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====== RESPONSIVE DIZAYN ====== */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8rem;
  }
  
  nav {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }
  
  nav a {
    margin: 5px 0;
    width: 90%;
    text-align: center;
  }
  
  .main-container {
    padding: 0 15px;
    margin: 20px auto;
  }
  
  .section {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 15px;
  }
  
  .section h2 {
    font-size: 1.5rem;
  }
}
@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
  }
}