/* ==========================================================================
   STYLE.CSS - ICCRI NET Profil Page Redesign Stylesheet
   Design System, Components, Layouts, and Responsiveness (WCAG AA Compliant)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Color Tokens */
  --color-primary: #123524;         /* Deep Forest Green - HSL(145, 40%, 18%) */
  --color-primary-light: #2e6f40;   /* Light Forest Green - HSL(145, 41%, 31%) */
  --color-secondary: #5c3e35;       /* Cocoa Brown - HSL(15, 27%, 29%) */
  --color-accent: #d49a17;         /* Gold Accent - HSL(42, 80%, 46%) */
  --color-accent-hover: #b8820e;   /* Darker Gold - HSL(42, 80%, 39%) */
  --color-bg-light: #f5efe6;        /* Ivory Light - HSL(38, 33%, 93%) */
  --color-bg-card: #ffffff;         /* Pure White */
  --color-border: #e2e8f0;          /* Gray Border */
  --color-text-dark: #1f2937;       /* Dark Gray for Body text */
  --color-text-muted: #4b5563;     /* Muted Gray for desc */
  --color-text-light: #ffffff;     /* White text */

  /* Spacing */
  --container-max-width: 1200px;
  
  /* Borders */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 20px rgba(18, 53, 36, 0.04);
  --shadow-lg: 0 20px 40px rgba(18, 53, 36, 0.08);
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Styles & Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: #fafaf9;
  line-height: 1.6;
  font-size: 1rem;
}

/* Accessibility Focus Indicator (WCAG 2.4.7) */
*:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

/* Skip-to-content Link (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 12px 24px;
  z-index: 9999;
  font-weight: 700;
  border-radius: var(--border-radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 20px;
}

/* Utility Helpers */
a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.rounded { border-radius: var(--border-radius-md); }
.shadow { box-shadow: var(--shadow-md); }

/* --- Global Containers --- */
.el-section {
  padding: 80px 0;
  position: relative;
}

.el-section.bg-alt {
  background-color: var(--color-bg-light);
}

.el-section.bg-light {
  background-color: #ffffff;
}

.el-section.bg-dark {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.el-section.bg-dark h2,
.el-section.bg-dark h3 {
  color: #ffffff;
}

.el-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.el-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.el-col {
  flex: 1 0 0%;
  padding-left: 15px;
  padding-right: 15px;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-7 { flex: 0 0 58.333%; max-width: 58.333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-5 { flex: 0 0 41.666%; max-width: 41.666%; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }

.align-items-center { align-items: center; }

@media (max-width: 991px) {
  .el-col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-bottom: 45px;
  }
  .el-col:last-child {
    margin-bottom: 0;
  }
  .el-section {
    padding: 60px 0;
  }
}

/* --- Heading Section Header --- */
.section-header {
  margin-bottom: 50px;
  text-align: center;
}

.section-header.text-left {
  text-align: left;
}

.section-header .subtitle {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-secondary); /* Contrast > 9.8:1 */
  letter-spacing: 0.15em;
  margin-bottom: 10px;
  display: block;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 850;
  color: var(--color-primary);
  line-height: 1.25;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--color-accent);
  margin-top: 15px;
  border-radius: 2px;
}

.section-header.text-left h2::after {
  margin-left: 0;
}

.section-top-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* --- Header / Navigation Styling --- */
.site-header {
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.top-bar {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 8px 0;
  font-size: 0.85rem;
  font-weight: 500;
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-info {
  display: flex;
  gap: 20px;
}

.top-bar-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-info a {
  color: var(--color-text-light);
}

.top-bar-info a:hover {
  color: var(--color-accent);
}

.logo-bar {
  background-color: #ffffff;
  padding: 15px 0;
}

.logo-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: clamp(40px, 5.5vw, 60px);
  width: auto;
  max-width: 100%;
  display: block;
}

.navigation-bar {
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.navigation-bar-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.site-navigation {
  width: 100%;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
  width: 100%;
  justify-content: flex-start;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 12px 18px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.nav-link:hover, .nav-item:focus-within > .nav-link {
  color: var(--color-accent-hover);
  background-color: var(--color-bg-light);
}

.nav-item.current-menu-item > .nav-link {
  color: var(--color-accent-hover);
  background-color: rgba(212, 154, 23, 0.06);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
  min-width: 240px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  z-index: 100;
  padding: 8px 0;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-dark);
}

.dropdown-link:hover {
  background-color: var(--color-bg-light);
  color: var(--color-primary-light);
  padding-left: 24px;
}

/* Hamburger Toggle for Mobile */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  font-size: 1.25rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 8px 12px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.menu-toggle:hover {
  border-color: var(--color-primary);
  background-color: var(--color-bg-light);
}

@media (max-width: 991px) {
  .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 {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }
  
  .site-navigation.is-active {
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .nav-menu {
    flex-direction: column;
    padding: 20px;
    gap: 10px;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--color-accent);
    margin-left: 15px;
    padding: 5px 0;
    background-color: var(--color-bg-light);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .nav-item.dropdown-active .dropdown-menu {
    max-height: 200px;
  }
}

/* --- Banner Judul Halaman --- */
.page-title-banner {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 0;
  color: #ffffff;
}

.breadcrumbs {
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumbs a:hover {
  color: var(--color-accent);
}

.breadcrumbs span {
  color: rgba(255, 255, 255, 0.5);
}

.page-title-banner h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .page-title-banner {
    padding: 40px 0;
  }
  .page-title-banner h1 {
    font-size: 1.75rem;
  }
}

/* --- Section 1: Profil Singkat & Visi --- */
.rich-text-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.vision-quote {
  background-color: var(--color-bg-light);
  border-left: 4px solid var(--color-accent);
  padding: 25px 30px;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  margin-top: 35px;
}

.vision-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.vision-title i {
  color: var(--color-accent);
}

.vision-quote p {
  font-size: 1rem;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 0;
}

.stacked-images-grid {
  display: flex;
  flex-direction: column;
}

.img-responsive {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Section 2: Program Kerja 2020-2025 --- */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 991px) {
  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .program-grid {
    grid-template-columns: 1fr;
  }
}

.program-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 30px 25px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: var(--transition-smooth);
}

.program-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.program-icon-badge {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-sm);
  background-color: rgba(18, 53, 36, 0.06);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.program-card:hover .program-icon-badge {
  background-color: var(--color-accent);
  color: var(--color-primary);
  transform: scale(1.1) rotate(5deg);
}

.program-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--color-text-dark);
}

