@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@300;400;500;600;700;800;900&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
  --paletteColor1: #fec32d;
  --paletteColor2: #fee093;
  --paletteColor3: #5a5a5a;
  --paletteColor4: #20201e;
  --paletteColor5: #1aa6e4;
  --paletteColor6: #f6f6f6;
  --paletteColor7: #73c9ee;
  --paletteColor8: #ffffff;
  --font-heading: 'Lexend Deca', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --container: 1290px;
  --radius: 24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--paletteColor4); background: var(--paletteColor1); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.3s; }
ul { list-style: none; }

.ct-container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.ct-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 9999;
  background: transparent; transition: background 0.4s, box-shadow 0.4s;
}
.ct-header.scrolled { background: var(--paletteColor1); box-shadow: 0 2px 20px rgba(0,0,0,0.1); }

.ct-header-inner {
  display: flex; align-items: center; justify-content: space-between; height: 80px;
}

.site-logo-container img { height: 50px; transition: opacity 0.3s; }
.site-logo-container .default-logo { display: block; }
.site-logo-container .sticky-logo { display: none; }
.ct-header.scrolled .default-logo { display: none; }
.ct-header.scrolled .sticky-logo { display: block; }

.header-menu { display: flex; gap: 0; align-items: center; }
.header-menu > li { position: relative; }
.header-menu > li > a {
  display: flex; align-items: center; gap: 6px; padding: 10px 16px;
  font-family: var(--font-heading); font-size: 14px; font-weight: 500;
  color: var(--paletteColor4); transition: color 0.3s;
}
.header-menu > li > a:hover { color: var(--paletteColor5); }
.header-menu > li > a i { font-size: 16px; }

.sub-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 260px;
  background: var(--paletteColor8); border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  padding: 8px 0; z-index: 100;
}
li:hover > .sub-menu { display: block; animation: fadeDown 0.25s ease; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.sub-menu a {
  display: block; padding: 10px 20px; font-size: 14px; color: var(--paletteColor3);
  transition: all 0.2s;
}
.sub-menu a:hover { color: var(--paletteColor5); padding-left: 26px; }

.ct-header-search { color: var(--paletteColor4); padding: 10px; cursor: pointer; }
.ct-header-search svg { width: 18px; height: 18px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--paletteColor4); margin: 6px 0; transition: all 0.3s; border-radius: 2px; }

/* ===== HERO SLIDER ===== */
.hero-slider {
  margin-top: 80px; position: relative; height: 700px; overflow: hidden;
  background: var(--paletteColor1);
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease;
  display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; }

.hero-slide-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container); margin: 0 auto; padding: 0 40px; width: 100%;
}
.hero-text { flex: 1; }
.hero-text h2 { font-family: var(--font-body); font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; color: var(--paletteColor4); line-height: 1.1; margin-bottom: 15px; }
.hero-text p { font-size: 18px; font-weight: 700; color: var(--paletteColor3); margin-bottom: 25px; }
.hero-text .btn { display: inline-block; font-family: var(--font-body); font-size: 18px; font-weight: 700; color: var(--paletteColor3); cursor: pointer; }
.hero-text .btn:hover { color: var(--paletteColor5); }
.hero-image {
  width: 360px; height: 360px; border-radius: 20px; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

.hero-nav { position: absolute; bottom: 50px; left: 120px; display: flex; gap: 20px; z-index: 2; }
.hero-nav button {
  background: none; border: none; font-size: 28px; color: var(--paletteColor3); cursor: pointer;
  transition: color 0.3s;
}
.hero-nav button:hover { color: var(--paletteColor5); }

/* ===== DARK SECTION ===== */
.section-dark { background: var(--paletteColor4); padding: 60px 0; }
.section-dark h3 { font-family: var(--font-body); font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--paletteColor5); letter-spacing: 1px; margin-bottom: 8px; }
.section-dark h2 { font-family: var(--font-body); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--paletteColor8); line-height: 1.3; margin-bottom: 15px; }
.section-dark p { font-size: 15px; color: var(--paletteColor6); margin-bottom: 20px; }

/* ===== CARD GRID ===== */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px; max-width: var(--container); margin: 0 auto; padding: 0 24px 80px;
}
.card {
  border-radius: var(--radius); overflow: hidden; padding: 30px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
.card-blue { background: var(--paletteColor5); color: var(--paletteColor8); }
.card-white { background: var(--paletteColor8); color: var(--paletteColor4); }
.card-yellow { background: var(--paletteColor1); color: var(--paletteColor4); }

.card h3 { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 14px; line-height: 1.7; margin-bottom: 15px; }
.card .card-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px;
}
.card-blue .card-link { color: var(--paletteColor8); }
.card-white .card-link { color: var(--paletteColor5); }

.card-img { border-radius: 16px; overflow: hidden; margin-bottom: 20px; }
.card-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ===== PROGRAMME CATEGORIES ===== */
.programme-cats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; padding: 40px 0;
}
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/10; cursor: pointer;
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card .cat-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  display: flex; align-items: flex-end; padding: 25px;
}
.cat-card .cat-label {
  font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--paletteColor8);
}

