/* ===============================================
   FEE STRUCTURE PAGE CSS
   Navbar → navbar-responsive.css + style.css
   Back-to-top → style.css + home.js
   =============================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

:root {
  --navbar: #5DADE2;
  --bg: #F8FBFF;
  --mint: #7ED6A5;
  --mint-hover: #66c491;
  --hover-blue: #4A90E2;
  --text: #2C3E50;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(44, 62, 80, 0.08);
  --shadow-hover: 0 20px 40px rgba(44, 62, 80, 0.14);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ========== BUTTONS (page CTA) ========== */
.fee-main .btn,
.bottom-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  text-align: center;
}

/* Icon + text on same vertical center */
.bottom-cta .btn i {
  font-size: 0.9rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  flex-shrink: 0;
}

.bottom-cta .btn-primary {
  background: var(--white);
  color: var(--navbar);
  box-shadow: none;
}

.bottom-cta .btn-primary:hover {
  background: var(--mint);
  color: var(--white);
}

.bottom-cta .btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.bottom-cta .btn-outline:hover {
  background: var(--white);
  color: var(--navbar);
  border-color: var(--white);
}

/* ========== HERO ========== */
.fee-hero {
  position: relative;
  background: linear-gradient(135deg, #E8F4FC 0%, #F8FBFF 50%, #EAF8F0 100%);
  padding: 90px 0 80px;
  overflow: hidden;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.fee-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(93, 173, 226, 0.12);
  color: var(--navbar);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.fee-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--text);
  margin-bottom: 18px;
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 1.1rem;
  color: #5a6a7a;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  font-size: 0.95rem;
  color: #6b7c8d;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta i {
  color: var(--mint);
}

/* Floating icons — visible all devices */
.floating-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.floating-icon {
  position: absolute;
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  color: var(--navbar);
  font-size: 1.2rem;
}

.floating-icon.icon-1 { top: 18%; left: 8%; }
.floating-icon.icon-2 { top: 25%; right: 10%; }
.floating-icon.icon-3 { bottom: 22%; left: 12%; }
.floating-icon.icon-4 { bottom: 18%; right: 8%; }

/* ========== MAIN ========== */
.fee-main {
  padding: 60px 0 90px;
}

/* ========== INFO CARDS — equal size ========== */
.info-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
  align-items: stretch;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(93, 173, 226, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.info-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(93, 173, 226, 0.15), rgba(126, 214, 165, 0.15));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navbar);
  font-size: 1.3rem;
  transition: transform 0.4s ease;
  flex-shrink: 0;
}

.info-card:hover .info-icon {
  transform: rotateY(360deg) scale(1.1);
}

.info-card h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--text);
}

.info-card p {
  font-size: 0.9rem;
  color: #6b7c8d;
  margin-top: auto;
}

/* ========== TABLE SECTIONS ========== */
.table-section {
  margin-bottom: 50px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.section-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--navbar), var(--mint));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.section-header h2 {
  font-size: 1.45rem;
  color: var(--text);
  margin-bottom: 4px;
}

.section-header p {
  font-size: 0.95rem;
  color: #6b7c8d;
}

.table-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
  border: 1px solid rgba(93, 173, 226, 0.12);
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  min-width: 480px;
}

.fee-table thead {
  background: var(--navbar);
  color: var(--white);
}

.fee-table th {
  padding: 18px 28px;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.2px;
}

.fee-table td {
  padding: 16px 28px;
  color: #3d4f5f;
  border-bottom: 1px solid #eef3f8;
}

.fee-table tbody tr:nth-child(even) {
  background: #f7fbff;
}

.fee-table tbody tr:last-child td {
  border-bottom: none;
}

.fee-table tbody tr {
  transition: background 0.25s ease;
}

.fee-table tbody tr:hover {
  background: #eaf4fc;
}

/* ========== PAYMENT CARDS ========== */
.payment-section {
  margin-bottom: 50px;
}

