body {
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #0f172a;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
}

a {
  text-decoration: none;
  color: inherit;
}

.top {
  border-bottom: 1px solid #334155;
  background-color: #1e293b;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title {
  font-size: 20px;
  font-weight: 900;
  color: #f8fafc;
  margin-right: 20px;
  padding-bottom: 15px;
  border-bottom: 3px solid #38bdf8;
  text-align: center;
  margin: auto;
}

.links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  font-size: 13px;
}

.links li a {
  padding: 0 15px;
  color: #cbd5e1;
  transition: color 0.3s;
  font-size: 17px;
  font-weight: 600;
}

.links li a:hover {
  color: #38bdf8;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}

.last-box {
  grid-column: 1 / span 1;
}

.box {
  background-color: #1e293b;
  border: 1px solid #334155;
  padding-bottom: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.6s ease-out backwards;
}

.box:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: #38bdf8;
}

.box:nth-child(1) { animation-delay: 0.1s; }
.box:nth-child(2) { animation-delay: 0.2s; }
.box:nth-child(3) { animation-delay: 0.3s; }
.box:nth-child(4) { animation-delay: 0.4s; }
.box:nth-child(5) { animation-delay: 0.5s; }
.box:nth-child(6) { animation-delay: 0.6s; }
.box:nth-child(7) { animation-delay: 0.7s; }
.box:nth-child(8) { animation-delay: 0.8s; }
.box:nth-child(9) { animation-delay: 0.9s; }
.box:nth-child(10) { animation-delay: 1.0s; }


.link {
  display: block;
  color: inherit;
}

/* Updated .img-box style for holding an image */
.img-box {
  /* 'aspect-ratio' is used to make the box square (1:1 ratio) */
  aspect-ratio: 1 / 1;
  background-color: #2c3e50; /* Fallback color */
  margin-bottom: 15px;
  overflow: hidden;
  display: block;
}

/* New style for the image inside the box */
.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.box:hover .img-box img {
  transform: scale(1.1);
}
/* Removed all .text-top, .text-country, .text-bottom, and .bg-X styles */

.h {
  font-size: 18px;
  font-weight: 700;
  margin: 0 20px 10px;
  line-height: 1.3;
  color: #f1f5f9;
}

.meta {
  font-size: 11px;
  color: #94a3b8;
  margin: 0 20px 15px;
  text-transform: uppercase;
}

.p {
  font-size: 14px;
  color: #cbd5e1;
  margin: 0 20px 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read {
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  margin: 0 20px;
  display: block;
  text-transform: uppercase;
}

.pages {
  display: flex;
  justify-content: flex-start;
  margin: 50px 0 20px;
}

.pages a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 5px;
  border: 1px solid #334155;
  color: #38bdf8;
  font-size: 14px;
  transition: background-color 0.3s;
}

.pages a.active {
  background-color: #38bdf8;
  color: #fff;
  border-color: #38bdf8;
}

.pages a:not(.active):hover {
  background-color: #334155;
}

/* --- ARTICLE PAGE STYLES --- */
.article-container {
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.article-container h1 {
  max-width: 800px;
  margin: 40px auto;
  font-size: 36px;
  line-height: 1.3;
  text-align: center;
  color: #f8fafc;
}

.artical-center {
  max-width: 800px;
  margin: 0 auto 50px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.artical-center h2 {
  color: #38bdf8;
  margin-top: 40px;
  font-size: 24px;
  border-bottom: 1px solid #334155;
  padding-bottom: 10px;
}

.artical-center h3 {
  color: #f1f5f9;
  margin-top: 30px;
  font-size: 20px;
}

.artical-center ul, 
.artical-center ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.artical-center li {
  margin-bottom: 10px;
}

/* Table Styles for Article */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background-color: #1e293b;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

th, td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #334155;
  color: #e2e8f0;
}

th {
  background-color: #0f172a;
  color: #38bdf8;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
}

tr:hover {
  background-color: #334155;
}







/* --- FOOTER STYLES --- */
.footer {
  background-color: #020617;
  color: #e2e8f0;
  padding: 40px 0;
  font-size: 13px;
  border-top: 1px solid #334155;
  margin: auto;
  max-width: 100%;
  width: 800px;
  border-radius: 0;
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  flex: 1;
  min-width: 150px; /* Ensures sections don't get too narrow */
  margin-right: 30px;
}

.footer-section:last-child {
  margin-right: 0;
}

.footer-section h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
  text-transform: uppercase;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section a {
  color: #94a3b8; /* Lighter link color */
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #38bdf8; /* Blue hover color */
}

.copyright {
  margin-top: 30px;
  text-align: center;
  width: 100%;
  border-top: 1px solid #334155;
  padding-top: 20px;
  font-size: 12px;
  color: #e2e8f0;
}

/* For the main title in the footer */
.footer-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
}

