/* ==========================================================================
   STYLE.CSS - ICCRI NET CORE VALUE AKHLAK
   Aesthetics: Outfit/Inter Fonts, Forest Green, Cocoa Brown, Gold Accent
   Premium Flat-Clean Design Systems (No Heavy Shadow, No Glassmorphism)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;700;800;900&display=swap');

/* ==========================================================================
   DESIGN TOKENS & SYSTEM VARIABLES
   ========================================================================== */
:root {
  /* Brand Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Color Palette (Forest Green & Cocoa Brown with Gold accents) */
  --color-primary: #123524;        /* Forest Green */
  --color-primary-light: #205c3f;  /* Medium Forest Green */
  --color-secondary: #5c3e35;      /* Cocoa Brown (High Contrast WCAG AA) */
  --color-accent: #d49a17;         /* Gold Accent (Contrast 4.54:1 on Forest Green) */
  --color-bg-light: #f5f5f4;       /* Soft Sandstone Gray */
  --color-bg-card: #ffffff;        /* Solid Pure White */
  --color-border: #e7e5e4;         /* Thin Stone Gray Border */
  --color-text-dark: #1c1917;      /* Near Black for readability */
  --color-text-muted: #57534e;     /* Medium Warm Gray for subtext */

  /* Global Layout Tokens */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.04); /* Super faint flat shadow */
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   BASE RESET & ACCESSIBILITY
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--color-accent);
}

/* Skip Link for WCAG 2.4.1 compliance */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-accent);
  color: #ffffff;
  padding: 8px 16px;
  z-index: 9999;
  transition: top 0.2s ease;
  font-weight: 700;
  border-radius: 0 0 var(--border-radius-sm) 0;
}

.skip-link:focus {
  top: 0;
}

/* Focus styles for keyboard accessibility */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ==========================================================================
   LAYOUT GRID SYSTEMS
   ========================================================================== */
.el-container {
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 24px;
  padding-left: 24px;
}

.el-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.el-col {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.text-right { text-align: right; }

.el-section {
  padding: 80px 0;
}

.bg-alt {
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* ==========================================================================
   GLOBAL SECTION HEADERS
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 30px;
}

.section-header .subtitle {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.25;
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 100;
}

/* Row 1: Top Bar */
.top-bar {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-info {
  display: flex;
  gap: 20px;
}

.top-bar-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-info a {
  color: inherit;
}

.top-bar-info a:hover {
  color: var(--color-accent);
}

/* Row 2: Logo Bar */
.logo-bar {
  background-color: #ffffff;
  padding: 20px 0;
}

.logo-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: 1.4rem;
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.menu-toggle:hover {
  background-color: var(--color-bg-light);
  color: var(--color-accent);
}

/* Row 3: Navigation Bar */
.navigation-bar {
  background-color: var(--color-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 3px solid var(--color-accent);
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  padding: 16px 20px;
  transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-item:hover > .nav-link {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--color-accent);
}

/* Active Menu Item Styling */
.current-menu-item > .nav-link {
  background-color: var(--color-primary-light);
  color: #ffffff;
  box-shadow: inset 0 -3px 0 var(--color-accent);
}

/* Dropdown Menu (Desktop) */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-bg-card);
  min-width: 230px;
  list-style: none;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-accent);
  border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  z-index: 1000;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-link {
  display: block;
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-primary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
}

.dropdown-link:last-child {
  border-bottom: none;
}

.dropdown-link:hover {
  background-color: var(--color-bg-light);
  color: var(--color-accent);
  padding-left: 24px;
}

.dropdown-link.current-menu-item {
  background-color: rgba(18, 53, 36, 0.05);
  color: var(--color-primary-light);
}

/* Hover reveal dropdown */
.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==========================================================================
   PAGE TITLE BANNER
   ========================================================================== */
.page-title-banner {
  padding: 60px 0;
  color: #ffffff;
  position: relative;
}

.page-title-banner .breadcrumbs {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
}

.page-title-banner .breadcrumbs a {
  color: inherit;
}

.page-title-banner .breadcrumbs a:hover {
  color: var(--color-accent);
}

.page-title-banner h1 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.2;
}

/* ==========================================================================
   SECTION 1: CORE VALUE INTRO
   ========================================================================== */
.akhlak-logo-box {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 40px 30px;
  text-align: center;
}

.akhlak-logo-badge {
  width: 140px;
  height: 140px;
  background-color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
  padding: 15px;
}

.akhlak-logo-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.akhlak-logo-sub {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.akhlak-lead-p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 20px;
}

.akhlak-sub-p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* ==========================================================================
   SECTION 2: BANNERS GRID
   ========================================================================== */
.akhlak-banner-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 15px;
  height: 100%;
  transition: var(--transition-smooth);
}

.akhlak-banner-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary-light);
}

.banner-frame {
  width: 100%;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--color-border);
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.akhlak-banner-card:hover .banner-image {
  transform: scale(1.03);
}

.banner-desc {
  padding: 20px 5px 5px;
}

.banner-desc h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.banner-desc p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.site-footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  border-top: 3px solid var(--color-accent);
  padding: 60px 0 0;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.footer-widget h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
}

.footer-widget h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-accent);
}

.footer-widget ul {
  list-style: none;
}

.footer-widget ul li {
  margin-bottom: 12px;
}

.footer-widget ul li a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-widget ul li a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

/* Widget: Info */
.footer-info-logo img {
  height: 48px;
  width: auto;
  margin-bottom: 20px;
}

.footer-info-text {
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Widget: Berita Terbaru */
.footer-recent-news li {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px !important;
}

.footer-recent-news li a {
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
  font-size: 0.86rem;
}

.footer-recent-news li span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Widget: Kontak */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 0.86rem;
}

.footer-contact-item i {
  color: var(--color-accent);
  font-size: 1rem;
  margin-top: 4px;
}

/* Footer Bottom (Copyright Row) */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.82rem;
}

.footer-bottom-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links a:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   RESPONSIVITAS MOBILE (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 991px) {
  .el-section {
    padding: 60px 0;
  }

  .el-row {
    flex-direction: column;
  }

  .el-col {
    margin-bottom: 35px;
  }
  
  .el-col:last-child {
    margin-bottom: 0;
  }

  /* Header & Mobile Navigation */
  .top-bar {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }

  .logo-bar {
    border-bottom: 1px solid var(--color-border);
  }

  .navigation-bar {
    border: none;
    padding: 0;
  }

  .site-navigation {
    display: none; /* Sembunyikan default di mobile */
    width: 100%;
    background-color: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
  }

  .site-navigation.active {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 20px;
  }

  .nav-link {
    color: var(--color-primary);
    padding: 12px 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }

  .nav-link:hover,
  .nav-item:hover > .nav-link {
    background: none;
    color: var(--color-accent);
  }

  .current-menu-item > .nav-link {
    background: none;
    color: var(--color-accent);
    box-shadow: none;
  }

  /* Mobile Dropdown (Accordion-style) */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    display: block;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--color-border);
    margin-left: 12px;
    padding: 0;
    max-height: 0; /* Menggunakan javascript scrollHeight */
    overflow: hidden;
    transform: none;
    transition: max-height 0.35s ease-out;
  }

  .dropdown-link {
    padding: 8px 16px;
  }

  /* Section 1 adjustments */
  #akhlak-intro .el-col:last-child {
    padding-left: 15px !important;
  }

  .akhlak-logo-box {
    padding: 30px 20px;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Footer widgets collapse */
  .footer-widgets {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

@media (max-width: 576px) {
  .page-title-banner h1 {
    font-size: 2rem;
  }
}
