@font-face {
  font-family: 'Kalpurush';
  src: url('/fonts/Kalpurush.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

#modalContent {
  font-family: 'Kalpurush', 'Hind Siliguri', sans-serif;
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
}

.card img {
  height: 200px;
  object-fit: cover;
}
.modal img {
  transition: transform 0.3s ease;
}
/* Card Styling */
#news-container .card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

#news-container .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

#news-container .card-img-top {
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

#news-container .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

#news-container .card-text {
  font-size: 0.95rem;
  color: #555;
}

#news-container .btn {
  font-size: 0.875rem;
  padding: 5px 10px;
  border-radius: 6px;
}

/* Modal Styling */
.modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.modal-header {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  align-items: center;
}

.modal-title {
  font-weight: 600;
  font-size: 1.25rem;
}

.modal-body {
  padding: 1.5rem;
}

#modalImage {
  max-height: 60vh;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

#modalContent {
  margin-top: 1rem;
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

/* Icon Buttons */
.modal-header .btn-outline-secondary {
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
  border-radius: 6px;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  #news-container .col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 576px) {
  #news-container .col-md-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .modal-dialog.modal-fullscreen {
    padding: 1rem;
  }
}


/* Modal Styles */
.modal-content {
  border-radius: 1rem;
  overflow: hidden;
  background-color: #fff;
}

.modal-header {
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
}

.modal-title {
  font-size: 1.25rem;
  color: #333;
}

.modal-body {
  color: #555;
  font-size: 1rem;
  line-height: 1.8;
  padding: 2rem;
}

#modalImage {
  max-height: 60vh;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.modal-header .btn-outline-secondary {
  padding: 0.3rem 0.5rem;
  font-size: 0.9rem;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-header .btn-close {
  background-size: 1em;
  margin-top: 0.2rem;
}

/* Responsive Fixes */
@media (max-width: 768px) {
  .modal-dialog {
    margin: 1rem;
  }

  .modal-body {
    padding: 1rem;
  }

  #modalImage {
    max-height: 300px;
  }
}

#modalImage {
  max-height: 60vh;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
  z-index: 1;
  position: relative;
}

/* Zoom effect class */
.zoomed {
  transform: scale(1.4);
  z-index: 1;
}

/* Ensure header buttons stay on top */
.modal-header {
  position: relative;
  z-index: 10;
}

/* Center-align image inside modal */
#modalImage {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-height: 60vh;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
  z-index: 1;
  position: relative;
}

/* Zoomed class */
.zoomed {
  transform: scale(1.4);
}

/* Modal container padding */
.modal-body {
  padding: 2rem;
  /* ensures text and image both centered */
}

/* Ensure modal header stays on top */
.modal-header {
  position: relative;
  z-index: 10;
}

/* Pagination Custom Styling */
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 30px;
}



.page-item .page-link {
  background-color: #1193cf; /* teal blue */
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.2s ease-in-out;
}

.page-item .page-link:hover {
  background-color: #087cc9;
  color: #fff;
}

.page-item.active .page-link {
  background-color: #000000;
  font-weight: bold;
}

.page-item.disabled .page-link {
  background-color: #cfd8dc;
  color: #666;
  cursor: not-allowed;
}

/* Ellipsis (dots) style */
.page-item.disabled .page-link {
  font-weight: bold;
  background-color: transparent;
  color: #444;
  box-shadow: none;
}
