/* ==========================================================
   STUDY PROGRAM PAGE
   OIA UNISSULA
========================================================== */

/* ==========================================================
   HERO
========================================================== */

.program-hero {
  padding: 120px 0 100px;

  background: radial-gradient(
      circle at top right,
      rgba(52, 211, 153, 0.18),
      transparent 35%
    ),
    linear-gradient(135deg, #063b2c, #075c43);

  color: white;
}

.program-hero-content {
  max-width: 900px;
}

.program-eyebrow {
  display: inline-flex;

  padding: 8px 18px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.12);

  font-size: 13px;

  letter-spacing: 2px;

  text-transform: uppercase;

  margin-bottom: 25px;
}

.program-hero h1 {
  font-size: clamp(42px, 6vw, 68px);

  font-weight: 800;

  line-height: 1.1;

  margin-bottom: 20px;
}

.program-hero p {
  max-width: 760px;

  font-size: 19px;

  line-height: 1.8;

  opacity: 0.9;
}

/* ==========================================================
   STATISTIC
========================================================== */

.program-stat-grid {
  display: flex;

  gap: 20px;

  margin-top: 45px;
}

.program-stat-item {
  min-width: 170px;

  padding: 25px;

  border-radius: 22px;

  background: rgba(255, 255, 255, 0.12);

  border: 1px solid rgba(255, 255, 255, 0.15);

  backdrop-filter: blur(12px);
}

.program-stat-item strong {
  display: block;

  font-size: 40px;

  font-weight: 800;
}

.program-stat-item span {
  font-size: 14px;

  opacity: 0.85;
}

/* ==========================================================
   SECTION
========================================================== */

.program-section {
  padding: 100px 0;
}

.section-header {
  max-width: 760px;

  text-align: center;

  margin: 0 auto 50px;
}

.section-header h2 {
  font-size: 42px;

  font-weight: 800;

  margin-bottom: 15px;
}

.section-header p {
  color: #64748b;

  font-size: 17px;
}

/* ==========================================================
   FILTER
========================================================== */

.program-filter {
  margin-bottom: 45px;

  padding: 28px;

  border-radius: 28px;

  background: white;

  border: 1px solid #e2e8f0;

  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

.program-filter form {
  display: grid;

  grid-template-columns: 2fr 1fr 1fr auto;

  gap: 18px;

  align-items: end;
}

.filter-group {
  display: flex;

  flex-direction: column;

  gap: 8px;
}

.filter-group label {
  font-size: 13px;

  font-weight: 700;

  color: #334155;
}

.filter-group input,
.filter-group select {
  height: 48px;

  border-radius: 14px;

  border: 1px solid #e2e8f0;

  padding: 0 15px;

  background: white;

  color: #0f172a;

  font-size: 15px;
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;

  border-color: #10b981;
}

.program-search-button {
  height: 48px;

  padding: 0 30px;

  border: none;

  border-radius: 14px;

  background: #10b981;

  color: white;

  font-weight: 700;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  cursor: pointer;

  transition: 0.3s;
}

.program-search-button:hover {
  background: #047857;

  transform: translateY(-3px);
}

/* ==========================================================
   FILTER SEARCH
========================================================== */

.program-filter {
  margin-bottom: 45px;

  padding: 28px;

  border-radius: 28px;

  background: white;

  border: 1px solid #e2e8f0;

  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);

  transition: 0.35s ease;
}

.program-filter form {
  display: grid;

  grid-template-columns: 2fr 1fr auto;

  gap: 18px;

  align-items: end;
}

.filter-group {
  display: flex;

  flex-direction: column;

  gap: 8px;
}

.filter-group label {
  font-size: 13px;

  font-weight: 700;

  color: #334155;
}

.filter-group input,
.filter-group select {
  height: 52px;

  padding: 0 18px;

  border-radius: 16px;

  border: 1px solid #e2e8f0;

  background: white;

  color: #0f172a;

  font-size: 15px;

  transition: 0.3s ease;
}

