/* style.css — RCHE theme overrides and utilities */

/* Color palette */
:root{
  --brand-500: #0b5ed7; /* primary blue */
  --brand-600: #094bb5;
  --accent: #ff8c00;    /* orange accent */
  --muted: #6c757d;
  --card-bg: #ffffff;
  --max-width: 1200px;
  --radius-lg: 12px;
}

/* Base typography */
html,body{
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial;
  color: #222;
  background: #f7f9fb;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Headings */
h1,h2,h3,h4,h5{
  font-family: "Noto Serif", serif;
  color: #0b3b80;
}



/* Container tweaks */
.container {
  max-width: var(--max-width);
}

/* Top header */
.bg-primary {
  background: linear-gradient(90deg,var(--brand-500),var(--brand-600));
  color: #fff !important;
  font-weight:600;
}

/* Navbar */
.navbar-brand {
  font-weight:700;
  letter-spacing:0.3px;
}
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255,255,255,0.92);
}
.navbar-dark .navbar-nav .nav-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Cards & panels */
.card {
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(22,28,37,0.05);
  border: 0;
}

/* Buttons */
.btn-primary {
  background: var(--brand-500);
  border-color: var(--brand-500);
  box-shadow: none;
}
.btn-primary:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
}

/* Carousel */
.carousel-item img { height:420px; object-fit:cover; border-radius:8px; }

/* Announcements list */
.list-group-item { border-radius:8px; margin-bottom:8px; }
.list-group-item .small { color:var(--muted); }

/* Quick links */
.btn-outline-primary {
  border-radius:8px;
}

/* Footer */
.site-footer { font-size:0.95rem; }

/* Responsive: reduce hero on small screens */
@media (max-width:768px) {
  .carousel-item img { height:220px; }
  .navbar { padding:0.4rem 1rem; }
}

/* Utility */
.text-brand { color: var(--brand-500); }
.lead-quiet { color: #5b6b78; font-size:0.98rem; }

/* Hero overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(11,78,215,0.55) 0%, rgba(11,78,215,0.25) 40%, rgba(0,0,0,0.0) 80%);
  padding: 48px 0;
  display: flex;
  align-items: center;
}
.hero-content h1, .hero-content p { text-shadow: 0 6px 24px rgba(0,0,0,0.35); }
.hero-content .btn { border-radius: 8px; }

/* Make overlay lighter on small screens */
@media (max-width: 767px) {
  .hero-overlay { padding: 18px 0; background: linear-gradient(180deg, rgba(11,78,215,0.6), rgba(0,0,0,0.0)); }
  .hero-content h1 { font-size: 1.4rem; }
}
/* HERO and header */
.top-utility-bar{background:#073f5f; color:#fff}
.site-header{background:#004a72;color:#fff}
.site-title{font-size:1.45rem;margin:0}
.hero-img{height:520px;object-fit:cover}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg, rgba(3,57,98,0.7) 0%, rgba(3,57,98,0.25) 50%, rgba(0,0,0,0) 100%);display:flex;align-items:center}
.hero-content{max-width:700px}
.feature-tile{border-radius:8px;background:#ffffff;box-shadow:0 6px 20px rgba(0,0,0,0.06)}
.feature-orange{background:#f7b733;color:#1f1f1f}
.feature-blue{background:#71b9e0;color:#fff}
.feature-red{background:#f36b21;color:#fff}
.feature-yellow{background:#c5e448;color:#fff}
.lead-quiet{color:#58616a}
.stats-section{background:#e87d0c}
.prog-card{min-width:140px;border-radius:12px;background:#fff;padding:8px;text-align:center}
.programmes-slider .card{border-radius:10px}
.svc-thumb{width:96px;height:96px;background:#ffffff;box-shadow:0 10px 20px rgba(0,0,0,0.08);border-radius:50%}

.toggle-arrow {
    transition: transform 0.25s ease;
}

.toggle-arrow:not(.collapsed) {
    transform: rotate(180deg); /* ▼ flips to ▲ */
}

/* programmes cards */
.programmes-list { gap: 18px; }
.prog-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(10,20,30,0.06);
  padding: 14px;
  text-align: center;
  display: inline-block;
  vertical-align: top;
}
.prog-icon-wrap {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f6f8fb);
  overflow: hidden;
}
.prog-icon {
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}

/* course name: clamp to two lines */
.prog-name {
  font-size: 0.95rem;
  line-height: 1.2;
  height: 2.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* responsiveness: smaller on narrow screens */
@media (max-width: 767px) {
  .prog-card { width: 48%; }
  .prog-icon-wrap { width: 110px; height: 110px; }
}
@media (max-width: 480px) {
  .prog-card { width: 100%; }
  .prog-icon-wrap { width: 96px; height: 96px; }
}

.programmes-slider .card { border-radius: 12px; box-shadow: 0 8px 20px rgba(12,18,28,0.06); transition: transform .12s ease; }
.programmes-slider .card:hover { transform: translateY(-6px); }
.programmes-slider img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