/* ===== PAGE HERO ===== */
.page-hero {
  margin-top: 80px; padding: 100px 0 60px; background: var(--paletteColor1);
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; color: var(--paletteColor4);
}

/* ===== PAGE CONTENT ===== */
.page-content {
  max-width: 800px; margin: 0 auto; padding: 50px 24px;
  background: var(--paletteColor8); border-radius: var(--radius) var(--radius) 0 0;
  position: relative; margin-top: -30px;
}
.page-content h2 { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; margin-bottom: 20px; color: var(--paletteColor4); }
.page-content p { font-size: 15px; color: var(--paletteColor3); line-height: 1.8; margin-bottom: 20px; }
.page-content img { border-radius: 16px; margin: 20px 0; }

/* Timeline */
.timeline { display: flex; gap: 30px; flex-wrap: wrap; margin: 40px 0; }
.timeline-item { flex: 1; min-width: 200px; text-align: center; padding: 25px; background: var(--paletteColor1); border-radius: var(--radius); }
.timeline-item .year { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--paletteColor5); }
.timeline-item p { font-size: 13px; margin-top: 8px; color: var(--paletteColor4); }

/* Wall / Blog */
.wall-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin: 30px 0; }
.wall-post { background: var(--paletteColor8); border-radius: var(--radius); padding: 30px; }
.wall-post .post-date { font-size: 12px; color: var(--paletteColor5); font-weight: 600; margin-bottom: 8px; }
.wall-post h3 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 10px; }
.wall-post p { font-size: 14px; color: var(--paletteColor3); }
.wall-post .read-more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 13px; color: var(--paletteColor5); }

/* Contact form */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-row { display: flex; gap: 15px; margin-bottom: 15px; }
.form-row > * { flex: 1; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--paletteColor4); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 16px; border: 2px solid #e0e0e0; border-radius: 12px;
  font-family: var(--font-body); font-size: 14px; transition: border-color 0.3s;
  background: var(--paletteColor8);
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--paletteColor5); outline: none; }
.form-field textarea { min-height: 120px; resize: vertical; }
.btn-submit {
  display: inline-block; padding: 14px 40px; background: var(--paletteColor5);
  color: var(--paletteColor8); font-family: var(--font-heading); font-size: 14px;
  font-weight: 600; border: none; border-radius: 50px; cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.btn-submit:hover { background: #1590c8; transform: translateY(-2px); }

/* Partners grid */
.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px; margin: 30px 0; }
.partner-logo { background: var(--paletteColor8); border-radius: 16px; padding: 20px; display: flex; align-items: center; justify-content: center; aspect-ratio: 3/2; }
.partner-logo img { max-height: 60px; max-width: 100%; object-fit: contain; }

/* ===== FOOTER ===== */
.site-footer { background: var(--paletteColor4); padding: 50px 0 30px; margin-top: 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer-logos { display: flex; align-items: center; gap: 30px; }
.footer-logos img { height: 50px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--paletteColor6); }
.footer-links a:hover { color: var(--paletteColor5); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1);
  color: var(--paletteColor8); font-size: 14px; transition: background 0.3s;
}
.footer-social a:hover { background: var(--paletteColor5); }
.footer-copy { text-align: center; padding-top: 30px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12px; color: rgba(255,255,255,0.4); }

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none; position: fixed; top: 80px; left: 0; width: 100%; height: calc(100vh - 80px);
  background: var(--paletteColor1); z-index: 9998; overflow-y: auto; padding: 20px 0;
}
.mobile-nav.active { display: block; }
.mobile-nav a { display: block; padding: 14px 30px; font-family: var(--font-heading); font-size: 15px; font-weight: 500; color: var(--paletteColor4); border-bottom: 1px solid rgba(0,0,0,0.06); }
.mobile-nav a:hover { color: var(--paletteColor5); }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px;
  background: var(--paletteColor5); color: var(--paletteColor8); border: none;
  border-radius: 50%; font-size: 18px; cursor: pointer; opacity: 0; visibility: hidden;
  transition: all 0.3s; z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: #1590c8; transform: translateY(-3px); }

/* ===== FILTER TAGS ===== */
.filter-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 30px; }
.filter-tag {
  padding: 8px 18px; border-radius: 50px; font-size: 13px; font-weight: 600;
  background: var(--paletteColor8); color: var(--paletteColor4); border: 2px solid transparent;
  cursor: pointer; transition: all 0.3s;
}
.filter-tag:hover, .filter-tag.active { border-color: var(--paletteColor5); color: var(--paletteColor5); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .header-menu { display: none; }
  .nav-toggle { display: block; }
  .hero-slider { height: auto; min-height: 500px; }
  .hero-slide-inner { flex-direction: column; text-align: center; padding: 60px 24px; gap: 30px; }
  .hero-image { width: 250px; height: 250px; }
  .hero-nav { left: 50%; transform: translateX(-50%); bottom: 20px; }
}
@media (max-width: 768px) {
  .hero-slider { min-height: 400px; }
  .hero-image { width: 200px; height: 200px; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .timeline { flex-direction: column; }
  .form-row { flex-direction: column; }
}
