/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: #222;
  line-height: 1.6;
  margin: 0;
  padding-top: 70px; /* space for navbar */
}

/* Navbar */
.navbar {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.navbar-brand {
  font-weight: 700;
  color: #1A237E !important;
  font-size: 1.4rem;
}
.nav-link {
  font-weight: 500;
  margin: 0 10px;
  color: #333 !important;
  transition: color 0.3s ease;
}
.nav-link:hover { color: #FFD700 !important; }

/* Hero Section */
.hero-img {
  max-height: 520px;
  object-fit: cover;
  border-radius: 15px;
}

.carousel-item {
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(13,110,253,0.6) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}

.carousel-caption {
  bottom: 15%;
  z-index: 2;
  text-align: left;
}

.carousel-caption h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  max-width: 70%;
}
/* Section Title */
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 30px 0 15px;
  border-left: 5px solid #bb1919;
  padding-left: 10px;
}

/* BBC Style News List */
.news-list {
  margin: 10px 0;
  padding: 0;
  list-style: none;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.news-item img {
  width: 110px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.news-content {
  flex: 1;
}

.news-content h5 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.4;
  color: #111;
}

.news-content h5 a {
  text-decoration: none;
  color: inherit;
}

.news-content h5 a:hover {
  color: #bb1919; /* BBC red */
}

.news-content span {
  font-size: 12px;
  color: #666;
}

/* Responsive tweaks */
@media (max-width: 576px) {
  .news-item {
    flex-direction: column;
  }
  .news-item img {
    width: 100%;
    height: auto;
    margin-bottom: 8px;
  }
}

/* Cards */
.card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card img {
  height: 200px;
  object-fit: cover;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1A237E;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(45deg, #1A237E, #FFD700);
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: linear-gradient(45deg, #FFD700, #1A237E);
  color: #fff;
}

/* Footer */
.footer {
  background: #111;
  color: #ccc;
  padding: 20px 0;
  font-size: 14px;
}
.footer a {
  color: #FFD700;
  margin: 0 8px;
  text-decoration: none;
}
.footer a:hover { text-decoration: underline; }

/* Responsive Tweaks */
@media (max-width: 576px) {
  .carousel-caption { bottom: 8%; }
  .carousel-caption h2 { font-size: 1.25rem; max-width: 100%; }

  .card img { height: 170px; }
  .section-title { font-size: 1.1rem; }
}

/* List news section */
.news-list {
  margin: 20px;
}

.news-item {
  display: flex;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.news-item img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 12px;
}

.news-item h3 {
  font-size: 16px;
  margin: 0 0 6px 0;
  font-weight: 600;
  line-height: 1.3;
  color: #111;
}

.news-item span {
  font-size: 13px;
  color: #666;
}
