/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f3f4f6;
  color: #222;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background:#2563eb;
  color: white;
  padding: 1rem 0;
  width: 100%;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;

  /* Center content with max width */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color:#222
}

/* Nav Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color:darkturquoise
}

/* Hamburger Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* Mobile Navbar */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: #1e40af;
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    padding: 1rem;
    border-radius: 8px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    margin: 0.5rem 0;
  }
}

/* Hero */
.hero {
  background: #2563eb;
  color: white;
  text-align: center;
  padding: 3rem 1rem;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1rem;
}

/* Categories */
.category {
  margin: 3rem 0;
}

.category h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* Container for articles */
.container {
  width: 90%;
  max-width: 1000px;  /* keeps content centered on desktop/tablet */
  padding-top: 0px;
  margin: 0 auto;
  padding: 1rem 0;
  
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: 1fr; /* mobile = 1 per row */
  gap: 1.5rem;
}

@media (min-width: 600px) { /* tablet and desktop */
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Cards */
.card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: #444;
}

.card a {
  color: #2563eb;
  text-decoration: none;
  font-weight: bold;
}

.card a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: #111;
  color: #ccc;
  text-align: center;
  padding: 1.5rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}


.marquee {
  color: black;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  padding: 0.5rem 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif; /* updated font */
  font-weight: 500;
  font-size: 1rem; /* adjust size as needed */
  position: relative;
}

.marquee p {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}



    .news-card {
      display: flex;
      gap: 10px;
      background: white;
      border-radius: 10px;
      padding: 10px;
      margin-bottom: 12px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      transition: transform 0.2s;
    }
    .news-card:hover { transform: scale(1.02); }
    .news-card img {
      width: 100px; height: 70px;
      object-fit: cover;
      border-radius: 8px;
    }
    .news-info {
      flex: 1;
    }
    .news-info a {
      text-decoration: none;
      font-weight: bold;
      color: #0077cc;
    }
    .news-info a:hover { text-decoration: underline; }
    .date {
      font-size: 12px;
      color: #666;
    }


    h2 {
      color:#111;
      border-left:5px solid #0077cc;
      padding-left:10px;
      margin-bottom:20px;
    }
    /* Grid container */
    #bbcWorld {
      display:grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap:20px;
    }
    /* News card */
    .news-card {
      display:flex;
      flex-direction:column;
      background:white;
      border-radius:12px;
      overflow:hidden;
      box-shadow:0 2px 6px rgba(0,0,0,0.1);
      transition:transform 0.2s, box-shadow 0.2s;
    }
    .news-card:hover {
      transform:translateY(-4px);
      box-shadow:0 6px 16px rgba(0,0,0,0.15);
    }
    .news-card img {
      width:100%;
      height:160px;
      object-fit:cover;
    }
    .news-info {
      padding:12px;
      flex:1;
      display:flex;
      flex-direction:column;
    }
    .news-info a {
      text-decoration:none;
      font-weight:bold;
      font-size:16px;
      color:#0077cc;
      margin-bottom:8px;
    }
    .news-info a:hover { text-decoration:underline; }
    .date {
      font-size:12px;
      color:#666;
      margin-top:auto;
    }
  


/*footer*/
footer {
  text-align: center;
  margin-top: 50px;
  color: #777;
  font-size: 0.9rem;
}

footer a {
  color: #ccc;
  margin: 0 5px;
  text-decoration: none;
}
._ad_adig {
        background-color: #1c1e21;
        border-color: #fff;
        color:#fff
    }
    
    ._adhc a {
        font-family: Helvetica Neue, Helvetica Neue, Arial, sans-serif;
        font-weight: 400;
    
    }
    ._adhc h1, ._adhc h2, ._adhc h3, ._adhc h4, ._adhc h5,
     ._adhc h6, ._adhc p, ._adhc ._7gz5, ._adhc a, ._adhc li, ._adhc ul, ._adhc ol{
        color: inherit;
        font-family: Arial, Helvetica, sans-serif;
        font-weight: 400;
     }
     ._adig, ._af-1 ._agga ._adif{
        background-color: #b7b1b1;
     }
     ._afwh{
        align-items: center;
        border: 1px solid #1c1e21;
        border-radius: 50%;
        box-sizing: border-box;
        color: #1c1e21;
        cursor: pointer;
        display: inline-flex;
        height: 48px;
        justify-content: center;
        overflow: hidden;
        padding: 0;
        position: relative;
        transition: background-color 0.3s ease-in-out;
        vertical-align: bottom;
        width: 48px;
        z-index: 1;
     }
     a {
        color: #385898;
        cursor: pointer;
        text-decoration: none;

     }

     ._ad_c._adig:after {
        background-color: #25d366;
     }

  a:hover {
    text-decoration: underline;
    text-decoration-line: underline;
    text-decoration-thickness: initial;
    text-decoration-style: initial;
    text-decoration-color: initial;
  }