/* -----------------------
   Global Reset & Base
------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #ffffff;
  color: #1e293b;
}

.study-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
    header {
      background: #ffffff;
      padding: 15px 40px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    }

    header .brand {
      font-size: 1.4rem;
      font-weight: 600;
      color: var(--green);
    }

    header nav a {
      margin-left: 20px;
      text-decoration: none;
      font-weight: 500;
      color: var(--dark);
      transition: color 0.3s ease;
    }

    header nav a:hover {
      color: var(--sky-blue);
    }


/* -----------------------
   Top Section (Filters)
------------------------ */
.study {
  background: #f2f7fb;
  padding: 60px 0 80px;
}

.study-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #0f2f57;
  margin-bottom: 40px;
}

/* Filters Grid */
.study-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 28px;
  margin-bottom: 40px;
}

.study-filters select {
  width: 100%;
  padding: 14px 18px;
  border-radius: 28px;
  border: 1px solid #d6e2ee;
  background: #ffffff;
  font-size: 14px;
  color: #475569;
  appearance: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* Placeholder style */
.study-filters select option[disabled] {
  color: #94a3b8;
}

/* -----------------------
   Search Button
------------------------ */
.study-search {
  display: flex;
  justify-content: center;
}

.study-search button {
  background: #1f3b63;
  color: #ffffff;
  border: none;
  padding: 14px 70px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.study-search button:hover {
  background: #162c4d;
}

/* -----------------------
   Programs Section
------------------------ */
.study-programs {
  background: #ffffff;
  padding: 70px 0 40px;
}

/* Cards Grid */
.study-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* Card */
.study-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 22px 26px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Card Header */
.study-card-header {
  margin-bottom: 14px;
}

.study-card-icon {
  font-size: 18px;
  margin-bottom: 6px;
  display: inline-block;
}

.study-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0f2f57;
  margin-bottom: 4px;
  line-height: 1.4;
}

.study-institute {
  font-size: 13px;
  color: #64748b;
}

/* Card Details */
.study-card ul {
  list-style: none;
  margin: 14px 0 18px;
}

.study-card ul li {
  font-size: 13px;
  color: #334155;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Details Link */
.study-card a {
  font-size: 13px;
  color: #2563eb;
  text-decoration: none;
  align-self: flex-end;
}

.study-card a:hover {
  text-decoration: underline;
}

/* -----------------------
   Pagination
------------------------ */
.study-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 50px;
}

.study-pagination button {
  border: none;
  background: #f1f5f9;
  color: #0f172a;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
}

.study-pagination button.active {
  background: #1f3b63;
  color: #ffffff;
  font-weight: 600;
}

.study-pagination button:hover:not(.active) {
  background: #e2e8f0;
}

/* -----------------------
   Responsive
------------------------ */
@media (max-width: 1100px) {
  .study-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .study-filters {
    grid-template-columns: repeat(2, 1fr);
  }

  .study-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .study-filters {
    grid-template-columns: 1fr;
  }

  .study-cards {
    grid-template-columns: 1fr;
  }

  .study-title {
    font-size: 26px;
  }
}



 /* FOOTER */
    footer {
      background: #ffffff;
      padding: 15px 20px;
      text-align: center;
      box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
    }

    footer a {
      margin: 0 10px;
      text-decoration: none;
      font-size: 0.9rem;
      color: var(--dark);
    }

    footer a:hover {
      color: var(--green);
    }




    /* INDEX IMMI OTHER SERVICES Base */

.services-section {
  position: relative;
  padding: 120px 0; /* space before & after content */
}

.services-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
    rgba(248, 251, 255, 0.8),
    rgba(248, 251, 255, 0.8)
    ),
    url("..assets/img/bg-1.jpg"); /* CHECK PATH */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: -1;
}

.container {
  max-width: 1400px;
  margin: auto;
}

h2 {
  text-align: center;
  font-size: clamp(22px, 4vw, 34px);
  color: #0b2c6a;
}

h2 span {
  color: #4f8cff;
}

.subtitle {
  text-align: center;
  font-size: 15px;
  color: #555;
  margin: 10px 0 40px;
}

/* GRID */
.country-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 18px;
  justify-items: center;
}

/* FLAG CARD */
.flag-link {
  position: relative;
  width: 130px;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  background: #fff;
}

.flag-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid #dbe4f3;
  transition: transform 0.35s ease;
}

.flag-link:hover img {
  transform: scale(1.1);
}

.country-name {
  position: absolute;
  inset: 0;
  background: rgba(11, 44, 106, 0.75);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.flag-link:hover .country-name {
  opacity: 1;
}

/* PAGINATION */
.pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination button {
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  background: #4f8cff;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.pagination button.active {
  background: #0b2c6a;
}

.pagination button:disabled {
  background: #cfd8ea;
  cursor: not-allowed;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .services-section {
    padding: 80px 0;
  }
}

@media (max-width: 1200px) {
  .country-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 992px) {
  .country-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  .country-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .country-grid {
    grid-template-columns: 1fr;
  }
}



