/* ===================================================================
   PAGES.CSS — Page-specific & utility overrides
   =================================================================== */

/* -------------------------------------------------------
   SCROLL REVEAL ANIMATION
------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------
   card__body backward compat alias
------------------------------------------------------- */
.card__body { padding: 1.5rem; }
.card__body h4 { font-size: 1rem; font-weight: 700; color: var(--brand-gray-900); margin-bottom: 0.75rem; }

/* -------------------------------------------------------
   INNER PAGE LAYOUT
------------------------------------------------------- */
.inner-page {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.prose {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.inner-page__sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

@media (max-width: 900px) {
  .inner-page {
    grid-template-columns: 1fr;
  }
  .inner-page__sidebar {
    position: static;
    order: -1;
  }
}

/* -------------------------------------------------------
   SIDEBAR WIDGETS
------------------------------------------------------- */
.sidebar-widget {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--brand-gray-200);
  overflow: hidden;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
}

.sidebar-widget--alt {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  border-color: transparent;
}

.sidebar-widget--alt .sidebar-widget__title,
.sidebar-widget--alt .sidebar-widget__text { color: rgba(255,255,255,0.9); }

.sidebar-widget__header {
  background: var(--brand-primary);
  color: #fff;
  padding: 1.1rem 1.5rem;
}

.sidebar-widget__title {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-gray-800);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-widget__title i { color: var(--brand-primary); }
.sidebar-widget--alt .sidebar-widget__title i { color: #7dd3fc; }

.sidebar-widget__text {
  font-size: 0.85rem;
  color: var(--brand-gray-600);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.sidebar-widget__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-widget__actions .btn,
.sidebar-widget--alt > .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.sidebar-widget__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-widget__links li {
  border-bottom: 1px solid var(--brand-gray-100);
}

.sidebar-widget__links li:last-child { border-bottom: none; }

.sidebar-widget__links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 0;
  color: var(--brand-gray-700);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.18s;
}

.sidebar-widget__links a:hover { color: var(--brand-primary); }
.sidebar-widget__links a i { color: var(--brand-primary); font-size: 0.75rem; width: 12px; }

.sidebar-widget__content { padding: 1.5rem; }

/* Quick contact widget */
.quick-contact { text-align: center; }

.quick-contact__icon {
  width: 70px;
  height: 70px;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1rem;
}

.quick-contact__name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.quick-contact__role {
  font-size: 0.82rem;
  color: var(--brand-text-muted);
  margin-bottom: 1.25rem;
}

.quick-contact__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.quick-contact__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.quick-contact__btn--whatsapp { background: #25D366; color: #fff; }
.quick-contact__btn--whatsapp:hover { background: #1db955; color: #fff; transform: translateY(-1px); }

.quick-contact__btn--email { background: var(--brand-primary); color: #fff; }
.quick-contact__btn--email:hover { background: var(--brand-primary-dark); color: #fff; transform: translateY(-1px); }

/* Sidebar nav */
.sidebar-nav ul { list-style: none; }
.sidebar-nav li { border-bottom: 1px solid var(--brand-gray-100); }
.sidebar-nav li:last-child { border-bottom: none; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1rem;
  color: var(--brand-gray-700);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.18s;
  text-decoration: none;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--brand-primary);
  color: #fff;
  padding-left: 1.25rem;
}

.sidebar-nav i {
  width: 18px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--brand-primary);
  flex-shrink: 0;
}

.sidebar-nav a:hover i,
.sidebar-nav a.active i { color: #fff; }

/* -------------------------------------------------------
   SCHOLARSHIP COUNTDOWN
------------------------------------------------------- */
.scholarship-countdown {
  text-align: center;
  padding: 3rem 2rem;
  background: #fff;
  border-radius: 16px;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 20px rgba(0,136,204,0.1);
  border: 2px solid var(--brand-primary);
}

.scholarship-countdown__ended {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--brand-primary);
}

/* Scholarship apply page */
.scholarship-notice {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%);
  border: 1px solid rgba(0,136,204,0.25);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.scholarship-notice__icon {
  width: 44px;
  height: 44px;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.scholarship-notice__body {
  flex: 1;
  min-width: 200px;
}

.scholarship-notice__body strong {
  display: block;
  font-size: 1rem;
  color: var(--brand-gray-900);
  margin-bottom: 0.35rem;
}

.scholarship-notice__body p {
  font-size: 0.9rem;
  color: var(--brand-gray-600);
  margin: 0;
  line-height: 1.6;
}

.scholarship-video {
  max-width: 800px;
  margin: 0 auto;
}

.scholarship-video .video-embed {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.feature-card--link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card--link:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,136,204,0.12);
}

.scholarship-article-card {
  max-width: 640px;
}

.scholarship-cta {
  margin-top: 3.5rem;
  padding: 2.5rem;
  background: var(--brand-gray-50);
  border: 1px solid var(--brand-gray-200);
  border-radius: 16px;
  text-align: center;
}

.scholarship-cta h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-gray-900);
  margin: 0 0 0.5rem;
}

.scholarship-cta p {
  color: var(--brand-gray-600);
  margin: 0 0 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------------------------------
   VIDEO LIST (inner page)
------------------------------------------------------- */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.video-item {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--brand-gray-200);
}

.video-item h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* -------------------------------------------------------
   ARTICLE META
------------------------------------------------------- */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--brand-text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: var(--brand-gray-50);
  border-radius: 10px;
}

.article-meta i { color: var(--brand-primary); margin-right: 4px; }

/* -------------------------------------------------------
   GALLERY
------------------------------------------------------- */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.gallery-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1.25rem;
  border: 1.5px solid var(--brand-gray-200);
  border-radius: 100px;
  background: #fff;
  color: var(--brand-gray-600);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.gallery-tab:hover,
.gallery-tab--active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid var(--brand-gray-200);
  transition: transform 0.25s, box-shadow 0.25s;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.gallery-grid img,
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* -------------------------------------------------------
   CONTACT PAGE
------------------------------------------------------- */
.contact-page .contact-info li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.contact-page .contact-info i { color: var(--brand-primary); width: 20px; }
