:root {
  --primary: #015296;
  --primary-dark: #013969;
  --primary-light: #c2d5e6;
  --primary-50: #f2f6fa;
  --accent: #FFD580;
  --text-color: #000;
  --text-light: #52525b;
  --bg-white: #ffffff;
  --bg-light: #f6fbff;
  --bg-announce: #DFEFFF;
  --bg-footer: #e4eeff;
  --border: #E2E2EA;
  --shadow: 0 2px 20px rgba(1, 82, 150, 0.08);
  --shadow-hover: 0 8px 30px rgba(1, 82, 150, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Announcement Bar */
.announcement-bar {
  background: var(--primary);
  color: #fff;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
.announcement-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.announcement-bar i { color: var(--accent); }

/* Header */
.header {
  background: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.emblem {
  height: 48px;
  width: auto;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.logo-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
}
.logo-dept {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: var(--transition);
}

/* Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 25px;
}
.nav-menu ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  padding: 5px 0;
  border-bottom: 2px solid transparent;
}
.nav-menu ul li a:hover,
.nav-menu ul li a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.nav-actions {
  display: flex;
  gap: 10px;
}
.btn-login, .btn-register {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.btn-login {
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-login:hover {
  background: var(--primary);
  color: #fff;
}
.btn-register {
  background: var(--primary);
  color: #fff;
}
.btn-register:hover {
  background: var(--primary-dark);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #015296 0%, #00213c 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
  padding: 60px 20px;
}
.hero-text {
  flex: 1;
}
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}
.hero-text h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-text p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 30px;
  max-width: 500px;
}
.hero-text p strong { color: var(--accent); }
.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.btn-primary, .btn-secondary {
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
}
.btn-primary:hover {
  background: #ffcc60;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 213, 128, 0.3);
}
.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: #fff;
}
.hero-visual {
  flex: 1;
  text-align: center;
}
.hero-img {
  max-width: 100%;
  height: auto;
  max-height: 300px;
}
.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  justify-content: center;
}
.stat-item {
  text-align: center;
}
.stat-number {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
}
.hero-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* Quick Links */
.quick-links {
  padding: 60px 0;
  background: var(--bg-white);
  margin-top: -2px;
}
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition);
  text-align: center;
}
.quick-link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.ql-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
  transition: var(--transition);
}
.quick-link-card:hover .ql-icon {
  background: var(--primary);
  color: #fff;
}
.quick-link-card span {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
}
.section-header.left {
  text-align: left;
  margin: 0 0 30px;
}
.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
  position: relative;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-header.left h2::after {
  margin: 12px 0 0;
}
.section-header p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
}

/* About Section */
.about-section {
  padding: 80px 0;
  background: var(--bg-light);
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.about-card {
  text-align: center;
  padding: 35px 20px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.about-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary);
  margin: 0 auto 20px;
}
.about-card h3 {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 8px;
}
.about-card p {
  font-size: 14px;
  color: var(--text-light);
}

/* Subsidy Section */
.subsidy-section {
  padding: 80px 0;
  background: var(--bg-white);
}
.subsidy-table-wrapper {
  overflow-x: auto;
  max-width: 800px;
  margin: 0 auto;
}
.subsidy-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.subsidy-table thead {
  background: var(--primary);
  color: #fff;
}
.subsidy-table th {
  padding: 16px 24px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
}
.subsidy-table td {
  padding: 16px 24px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.subsidy-table tbody tr:hover {
  background: var(--primary-50);
}
.subsidy-table .highlight {
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
}

/* How It Works */
.how-it-works {
  padding: 80px 0;
  background: var(--bg-light);
}
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}
.step {
  text-align: center;
  flex: 1;
  max-width: 240px;
  position: relative;
}
.step-number {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin: 0 auto 16px;
  position: relative;
  z-index: 2;
}
.step-icon {
  width: 70px;
  height: 70px;
  background: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary);
  margin: 0 auto 16px;
  box-shadow: var(--shadow);
}
.step h3 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 10px;
}
.step p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}
.step-connector {
  flex: 0 0 60px;
  height: 2px;
  background: var(--primary-light);
  margin-top: 60px;
  position: relative;
}
.step-connector::after {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: -6px;
  top: -8px;
  font-size: 12px;
  color: var(--primary);
}

