@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --curious-blue: #00A8E8;
  --curious-blue-dark: #0087ba;
  --apple: #4caf50;
  --selective-yellow: #f5a623;
  --pelorous: #38b2ac;
  --ct-grey: #2d3748;
}
body { font-family: 'Poppins', sans-serif; color: #1a202c; }
a { text-decoration: none; color: inherit; }

/* Navbar */
.ct-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: white; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0.75rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.ct-navbar .logo { height: 48px; }
.ct-navbar nav { display: flex; align-items: center; gap: 1.5rem; }
.ct-navbar nav a { font-size: 0.95rem; color: #4a5568; transition: color 0.2s; }
.ct-navbar nav a:hover { color: var(--curious-blue); }
.ct-navbar .btn-login {
  padding: 0.5rem 1.25rem; border: 2px solid var(--curious-blue);
  color: var(--curious-blue); border-radius: 9999px; font-weight: 600;
  transition: all 0.2s; font-size: 0.9rem;
}
.ct-navbar .btn-login:hover { background: var(--curious-blue); color: white; }
.ct-navbar .btn-daftar {
  padding: 0.5rem 1.25rem; background: var(--curious-blue);
  color: white; border-radius: 9999px; font-weight: 600;
  transition: all 0.2s; font-size: 0.9rem;
}
.ct-navbar .btn-daftar:hover { background: var(--curious-blue-dark); }
.hamburger { display: none; cursor: pointer; }
@media (max-width: 768px) {
  .ct-navbar nav.desktop-nav { display: none; }
  .hamburger { display: block; }
}

/* Demo badge */
.demo-badge {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  background: #f6ad55; color: #1a202c;
  padding: 0.5rem 1rem; border-radius: 9999px;
  font-size: 0.8rem; font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Hero */
.hero-section {
  min-height: 100vh; display: flex; align-items: center;
  padding: 7rem 2rem 3rem; gap: 2rem;
  max-width: 1280px; margin: 0 auto;
}
.hero-text { flex: 1; }
.hero-text h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.3; margin-bottom: 1.5rem; }
.hero-text h1 span { color: #e53e3e; }
.hero-text p { color: #718096; font-size: 0.95rem; line-height: 1.8; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary { padding: 0.75rem 2.5rem; background: var(--curious-blue); color: white; border-radius: 9999px; font-weight: 600; border: 2px solid var(--curious-blue); cursor: pointer; transition: all 0.2s; display: inline-block; }
.btn-primary:hover { background: var(--curious-blue-dark); }
.btn-outline { padding: 0.75rem 2.5rem; background: transparent; color: var(--curious-blue); border-radius: 9999px; font-weight: 600; border: 2px solid var(--curious-blue); cursor: pointer; transition: all 0.2s; display: inline-block; }
.btn-outline:hover { background: var(--curious-blue); color: white; }
.hero-img { flex: 0 0 40%; display: flex; align-items: center; justify-content: center; }
.hero-img img { max-width: 100%; }

/* Sections */
section { padding: 4rem 2rem; }
.section-container { max-width: 1280px; margin: 0 auto; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: #2d3748; text-align: center; margin-bottom: 3rem; }
.section-title span { color: #DA5957; }

/* Cards */
.card { background: white; border-radius: 1rem; padding: 1.5rem; box-shadow: 0 4px 16px rgba(0,0,0,0.08); transition: transform 0.2s; }
.card:hover { transform: translateY(-4px); }

/* Packet cards */
.packet-grid { display: flex; gap: 1.5rem; overflow-x: auto; padding: 1rem 0; }
.packet-card {
  min-width: 280px; flex: 1; border-radius: 1rem;
  padding: 2rem; box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border: 2px solid #bee3f8; background: white;
}
.packet-card.popular { background: var(--curious-blue); color: white; }
.packet-card.red { background: #CF514E; color: white; }
.packet-card .price { font-size: 2rem; font-weight: 700; color: #3182ce; margin: 1rem 0; }
.packet-card.popular .price, .packet-card.red .price { color: white; }
.packet-card .badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 0.5rem; background: #bee3f8; color: #2b6cb0; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.5rem; }
.packet-card .name-badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 0.5rem; background: #e2e8f0; color: #1a202c; font-size: 0.85rem; font-weight: 600; }
.benefit-row { display: flex; gap: 0.5rem; align-items: flex-start; margin-bottom: 0.4rem; font-size: 0.875rem; }
.benefit-row .check { color: #48bb78; font-weight: 700; }
.benefit-row .x { color: #fc8181; font-weight: 700; }
.btn-beli { width: 100%; padding: 0.75rem; background: #1a202c; color: white; border: none; border-radius: 9999px; font-weight: 600; cursor: pointer; margin-top: 1.5rem; transition: background 0.2s; }
.btn-beli:hover { background: #2d3748; }
.packet-card.popular .btn-beli, .packet-card.red .btn-beli { background: #f6ad55; color: #1a202c; }

/* FAQ */
.faq-item { border: 2px solid #e2e8f0; border-radius: 0.5rem; margin-bottom: 0.5rem; overflow: hidden; }
.faq-question { padding: 1rem 1.5rem; font-size: 1rem; font-weight: 500; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: white; transition: background 0.2s; }
.faq-question:hover, .faq-item.open .faq-question { background: var(--curious-blue); color: white; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: var(--curious-blue); color: white; }
.faq-item.open .faq-answer { max-height: 200px; padding: 0.5rem 1.5rem 1rem; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 1024px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  border-radius: 1.5rem; padding: 2rem 1.5rem;
  color: white; position: relative; overflow: hidden;
  min-height: 200px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform 0.3s;
}
.feature-card:hover { transform: scale(1.02); }
.feature-card .overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.5), transparent); }
.feature-card img { position: absolute; right: -10px; bottom: 0; width: 45%; transition: transform 0.3s; }
.feature-card:hover img { transform: scale(1.1); }
.feature-card .content { position: relative; z-index: 1; width: 60%; }
.feature-card h3 { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.8rem; opacity: 0.9; }

/* Auth pages */
.auth-wrapper { display: flex; min-height: 100vh; }
.auth-form-side { flex: 0 0 60%; padding: 3rem 2rem 3rem 4rem; display: flex; flex-direction: column; }
.auth-illus-side { flex: 0 0 40%; background: #000842; border-radius: 1rem; margin: 1.5rem; display: flex; align-items: start; justify-content: center; overflow: hidden; }
@media (max-width: 1024px) { .auth-illus-side { display: none; } .auth-form-side { flex: 1; padding: 2rem; } }
.auth-form-side .logo { height: 64px; margin-bottom: 1.5rem; }
.auth-form-side h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.input-group { display: flex; align-items: center; border: 1.5px solid #e2e8f0; border-radius: 0.5rem; padding: 0.75rem 1rem; gap: 0.5rem; margin-top: 0.5rem; }
.input-group input { border: none; outline: none; flex: 1; font-family: 'Poppins', sans-serif; font-size: 0.95rem; }
.auth-submit { width: 100%; padding: 0.85rem; background: var(--curious-blue); color: white; border: none; border-radius: 9999px; font-size: 1rem; font-weight: 600; cursor: pointer; margin-top: 1rem; transition: background 0.2s; }
.auth-submit:hover { background: var(--curious-blue-dark); }

/* Dashboard */
.dash-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: white; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0.75rem 2rem; display: flex; justify-content: space-between; align-items: center;
}
.dash-body { padding-top: 80px; min-height: 100vh; background: white; }
.dash-content { max-width: 1280px; margin: 0 auto; padding: 2rem; }
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 768px) { .menu-grid { grid-template-columns: repeat(3, 1fr); } }
.menu-item { background: white; border-radius: 0.75rem; padding: 1rem 1.5rem; box-shadow: 0 2px 10px rgba(0,0,0,0.07); display: flex; align-items: center; gap: 1rem; cursor: pointer; transition: background 0.15s; }
.menu-item:hover { background: #f7fafc; }
.menu-item img { width: 56px; height: 56px; }
.menu-item h4 { font-size: 0.95rem; font-weight: 600; }
.menu-item p { color: var(--curious-blue); font-size: 0.85rem; font-weight: 500; }
.promo-banner { background: linear-gradient(135deg, #0069b9, #00A8E8); border-radius: 1rem; padding: 2.5rem 2rem; display: flex; justify-content: space-between; align-items: center; color: white; margin-top: 3rem; }
.promo-banner h4 { font-size: 1.5rem; font-weight: 700; max-width: 60%; margin-bottom: 1.5rem; }
.promo-banner img { width: 220px; }
.exam-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
@media (min-width: 768px) { .exam-grid { grid-template-columns: repeat(3, 1fr); } }
.exam-card { background: white; border-radius: 1rem; padding: 2rem 1rem; box-shadow: 0 4px 16px rgba(0,0,0,0.08); display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.exam-card img { max-height: 140px; object-fit: contain; }
.exam-card h3 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; }
.btn-mulai { padding: 0.5rem 2rem; background: var(--curious-blue); color: white; border: none; border-radius: 9999px; font-weight: 600; cursor: pointer; font-size: 0.9rem; }

/* Footer */
.ct-footer { background: #2d3748; color: white; padding: 4rem 2rem 2rem; }
.footer-inner { max-width: 1024px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 3rem; justify-content: space-between; }
.footer-logo { height: 48px; filter: brightness(0) invert(1); }
.footer-contact { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; }
.footer-contact a { color: #cbd5e0; text-decoration: underline; }
.footer-nav h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: #a0aec0; margin-bottom: 1rem; }
.footer-nav a { display: block; color: #cbd5e0; margin-bottom: 0.4rem; font-size: 0.9rem; transition: color 0.2s; }
.footer-nav a:hover { color: white; }
.footer-bottom { text-align: center; color: #a0aec0; font-size: 0.85rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #4a5568; }

/* Breadcrumb */
.breadcrumb { display: flex; gap: 0.5rem; font-size: 0.875rem; color: #718096; margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--curious-blue); }
.breadcrumb span::before { content: '/'; margin-right: 0.5rem; }

/* Article card */
.article-card { background: white; border-radius: 0.75rem; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: transform 0.2s; }
.article-card:hover { transform: translateY(-4px); }
.article-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #e2e8f0; }
.article-card .article-body { padding: 1rem; }
.article-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.article-card p { font-size: 0.85rem; color: #718096; line-height: 1.6; }
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 1024px) { .article-grid { grid-template-columns: repeat(3, 1fr); } }

/* CTA banner */
.cta-banner { background: var(--curious-blue); border-radius: 1.5rem; padding: 4rem 2rem; text-align: center; color: white; position: relative; overflow: hidden; }
.cta-banner h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem; }
.cta-banner p { opacity: 0.85; margin-bottom: 2rem; }
.cta-banner .btn-white { padding: 0.75rem 2rem; background: white; color: var(--curious-blue); border: none; border-radius: 9999px; font-weight: 700; cursor: pointer; transition: all 0.2s; display: inline-block; }
.cta-banner .btn-white:hover { background: #ebf8ff; }

/* Profile */
.profile-tabs { display: flex; gap: 0; border-bottom: 2px solid #e2e8f0; margin-bottom: 2rem; }
.profile-tab { padding: 0.75rem 1.5rem; font-weight: 500; cursor: pointer; color: #718096; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.profile-tab.active { color: var(--curious-blue); border-bottom-color: var(--curious-blue); }

/* Materi type cards */
.type-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 768px) { .type-grid { grid-template-columns: repeat(2, 1fr); } }
.type-card { background: white; border-radius: 1rem; padding: 1rem; box-shadow: 0 4px 16px rgba(0,0,0,0.07); display: flex; gap: 1rem; align-items: center; cursor: pointer; transition: background 0.15s; }
.type-card:hover { background: #f7fafc; }
.type-card img { width: 100px; height: 100px; object-fit: contain; }
.type-card h4 { font-size: 1.1rem; font-weight: 700; text-transform: uppercase; margin-bottom: 0.4rem; }
.type-card p { color: var(--curious-blue); font-size: 0.85rem; font-weight: 500; }

/* Tryout type grid */
.tryout-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1rem; }
@media (min-width: 640px) { .tryout-grid { grid-template-columns: repeat(2, 1fr); } }
