/* ==========================================================================
   MESAT Our Centres Page Stylesheet
   Centralized Design System - Single Source of Truth
   ========================================================================== */

/* Main Section */
.our-center {
  position: relative;
  background-color: var(--light-primary-background, #F5EFE4);
  /* background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px); */
  background-size: 34px 34px;
  padding: 44px 0 76px 0;
  min-height: calc(100vh - 85px);

}

/* Section Title */
.our-centres-heading {
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 800;
  color: var(--brand-orange, #ff7800);
  margin-bottom: 28px;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

/* Centres Responsive Grid (4 Columns on Desktop) */
.centres-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px;
}

/* Individual Grid Item (City Header + Card) */
.centre-item {
  display: flex;
  flex-direction: column;
}

/* City Label above each Card */
.centre-city {
  font-size: 17px;
  font-weight: 800;
  color: #111111;
  margin: 0 0 10px 2px;
  line-height: 1.2;
}

/* Centre Card */
.centre-card {
  background: #ffffff;
  border-radius: var(--radius-card, 16px);
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.035);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-fast, 0.25s ease), box-shadow var(--transition-fast, 0.25s ease);
}

.centre-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* Card Image Wrapper - flush to top, left, and right edges (no padding around photo) */
.centre-card-img-wrap {
  width: calc(100% + 24px);
  margin-top: -12px;
  margin-left: -12px;
  margin-right: -12px;
  margin-bottom: 0;
  height: 165px;
  border-radius: var(--radius-card, 16px) var(--radius-card, 16px) 0 0;
  overflow: hidden;
  background-color: #f1ece4;
  flex-shrink: 0;
  position: relative;
}

.centre-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.centre-card:hover .centre-card-img {
  transform: scale(1.03);
}