.payment-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.payment-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(93, 173, 226, 0.1);
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  height: 100%;
  box-sizing: border-box;
}

.payment-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.payment-card.featured {
  border: 2px solid var(--navbar);
  background: linear-gradient(180deg, #f0f8ff 0%, var(--white) 100%);
}

.pay-badge {
  display: inline-block;
  background: rgba(93, 173, 226, 0.12);
  color: var(--navbar);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.payment-card.featured .pay-badge {
  background: var(--navbar);
  color: var(--white);
}

.payment-card h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.pay-amount {
  font-size: 0.95rem;
  color: #6b7c8d;
  margin-bottom: 20px;
}

.payment-card ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-card ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #3d4f5f;
}

.payment-card ul li i {
  color: var(--mint);
  font-size: 0.9rem;
}

/* ========== NOTES ========== */
.notes-section {
  margin-bottom: 50px;
}

.notes-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 36px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--mint);
}

.notes-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.notes-header i {
  color: var(--navbar);
  font-size: 1.4rem;
}

.notes-header h3 {
  font-size: 1.25rem;
}

.notes-card ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notes-card ul li {
  position: relative;
  padding-left: 22px;
  font-size: 0.96rem;
  color: #5a6a7a;
  line-height: 1.6;
}

.notes-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--mint);
  border-radius: 50%;
}

/* ========== BOTTOM CTA ========== */
.bottom-cta {
  background: linear-gradient(135deg, var(--navbar), #4A90E2);
  border-radius: 20px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--white);
  box-shadow: 0 15px 40px rgba(93, 173, 226, 0.35);
}

.cta-content h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.cta-content p {
  opacity: 0.92;
  font-size: 1rem;
  max-width: 480px;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .info-cards {
    grid-template-columns: 1fr 1fr; /* 2 equal cards per row */
    gap: 16px;
    grid-auto-rows: 1fr;
  }

  .payment-cards {
    grid-template-columns: 1fr 1fr;
  }

  .payment-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .fee-hero {
    padding: 60px 0 50px;
  }

  .floating-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .floating-icon.icon-1 { top: 12%; left: 4%; }
  .floating-icon.icon-2 { top: 14%; right: 4%; }
  .floating-icon.icon-3 { bottom: 14%; left: 6%; }
  .floating-icon.icon-4 { bottom: 12%; right: 4%; }

  /* Info cards: 2 per row, equal size */
  .info-cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    grid-auto-rows: 1fr;
  }

  .info-card {
    padding: 22px 14px;
    min-height: 160px;
  }

  .payment-cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .payment-card:last-child {
    max-width: none;
    grid-column: auto;
  }

  .fee-table th,
  .fee-table td {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  .section-header {
    gap: 14px;
  }

  .section-header h2 {
    font-size: 1.25rem;
  }

  .bottom-cta {
    flex-direction: column;
    text-align: center;
    padding: 32px 22px;
  }

  /* 2 buttons side by side */
  .cta-buttons {
    flex-wrap: nowrap;
    width: 100%;
    gap: 10px;
  }

  .cta-buttons .btn {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    padding: 12px 8px;
    line-height: 1.2;
  }

  .cta-buttons .btn i {
    font-size: 0.8rem;
    line-height: 1;
  }

  .notes-card {
    padding: 24px 18px;
  }

  .footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .footer-brand,
  .footer-newsletter {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .fee-hero h1 {
    font-size: 1.9rem;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  /* Still 2 info cards per row */
  .info-cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .info-card {
    padding: 18px 10px;
    min-height: 150px;
  }

  .info-card h4 {
    font-size: 0.9rem;
  }

  .info-card p {
    font-size: 0.78rem;
  }

  .payment-cards {
    grid-template-columns: 1fr;
  }

  .floating-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .cta-buttons {
    flex-wrap: nowrap;
  }

  .footer-container {
    gap: 24px 14px;
  }
}
