/* ========================================
   JURNAL ACEH - OFFICIAL GOVERNMENT WEBSITE
   Theme: Professional Indonesian Government Style
   ======================================== */

:root {
  --navy-primary: #1e3a5f;
  --navy-dark: #0f1e3a;
  --navy-light: #2d5080;
  --gold-accent: #d4af37;
  --gold-light: #f0d878;
  --white: #ffffff;
  --gray-light: #f5f7fa;
  --gray-medium: #e2e8f0;
  --gray-text: #4a5568;
  --shadow-sm: 0 2px 8px rgba(30, 58, 95, 0.08);
  --shadow-md: 0 4px 16px rgba(30, 58, 95, 0.12);
  --shadow-lg: 0 8px 24px rgba(30, 58, 95, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: var(--gray-text);
  background-color: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.site-header {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-primary) 100%);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--gold-accent);
}

.header-top {
  background: var(--navy-dark);
  padding: 12px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-info {
  color: var(--gray-light);
  font-size: 14px;
}

.header-main {
  padding: 20px 0;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
  animation: fadeIn 0.6s ease;
}

.site-title {
  color: var(--white);
}

.site-title h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.site-title p {
  font-size: 14px;
  color: var(--gold-light);
  font-weight: 300;
}

/* Navigation */
.main-nav {
  background: var(--navy-primary);
  box-shadow: var(--shadow-sm);
}

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

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 16px 20px;
  color: var(--white);
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  background: var(--navy-light);
  color: var(--gold-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--gold-accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

.nav-item.has-submenu > .nav-link::before {
  content: '▼';
  font-size: 10px;
  margin-left: 6px;
  opacity: 0.7;
}

.submenu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  border-top: 3px solid var(--gold-accent);
  z-index: 100;
}

.nav-item:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li a {
  display: block;
  padding: 12px 20px;
  color: var(--navy-primary);
  font-size: 14px;
  border-bottom: 1px solid var(--gray-medium);
  transition: all 0.3s ease;
}

.submenu li:last-child a {
  border-bottom: none;
}

.submenu li a:hover {
  background: var(--gray-light);
  color: var(--navy-dark);
  padding-left: 25px;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-light) 100%);
  padding: 80px 0;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%231e3a5f" width="1200" height="600"/><g fill-opacity="0.05"><polygon fill="%23ffffff" points="1200 0 800 600 1200 600"/><polygon fill="%23ffffff" points="0 0 400 600 0 600"/></g></svg>');
  background-size: cover;
  opacity: 0.3;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  text-align: center;
  animation: fadeInUp 0.8s ease;
}

.hero-content h1 {
  font-size: 48px;
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
}

.hero-content p {
  font-size: 20px;
  color: var(--gold-light);
  max-width: 800px;
  margin: 0 auto;
  font-weight: 300;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-image {
  margin-top: 40px;
  animation: fadeIn 1s ease 0.3s both;
}

.hero-image img {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border: 4px solid rgba(212, 175, 55, 0.3);
}

/* ========================================
   MAIN CONTENT
   ======================================== */

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

.content-section {
  padding: 80px 0;
  animation: fadeIn 0.8s ease;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeInUp 0.6s ease;
}

.section-title {
  font-size: 38px;
  color: var(--navy-dark);
  margin-bottom: 15px;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gold-accent);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--gray-text);
  margin-top: 25px;
  font-weight: 300;
}

.content-text {
  font-size: 17px;
  line-height: 1.9;
  color: var(--gray-text);
  margin-bottom: 30px;
  text-align: justify;
}

.content-text h2 {
  font-size: 32px;
  color: var(--navy-primary);
  margin: 40px 0 20px;
  font-weight: 600;
}

.content-text h3 {
  font-size: 26px;
  color: var(--navy-primary);
  margin: 30px 0 15px;
  font-weight: 600;
}

.content-text ul,
.content-text ol {
  margin: 20px 0 20px 30px;
}

.content-text li {
  margin-bottom: 12px;
  line-height: 1.8;
}

/* ========================================
   GRID LAYOUTS
   ======================================== */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.grid-item {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  border: 1px solid var(--gray-medium);
  animation: fadeInUp 0.6s ease;
}

.grid-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-accent);
}

.grid-item h3 {
  font-size: 22px;
  color: var(--navy-primary);
  margin-bottom: 15px;
  font-weight: 600;
}

.grid-item p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-text);
}

.img-grid {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-sm);
}

.grid-item:hover .img-grid {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* Info Box */
.info-box {
  background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 40px;
  border-radius: 12px;
  margin: 40px 0;
  box-shadow: var(--shadow-md);
  border-left: 6px solid var(--gold-accent);
  animation: fadeInLeft 0.6s ease;
}

.info-box h3 {
  color: var(--gold-light);
  font-size: 24px;
  margin-bottom: 15px;
}

.info-box p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

/* Card */
.card {
  background: var(--white);
  border-radius: 12px;
  padding: 35px;
  box-shadow: var(--shadow-md);
  margin: 30px 0;
  border-top: 4px solid var(--gold-accent);
  animation: fadeIn 0.6s ease;
}

.card-title {
  font-size: 26px;
  color: var(--navy-primary);
  margin-bottom: 20px;
  font-weight: 600;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-primary) 100%);
  color: var(--white);
  padding: 60px 0 30px;
  margin-top: 80px;
  border-top: 4px solid var(--gold-accent);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
}

.footer-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--gold-light);
}

.footer-text {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.footer-divider {
  height: 1px;
  background: rgba(212, 175, 55, 0.3);
  margin: 40px 0 25px;
}

.footer-bottom {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
  margin-bottom: 8px;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease;
}

.fade-up {
  animation: fadeInUp 0.8s ease;
}

.fade-left {
  animation: fadeInLeft 0.8s ease;
}

.fade-right {
  animation: fadeInRight 0.8s ease;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .logo-section {
    flex-direction: column;
  }

  .site-title h1 {
    font-size: 22px;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0;
  }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--navy-light);
    display: none;
  }

  .nav-item:hover .submenu {
    display: block;
  }

  .submenu li a {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .site-title h1 {
    font-size: 18px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .section-title {
    font-size: 24px;
  }

  .content-section {
    padding: 50px 0;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center {
  text-align: center;
}

.text-justify {
  text-align: justify;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-30 {
  margin-bottom: 30px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mt-40 {
  margin-top: 40px;
}

.highlight {
  color: var(--gold-accent);
  font-weight: 600;
}

.bg-light {
  background: var(--gray-light);
}
