/*
 * Theme Name:		GWT-Wordpress 26.0.0 - Latest - Ivy A.
 * Theme URI:		https://i.gov.ph
 * Description:		Custom WordPress theme based on the draft Unified Web Content Policy 
 *					prepared by the PCDSPO, DOST-ASTI, and DOST-ICTO. Theme is built on 
 *					HTML5 responsive WordPress framework based on ZURB's Foundation.
 *                  Updated by NGP and GOSD-GWHS
 * Version:			26.0.0
 * Author:			iGovPhil
 * Author URI:		https://i.gov.ph
 * License:			MIT License
 * License URI:		https://www.opensource.org/licenses/mit-license.php
 * Tags: 			theme-options, rtl-language-support, featured-images, editor-style, custom-menu, 
 *					responsive-layout, right-sidebar, left-sidebar, one-column, two-columns, three-columns
 */

/** Your style here **/
.mb-1 {
  margin-bottom: 1rem;
}
.border-panel-box {
  border: 1px solid hsla(0, 0%, 4%, 0.25);
  padding: 10px;
}
.flex {
  display: flex;
}
.flex-column {
  flex-direction: column;
}
.mx-15 {
  margin-left: 15px;
  margin-right: 15px;
}
.bg-white {
  background-color: #f8f9fe;
}
.full-width-banner {
  width: 100%;
  height: auto;
  display: block;
  margin: 0px;
}
.w-full img {
  width: 100%;
}

.city-services {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px;
  background: #f9f9f9;
  align-items: flex-start;
  justify-content: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 180px);
  gap: 20px;
}
.service-item:hover {
  background-color: #002147;
  color: #ffff;
}
.service-item {
  border: 1px solid #002147;
  padding: 20px;
  text-align: center;
  background: white;
  color: #002147;
  border-radius: 6px;
  font-weight: bold;
}
/* .service-item .icon {
  display: flex;
  justify-content: center;
} */
.service-item .icon i {
  font-size: 30px;
  margin-bottom: 10px;
  margin-bottom: 0.25em !important;
}
.service-item:hover {
  color: #fff;
}
.service-item .icon i.dashicons-building:before {
  font-size: 1.5rem;
}

.services-description {
  max-width: 500px;
  padding: 40px;
}

.services-description h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
}

.services-description p {
  font-size: 16px;
  line-height: 1.6;
}

.btn-view-more {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  color: #e53935;
  border: 2px solid #e53935;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-view-more:hover {
  background: #e53935;
  color: #fff;
}
.meta-info {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

.badge-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px; /* pill shape */
  color: #2951e6;
}

.badge-category {
  background-color: #eff6ff; /* Tailwind blue-600 */
}

.badge-tag {
  background-color: #eff6ff;
}

.date-label {
  /* background-color: #6b7280; Tailwind gray-500 */
  color: #6b7280;
  padding: 4px 0px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 9999px;
}