/* --- SLIDING SIDEBAR --- */
#sidebar {
  position: fixed;
  left: -300px; /* Hidden */
  top: 0;
  width: 250px;
  height: 100%;
  background: #1e293b;
  padding: 60px 20px 20px;
  box-shadow: 5px 0 15px rgba(0,0,0,0.5);
  border-right: 1px solid #334155;
  transition: 0.4s ease;
  z-index: 9999;
}

#sidebar.show {
  left: 0; /* Slide in */
}

#sidebar .sb-title {
  color: #38bdf8;
  font-size: 22px;
  margin-bottom: 20px;
}

#sidebar a {
  display: block;
  color: #cbd5e1;
  padding: 12px 15px;
  margin-bottom: 8px;
  border-radius: 8px;
  font-size: 16px;
  transition: 0.3s;
}

#sidebar a:hover {
  color: #fff;
  background-color: #38bdf8;
  transform: translateX(5px);
  margin-left: 0;
}

/* Menu Button */
#menu-btn {
  position: fixed;
  top: 10px;
  left: 10px;
  background: #38bdf8;
  color: white;
  padding: 4px 4px;
  font-size: 22px;
  cursor: pointer;
  border-radius: 8px;
  z-index: 10000;
  transition: all 0.4s ease-in-out;
}

#menu-btn.is-open {
  width: 250px;
  left: 0;
  border-radius: 0;
  background: #0f172a;
  text-align: right;
  padding-right: 20px;
  font-size: 30px;
  transform: rotate(180deg);
}

#menu-btn:hover {
  background: #0284c7;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

h1 {
  color: #f1f5f9;
  font-size: 100px;
  font-weight: 900;
  margin-top: 250px;
  text-align: center;
}

/* ------------------------------------------------------------------ */
/* --- RESPONSIVE MEDIA QUERIES --- */
/* ------------------------------------------------------------------ */

/* Tablet & Smaller Desktop (Max Width: 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 20px 25px; /* Thoda kam padding */
  }

  .nav {
    padding: 15px 25px;
  }

  .links {
    /* Hide secondary links on smaller screens to save space */
    display: none;
  }

  /* Show the main title prominently */
  .title {
    font-size: 20px;
    font-weight: 900;
    border-bottom: 3px solid #38bdf8;
    text-align: center;
    margin: auto;
  }

  /* Article Responsive Adjustments */
  .article-container h1 {
    font-size: 28px;
    margin: 30px auto;
  }

  .artical-center {
    font-size: 16px;
  }

  table {
    display: block;
    overflow-x: auto; /* Scrollable table on mobile */
    white-space: nowrap;
  }
}

/* Medium Devices (Max Width: 768px - Large Tablets to Portrait Tablets) */
@media (max-width: 768px) {
  .grid {
    /* Change from 3 columns to 2 columns */
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .last-box {
    /* This box was in column 1 only, now it just follows the 2-column flow */
    grid-column: auto;
  }

  /* Footer changes for 768px and down */
  .footer .container {
    flex-direction: column;
    align-items: center;
  }

  .footer-section {
    min-width: 100%;
    margin-right: 0;
    margin-bottom: 25px;
    text-align: center;
  }

  .footer-section h4 {
    margin-bottom: 10px;
  }

  .footer-section ul {
    display: flex; /* Make the list horizontal for better flow on tablet */
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-section ul li {
    margin: 0 10px 5px; /* Add spacing between horizontal list items */
  }
}

/* Small Devices (Max Width: 480px - Mobile Phones) */
@media (max-width: 480px) {
  .container {
    padding: 15px;
  }

  .nav {
    /* Set navigation links to a new, smaller design if needed */
    justify-content: center;
  }

  .title {
    font-size: 20px;
    font-weight: 900;
    border-bottom: 3px solid #38bdf8;
    text-align: center;
    margin: auto;
  }

  .grid {
    /* Change from 2 columns to 1 column for phones */
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .h {
    font-size: 16px;
    margin-left: 15px;
    margin-right: 15px;
  }

  .meta,
  .p,
  .read {
    margin-left: 15px;
    margin-right: 15px;
  }

  .footer-section ul {
    flex-direction: column;
    align-items: center;
  }

  .footer-section ul li {
    margin: 5px 0;
  }

  .article-container h1 {
    font-size: 24px;
    margin: 20px auto;
  }

  .article-container {
    padding: 0 15px;
  }
}