* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial;
}

body {
  background: #f5f5f5;
  color: #333;
}

/* HEADER */
header {
  background: #0077b6;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 28px;
}

nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* MAIN CONTENT */
.container {
  display: flex;
  width: 90%;
  margin: 280px auto auto auto;
  gap: 30px;
}

.main-news {
  flex: 3;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.main-news img {
  width: 100%;
  border-radius: 10px;
}

.main-news h2 {
  margin: 15px 0;
}

.read-btn {
  margin-top: 350px;
  padding: 10px 20px;
  background: #0077b6;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
}

.read-btn:hover {
  background: #005f8a;
}

/* SIDEBAR */
.sidebar {
  flex: 1;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  height: 100%;
}

.sidebar h3 {
  margin-bottom: 15px;
}

.side-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.side-item img {
  max-width: 100px;
  height: auto;
  border-radius: 6px;
  margin-right: 10px;
}
.sidebar a{
  text-decoration: none;
}
.sidebar a:hover{
  text-decoration: underline;
}

/* LIST CONTAINER */
.news-list {
  display:flex; 
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: 100%;
  margin: 30px;
}
/* NEWS LIST TITLE */
.news-list-section h2 {
    text-align: center;
    font-size: 30px;
    font-family: Roboto-Bold;
    margin: 20px 0 30px 0;
    color: #003554; /* dark blue tone */
    letter-spacing: 0.5px;
}

/* SEARCH BOX */
.search-box {
    width: 100%;
    max-width: 500px;
    margin: 30px auto 20px auto;
    display: flex;
    gap: 10px;
    justify-content: center;
}
.search-box input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border-radius: 4px;
    border: 2px solid #d0d0d0;
    font-size: 16px;
    outline: none;
    font-family: Roboto-Regular;
    transition: 0.2s;
}
.search-box input[type="text"]:focus {
    border-color: #0077b6;        /* blue accent */
    box-shadow: 0 0 4px rgba(0,119,182,0.4);
}

.search-box button {
    padding: 12px 20px;
    border-radius: 4px;
    border: none;
    background: #0077b6;
    color: white;
    font-size: 16px;
    cursor: pointer;
    font-family: Roboto-Medium;
    transition: 0.3s;
}

.search-box button:hover {
    background: #005f8f;
    transform: translateY(-2px);
}
/* EACH NEWS CARD */
.news-card {
  display:flex; 
  justify-content:space-between; 
  align-items:center;
  flex: 0 0 calc(30% - 20px);
    background: white;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    gap: 20px;
    border: 1px solid #e7e7e7;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Hover effect */
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

/* THUMBNAIL IMAGE */
.news-card img {
    width: 150px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

/* TEXT CONTENT */
.news-info {
    flex: 1;
}

.news-info h3 {
    margin: 0;
    font-size: 18px;
    font-family: Roboto-Medium;
    color: #0077b6;
}

.news-info p {
    font-size: 15px;
    margin: 10px 0;
    color: #444;
    line-height: 1.5;
}

/* READ MORE LINK */
.news-info .read-more {
    font-size: 15px;
    color: #0077b6;
    font-weight: bold;
    text-decoration: none;
    transition: 0.2s;
}

.news-info .read-more:hover {
    color: #005f8f;
    text-decoration: underline;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .news-card {
        flex-direction: column;
        text-align: center;
    }

    .news-card img {
        width: 100%;
        height: 180px;
    }
}

/* PAGINATION */
.pagination {
    text-align: center;
    margin: 40px 0 20px 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination a {
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #d5d5d5;
    background: #ffffff;
    color: #0077b6;
    font-size: 15px;
    text-decoration: none;
    transition: 0.2s;
    font-family: Roboto-Medium;
}

.pagination a:hover {
    background: #0077b6;
    color: white;
    border-color: #0077b6;
    transform: translateY(-2px);
}

.pagination a.active {
    background: #0077b6;
    color: white;
    border-color: #0077b6;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

footer {
  text-align: center;
  padding: 20px;
  background: #0077b6;
  color: white;
  margin-top: 30px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    margin-top: 170px;
  }
  nav {
    display: block;
    margin-top: 10px;
  }
  .news-list {
    display:block; 
  }
}
