/*
Theme Name: Hello Dipasid
Theme URI: https://dipasid.com/
Author: Ritonga Mulia
Author URI: https://dipasid.com/
Description: Theme WordPress ringan & SEO friendly
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: dipasidcom fast Themes seo
*/


:root {
  --sidebar-width: 90px;
  --submenu-width: 220px;
  --panel-shift: 10px; /* Jarak dorong hanya 10px */
  --transition-speed: 0.3s;
  --bg-sidebar: #f0f4f9;
  --bg-submenu: #f0f4f9;
  --bg-main: #fff;
  --text: #1f2937;
  --overlay-color: rgba(0, 0, 0, 0.2);
}

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

:root {
   --text-color: #222;
  --bg-color: #fff;
  --max-line-length: 65ch;
  --base-font-size: 0.95rem;
  --line-height: 1.7;
  --heading-font-weight: 700;
  --paragraph-spacing: 1.6em;
  --section-spacing: 4rem;
}


/* Teks dasar */
p {
  margin-bottom: var(--paragraph-spacing);
  text-align: left;line-height:1.7;
}

/* Heading */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--heading-font-weight);
  line-height: 1.3;
 
  margin-bottom: 1rem;
  color: #111;
}

/* Ukuran heading */
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

/* Link */
a {
  color: #0066cc;
  text-decoration: underline;
}
a:hover {
  color: #004499;
  text-decoration: none;
}

/* List */
ul, ol {
  margin-bottom: var(--paragraph-spacing);
  padding-left: 1.5em;
}
li {
  margin-bottom: 0.5em;
}

/* Blockquote */
blockquote {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 4px solid #ccc;
  color: #555;
  font-style: italic;
}

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

/* Section / Container */
section {
  padding: var(--section-spacing) 0;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    padding: 1.5rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
}


/* Sembunyikan hamburger di desktop */
.hamburger-toggle {
  display: none;
}

/* Tampilkan hamburger hanya di mobile */
@media (max-width: 768px) {
  .hamburger-toggle {
    display: block;
  }
}

body {
  font-family: 'sans-serif', Noto Sans Batak;";
  
  background: var(--bg-main);
  color: var(--text);
}

.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid #ddd;
  flex-shrink: 0;
  position: fixed;height:100vh;
  z-index: 100;
  transition: left var(--transition-speed);
  overflow: visible;
 
}

.sidebar-nav ul {
  list-style: none;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;align-items: center;   /* center horizontal */
  justify-content: center; /* center vertical jika mau */
}
.submenu-items li{
		list-style:none;
		}
.menu-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-size: 1rem;
}

.menu-icon {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.sidebar .menu-text {
  margin-left: 0.5rem;
  display: none;
}
    
.submenu-panel {
  transform: translateX(-10px); /* atau 100% kalau mau lebih jauh */
  opacity: 0;
}

.submenu-panel.active {
  transform: translateX(0);
  opacity: 1;
}

/* === Submenu Panel === */
.submenu-panel {
  width: var(--submenu-width);
  background: var(--bg-submenu);
  border-right: 1px solid #ddd;
  padding: 1rem;
  display: none;
  flex-shrink: 0;
  z-index: 90;
  transition: left var(--transition-speed);
  position: fixed;
  top: 0;
  height: 100%;
  margin-left: var(--sidebar-width);border-radius: 0px 20px 20px 0px;
}

.submenu-panel.active {
  display: block;
}

.submenu-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.5rem;
}

.menu-link:hover {
  background-color: #f0f0f0;
  color: #000;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.menu-link:hover .material-symbols-rounded {
  color: #007bff; /* atau warna utama kamu */
}
.submenu-panel li a {
  padding: 0.5rem 0.75rem;
  display: block;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.submenu-panel li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.submenu-panel li a:hover .material-symbols-rounded {
  color: #007bff;
}

.submenu-panel li a:hover {
  background-color: #eaeaea;
  color: #000;
}



/* === Main Area === */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition-speed);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  
      padding-top: 1rem;
    padding-right: 4rem;
    padding-bottom: 2rem;
    padding-left: 4rem;
  
  transition: margin-left var(--transition-speed);
   margin-left: var(--sidebar-width);
}

.main-content {
  flex: 1;
    padding-top: 1rem;
    padding-right: 4rem;
    padding-bottom: 2rem;
    padding-left: 4rem;
  transition: margin-left var(--transition-speed);
   margin-left: var(--sidebar-width);
}



.hamburger-toggle,
.search-button {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

/* === Overlay === */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--overlay-color);
  z-index: 50;
}

.overlay.active {
  display: block;
}
.sidebar-nav{    padding-top: 20px;}
.site-footer {
    color: #222;
    padding-top: 4rem;
    padding-right: 4rem;
    padding-bottom: 2rem;
    padding-left: 4rem; 
    font-size: 16px;
    margin-left: var(--sidebar-width);
}
/* === When submenu is active: shift main-area === */
body.panel-open .main-area,
body.panel-open .site-header,
body.panel-open .main-content,
body.panel-open .site-footer {
  margin-left: calc(var(--sidebar-width) + 60px);
}

/* === Show text on desktop === */
@media (min-width: 769px) {
  .menu-text {
    display: inline;
  }
}

