/* ==============================
   CITA CERDAS - Main Stylesheet
   ============================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0ea5a0;
  --primary-dark: #0c8f8a;
  --primary-light: #e6f7f7;
  --secondary: #1a3a5c;
  --gold: #f59e0b;
  --gold-light: #fef3c7;
  --white: #ffffff;
  --bg: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --font: 'Plus Jakarta Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.bg-light { background: var(--bg); }
.mt-4 { margin-top: 32px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px; border-radius: var(--radius);
  font-family: var(--font); font-size: 15px; font-weight: 600;
  border: 2px solid transparent; cursor: pointer;
  transition: all 0.2s ease; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-white { background: var(--white); color: var(--primary); border-color: var(--white); }
.btn-white:hover { background: var(--primary-light); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn-danger { background: #ef4444; color: #fff; border-color: #ef4444; }
.btn-danger:hover { background: #dc2626; border-color: #dc2626; }
.btn-full { width: 100%; justify-content: center; }

/* ---- NAVBAR ---- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-container { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { height: 36px; width: 36px; object-fit: contain; }
.logo-text { font-size: 18px; color: var(--secondary); }
.logo-text strong { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link { padding: 8px 16px; border-radius: 8px; color: var(--text); font-weight: 500; transition: all 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-light); }
.nav-cta { margin-left: 8px; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* ---- HERO ---- */
.hero {
  position: relative; min-height: 90vh; display: flex; align-items: center;
  overflow: hidden; background: linear-gradient(135deg, #f0fafa 0%, #e8f8f7 50%, #f0fbf0 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(14,165,160,0.1) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 2; max-width: 680px; padding: 80px 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-light); color: var(--primary);
  border: 1px solid rgba(14,165,160,0.3); border-radius: 100px;
  padding: 8px 20px; font-size: 14px; font-weight: 600; margin-bottom: 24px;
}
.hero-title { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; color: var(--secondary); margin-bottom: 20px; }
.hero-desc { font-size: 18px; color: var(--text-muted); margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-size: 28px; font-weight: 800; color: var(--primary); }
.stat span { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.hero-shapes { position: absolute; right: 5%; top: 10%; z-index: 1; }
.shape-symbol { display: block; font-size: clamp(60px, 8vw, 120px); color: rgba(14,165,160,0.08); line-height: 1; animation: float 4s ease-in-out infinite; }
.shape-symbol:nth-child(2) { margin-left: 80px; animation-delay: 1s; }
.shape-symbol:nth-child(3) { animation-delay: 2s; }
.shape-symbol:nth-child(4) { margin-left: 60px; animation-delay: 0.5s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-15px)} }

/* ---- SECTIONS ---- */
.section { padding: 80px 0; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.section-badge {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  border-radius: 100px; padding: 6px 18px; font-size: 13px; font-weight: 700;
  margin-bottom: 12px; letter-spacing: 0.05em; text-transform: uppercase;
}
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; color: var(--secondary); margin-bottom: 16px; }
.section-desc { color: var(--text-muted); font-size: 17px; }

/* ---- ABOUT ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 2rem; font-weight: 800; color: var(--secondary); margin: 12px 0 16px; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; }
.about-text .btn { margin-top: 8px; }
.about-image { position: relative; }
.about-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; }
.about-card {
  position: absolute; bottom: -20px; left: -20px;
  background: var(--white); border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
}
.about-card-icon { font-size: 36px; }

/* ---- PROGRAMS ---- */
.programs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.program-card {
  padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--white); transition: all 0.3s; cursor: default;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.program-icon { font-size: 40px; margin-bottom: 16px; }
