body {
    font-family: Arial, sans-serif;
    margin:0;
}

header {
    background:#023e8a;
    color:white;
    padding:10px;
    text-align:center;
}
/* MAIN CONTENT */
.container {
  display: flex;
  width: 95%;
  margin: auto;
  margin-top: 30px;
  gap: 30px;
}
/* ---- Main news slider ---- */
.main-news-slider-wrap {
  position: relative;
  width: 70%;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.main-news-slider {
  display: flex;
  gap: 18px;
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
  padding: 10px;
}

/* slide card */
.slide {
  border-radius: 8px;
  overflow: hidden;
  min-width: 260px;            /* smallest allowed */
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.slide a { color: inherit; display:block; height:100%; }

.slide-image {
  padding: 20px;
  width: 100%;
  height: 500px;
  overflow: hidden;
}
.slide-image img {
  border-radius: 8px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-body {
  padding: 14px;
  text-align: left;
}
.slide-body h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: #023e8a;
}
.slide-body .meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  
}
.excerpt {
  width: 200px;
  margin-top: 20px;
  padding: 10px 20px;
  background: #0077b6;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  
}
.excerpt:hover {
  background: #005f8a;
}

.share-buttons {
  display: flex;
  gap: 15px;
  margin-left: 15px;
}
.share-btn,
.copy-btn {
    padding: 8px 14px;
    background: #0077b6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.share-btn:hover,
.copy-btn:hover {
    background: #005f8a;
}

.wa-btn img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
/* --- SLIDER NAVIGATION BUTTONS --- */
.slider-btn {
    position: absolute;
    top: 33%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    cursor: pointer;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;

    backdrop-filter: blur(4px);
    transition: background 0.2s, transform 0.2s;
}

.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.08);
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* dots */
.slider-dots {
  display:flex;
  gap:8px;
  justify-content:center;
  margin-top: 5px;
  padding-bottom: 30px;
}
.slider-dots button {
  width:10px;height:10px;border-radius:50%;border:none;
  background:#d1d1d1; cursor:pointer;
}
.slider-dots button.active { background:#0056b3; }

/* responsive breakpoints */
@media (max-width: 1199px) {
  .slide { flex: 0 0 calc(50% - 12px); } /* 2 columns */
}
@media (max-width: 767px) {
  .main-news-slider-wrap {
    margin: auto;
    width: 95%;
  }
  .slider-btn {
    position: absolute;
    top: 25%;
  }
  .slide { flex: 0 0 calc(100% - 12px); } /* 1 column */
  .slide-image { height: 200px; }
  .slider-btn { width:36px;height:36px; }
}


/* SIDEBAR */
.sidebar {
  flex: 2;
  background: white;
  padding: 10px;
  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: 5px;
}

.side-item img {
  min-width: 100px;
  max-height: 80px;
  object-fit:cover;
  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-section h2{
  font-family: Roboto-Bold;
  text-align: center;
  font-size: 30px;
  margin: 20px 0 30px 0;
  color: #003554; /* dark blue tone */
}
/* NEWS LIST TITLE */
.read-more h3 {
    text-align: left;
    font-family: Roboto-Light;
    font-weight: lighter;
    font-size: 20px;
    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(50% - 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-list {
    
  }
    .news-card {
        flex-direction: column;
        text-align: center;
        margin-bottom: 20px;
    }
    .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);
}

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

/* REMOVE UNDERLINE INSIDE THE HOME SLIDER */
.main-news-slider-wrap a,
.slide a,
.slide-body h3,
.slide-body .meta,
.excerpt {
    text-decoration: none !important;
}

.slide-body h3:hover {
    text-decoration: underline !important;
}

