/* ===== Matrix Academy Subjects Section (Improved UI) ===== */

.ma-subjects-section {
  background-color: #f6f8fc;
}

/* Card */
.ma-subject-card {
  background: #faf7f7;
  border-radius: 10px;
  padding: 32px 26px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.156);
  transition: all 0.35s ease;
}

.ma-subject-card:hover {
  transform: translateY(-8px);
  background-color: #f9f4dd;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.231);
}

/* Title */
.ma-subject-title {
  font-size: 25px;
  text-transform: uppercase;
  font-weight: 600;
  color: #014fa8;
  margin-bottom: 14px;
}

/* Description */
.ma-subject-desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: #000000;
  margin-bottom: 26px;
  padding: 0 4px;
}
/* .ma-subject-desc:hover {
  font-size: 14.5px;
  line-height: 1.7;
  color: #ffffff;
  margin-bottom: 26px;
  padding: 0 4px;
} */

/* Button */
.ma-subject-btn {
  align-self: center;
  padding: 10px 26px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;

  background-color: #000000;
  color: #ffffff;
  text-decoration: none;

  transition: all 0.3s ease;
}

.ma-subject-btn:hover {
  background-color: #084298;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Better spacing between rows */
.ma-subjects-section .row {
  row-gap: 32px;
}



/* form */
/* Enquiry Section */
.ma-enquiry-section {
  padding: 80px 0;
  background: #f9fbff;
}

.ma-enquiry-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Image */
.ma-enquiry-image {
  flex: 1;
}

.ma-enquiry-image img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

/* Form */
.ma-enquiry-form {
  flex: 1;
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.ma-enquiry-subtitle {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 10px;
}

.ma-enquiry-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1f2937;
}

.ma-enquiry-desc {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 25px;
}

/* Form Fields */
.ma-form-row {
  margin-bottom: 5px;
}

.ma-form-row input,
.ma-form-row select,
.ma-form-row textarea {
  width: 100%;
  padding: 8px 15px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  outline: none;
}

.ma-form-row textarea {
  resize: none;
  height: 100px;
}

/* Button */
.ma-enquiry-btn {
  width: 100%;
  padding: 5px;
  border-radius: 8px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.ma-enquiry-btn:hover {
  background: #1e40af;
}

/* Responsive */
@media (max-width: 991px) {
  .ma-enquiry-container {
    flex-direction: column;
  }
}
/* Matrix Academy – Enquiry Form Fix */
.ma-enquiry-section select,
.ma-enquiry-section .nice-select,
.ma-enquiry-section .nice-select .current {
    color: #333 !important;   /* match input text */
}

/* Dropdown options text */
.ma-enquiry-section .nice-select .list li {
    color: #333 !important;
}

/* Placeholder-style color (optional) */
.ma-enquiry-section .nice-select .current {
    opacity: 0.9;
}

html {
scroll-behavior: smooth;
}


.ma-slider {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
}

.ma-slides {
  width: 100%;
  height: 100%;
}

.ma-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.ma-slide.active {
  opacity: 1;
}

/* arrows */
.ma-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 30px;
  padding: 10px 16px;
  cursor: pointer;
  z-index: 10;
}

.ma-arrow.left { left: 20px; }
.ma-arrow.right { right: 20px; }

.ma-arrow:hover {
  background: rgba(0,0,0,0.7);
}

/* =========================
   MOBILE SLIDER FIX
   ========================= */
@media (max-width: 768px) {

  .ma-slider {
    height: 55vh;              /* smaller height for mobile */
  }

  .ma-slide {
    object-fit: contain;       /* show full image on mobile */
    background-color: #000;    /* avoids white gaps */
  }

  .ma-arrow {
    font-size: 22px;
    padding: 6px 10px;
  }

  .ma-arrow.left {
    left: 10px;
  }

  .ma-arrow.right {
    right: 10px;
  }
}

/* Extra small phones */
@media (max-width: 480px) {

  .ma-slider {
    height: 45vh;
  }

}

/* classes */

/* Matrix Academy Classes Section */
#ma-classes-section {
  padding: 20px 0;
  background-color: #f8fafc;
}

.ma-classes-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 15px;
}

.ma-classes-title {
  text-align: center;
  font-size: 36px;
  font-weight: 7=800;
  margin-bottom: 50px;
  color: #1f2937;
  text-transform: uppercase;
}

.ma-classes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.ma-class-card {
  background: #ffffff;
  padding: 30px 20px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.ma-class-card:hover {
  transform: translateY(-8px);
}

.ma-class-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #0f172a;
}

.ma-class-card p {
  font-size: 15px;
  color: #475569;
  margin-bottom: 20px;
}

.ma-class-btn {
  display: inline-block;
  padding: 10px 22px;
  background-color: #000000;
  color: #ffffff;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.ma-class-btn:hover {
  background-color: #2563eb;
}

/* Responsive */
@media (max-width: 992px) {
  .ma-classes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .ma-classes-grid {
    grid-template-columns: 1fr;
  }
}