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

/* Banner */
.banner {
  height: 220px;
  background: url('../images/readmoreBanner.png') no-repeat center center/cover;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.banner h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.banner p {
  font-size: 18px;
  opacity: 0.7;
}

.tech-section {
  background: #f7f4f1;
  padding: 60px 0;
}

/* Top bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.top-bar p {
    font-size: 22px;
}

.top-bar input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 10px;
}

.card-body {
  padding: 15px 0;
  background: #f7f4f1;
}

.card-body h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.card-body p {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

.card-body a {
  font-size: 13px;
  color: #b11212;
  text-decoration: none;
  font-weight: bold;
}

/* Pagination */
.pagination {
  margin-top: 30px;
  text-align: center;
}

.pagination button {
  margin: 5px;
  padding: 8px 12px;
  border: none;
  background: #eee;
  cursor: pointer;
  border-radius: 4px;
}

.pagination .active {
  background: #8b0000;
  color: #fff;
}

/* Modal Background */
.iframe-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

/* Modal Content */
.iframe-content {
  position: relative;
  width: 90%;
  height: 90%;
  margin: 3% auto;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

/* Iframe */
#modalIframe {
  width: 100%;
  height: 100%;
  border: none;
  display: none;
}

/* Close Button */
.custom-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
}

/* Loader */
.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
}

/* Responsive */
@media (max-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 20px;
  }
}