.filter-group input::placeholder {
  color: #94a3b8;
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;

  border-color: #10b981;

  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.program-search-button {
  height: 52px;

  padding: 0 35px;

  border: none;

  border-radius: 16px;

  background: #10b981;

  color: white;

  font-size: 15px;

  font-weight: 700;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  cursor: pointer;

  transition: 0.35s ease;
}

.program-search-button:hover {
  background: #059669;

  transform: translateY(-3px);

  box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
}

/* ==========================================================
   GRID
========================================================== */

.program-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 32px;
}

/* ==========================================================
   CARD
========================================================== */

.program-card {
  display: flex;

  flex-direction: column;

  background: white;

  border-radius: 28px;

  overflow: hidden;

  border: 1px solid #e2e8f0;

  min-height: 620px;

  transition: 0.35s ease;

  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
}

.program-card:hover,
.program-card.active {
  transform: translateY(-10px);

  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18);
}

/* ==========================================================
   PROGRAM IMAGE HEADER
========================================================== */

.program-image {
  height: 180px;

  position: relative;

  background: linear-gradient(135deg, #ecfdf5, #d1fae5);

  display: flex;

  align-items: center;

  justify-content: center;
}

.program-image-overlay {
  width: 100%;

  height: 100%;

  display: flex;

  align-items: center;

  justify-content: center;

  position: relative;
}

.program-icon {
  width: 82px;

  height: 82px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  background: rgba(16, 185, 129, 0.12);

  border: 1px solid rgba(52, 211, 153, 0.35);

  color: #059669;

  font-size: 36px;

  box-shadow: 0 0 35px rgba(16, 185, 129, 0.25);
}

.program-degree-badge {
  position: absolute;

  top: 18px;

  right: 18px;

  padding: 7px 18px;

  border-radius: 999px;

  background: #10b981;

  color: white;

  font-size: 12px;

  font-weight: 700;
}

/* ==========================================================
   BODY
========================================================== */

.program-body {
  padding: 30px;

  display: flex;

  flex-direction: column;

  flex: 1;
}

.program-body h3 {
  font-size: 24px;

  font-weight: 800;

  color: #0f172a;

  line-height: 1.3;

  min-height: 62px;

  margin-bottom: 25px;
}

/* ==========================================================
   INFORMATION
========================================================== */

.info-item {
  display: flex;

  align-items: center;

  gap: 14px;
}

.info-icon {
  width: 38px;

  height: 38px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 12px;

  background: rgba(16, 185, 129, 0.12);

  border: 1px solid rgba(52, 211, 153, 0.2);

  color: #059669;
}

.info-icon i {
  font-size: 18px;
}

.info-item span:last-child {
  color: #475569;

  font-size: 15px;
}

.program-body p {
  color: #64748b;

  font-size: 15px;

  line-height: 1.8;

  min-height: 90px;

  margin-bottom: 25px;
}

.program-link {
  margin-top: auto;

  padding-top: 20px;

  border-top: 1px solid #e2e8f0;

  display: flex;

  align-items: center;

  justify-content: space-between;

  color: #059669;

  font-weight: 700;

  text-decoration: none;
}

/* ==========================================================
   WHY STUDY SECTION
========================================================== */

.why-study-section {
  padding: 90px 0;

  background: #071c16;
}

.why-study-section .section-header h2 {
  color: white;
}

.why-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 30px;
}

.why-card {
  padding: 35px;

  border-radius: 24px;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.1);

  transition: 0.35s ease;
}

.why-card:hover {
  transform: translateY(-8px);

  background: rgba(255, 255, 255, 0.08);
}

.why-card i {
  font-size: 38px;

  color: #34d399;
}

.why-card h3 {
  color: white;

  margin: 20px 0 10px;
}

.why-card p {
  color: #94a3b8;

  line-height: 1.7;
}

