/* ========= BRAND COLORS / HEADINGS ======= */
.homePage-head {
  color: var(--rp-primary-color) !important;
}

.latest-news {
  text-align: center;
  color: var(--rp-primary-color) !important;
  font-weight: 700;
}

.section-heading {
  font-weight: 700;
  color: var(--rp-primary-color);
}

.section-subtext {
  color: #212121;
}

/* ===== COUNTS SECTION ========= */
.countText {
  color: var(--rp-primary-color);
}

.countCount a {
  color: var(--rp-primary-color) !important;
}

.countCount span {
  font-weight: 600;
  font-size: 18px;
}

.count-row {
  padding: 10px 0px !important;
  justify-content: center;
}


/* ============ CAROUSEL (LATEST NEWS) ============ */
.carousel-wrapper {
  width: 100%;
  max-width: 1140px;
  margin: 40px auto 20px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 10px;
  transition: transform 0.5s ease;
}


/* =========== NEWS CARD =========== */
.news-card {
  width: 30%;
  margin: 0 14px;
  display: flex;
  flex-direction: column;

  background: #fff;
  background: #ffffff;

  padding: 16px;
  padding: 28px 26px;

  border-radius: 8px;
  border-radius: 16px;

  border: 1px solid rgba(0, 0, 0, 0.06);

  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);

  text-align: left;
  font-size: 18px;
  transition: all 0.35s ease;
  flex: 0 0 auto;
}

.news-title {
  color: #212121;
  text-transform: capitalize;
  flex-grow: 1;
}

.head-name {
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;

  line-height: 1.6;
  max-height: calc(1.6em * 8);
}

.news-card h5 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #222;
}

.news-card p {
  color: #555;
  line-height: 1.6;
}

.news-card .open-page {
  display: block;
  margin-top: 14px;
  margin-top: auto;
  font-size: 15px;
  font-weight: 500;
  color: #2575fc;
  text-decoration: none;
  float: right;
  align-self: flex-end;
}

.news-card .open-page:hover {
  text-decoration: underline;
}

.news-card:hover {
  transform: translateY(-6px);
}


/* ========= CAROUSEL CONTROLS (ARROWS) ============ */
.carousel-controls {
  text-align: center;
}

.carousel-controls button {
  margin: 0 10px;
  cursor: pointer;

  background: #fff;
  border-radius: 50%;
  border: 2px solid var(--rp-secondary-color-dark);

  position: relative;
  width: 10px;
  height: 20px;
  border: none;
}

.carousel-controls button.is-disabled {
  opacity: 0.25;
  pointer-events: none;
}

.carousel-controls button::before {
  content: "";
  position: absolute;
  inset: 0;

  background-repeat: no-repeat;
  background-position: center;

  width: 35px;
  height: 35px;
  background-size: cover;
  display: block;
}

/* Previous */
#prevBtn::before {
  background-image: url("/public/assets1/home/arrow.png");
}

/* Next */
#nextBtn::before {
  background-image: url("/public/assets1/home/arrow-1.png");
}


/* ======== LAYOUT / WRAPPERS ============== */
.main-wrapper {
  margin: 90px auto 0px auto;
}

.collection-background {
  margin-bottom: 30px;
  background-color: #ffffff;
  padding: 50px 0px 50px 0px;
}

.collection-background {
  background-color: #f6f6f6;
}

.collection-row {
  align-items: center;
  justify-content: center;
}

.subject-section {
  padding: 50px 0 !important;
}


/* ======== SEARCH ============== */
.search-box {
  position: relative;
  width: 100%;
  display: flex;
}

.search-input {
  height: 35px;
  width: 100% !important;
  padding-right: 45px;
}

.search-icon:focus,
.search-icon:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
  box-shadow: none;
}

.home-search-i {
  padding: 0px 10px;
  border: 1px solid #d0d0d0 !important;
  background: white;

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-info-row {
  padding: 20px;
  text-align: center;
}

.advance-search {
  font-weight: 600;
}

.search-link {
  font-weight: 500;
  text-decoration: none;
}

.seacrh-form {
  padding: 0px !important;
}


/* ============== SUBJECTS ============== */
.subject-card {
  padding: 10px;
}

.subject-box {
  background: #ddd;
  border: 1px solid #ddd;
  padding: 15px 10px;
  text-align: center;
  border-radius: 4px;
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  cursor: pointer;
  font-size: 14px;
}

.subject-box a {
  color: #616161 !important;
}

.subject-name {
  color: #767676 !important;
  font-size: 16px;
  font-weight: 600;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.subject-box:hover {
  background: var(--rp-primary-color-dark) !important;
}

.subject-box:hover .subject-name {
  color: var(--rp-white-color-3) !important;
}

.subject-box.selected {
  background: var(--rp-primary-color);
  color: #fff;
  border-color: var(--rp-primary-color);
}


/* ========== CAROUSEL (ADS) ================= */
.carousel-inner .advertisement {
  width: 100%;
}

.carousel-indicators li {
  background-color: #888;
}

.carousel-indicators .active {
  background-color: #000;
}


/* =========== MISC ============ */
.all-sub {
  width: 250px;
  border-radius: 50px;
  border: none;
}

.navbar-inverse .navbar-nav > li > a:hover,
.nav.navbar-nav li a:hover {
  color: var(--rp-primary-color-dark) !important;
}

.right-side-image {
  width: 100%;
  max-width: 450px;
}

.did-you-mean {
  display: none;
  padding-top: 5px;
  padding-bottom: 30px;

  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
}

.did-you-mean-text {
  color: var(--rp-primary-color);
  cursor: pointer;
}


/* ========= RESPONSIVE ========== */
/* TABLET */
@media (max-width: 992px) {
  .news-card {
    width: 45%;
  }
}

/* MOBILE */
@media (max-width: 576px) {
  .news-card {
    width: 90%;
  }

  .collection-row {
    padding: 10px !important;
  }

  .search-box {
    padding-right: 15px;
    padding-left: 15px;
  }
}

@media (max-width: 768px) {
  .subject-btn {
    font-size: 13px;
    padding: 10px;
  }
}