/* Benefits Section */
.benefits-section {
  padding: 80px 0;
  background: var(--bg-white);
}
.benefits-wrapper {
  display: flex;
  align-items: center;
  gap: 60px;
}
.benefits-content {
  flex: 1;
}
.benefits-list {
  list-style: none;
}
.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-light);
}
.benefits-list li i {
  color: var(--primary);
  font-size: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}
.benefits-visual {
  flex: 1;
  text-align: center;
}
.benefits-visual img {
  max-width: 100%;
  max-height: 350px;
}

/* Testimonials */
.testimonials-section {
  padding: 80px 0;
  background: var(--bg-light);
}
.testimonial-carousel {
  max-width: 650px;
  margin: 0 auto;
  position: relative;
}
.testimonial-card {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
  text-align: center;
}
.testimonial-card.active {
  display: block;
  animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.testimonial-stars {
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 20px;
}
.testimonial-card p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 25px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.author-avatar {
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
}
.testimonial-author div strong {
  display: block;
  font-size: 14px;
  color: var(--text-color);
}
.testimonial-author div span {
  font-size: 12px;
  color: var(--text-light);
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-light);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active {
  background: var(--primary);
  width: 30px;
  border-radius: 6px;
}

/* CTA Section */
.cta-section {
  padding: 60px 0;
  background: var(--bg-white);
}
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  padding: 50px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.cta-text h2 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 10px;
}
.cta-text p {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  max-width: 500px;
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-cta:hover {
  background: #ffcc60;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 213, 128, 0.3);
}

/* Footer */
.footer {
  background: var(--bg-footer);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--primary-light);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-emblem {
  height: 40px;
}
.footer-logo h4 {
  font-size: 18px;
  color: var(--primary);
}
.footer-logo p {
  font-size: 12px;
  color: var(--text-light);
}
.footer-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
  font-size: 14px;
}
.footer-social a:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.footer-col h4 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--accent);
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 13px;
  transition: var(--transition);
}
.footer-col ul li a:hover {
  color: var(--primary);
  padding-left: 4px;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-light);
}
.contact-list li i {
  color: var(--primary);
  margin-top: 4px;
  flex-shrink: 0;
}
.footer-bottom {
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.8;
}
.footer-bottom a {
  color: var(--primary);
  text-decoration: none;
}
.footer-disclaimer {
  margin-top: 5px;
  font-style: italic;
  color: #888;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(1, 82, 150, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1024px) {
  .quick-links-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    padding: 80px 30px 30px;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    align-items: flex-start;
    z-index: 999;
  }
  .nav-menu.open { right: 0; }
  .nav-menu ul { flex-direction: column; width: 100%; }
  .nav-menu ul li a { font-size: 16px; padding: 10px 0; display: block; }
  .nav-actions { width: 100%; flex-direction: column; }
  .btn-login, .btn-register { text-align: center; }

  .hero-content { flex-direction: column; text-align: center; padding: 40px 20px; }
  .hero-text h1 { font-size: 28px; }
  .hero-buttons { justify-content: center; }
  .hero-visual { display: none; }

  .quick-links-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-direction: column; align-items: center; gap: 30px; }
  .step-connector { display: none; }
  .benefits-wrapper { flex-direction: column; }
  .cta-box { flex-direction: column; text-align: center; padding: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-number { font-size: 20px; }
  .section-header h2 { font-size: 26px; }
}

@media (max-width: 480px) {
  .logo-title { font-size: 16px; }
  .logo-subtitle { font-size: 12px; }
  .logo-dept { font-size: 10px; }
  .emblem { height: 36px; }
  .quick-links-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 24px; }
  .hero-stats { flex-direction: column; gap: 15px; }
}
