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

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --accent: #f97015;
  --accent-foreground: #ffffff;
  --background: #ffffff;
  --foreground: #0f172a;
  --primary: #1e293b;
  --primary-foreground: #ffffff;
  --secondary: #f1f5f9;
  --secondary-foreground: #475569;
  --muted: #f8fafc;
  --muted-foreground: #94a3b8;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --border: #e2e8f0;
  --radius: 1rem;
  --shadow-card: 0 1px 3px 0 rgba(0,0,0,0.06), 0 1px 2px -1px rgba(0,0,0,0.1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; line-height: 1.3; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.hero-gradient {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e293b 100%);
}
.accent-gradient {
  background: linear-gradient(135deg, #f97015 0%, #f97316 100%);
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--primary); }
.nav-logo-icon { width: 32px; height: 32px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.875rem; font-weight: 700; }
.nav-logo-img { height: 42px; width: auto; display: block; }
.footer-logo-img { height: 42px; width: auto; display: block; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 12px; border-radius: 8px; font-size: 0.875rem; font-weight: 500;
  color: var(--secondary-foreground); transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); background: rgba(249,112,21,0.05); }
.nav-toggle { display: none; padding: 8px; border-radius: 8px; background: none; border: none; cursor: pointer; color: var(--foreground); }
.nav-mobile { display: none; }
.nav-mobile.open { display: block; border-top: 1px solid var(--border); background: white; }
.nav-mobile a {
  display: block; padding: 10px 16px; border-radius: 8px; font-size: 0.875rem; font-weight: 500;
  color: var(--secondary-foreground); transition: color 0.2s;
}
.nav-mobile a:hover, .nav-mobile a.active { color: var(--accent); }

/* Hero */
.hero { color: var(--primary-foreground); padding: 6rem 0; text-align: center; }
.hero h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.125rem; color: rgba(255,255,255,0.8); max-width: 720px; margin: 0 auto 2rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); font-weight: 500; transition: all 0.2s; cursor: pointer; border: none; font-size: 0.95rem; }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: #e06000; }
.btn-outline-light { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: white; }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--foreground); }
.btn-outline:hover { background: var(--secondary); }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

.section { padding: 5rem 0; }
.section-alt { background: rgba(241,245,249,0.5); }
.section-dark { background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e293b 100%); color: var(--primary-foreground); }
.section-label { display: inline-block; color: var(--accent); font-weight: 600; margin-bottom: 1rem; font-size: 0.9rem; }
.section-title { font-size: 1.875rem; font-weight: 700; margin-bottom: 1rem; }
.section-desc { color: var(--muted-foreground); font-size: 1.125rem; max-width: 720px; margin: 0 auto 3rem; text-align: center; }

/* Grids */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 3rem; }

/* Card */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 1.5rem; padding: 1.5rem; transition: all 0.3s; }
.card:hover { box-shadow: var(--shadow-card); }
.card-lift:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); }
.card-icon { width: 64px; height: 64px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.card-icon-sm { width: 48px; height: 48px; border-radius: 10px; }
.card-icon svg { width: 28px; height: 28px; }
.card-icon-sm svg { width: 22px; height: 22px; }
.card-center { text-align: center; }
.card-center .card-icon { margin-left: auto; margin-right: auto; }
.card h3 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.25rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted-foreground); font-size: 0.95rem; line-height: 1.6; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; padding: 2rem 0; }
.stat-num { font-family: 'Poppins', sans-serif; font-size: 2.5rem; font-weight: 700; color: var(--accent); margin-bottom: 0.5rem; }
.stat-label { color: rgba(255,255,255,0.8); }