/* === Responsive for Mobile === */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -100%;
    z-index: 100;
  }
  .main-content {
   padding:0;
   margin-left: 0;
}

.site-header {
  padding:0;
   margin-left: 0;
}
.footer-links{
justify-content: center;}
.site-footer {
	 padding:0;
 margin-left: 0;
}

.footer-logo img {
 margin-top:60px;
}
body.panel-open {
  overflow: hidden;
}

  .sidebar.open {
    left: 0;
  }

  .submenu-panel {
    left: calc(var(--sidebar-width));
    z-index: 99;
  }

  .submenu-panel.active {
    display: block;
  }

  /* ✅ Tambahkan ini sebagai gantinya: */
  body.panel-open .main-area,
  body.panel-open .site-header,
  body.panel-open .main-content,
  body.panel-open .site-footer {
    margin-left: calc(var(--sidebar-width) + 60px);
  }

  body.panel-open .sidebar {
    left: 0;
  }

  body.panel-open .submenu-panel {
    left: 0;
  }
}
@media (min-width: 769px) {
  .menu-link[data-tooltip] {
    position: relative;
  }

  .menu-link[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    white-space: nowrap;
    font-size: 0.75rem;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    margin-left: 8px;
    z-index: 9999;
  }

  .menu-link[data-tooltip]:hover::after {
    opacity: 1;
  }
}
.sidebar-tooltip {
  position: absolute;
  background-color: #333;
  color: white;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sidebar-tooltip.visible {
  opacity: 1;
}

.lefttor {
  font-size: 0.9em;text-align: right;font-family: 'Noto Sans Batak', serif;
}
  /* cari */
.search-container {
  max-width: 600px;
  margin: 100px auto;
  text-align: center;
}
.search-button {
  width: 48px; /* atau 40px, sesuai kebutuhan */
  height: 48px;
  border-radius: 50%;
  background-color: #f8f9fa; /* warna latar belakang */
  border: 1px solid #ddd; /* opsional, untuk outline */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top:10px;
}

.search-button:hover {
  background-color: #e6e6e6; /* warna saat hover */
}

.search-button .material-symbols-rounded,
.search-button svg {
  font-size: 24px;
  color: #333;
}

	


#live-search {
  width: 100%;
  padding: 12px 20px;
  font-size: 18px;
  border: 1px solid #ccc;
  border-radius: 24px;
  outline: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: 0.2s;
}

#live-search:focus {
  border-color: #0073aa;
  box-shadow: 0 0 4px rgba(0,115,170,0.5);
}

#search-results {
  margin-top: 20px;
  text-align: left;
  background: #fff;
  border-radius: 8px;
  padding: 10px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#search-results ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#search-results li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

#search-results li:last-child {
  border-bottom: none;
}

#search-results a {
  text-decoration: none;
  color: #0073aa;
  font-weight: bold;
}

#search-results a:hover {
  text-decoration: underline;
}
.site-logo img {
    width: 200px;
    display: inline;    
position: relative;
    top: 8px;
}
a {
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #007BFF;
  text-decoration: underline;
}
/* Default (light) theme */
body {
  background-color: #fff;
  color: #111;
  transition: background-color 0.3s, color 0.3s;
}

/* Dark theme */
body.dark-mode {
  background-color: #121212;
  color: #f1f1f1;
}

/* Tombol toggle */
.theme-toggle {
  
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1000;
}
header, footer, .card, .site-footer, .sidebar {
  transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

body.dark-mode .sidebar {
  background-color: #1e1e1e;
  color: #ffffff;
}

body.dark-mode .site-footer {
  background-color: #1a1a1a;
  color: #ddd;
  border-top: 1px solid #333;
}

body.dark-mode .menu-link {
  color: #ffffff;
}

body.dark-mode .menu-link:hover {
  background-color: #333;
}

body.dark-mode .submenu-panel {
  background-color: #2a2a2a;
  color: #fff;
}
.site-logo a{font-size:25px;}

.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-size: 28px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  vertical-align: middle;
}
.menu-link.menu-icon {
  font-size: 16px;
  margin: 0;
  padding: 0;
}
.submenu-items {
  margin: 0;
  padding: 0;
}



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

.footer-column h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  color: #5e35b1; /* Ungu Material */
  text-decoration: none;
}

.footer-column ul li a:hover {
  text-decoration: underline;
}

.footer-description {
  margin-top: 1rem;
  color: #444;
  line-height: 1.6;
}

.footer-logo img {
  width:50%;
  height: auto;
}

.footer-bottom {
  border-top: 1px solid #e0e0e0;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  font-weight: bold;
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: #5e35b1;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}


@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    
  }
}
@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr; 
  }
}

/* KOMPONEN */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.card {
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card-img {
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

.card-title {
  padding: 1rem;
  text-align: center;
}

.card-body {
  padding: 1.25rem;
}

.card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #111;
}

.card-body p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
}
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: flex-start;
  padding: 1rem;
}

.card {
  flex: 1 1 45%;
  max-width: 100%;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-image {
  height: 200px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  font-size: 1.5rem;
  text-align: center;
}

.card-content {
  padding: 1rem 1.25rem;
}

.card-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.card-content p {
  margin: 0;
  color: #555;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Responsive: full width on small screens */
@media (max-width: 768px) {
  .card {
    flex: 1 1 100%;
  }
}
