body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f7f9fc;
  color: #333;
}

.latest-news {
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.news-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-card h3 {
  font-size: 1rem;
  padding: 10px;
  text-align: center;
  color: #222;
  margin: 0;
  background-color: #f8f9fa;
  word-wrap: break-word;
  word-break: break-word;
}

.article-meta {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  margin: 8px;
}

.language-switch {
  text-align: center;
  margin: 10px;
}

.language-switch a {
  display: inline-block;
  padding: 6px 12px;
  margin: 0 5px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
}

.language-switch a:hover {
  background: #0056b3;
}

.pagination {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  gap: 5px;
  flex-wrap: wrap;
}

.pagination .btn {
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #ccc;
  color: #007bff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.3s;
}

.pagination .btn:hover,
.pagination .active {
  background: #007bff;
  color: white;
}

#scrollBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

#scrollBtn:hover {
  background-color: #0056b3;
}

.sub-footer {
  text-align: center;
  padding: 20px;
  background: #222;
  color: white;
  margin-top: 40px;
}

.sub-footer h3 {
  margin-bottom: 10px;
}

.social-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.social-icons img {
  width: 24px;
  height: 24px;
}

/* Search form */
.search-form {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px auto;
  max-width: 300px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}

.search-form input[type="text"] {
  flex: 1;
  padding: 6px 10px;
  border: none;
  font-size: 14px;
  outline: none;
}

.search-form button {
  border: none;
  background: #f9f9f9;
  color: #fff;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.search-form button:hover {
  background: #0056b3;
}
.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 10px 20px;
  border-bottom: 1px solid #ddd;
  flex-wrap: wrap;
}
.header-wrapper .logo a {
  font-size: 1.7rem;
  font-weight: bold;
  text-decoration: none;
  color: #000;
}
.language-dropdown select {
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px;
}
.sub-header {
  background: #222;
  padding: 8px 0;
  overflow-x: auto;
}

.sub-header .menu {
  display: inline-flex;          
  white-space: nowrap;         
  gap: 10px;
  padding: 0 10px;
  min-height: 40px;
}

.sub-header .menu a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: 1.0rem;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
  background: transparent;
  text-align: center;
}

.sub-header .menu a:hover {
  background: #fff;
  color: #222;
}

/* Optional: hide scrollbar on Webkit browsers */
.sub-header::-webkit-scrollbar {
  display: none;
}


/* Footer */
footer {
  background: #222;
  color: #fff;
  padding: 20px 10px;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.footer-links li a {
  color: #bbb;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-links li a:hover {
  color: #fff;
}

footer p {
  font-size: 13px;
  color: #aaa;
  margin: 0;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .news-card img {
    height: 150px;
  }

  .news-card h3 {
    font-size: 0.9rem;
  }

  .search-form {
    max-width: 90%;
  }
}
.container {
  max-width: 800px;
  margin: 20px auto;
  padding: 0 15px;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

.container h2,h1,h3,h4 {
  font-size: 1.8rem;
  color: #222;
  margin-bottom: 10px;
  text-align: center;
  word-break: break-word;
}
.article-description th, 
.article-description table {
    width: 100%;
    border-collapse: collapse;
}

.article-description th, 
.article-description td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
    word-break: break-word;
}
.article-meta {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
}

.container img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 15px auto;
  border-radius: 8px;
}

.container p {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #444;
  text-align: justify;
  word-wrap: break-word;
}

.share-buttons {
  text-align: center;
  margin: 15px 0;
}

.share-buttons span {
  display: block;
  margin-bottom: 5px;
  font-size: 0.95rem;
  color: #555;
}

.share-buttons a {
  display: inline-block;
  margin: 0 5px;
}

.share-buttons img {
  width: 30px;
  height: 30px;
  transition: transform 0.2s;
}

.share-buttons img:hover {
  transform: scale(1.1);
}

/* Modal styling */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  margin: auto;
}

.modal-content input {
  width: 90%;
  padding: 6px;
  margin: 10px 0;
}

.modal-content button {
  margin: 5px;
  padding: 6px 12px;
  cursor: pointer;
  border: none;
  background: #007bff;
  color: #fff;
  border-radius: 4px;
}

.modal-content button:hover {
  background: #0056b3;
}

/* Related Articles Slider */
.related-articles {
  margin: 30px 0;
}

.related-articles h2 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: #222;
}

.slider-wrapper {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  max-width: 100%;
}

.slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 10px;
  padding-bottom: 10px;
}

.slide-card {
  flex: 0 0 auto;
  width: 150px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.slide-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.slide-card h3 {
  font-size: 0.9rem;
  padding: 5px;
  color: #333;
  word-break: break-word;
}

/* Slider arrows */
.slider-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 18px;
  z-index: 2;
  border-radius: 50%;
}

.slider-btn.left {
  left: 5px;
}

.slider-btn.right {
  right: 5px;
}

.slider-btn:hover {
  background: rgba(0,0,0,0.7);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 8px 16px;
  margin: 10px 5px;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.btn:hover {
  background: #0056b3;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .container h2 {
    font-size: 1.5rem;
  }
  .slide-card {
    width: 120px;
  }
  .slide-card img {
    height: 80px;
  }
}
.view-all-btn {
  display:inline-block;
  padding:10px 20px;
  background:#444d57;
  color:#fff;
  font-size:14px;
  font-weight:bold;
  text-decoration:none;
  border-radius:8px;
  transition:0.3s ease;
}