* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

.main-container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

header {
  background-color: #003366;
  color: white;
  padding: 1rem 0;
  position: relative;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a,
.dropdown-toggle {
  color: #ddd;
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  display: inline-block;
}



nav a:hover {
  text-decoration: underline;
}

.search-form {
  display: flex;
  margin-left: 1rem;
}

.search-form input {
  padding: 0.4rem 0.6rem;
  border-radius: 5px;
  border: none;
  outline: none;
}

.auth-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn {
  background: #007acc;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
}

.btn:hover {
  background: #005fa3;
}

.hero {
  background: linear-gradient(to right, #0055aa, #0099cc);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.articles {
  padding: 2rem 0;
}

.articles h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #003366;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

article {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

article h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #0055aa;
}

article a {
  display: inline-block;
  margin-top: 0.5rem;
  color: #0077cc;
  text-decoration: none;
  font-weight: 600;
}

article a:hover {
  text-decoration: underline;
}

footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

.footer-links {
  margin-top: 0.5rem;
}

.footer-links a {
  color: #ccc;
  margin: 0 0.5rem;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Hamburger menu */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

  nav.show {
  display: flex !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    width: 100%;
    display: none;
    margin-top: 1rem;
    gap: 0.8rem;
  }



  .menu-toggle {
    display: block;
    color: white;
  }

  .search-form {
    width: 100%;
  }

 

  .auth-buttons {
    width: 100%;
    justify-content: flex-start;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }
}


/* Article images and tags */
article img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 0.8rem;
}

.tag {
  display: inline-block;
  background: #e0f0ff;
  color: #0055aa;
  padding: 2px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.load-more-container {
  text-align: center;
  margin-top: 2rem;
}

.main-content {
  padding: 2rem 0;
}

.main-content h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #003366;
}

.main-content p {
  line-height: 1.7;
  font-size: 1rem;
  color: #444;
  text-align: justify;
}


/* Dropdown base styles */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  color: #ddd;
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 200px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  z-index: 1000;
}

.dropdown-content a {
  color: #333;
  padding: 0.6rem 1rem;
  display: block;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: #f5f5f5;
}

/* Show on hover for desktop */
@media (min-width: 768px) {
  .dropdown:hover .dropdown-content {
    display: block;
  }
}

.dropdown-content.show-dropdown {
  display: block;
}