/* ---- Reset & Base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Padauk", "Myanmar Text", "Segoe UI", Arial, sans-serif;
  color: #222;
  line-height: 1.6;
  background: #fafafa;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Header / Nav ---- */
header {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #1c5fa8;
}

.logo-img { width: 40px; height: 40px; object-fit: contain; }

.logo-sub { color: #222; font-weight: 400; font-size: 1rem; display: block; }

nav.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
}

nav.main-nav a {
  font-weight: 600;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: #1c5fa8;
  border-color: #1c5fa8;
}

/* mobile nav toggle (pure CSS, no JS) */
.nav-toggle-label {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #1c5fa8;
}
#nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-toggle-label { display: block; }

  nav.main-nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
  }

  nav.main-nav a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid #eee;
  }

  #nav-toggle:checked ~ nav.main-nav {
    max-height: 500px;
  }

  .header-inner {
    flex-wrap: wrap;
  }
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, #1c5fa8, #2f8fe0);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 28px;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  background: #fff;
  color: #1c5fa8;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 6px;
  margin: 6px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.2); }

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

/* ---- Section ---- */
section { padding: 60px 0; }

.section-title {
  text-align: center;
  font-size: 1.8rem;
  color: #1c5fa8;
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
}

.container-spaced { margin-top: 50px; }

/* ---- Cards Grid (compact preview cards, link out to a full detail page) ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border-top: 4px solid #2f8fe0;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

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

.card h3 { color: #1c5fa8; margin-bottom: 10px; font-size: 1.2rem; }

.card .meta {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  font-size: 0.9rem;
  color: #555;
  flex-wrap: wrap;
}

.card .meta span { background: #eef4fb; padding: 4px 10px; border-radius: 20px; }

.card-link {
  margin-top: auto;
  padding-top: 14px;
  color: #1c5fa8;
  font-weight: 700;
  font-size: 0.9rem;
}

.card-link::after { content: " \2192"; }

.post-date {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 8px;
}

.note-center { text-align: center; margin-top: 32px; }

/* ---- Course Detail Page ---- */
.back-btn {
  display: inline-block;
  background: #eef4fb;
  color: #1c5fa8;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 6px;
  margin-bottom: 24px;
}

.back-btn:hover { background: #dceafb; }

.back-btn-bottom { margin-top: 24px; }

.detail-content {
  background: #fff;
  border-radius: 10px;
  padding: 32px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border-top: 4px solid #2f8fe0;
  max-width: 800px;
  margin: 0 auto;
}

.detail-content h1 { color: #1c5fa8; margin-bottom: 12px; font-size: 1.7rem; }

.detail-content > p { color: #555; margin-bottom: 8px; }

.meta {
  display: flex;
  gap: 14px;
  margin: 14px 0;
  font-size: 0.9rem;
  color: #555;
  flex-wrap: wrap;
}

.meta span { background: #eef4fb; padding: 4px 10px; border-radius: 20px; }

.syllabus {
  list-style: disc;
  padding-left: 22px;
  margin-top: 12px;
  font-size: 0.98rem;
  color: #444;
}

.syllabus li { margin-bottom: 6px; }

.note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: #999;
  font-style: italic;
}

.module { margin-top: 22px; }

.module h4 {
  color: #1c5fa8;
  font-size: 1.05rem;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eef4fb;
}

/* ---- Course Fee Table ---- */
.fee-table-wrap {
  max-width: 700px;
  margin: 0 auto;
  overflow-x: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
}

.fee-table th,
.fee-table td {
  padding: 14px 20px;
  text-align: left;
}

.fee-table th {
  background: #1c5fa8;
  color: #fff;
  font-weight: 700;
}

.fee-table td:last-child,
.fee-table th:last-child { text-align: right; font-weight: 700; color: #1c5fa8; }

.fee-table tbody tr:nth-child(even) { background: #f7fafd; }

.fee-table tbody tr:hover { background: #eef4fb; }

.fee-table a { color: #222; }

.fee-table a:hover { color: #1c5fa8; }

/* ---- Services ---- */
.services {
  background: #1c5fa8;
  color: #fff;
  text-align: center;
}

.services .section-title,
.services .section-sub { color: #fff; }

.services ul {
  max-width: 500px;
  margin: 0 auto 30px;
}

.services li {
  padding: 10px 0;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.hours {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 20px;
}

/* ---- Download Page ---- */
.search-box {
  max-width: 500px;
  margin: 0 auto 40px;
}

.search-box input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 30px;
  border: 1px solid #ddd;
  font-size: 1rem;
}

.download-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.download-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.download-item .dl-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

.dl-btn.mediafire { background: #2f8fe0; }
.dl-btn.drive { background: #34a853; }

.subsection-title {
  font-size: 1.3rem;
  color: #1c5fa8;
  margin: 40px 0 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eef4fb;
}

/* ---- Footer ---- */
footer {
  background: #16324a;
  color: #cfe0ef;
  padding: 40px 20px 20px;
  text-align: center;
}

footer .foot-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

footer .foot-links a:hover { color: #fff; }

footer .copy {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 16px;
}