/* ==========================================================
   WHY SECTION LIGHT MODE
========================================================== */

body:not(.dark) .why-study-section {
  background: linear-gradient(135deg, #063b2c, #075c43);
}

body:not(.dark) .why-card {
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================
   WHY SECTION DARK MODE
========================================================== */

:is(html.dark, body.dark, html[data-theme="dark"], body[data-theme="dark"])
  .why-study-section {
  background: #06110d;
}

:is(html.dark, body.dark, html[data-theme="dark"], body[data-theme="dark"])
  .why-card {
  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.08);
}

:is(html.dark, body.dark, html[data-theme="dark"], body[data-theme="dark"])
  .why-card
  h3 {
  color: #f8fafc;
}

:is(html.dark, body.dark, html[data-theme="dark"], body[data-theme="dark"])
  .why-card
  p {
  color: #94a3b8;
}

/* ==========================================================
   DARK MODE
========================================================== */

:is(html.dark, body.dark, html[data-theme="dark"], body[data-theme="dark"])
  .program-card {
  background: linear-gradient(160deg, #12271f, #091812);

  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

:is(html.dark, body.dark, html[data-theme="dark"], body[data-theme="dark"])
  .program-image {
  background: linear-gradient(135deg, #10382b, #062017);
}

:is(html.dark, body.dark, html[data-theme="dark"], body[data-theme="dark"])
  .program-icon {
  background: rgba(52, 211, 153, 0.15);

  border-color: rgba(52, 211, 153, 0.35);

  color: #34d399;
}

:is(html.dark, body.dark, html[data-theme="dark"], body[data-theme="dark"])
  .program-body
  h3 {
  color: #f8fafc;
}

:is(html.dark, body.dark, html[data-theme="dark"], body[data-theme="dark"])
  .info-item
  span:last-child {
  color: #cbd5e1;
}

:is(html.dark, body.dark, html[data-theme="dark"], body[data-theme="dark"])
  .program-body
  p {
  color: #94a3b8;
}

:is(html.dark, body.dark, html[data-theme="dark"], body[data-theme="dark"])
  .program-link {
  border-color: rgba(255, 255, 255, 0.1);

  color: #34d399;
}

/* ==========================================================
   FILTER DARK MODE
========================================================== */

:is(html.dark, body.dark, html[data-theme="dark"], body[data-theme="dark"])
  .program-filter {
  background: linear-gradient(145deg, #12271f, #091812);

  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

:is(html.dark, body.dark, html[data-theme="dark"], body[data-theme="dark"])
  .filter-group
  label {
  color: #d1fae5;
}

:is(html.dark, body.dark, html[data-theme="dark"], body[data-theme="dark"])
  .filter-group
  input,
:is(html.dark, body.dark, html[data-theme="dark"], body[data-theme="dark"])
  .filter-group
  select {
  background: #07150f;

  color: #f8fafc;

  border-color: rgba(255, 255, 255, 0.15);
}

:is(html.dark, body.dark, html[data-theme="dark"], body[data-theme="dark"])
  .filter-group
  input::placeholder {
  color: #64748b;
}

/* ==========================================================
   SMOOTH THEME TRANSITION
========================================================== */

.program-card,
.program-image,
.program-body h3,
.program-body p,
.info-item span:last-child,
.program-link {
  transition: background 0.35s ease, color 0.35s ease, border 0.35s ease;
}

/* ==========================================================
 ANIMATION
========================================================== */

.reveal {
  opacity: 0;

  transform: translateY(30px);

  transition: 0.7s ease;
}

.reveal.show {
  opacity: 1;

  transform: none;
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================
 RESPONSIVE
========================================================== */

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

  .program-filter form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .program-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .program-filter form {
    grid-template-columns: 1fr;
  }

  .program-stat-grid {
    flex-direction: column;
  }

  .program-hero {
    padding: 80px 0;
  }

  .section-header h2 {
    font-size: 32px;
  }
}