.program-card h3 { font-size: 18px; font-weight: 700; color: var(--secondary); margin-bottom: 10px; }
.program-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.program-link { color: var(--primary); font-weight: 600; font-size: 14px; }
.card-blue { border-top: 4px solid #3b82f6; }
.card-teal { border-top: 4px solid var(--primary); }
.card-gold { border-top: 4px solid var(--gold); }
.card-green { border-top: 4px solid #22c55e; }

/* ---- FEATURES ---- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.feature-card { padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--white); transition: all 0.3s; }
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.feature-icon { font-size: 36px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 700; color: var(--secondary); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); }

/* ---- BLOG CARDS ---- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.blog-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; transition: all 0.3s; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.blog-card-img-link { display: block; }
.blog-card-img {
  height: 220px; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  background-size: cover; background-position: center; position: relative;
}
.blog-category-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary); color: #fff; border-radius: 100px;
  padding: 4px 14px; font-size: 12px; font-weight: 700;
}
.blog-card-body { padding: 24px; }
.blog-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-muted); margin-bottom: 12px; flex-wrap: wrap; }
.blog-title { font-size: 18px; font-weight: 700; color: var(--secondary); margin-bottom: 12px; line-height: 1.4; }
.blog-title a { color: inherit; }
.blog-title a:hover { color: var(--primary); }
.blog-excerpt { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-read-more { color: var(--primary); font-weight: 600; font-size: 14px; }

/* ---- CTA SECTION ---- */
.section-cta { padding: 60px 0; }
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-lg); padding: 60px 48px; text-align: center; color: var(--white);
}
.cta-box h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 16px; }
.cta-box p { font-size: 17px; opacity: 0.9; margin-bottom: 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- PAGE HERO ---- */
.page-hero {
  background: linear-gradient(135deg, #f0fafa 0%, #e8f8f7 100%);
  padding: 60px 0; text-align: center; border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--secondary); margin-bottom: 16px; }
.page-hero p { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.page-hero.small { padding: 40px 0; }

/* ---- BREADCRUMB ---- */
.breadcrumb-bar { background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--text-muted); }

/* ---- BLOG LIST HEADER ---- */
.blog-list-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.blog-list-header h1 { font-size: 2rem; font-weight: 800; color: var(--secondary); margin-bottom: 8px; }
.category-filter { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 8px; }
.cat-btn { padding: 8px 18px; border-radius: 100px; border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--text-muted); background: var(--white); cursor: pointer; transition: all 0.2s; }
.cat-btn:hover, .cat-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ---- PAGINATION ---- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.page-btn { padding: 10px 16px; border-radius: 8px; border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--text); background: var(--white); cursor: pointer; transition: all 0.2s; }
.page-btn:hover, .page-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ---- BLOG POST ---- */
.post-container { padding: 40px 0 80px; }
.post-layout { max-width: 800px; }
.post-header { margin-bottom: 32px; }
.post-category { display: inline-block; background: var(--primary-light); color: var(--primary); border-radius: 100px; padding: 6px 18px; font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.post-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: var(--secondary); line-height: 1.25; margin-bottom: 16px; }
.post-meta { display: flex; gap: 20px; font-size: 14px; color: var(--text-muted); flex-wrap: wrap; }
.post-featured-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px; }
.post-featured-img img { width: 100%; height: auto; display: block; }
.post-content { font-size: 17px; line-height: 1.8; color: var(--text); }
.post-content h2 { font-size: 1.6rem; font-weight: 800; color: var(--secondary); margin: 32px 0 16px; }
.post-content h3 { font-size: 1.3rem; font-weight: 700; color: var(--secondary); margin: 24px 0 12px; }
.post-content p { margin-bottom: 20px; }
.post-content ul, .post-content ol { margin: 16px 0 20px 24px; }
.post-content li { margin-bottom: 8px; }
.post-content strong { font-weight: 700; color: var(--secondary); }
.post-content a { color: var(--primary); text-decoration: underline; }
.post-footer { display: flex; gap: 16px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); flex-wrap: wrap; }

/* ---- ABOUT DETAIL ---- */
.about-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-detail-grid h2 { font-size: 1.8rem; font-weight: 800; color: var(--secondary); margin-bottom: 16px; }
.about-detail-grid p { color: var(--text-muted); margin-bottom: 16px; }
.about-detail-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.vision-mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.vision-card, .mission-card { background: var(--white); border-radius: var(--radius-lg); padding: 36px; border: 1px solid var(--border); }
.vision-card { border-top: 4px solid var(--primary); }
.mission-card { border-top: 4px solid var(--gold); }
.vm-icon { font-size: 40px; margin-bottom: 16px; }
.vision-card h3, .mission-card h3 { font-size: 1.4rem; font-weight: 800; color: var(--secondary); margin-bottom: 12px; }
.mission-card ul { margin-left: 20px; list-style: disc; }
.mission-card li { color: var(--text-muted); margin-bottom: 8px; }
.programs-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.program-detail-card { background: var(--white); border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; }
.stat-card { background: var(--white); border-radius: var(--radius-lg); padding: 32px 24px; border: 1px solid var(--border); }
.stat-value { display: block; font-size: 2.4rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.stat-label { font-size: 15px; color: var(--text-muted); font-weight: 500; }

/* ---- EMPTY STATE ---- */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 60px; margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-size: 1.4rem; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); }

/* ---- ALERTS ---- */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 500; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert ul { margin-left: 16px; list-style: disc; margin-top: 4px; }

/* ---- FOOTER ---- */
.footer { background: var(--secondary); color: rgba(255,255,255,0.8); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .footer-logo span { font-size: 18px; color: var(--white); }
.footer-brand .footer-logo strong { color: var(--primary); }
.footer-tagline { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.social-links { display: flex; gap: 12px; }
.social-link { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 14px; transition: background 0.2s; }
.social-link:hover { background: var(--primary); color: var(--white); }
.footer-col h4 { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul li { margin-bottom: 10px; font-size: 14px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { font-size: 14px; }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: rgba(255,255,255,0.6); font-size: 13px; }
.footer-bottom-links a:hover { color: var(--white); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); padding: 20px; flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 16px; border-radius: var(--radius); }
  .nav-cta { justify-content: center; }
  .hero { min-height: auto; padding: 40px 0; }
  .hero-shapes { display: none; }
  .hero-content { padding: 40px 0; }
  .hero-stats { gap: 24px; }
  .about-grid, .about-detail-grid { grid-template-columns: 1fr; }
  .about-image { display: none; }
  .vision-mission-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-list-header { flex-direction: column; }
  .cta-box { padding: 40px 24px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }
}