.single-post-article {
  max-width: 100%;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.post-meta .badge,
.post-tags .badge {
  display: inline-block;
  padding: 0.4em 0.75em;
  font-size: 0.75rem;
  border-radius: 50rem;
  font-weight: 600;
}

.bg-primary {
  background-color: #2563eb;
}
.bg-success {
  background-color: #16a34a;
}
.bg-secondary {
  background-color: #6b7280;
}

.post-tags {
  margin-top: 1rem;
}

.single-post-banner {
  height: 400px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 8px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.banner-overlay {
  background: rgba(0, 0, 0, 0.4); /* dark overlay */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

.post-banner-title {
  color: #fff;
  font-size: 1.8rem;
  text-align: center;
  font-weight: bold;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.wp-container-core-columns-is-layout-9d6595d7 {
  text-align: center;
}

@media (max-width: 768px) {
  .post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* homepage post array */
.post-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
}
.post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 auto;
}

.post-column {
  width: 100%;
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
}

.post-thumbnail-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.post-thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.entry-wrapper {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 200px;
}

.entry-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  text-align:start;
}

h2 .entry-title{
	text-align:start;
}
.entry-title a {
  text-decoration: none;
  color: #222;
}

.entry-summary{
  font-size: 0.9rem;
  color: #444;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* limit to 3 lines */
  -webkit-box-orient: vertical;
}
.check-expiration td:nth-child(5),
.check-expiration th:nth-child(5) {
  display: none;
}
/* Responsive */
@media (max-width: 1024px) {
  /* .post-column {
    width: 48%;
  } */
  .post-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .post-column {
    width: 100%;
  }
}
/* end of post array homepage */
.p-20 {
  padding: 20px;
}

@media (max-width: 768px) {
  .post-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .post-container {
    grid-template-columns: 1fr;
  }
}

/*borders for the pages
 */
.fbpageborders {
	border: 1px solid #ede0e0;
    border-radius: 10px;
/*     box-shadow: 4px 5px 9px 0px; */
}

/*borders for the Mission Vision
 */
.MVMborders {
	border: 2px solid black;
    border-radius: 25px;
    box-shadow: 4px 5px 9px 0px;
    padding: 30px;
    margin-bottom: 30px;
}

.local-government-table {
  position: relative;
  border-collapse: collapse;
}
.local-government-table th:first-child,
.local-government-table th:nth-child(2) {
  width: 30%;
}
.local-government-table tr td:last-child,
.local-government-table tr td:nth-child(3) {
  text-align: center;
}
.local-government-table th {
  background: #003067;
  color: #fff;
  position: sticky;
  border: 1px solid #fff;
  text-align: center;
  top: 0;
}
.local-government-table td,
.local-government-table th {
  padding: 10px;
}
.table-break {
  background: #118df0;
  text-align: center;
  color: #fff;
}

.local-government-table tr td:first-child {
  font-weight: bold;
  vertical-align: middle;
}
.local-government-table td {
  border: 1px solid #e1e1e1;
}

/* widget css */
.nav-link {
  display: block;
  padding: 0.5rem 1rem;
}

.nav-item .subpage-nav.active {
  background: #003067;
  color: #fff;
}
.nav-item .subpage-nav {
  margin: 10px 0 !important;
  background: #e8e8e8;
  padding: 10px 20px !important;
  border-left: 4px solid #b0b0b0;
  -webkit-transition: all 0.25s ease-in-out;
  -moz-transition: all 0.25s ease-in-out;
  transition: all 0.25s ease-in-out;
}
.nav {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.about-content h1,
.program-content h1 {
  font-family: "GothamMedium", sans-serif;
  color: #003067;
  margin: 20px 0;
}
.left-widget-about h3 {
  display: none !important;
}
.left-widget-about {
  width: 75%;
  padding: 20px;
}
.about-content-description p {
  margin: 2rem;
}

@media screen and (max-width: 768px) {
  .about-content-description p {
    margin: 1rem 0.5rem;
  }
  #customNavWidget {
    margin: 0 !important;
  }
  #primary {
    flex-direction: column; /* Stack the sidebar and main content */
  }

  aside#left-sidebar {
    flex: 1 1 100%; /* Make sidebar take full width on mobile */
    padding: 10px;
  }

  .left-widget-about {
    width: 100%;
    flex: 1 1 100%; /* Main content takes full width */
  }

  /* Adjust text and image for smaller screens */
  .text-center img {
    width: 70%; /* Increase image size on mobile */
  }

  /* Adjust font size for paragraphs on mobile */
  p {
    font-size: 14px;
    margin: 1rem; /* Reduce margin for mobile */
  }
	.services-grid {
    grid-template-columns: revert;
  }
	.service-item{
		padding: 3rem;
	}
}

/* Tablet view (between 768px and 1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  #primary {
    flex-direction: row;
  }

  aside#left-sidebar {
    flex: 1 1 30%; /* Sidebar takes 30% */
    padding: 15px;
  }

  main#main {
    flex: 1 1 70%; /* Main content takes 70% */
  }

  .text-center img {
    width: 50%; /* Adjust image size for tablets */
  }
}

.custom-left-widget {
  display: flex;
  flex-wrap: wrap;
  margin: 0 2rem;
}

.custom-left-widget aside {
  flex: 1 1 25%;
  padding: 20px;
}
.su-spoiler-style-fancy>.su-spoiler-title{
	border-bottom: none!important;
	border-radius: 0 !important;
}
.su-spoiler-style-fancy{
	border-radius: 0 !important;
}


/* 3D photo gallery styles */

.gallery-container {
  padding: 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.gallery-container h2 {
  font-size: 2rem;
  margin: 3rem;
  color: #333;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Mobile-friendly adjustments */
@media (max-width: 600px) {
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
  }

  .gallery-container h2 {
    font-size: 1.5rem;
  }
}
/* 3D photo gallery styles end*/

.wp-block-pdfp-pdf-poster .cta_wrapper{
	display:none;
}