/* Course card */
.course-card { display: grid; gap: 2rem; }
.course-card .card { padding: 2rem; }
@media (min-width: 1024px) { .course-card .card-inner { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; } }
.course-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
@media (min-width: 1024px) { .course-meta { align-items: flex-end; } }
.course-badge { display: inline-block; font-size: 0.8rem; font-weight: 500; background: rgba(249,112,21,0.1); color: var(--accent); padding: 4px 12px; border-radius: 999px; }
.course-highlights { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
@media (min-width: 640px) { .course-highlights { grid-template-columns: 1fr 1fr; } }
.course-highlights li { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.course-highlights li svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* Contact info cards */
.contact-cards { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-card { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem; border-radius: 12px; background: rgba(241,245,249,0.5); }
.contact-card-icon { width: 48px; height: 48px; border-radius: 8px; background: rgba(249,112,21,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card-icon svg { width: 24px; height: 24px; color: var(--accent); }
.contact-card h3 { font-weight: 600; margin-bottom: 4px; }
.contact-card p, .contact-card a { color: var(--muted-foreground); }
.contact-card a:hover { color: var(--accent); }

/* Form */
.form-card { background: var(--card); border-radius: 1.5rem; padding: 2rem; box-shadow: var(--shadow-card); border: 1px solid var(--border); }
.form-card h3 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.5rem; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }
.form-input, .form-textarea {
  width: 100%; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--background); font-family: 'Inter', sans-serif; font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249,112,21,0.1); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* Alert */
.alert { padding: 1rem; border-radius: 12px; font-size: 0.875rem; margin-bottom: 1.5rem; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Map */
.map-wrap { border-radius: 1.5rem; overflow: hidden; box-shadow: var(--shadow-card); }
.map-wrap iframe { display: block; }

/* Partner benefits */
.benefit-card { text-align: center; padding: 1.5rem; border-radius: 1.5rem; background: var(--card); border: 1px solid var(--border); transition: all 0.3s; }
.benefit-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); }
.benefit-icon { width: 64px; height: 64px; border-radius: 12px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; }
.benefit-icon svg { width: 32px; height: 32px; }
.benefit-card h3 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.25rem; margin-bottom: 0.5rem; }
.benefit-card p { color: var(--muted-foreground); }

/* Requirements */
.req-list { display: flex; flex-direction: column; gap: 1rem; }
.req-list li { display: flex; align-items: center; gap: 12px; }
.req-list li svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

/* Center card */
.center-card { background: var(--card); border-radius: 1.5rem; padding: 2rem; box-shadow: var(--shadow-card); border: 1px solid var(--border); margin-bottom: 1.5rem; }
.center-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.center-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.center-icon svg { width: 28px; height: 28px; }
.center-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.center-name h3 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.25rem; }
.center-badge { font-size: 0.75rem; background: var(--accent); color: var(--accent-foreground); padding: 4px 8px; border-radius: 999px; font-weight: 500; }
.center-sub { color: var(--muted-foreground); }
.center-info { display: flex; flex-direction: column; gap: 1rem; }
.center-info-item { display: flex; align-items: flex-start; gap: 12px; }
.center-info-item svg { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.center-info-item span, .center-info-item a { color: var(--muted-foreground); }
.center-info-item a:hover { color: var(--accent); }
.center-btns { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 768px) { .center-details { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; } }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.25); opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover .overlay { opacity: 1; }
.gallery-empty { text-align: center; padding: 5rem 0; }
.gallery-empty code { background: var(--secondary); padding: 2px 8px; border-radius: 4px; }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; z-index: 50; background: rgba(15,23,42,0.95); align-items: center; justify-content: center; padding: 1rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 12px; object-fit: contain; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: white; cursor: pointer; padding: 8px; }
.lightbox-close:hover { color: var(--accent); }
.lightbox-close svg, .lightbox-nav svg { width: 32px; height: 32px; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: white; cursor: pointer; padding: 8px; }
.lightbox-nav:hover { color: var(--accent); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
@media (min-width: 768px) { .lightbox-nav svg { width: 40px; height: 40px; } }

/* Footer */
.footer { background: var(--primary); color: var(--primary-foreground); }
.footer-main { padding: 4rem 0; display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .footer-main { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-main { grid-template-columns: repeat(4, 1fr); } }
.footer h3 { font-family: 'Poppins', sans-serif; font-weight: 600; margin-bottom: 1rem; }
.footer p, .footer a { font-size: 0.875rem; color: rgba(255,255,255,0.7); line-height: 1.8; }
.footer a:hover { color: var(--accent); }
.footer-brand { display: flex; align-items: center; gap: 8px; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.125rem; margin-bottom: 1rem; }
.footer-links a { display: block; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.footer-contact-item svg { width: 16px; height: 16px; color: var(--accent); margin-top: 4px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; display: flex; flex-direction: column; gap: 1rem; align-items: center; text-align: center; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.footer-bottom a { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom-links { display: flex; gap: 1rem; }

/* Legal pages */
.legal { padding: 4rem 0; }
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 600; margin-top: 2rem; margin-bottom: 1rem; }
.legal-content p { margin-bottom: 1rem; color: var(--foreground); line-height: 1.7; }
.legal-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content ul li { margin-bottom: 0.5rem; line-height: 1.6; }

/* 404 */
.page-404 { display: flex; min-height: 100vh; align-items: center; justify-content: center; background: var(--muted); text-align: center; padding: 2rem; }
.page-404 h1 { font-size: 4rem; margin-bottom: 1rem; }
.page-404 p { font-size: 1.25rem; color: var(--muted-foreground); margin-bottom: 1.5rem; }
.page-404 a { color: var(--accent); text-decoration: underline; }

/* About page */
.about-banner-wrap { position: relative; width: 100%; overflow: hidden; }
.about-banner-img { width: 100%; height: auto; display: block; }
.about-banner-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.4) 100%); display: flex; align-items: center; }
.about-banner-overlay .container { text-align: center; width: 100%; }
.about-hero-badge { display: inline-block; background: rgba(249,112,21,0.2); color: var(--accent); padding: 6px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 500; margin-bottom: 1rem; }
.about-banner-overlay h1 { font-family: 'Poppins', sans-serif; font-size: 2.5rem; font-weight: 700; color: white; margin-bottom: 1rem; }
.about-banner-overlay h1 span { color: var(--accent); }
.about-banner-overlay p { font-size: 1.125rem; color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; }

.about-milestone { text-align: center; padding: 2rem 0; }
.about-milestone-logo { height: 80px; width: auto; margin: 0 auto 1.5rem; }
.about-milestone-num { font-family: 'Poppins', sans-serif; font-size: 3rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 0.25rem; }
.about-milestone-label { font-size: 1rem; color: var(--muted-foreground); font-weight: 500; letter-spacing: 0.5px; }

/* About milestones */
.milestone-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.milestone-card { text-align: center; padding: 1.5rem; border-radius: 1rem; background: var(--card); border: 1px solid var(--border); transition: all 0.3s; }
.milestone-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.milestone-year { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--accent); margin-bottom: 0.25rem; }
.milestone-text { font-size: 0.9rem; color: var(--muted-foreground); }

/* CTA section */
.cta-section { text-align: center; padding: 5rem 0; }
.cta-section h2 { font-size: 1.875rem; margin-bottom: 1rem; }
.cta-section p { color: var(--muted-foreground); font-size: 1.125rem; max-width: 600px; margin: 0 auto 2rem; }

/* Animations */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-left.visible { opacity: 1; transform: translateX(0); }
.fade-right { opacity: 0; transform: translateX(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-right.visible { opacity: 1; transform: translateX(0); }
.fade-scale { opacity: 0; transform: scale(0.9); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-scale.visible { opacity: 1; transform: scale(1); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Partner CTA card */
.cta-card { background: var(--card); border-radius: 1.5rem; padding: 2rem; box-shadow: var(--shadow-card); border: 1px solid var(--border); }

/* Page layout */
.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.page-main { flex: 1; }
.flex-center { display: flex; align-items: center; justify-content: center; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 1.75rem; }
  .hero { padding: 4rem 0; }
  .section-title { font-size: 1.5rem; }
  .stat-num { font-size: 2rem; }
  .grid-2 { gap: 2rem; }
  .footer-main { gap: 2rem; }
}