/* Card Content Body */
.centre-card-body {
  padding: 12px 2px 2px 2px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.centre-card-name {
  color: var(--brand-orange, #ff7800);
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.centre-card-address {
  font-size: 13.5px;
  color: #555555;
  line-height: 1.5;
  margin: 0 0 16px 0;
  flex-grow: 1;
  min-height: 48px;
}

/* Card Action Footer */
.centre-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

/* Phone Call Button */
.centre-btn-call {
  background-color: #F6EFE6;
  color: #4A423A;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 15px;
  border-radius: var(--radius-pill, 50px);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  transition: background-color var(--transition-fast, 0.25s ease), color var(--transition-fast, 0.25s ease);
}

.centre-btn-call i {
  font-size: 11px;
  color: #4A423A;
  transition: color var(--transition-fast, 0.25s ease);
}

.centre-btn-call:hover {
  background-color: #ebdccb;
  color: #111111;
}

.centre-btn-call:hover i {
  color: #111111;
}

/* Directions Button (Orange Square with Rounded Corners & Turn Arrow) */
.centre-btn-direction {
  background-color: var(--brand-orange, #ff7800);
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: background-color var(--transition-fast, 0.25s ease), transform var(--transition-fast, 0.25s ease);
}

.centre-btn-direction svg {
  display: block;
}

.centre-btn-direction:hover {
  background-color: var(--brand-orange-hover, #FF800F);
  color: #ffffff;
  transform: scale(1.08);
}

/* ==========================================================================
   Bottom Banners Section in Our Centres
   ========================================================================== */
.our-centres-banners {
  margin-top: 56px;
  padding: 50px 0;
}

.our-centres-banners .row {
  position: relative;
}

.our-centres-banners .row::before {
  content: '';
  position: absolute;
  top: -50px;
  bottom: -50px;
  left: 0;
  right: 0;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.055) 1px, transparent 1px);
  background-size: 52px 52px;
  background-position: center center;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.our-centres-banners .mesat-banner-card {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.our-centres-banners .mesat-rewards-banner {
  padding: 12px 32px 0 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.our-centres-banners .rewards-banner-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.our-centres-banners .rewards-banner-img {
  width: auto;
  max-width: 250px;
  height: 105px;
  object-fit: contain;
  flex-shrink: 0;
}

.our-centres-banners .rewards-banner-text {
  font-size: 21px;
  font-weight: 800;
  color: #111111;
  line-height: 1.3;
  margin: 0;
  max-width: 260px;
}

.our-centres-banners .mesat-support-banner {
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.our-centres-banners .support-banner-title {
  font-size: 17px;
  font-weight: 800;
  color: #111111;
  margin: 0;
  line-height: 1.2;
}

.our-centres-banners .support-banner-title span {
  color: var(--brand-orange, #ff7800);
}

.our-centres-banners .support-banner-sub {
  font-size: 14px;
  color: #666666;
  margin: 4px 0 0;
  line-height: 1.2;
}

/* Header Nav Active Link */
.mesat-nav a.active {
  color: var(--brand-orange, #ff7800);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
  .centres-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 18px;
  }
}

@media (max-width: 991px) {
  .centres-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
  }

  .our-centres-heading {
    margin-bottom: 20px;
  }

  .our-centres-banners {
    margin-top: 40px;
    padding: 24px 12px;
  }
}

@media (max-width: 767px) {
  .our-centres-banners .mesat-rewards-banner {
    flex-direction: column;
    text-align: center;
    padding: 20px 20px 16px 20px;
    gap: 16px;
  }

  .our-centres-banners .rewards-banner-left {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .our-centres-banners .rewards-banner-img {
    height: 90px;
    max-width: 200px;
  }

  .our-centres-banners .rewards-banner-text {
    max-width: 100%;
    font-size: 18px;
  }

  .our-centres-banners .mesat-support-banner {
    flex-direction: row !important;
    text-align: left !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 20px !important;
    gap: 16px !important;
    border-radius: 20px !important;
    background: #ffffff !important;
  }

  .our-centres-banners .support-banner-content {
    flex: 1 !important;
    text-align: left !important;
  }

  .our-centres-banners .support-banner-title {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #111111 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
  }

  .our-centres-banners .support-banner-sub {
    font-size: 13.5px !important;
    color: #555555 !important;
    margin-top: 4px !important;
    line-height: 1.3 !important;
  }

  /*.our-centres-banners .btn-whatsapp-ask {*/
  /*  flex-shrink: 0 !important;*/
  /*  width: auto !important;*/
  /*  max-width: none !important;*/
  /*  padding: 9px 24px !important;*/
  /*  font-size: 14px !important;*/
  /*  font-weight: 700 !important;*/
  /*  border-radius: 50px !important;*/
  /*  background-color: #1FA349 !important;*/
  /*}*/
  
  
  .our-centres-banners .btn-whatsapp-ask {
    max-width: none !important;
    width: auto !important;
    white-space: nowrap;
    padding: 8px 18px;
    font-size: 13px;
  }
}

@media (max-width: 575px) {
    .our-centres-banners .mesat-support-banner .d-flex {
    width: 100%;
    justify-content: center;
    flex-direction: row;
  }

  .our-centres-banners .btn-whatsapp-ask {
    flex: 1 1 auto;
    justify-content: center;
    padding: 8px 12px;
    font-size: 12px;
  }
  .our-center {
    padding: 28px 0 48px 0;
  }

  .centres-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .centre-card-img-wrap {
    height: 175px;
  }
}

/* ==========================================================================
   Achievers Campus Page Styles
   ========================================================================== */
.achievers-page {
  position: relative;
  background-color: var(--light-primary-background, #F5EFE4);
  padding: 44px 0 76px 0;
  min-height: calc(100vh - 85px);
}

.achievers-hero-card {
  margin-bottom: 48px;
}

.achievers-main-title {
  font-size: clamp(28px, 2.8vw, 36px);
  font-weight: 800;
  color: var(--brand-orange, #ff7800);
  margin-bottom: 14px;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.achievers-sub-title {
  font-size: 18px;
  font-weight: 800;
  color: #111111;
  line-height: 1.45;
  margin-bottom: 18px;
}

.achievers-desc-para {
  font-size: 16px;
  color: #333333;
  line-height: 1.7;
  margin-bottom: 16px;
}

.campus-build-img {
  max-height: 480px;
}

.achievers-building-wrap {
  width: 100%;
  height: 90%;
  /* min-height: 320px; */
  border-radius: var(--radius-card, 16px);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  background-color: #f0ebe2;
}

.achievers-building-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.achievers-building-wrap:hover .achievers-building-img {
  transform: scale(1.03);
}

/* Campus Facilities */
.campus-facilities-block {
  /* margin-top: 32px; */
  padding-top: 14px;
}

.campus-facilities-heading {
  font-size: 18px;
  font-weight: 800;
  color: #111111;
  margin-bottom: 10px;
}

.campus-facilities-list {
  font-size: 15.5px;
  color: #333333;
  line-height: 1.7;
  margin: 0;
}

/* Life at Achiever's Campus */
.life-achievers-section {
  margin-top: 52px;
}

.life-achievers-title {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  color: var(--brand-orange, #ff7800);
  margin-bottom: 24px;
  line-height: 1.25;
}

.life-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.life-card {
  position: relative;
  border-radius: var(--radius-card, 16px);
  overflow: hidden;
  height: 200px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  background-color: #2b1f1a;
  transition: transform var(--transition-fast, 0.25s ease), box-shadow var(--transition-fast, 0.25s ease);
}

.life-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.life-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.life-card:hover .life-card-img {
  transform: scale(1.05);
}

.life-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 12px;
  pointer-events: none;
}

.life-card-label {
  color: #ffffff;
  font-weight: 700;
  font-size: 16.5px;
  text-align: center;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

/* FAQ Section in Achievers Campus */
.achievers-faqs-section {
  margin-top: 64px;
}

.achievers-faq-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-orange, #ff7800);
  background: #ffffff;
  border: 1px solid rgba(255, 120, 0, 0.35);
  border-radius: var(--radius-pill, 50px);
  padding: 5px 18px;
  margin-bottom: 14px;
}

.achievers-faq-title {
  font-size: clamp(28px, 2.8vw, 36px);
  font-weight: 800;
  color: #111111;
  margin-bottom: 26px;
}

.achievers-faq-title span {
  color: var(--brand-orange, #ff7800);
}

.achievers-accordion .accordion-item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.achievers-accordion .accordion-button {
  font-size: 16.5px;
  font-weight: 700;
  color: #111111;
  padding: 18px 24px;
  background: #ffffff;
  box-shadow: none;
}

.achievers-accordion .accordion-button:not(.collapsed) {
  color: var(--brand-orange, #ff7800);
  background-color: #fffaf5;
}

.achievers-accordion .accordion-body {
  font-size: 15px;
  color: #444444;
  line-height: 1.65;
  padding: 0 24px 20px 24px;
}

/* About MESAT Section in Achievers Campus */
.achievers-about-mesat {
  margin-top: 64px;
  background: #ffffff;
  /* border-radius: 20px; */
  padding: 60px 44px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}

.about-mesat-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #555555;
  background: #f4ede4;
  border-radius: 30px;
  padding: 5px 16px;
  margin-bottom: 14px;
}

.about-mesat-head {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  color: #111111;
  margin-bottom: 6px;
}

.about-mesat-subhead {
  font-size: 16.5px;
  font-weight: 700;
  color: #444444;
  margin-bottom: 16px;
}

.about-mesat-p {
  font-size: 15.5px;
  color: #444444;
  line-height: 1.7;
  margin-bottom: 14px;
}

.about-mesat-graphic-card {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-radius: 18px;
  padding: 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 120, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.about-mesat-graphic-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 120, 0, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.about-mesat-graphic-img {
  max-width: 220px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 991px) {
  .life-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .achievers-about-mesat {
    padding: 24px;
  }
}

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

  .life-card {
    height: 190px;
  }
}

.life-card {
  height: 190px;
}

/* ==========================================================================
   Test Centres Page Styling
   ========================================================================== */
.test-centres-page {
  padding: 40px 0 60px;
  background-color: #fbf9f5;
  min-height: calc(100vh - 200px);
}

.tc-header-row {
  margin-bottom: 28px;
}

.tc-title {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  color: #ff5b00;
  margin: 0;
  line-height: 1.15;
}

.tc-subtitle {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #111111;
  margin: 4px 0 0;
  text-transform: uppercase;
}

.tc-search-box {
  position: relative;
  max-width: 320px;
}

.tc-search-input {
  width: 100%;
  height: 42px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 8px 16px 8px 38px;
  font-size: 14px;
  color: #333333;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tc-search-input:focus {
  border-color: #ff5b00;
  box-shadow: 0 0 0 3px rgba(255, 91, 0, 0.12);
}

.tc-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #999999;
  font-size: 13px;
  pointer-events: none;
}

/* Table Cards */
.tc-table-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  overflow-x: auto;
  border: 1px solid rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
}

.tc-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}

.tc-table thead th {
  background: #ff5b00;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 18px;
  border: none;
  white-space: nowrap;
}

.tc-table thead th:first-child {
  border-top-left-radius: 16px;
  width: 18%;
  text-align: center;
}

.tc-table thead th:nth-child(2) {
  width: 38%;
}

.tc-table thead th:last-child {
  border-top-right-radius: 16px;
  width: 44%;
}

.tc-table tbody tr {
  transition: background-color 0.15s ease;
}

.tc-table tbody tr:nth-child(odd) {
  background-color: #fbf9f5;
}

.tc-table tbody tr:nth-child(even) {
  background-color: #ffffff;
}

.tc-table tbody tr:hover {
  background-color: #fff4ea;
}

.tc-table tbody td {
  padding: 12px 18px;
  font-size: 14px;
  color: #222222;
  border-bottom: 1px solid #f2ede4;
  vertical-align: middle;
}

.tc-table tbody td:first-child {
  text-align: center;
  font-weight: 600;
  color: #555555;
  white-space: nowrap;
}

.tc-table tbody td:nth-child(2) {
  font-weight: 600;
  color: #333333;
}

.tc-table tbody td:last-child {
  font-weight: 500;
  color: #222222;
}

.tc-table tbody tr:last-child td {
  border-bottom: none;
}

/* Pagination Controls */
.tc-pagination-wrap {
  margin-top: 24px;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tc-pagination {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
}

.tc-page-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #333333;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.tc-page-btn:hover:not(:disabled):not(.active) {
  background: #f0ebe2;
  color: #ff5b00;
}

.tc-page-btn.active {
  background: #222222;
  color: #ffffff;
}

.tc-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.tc-page-btn.tc-page-arrow {
  color: #444444;
  font-size: 13px;
}

.tc-page-dots {
  padding: 0 4px;
  color: #666666;
  font-weight: bold;
}

/* White graphic card placeholder */
.about-mesat-graphic-card-white {
  background: #ffffff;
  border-radius: 18px;
  padding: 36px;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}

.about-mesat-graphic-card-white .about-mesat-graphic-img {
  max-width: 240px;
  height: auto;
  object-fit: contain;
}

/* Header Overlap Prevention */
header.mesat-header {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 999 !important;
  background-color: #fff;
  transition: all 0.3s ease;
}
header.mesat-header.sticky {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

@media (max-width: 991.98px) {
  header.mesat-header {
    height: 64px !important;
    padding: 0 16px !important;
  }
}

@media (max-width: 767.98px) {
  body {
    overflow-x: hidden;
  }

  .test-centres-page {
    padding: 24px 0 50px;
    overflow-x: hidden;
  }

  header.mesat-header {
    height: 60px !important;
    padding: 0 16px !important;
  }

  .tc-search-box {
    max-width: 100%;
    margin-top: 14px;
  }

  .tc-table thead th,
  .tc-table tbody td {
    padding: 10px 12px;
    font-size: 13px;
  }

  /* In mobile view only 1 table is shown */
  .tc-col-right {
    display: none !important;
  }

  .tc-col-left {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Prevent pagination from causing horizontal page scrolling */
  .tc-pagination-wrap {
    justify-content: flex-start;
    padding-bottom: 6px;
  }

  .tc-page-btn {
    width: 30px;
    height: 30px;
    font-size: 12.5px;
  }
}