/* profil organisasi */
.gallery-view .swiper-slide img {
  border-radius: 8px;
  transition: transform 0.3s ease;
}
.gallery-view .swiper-slide img:hover {
  transform: scale(1.03);
}

.org-profile-wrapper {
  width: 100%;
  background: #f5f5f5;
  padding: 30px 15px;
  border-bottom: 1px solid #ddd;
}

.org-profile {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.org-profile h2 {
  color: #0066cc;
  font-size: 28px;
  margin-bottom: 15px;
}

.org-profile p {
  font-size: 17px;
  color: #444;
  line-height: 1.7;
}

.org-profile a {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #0066cc;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}



/* === General Widget Styling === */
.widget {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.widget:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.widget h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
  border-left: 4px solid #0077cc;
  padding-left: 10px;
}

/* === Tag Cloud === */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud .badge {
  background: #0077cc;
  color: #fff;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.tag-cloud .badge:hover {
  background: #005fa3;
}

/* === Widget Articles === */
.widget-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-articles li {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  border-bottom: 1px dashed #ddd;
  padding-bottom: 10px;
}

.widget-articles li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.widget-articles .article-photo img {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
}

.widget-articles .article-content {
  flex: 1;
}

.widget-articles h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}

.widget-articles h4 a {
  color: #222;
  text-decoration: none;
  transition: color 0.2s ease;
}

.widget-articles h4 a:hover {
  color: #0077cc;
}

.widget-articles .meta {
  font-size: 12px;
  color: #777;
  margin-top: 3px;
  display: block;
}

/* === Header === */
.site-header {
  background: #0077cc;
  padding: 10px 0;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* subtle bottom shadow instead of border */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 20px;
}

.logo img {
  max-height: 60px;
  width: auto;
}

/* === Search Form === */
.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.search-form {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 30px;
  padding: 5px 10px;
  background: #f9f9f9;
  justify-content: flex-start; /* ensure input and button align left inside the form */
}


.search-form input {
  border: none;
  outline: none;
  padding: 8px 10px;
  font-size: 14px;
  width: 200px;
  background: transparent;
}

.search-form button {
  background: none;
  border: none;
  cursor: pointer;
  color: #0077cc;
  font-size: 18px;
}

/* === Hamburger Menu === */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  display: block;
  border-radius: 2px;
}

/* === Menu Styles === */
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  background: transparent; /* blend into header */
  position: relative;
  overflow: visible;
}

.menu > li {
  position: relative;
}

.menu > li > a {
  display: block;
  padding: 14px 20px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.menu > li:hover > a {
  background: #005fa3;
}

.menu li .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 200px;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  z-index: 9999;
  flex-direction: column;
  white-space: nowrap;
}

.menu li:hover > .submenu {
  display: flex;
}

.submenu li {
  position: relative;
}

.submenu li a {
  display: block;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.submenu li a:hover {
  background: #f5f5f5;
  color: #0077cc;
}

.submenu .submenu {
  top: 0;
  left: 100%;
  margin-left: 1px;
}

.submenu li:hover > .submenu {
  display: flex;
}

/* Arrows */
.menu li > a::after {
  content: ' ▼';
  font-size: 10px;
  margin-left: 4px;
}

.submenu li > a::after {
  content: ' ▶';
  float: right;
  font-size: 10px;
}

.menu li:not(:has(.submenu)) > a::after,
.submenu li:not(:has(.submenu)) > a::after {
  content: '';
}

/* === Responsive Styles === */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #0077cc;
  }

  .menu.active {
    display: flex;
  }

  .menu > li {
    width: 100%;
  }

  .submenu, .submenu .submenu {
    position: static;
    display: none;
    background: #f1f1f1;
    box-shadow: none;
  }

  .menu li.open > .submenu {
    display: flex;
  }

  .submenu li a {
    padding-left: 24px;
  }

  .submenu .submenu li a {
    padding-left: 36px;
  }

  .hamburger span {
    background: #fff;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;       /* allow wrapping */
    gap: 10px;
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;           /* full width */
  }

  .hamburger {
    flex: 0 0 auto;
  }

  .logo {
    flex-shrink: 1;
    max-width: 120px;      /* optional */
  }

  .header-right {
    width: 100%;           /* full width below header-left */
    display: flex;
    justify-content: flex-start;
  }

  .search-form {
    width: 100%;
  }

  .search-form input {
    width: 100%;           /* input fills search bar */
  }
}




/* === Responsive Improvements === */
@media (max-width: 768px) {
  .widget {
    padding: 15px;
  }

  .widget-articles li {
    flex-direction: row;
  }

  .widget-articles .article-photo img {
    width: 60px;
    height: 45px;
  }

  .tag-cloud .badge {
    font-size: 13px;
    padding: 5px 10px;
  }
}

/* Swiper */
.swiper-container {
  width: 100%;
  padding: 20px 0;
}

.swiper-slide {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.article-content {
  padding: 15px;
}

.article-content h2 {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.article-content .meta {
  font-size: 0.9em;
  color: #777;
  margin-bottom: 10px;
}

.article-content p {
  font-size: 1em;
  color: #333;
}

.beritaSwiper {
  position: relative;
  padding: 10px 0;
}

.beritaSwiper .swiper-button-prev,
.beritaSwiper .swiper-button-next {
  color: white;
  background: rgba(0,0,0,0.4);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  transition: background 0.3s;
}

.beritaSwiper .swiper-button-prev:hover,
.beritaSwiper .swiper-button-next:hover {
  background: rgba(0,0,0,0.6);
}

.beritaSwiper .swiper-button-prev {
  left: 10px;
}

.beritaSwiper .swiper-button-next {
  right: 10px;
}

/* Footer */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 30px 20px;
  font-family: 'Segoe UI', sans-serif;
}

.footer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-menu {
  margin-bottom: 15px;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links li a:hover {
  color: #00bcd4;
}

.footer-info p {
  font-size: 13px;
  line-height: 1.6;
  color: #aaa;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .footer-links {
    flex-direction: column;
    align-items: center;
  }

  .footer-info {
    padding-top: 10px;
  }
}
