/* Pengadilan Agama Sukabumi - E-Kinerja & Peraturan Website */
/* Color Palette from Logo: Deep Green #0a5c36, Gold #d4af37, White, Dark */

:root {
  --primary-green: #0a5c36;
  --dark-green: #064028;
  --light-green: #1a7a4a;
  --gold: #d4af37;
  --gold-light: #e8c547;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --gray: #6c757d;
  --dark: #212529;
  --light-gray: #e9ecef;
  --shadow: 0 4px 15px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--off-white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

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

/* ========== HEADER ========== */
.top-bar {
  background: var(--dark-green);
  color: var(--white);
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar a {
  color: var(--gold-light);
}

.top-bar a:hover {
  color: var(--white);
}

.header-main {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-area img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 1.3rem;
  color: var(--primary-green);
  font-weight: 700;
  line-height: 1.2;
}

.logo-text p {
  font-size: 0.85rem;
  color: var(--gray);
}

/* Navigation */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 5px;
  align-items: center;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 10px 16px;
  color: var(--dark);
  font-weight: 500;
  border-radius: 6px;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  background: var(--primary-green);
  color: var(--white);
}

.nav-menu .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
  z-index: 100;
}

.nav-menu li:hover .dropdown {
  display: block;
}

.nav-menu .dropdown a {
  display: block;
  padding: 12px 18px;
  color: var(--dark);
  border-bottom: 1px solid var(--light-gray);
}

.nav-menu .dropdown a:hover {
  background: var(--primary-green);
  color: var(--white);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary-green);
  cursor: pointer;
}

/* ========== HERO / BANNER ========== */
.hero {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
}

.hero p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 25px;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gold);
  color: var(--dark);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  margin-left: 12px;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary-green);
}

/* ========== SECTIONS ========== */
section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--primary-green);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin: 8px auto 0;
  border-radius: 2px;
}

.section-title p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Multi-column Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.card-icon {
  background: linear-gradient(135deg, var(--primary-green), var(--light-green));
  color: var(--white);
  padding: 25px;
  text-align: center;
  font-size: 2.5rem;
}

.card-body {
  padding: 25px;
}

.card-body h3 {
  color: var(--primary-green);
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.card-body p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.card-body a {
  color: var(--gold);
  font-weight: 600;
}

.card-body a:hover {
  color: var(--primary-green);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-content h3 {
  color: var(--primary-green);
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.about-content p {
  margin-bottom: 15px;
  color: var(--gray);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 25px;
}

.stat-box {
  background: var(--off-white);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  border-left: 4px solid var(--gold);
}

.stat-box .number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-green);
}

.stat-box .label {
  font-size: 0.9rem;
  color: var(--gray);
}

/* Features / Services */
.features-bg {
  background: var(--white);
}

/* Sidebar Layout */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  padding: 40px 0;
}

.main-content {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.main-content h2 {
  color: var(--primary-green);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--gold);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sidebar-widget {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.sidebar-widget h4 {
  color: var(--primary-green);
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--light-gray);
  font-size: 1.1rem;
}

.sidebar-widget ul {
  list-style: none;
}

.sidebar-widget ul li {
  margin-bottom: 10px;
}

.sidebar-widget ul li a {
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-widget ul li a:hover {
  color: var(--primary-green);
}

.sidebar-widget ul li a::before {
  content: '▸';
  color: var(--gold);
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info {
  background: var(--primary-green);
  color: var(--white);
  padding: 35px;
  border-radius: 12px;
}

.contact-info h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-item i {
  font-size: 1.3rem;
  color: var(--gold);
  min-width: 25px;
}

.contact-form {
  background: var(--white);
  padding: 35px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(10, 92, 54, 0.15);
}

/* Email Subscription */
.subscribe-box {
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  color: var(--white);
  padding: 40px;
  border-radius: 12px;
  text-align: center;
}

.subscribe-box h3 {
  margin-bottom: 10px;
}

.subscribe-form {
  display: flex;
  max-width: 500px;
  margin: 20px auto 0;
  gap: 10px;
}

.subscribe-form input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
}

.subscribe-form button {
  padding: 14px 28px;
  background: var(--gold);
  color: var(--dark);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.subscribe-form button:hover {
  background: var(--gold-light);
}

/* Footer */
.footer {
  background: var(--dark-green);
  color: var(--white);
  padding: 50px 0 0;
}

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

.footer-col h4 {
  color: var(--gold);
  margin-bottom: 18px;
  font-size: 1.15rem;
}

.footer-col p,
.footer-col a {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--gold);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-3px);
}

.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 18px 0;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.footer-bottom a {
  color: var(--gold);
}

/* Table Styles for Regulations */
.table-responsive {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--light-gray);
}

th {
  background: var(--primary-green);
  color: var(--white);
  font-weight: 600;
}

tr:hover {
  background: var(--off-white);
}

/* Breadcrumb */
.breadcrumb {
  background: var(--white);
  padding: 15px 0;
  border-bottom: 1px solid var(--light-gray);
}

.breadcrumb .container {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--gray);
}

.breadcrumb a {
  color: var(--primary-green);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
  .about-grid,
  .contact-grid,
  .page-layout {
    grid-template-columns: 1fr;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 15px;
    box-shadow: var(--shadow);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .header-content {
    position: relative;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .subscribe-form {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .logo-text h1 {
    font-size: 1rem;
  }
  
  .logo-area img {
    width: 50px;
    height: 50px;
  }
  
  .top-bar .container {
    justify-content: center;
    text-align: center;
  }
  
  .btn-outline {
    margin-left: 0;
    margin-top: 10px;
  }
}

/* Utility */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}
.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-info { background: #d1ecf1; color: #0c5460; }