/* --- Section 3: Misi Kami & Tupoksi --- */
.fancy-counter-list {
  list-style: none;
  counter-reset: custom-counter;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fancy-counter-list li {
  counter-increment: custom-counter;
  position: relative;
  padding-left: 65px;
  min-height: 48px;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.fancy-counter-list li::before {
  content: counter(custom-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-sm);
  color: #fecb00; /* High Contrast Yellow Gold */
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.fancy-counter-list li:hover::before {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

/* --- Section 4: Sumberdaya Manusia --- */
.bullet-list-gold {
  list-style: none;
  margin: 25px 0;
}

.bullet-list-gold li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  font-size: 1.05rem;
  font-weight: 600;
}

.bullet-list-gold li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--color-accent-hover);
}

.sdm-infographic-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 35px;
  box-shadow: var(--shadow-md);
}

.sdm-stat-row {
  display: flex;
  gap: 25px;
  margin-bottom: 35px;
}

.sdm-stat-box {
  flex: 1;
  background-color: var(--color-bg-light);
  border-radius: var(--border-radius-sm);
  padding: 20px;
  text-align: center;
}

.sdm-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 5px;
}

.sdm-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.sdm-progress-section h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.progress-bar-item {
  margin-bottom: 15px;
}

.progress-bar-item:last-child {
  margin-bottom: 0;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background-color: var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--color-primary-light);
  border-radius: 4px;
  transition: width 1s ease-in-out;
}

/* --- Section 5: Sarana Penelitian --- */
.facility-info-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: var(--transition-smooth);
}

.facility-info-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.facility-info-card i {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.facility-info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.facility-info-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.facility-photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

@media (max-width: 991px) {
  .facility-photo-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .facility-photo-gallery {
    grid-template-columns: 1fr;
  }
}

/* --- Section 6: Layanan Pendukung --- */
.service-detail-box {
  background-color: var(--color-bg-card);
  border-radius: var(--border-radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-primary);
}

.service-detail-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.service-detail-title i {
  font-size: 1.3rem;
  color: var(--color-accent-hover);
}

.service-detail-title h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0;
}

.service-detail-box p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.supporting-gallery-list {
  display: flex;
  flex-direction: column;
}

.supporting-gallery-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.supporting-gallery-item,
.supporting-bagan-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
}

.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(18, 53, 36, 0.85);
  color: #ffffff;
  padding: 10px 15px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

/* --- Site Footer --- */
.site-footer {
  background-color: #0b1f15; /* Dark forest green */
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widgets {
  display: grid;
  grid-template-columns: 2.2fr 1.5fr 1.5fr 1.8fr;
  gap: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 40px;
}

.footer-widget h4 {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-widget h4::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--color-accent);
  margin-top: 8px;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
}

.footer-widget ul li {
  margin-bottom: 12px;
}

.footer-widget ul li a {
  color: rgba(255, 255, 255, 0.7);
  display: inline-block;
  transition: var(--transition-smooth);
}

.footer-widget ul li a:hover {
  color: var(--color-accent);
  transform: translateX(4px);
}

/* Recent news widget items */
.footer-recent-news li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
  margin-bottom: 10px !important;
}

.footer-recent-news li:last-child {
  border-bottom: none;
}

.footer-recent-news a {
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.4;
  display: block;
}

.footer-recent-news span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  display: block;
  margin-top: 4px;
}

.footer-info-logo img {
  height: 45px;
  width: auto;
  margin-bottom: 20px;
}

.footer-info-text {
  line-height: 1.6;
  font-size: 0.88rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.footer-contact-item i {
  color: var(--color-accent);
  margin-top: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links a:hover {
  color: var(--color-accent);
}

@media (max-width: 991px) {
  .footer-widgets {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-widgets {
    grid-template-columns: 1fr;
  }
}
