/* PPID Officials cards styling */

.ppid-officials {
  background: #1abc9c0d; /* very light teal */
}

.ppid-officials .section-title {
  font-weight: 800;
}

.official-card-homepage {
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.official-card-homepage:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.18);
}

.official-card-homepage .badge {
  color: #fff;
  font-weight: 600;
  letter-spacing: .2px;
}

.official-card-homepage .official-logos {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.official-card-homepage .official-logos img {
  height: 22px;
  opacity: .9;
}

@media (max-width: 576px) {
  .ppid-officials .section-title { font-size: 1.4rem; }
  .official-card-homepage { border-radius: 14px; }
}

/* Badge colors for roles */
.bg-warning { background-color: #f59e0b !important; }
.bg-purple { background-color: #8b5cf6 !important; }
.bg-success { background-color: #10b981 !important; }
.bg-teal { background-color: #14b8a6 !important; }
.bg-dark { background-color: #374151 !important; }

/* Content Text Display Styles */
.content-frame .content-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
}

.content-frame .content-text h1,
.content-frame .content-text h2,
.content-frame .content-text h3,
.content-frame .content-text h4,
.content-frame .content-text h5,
.content-frame .content-text h6 {
  color: #2c3e50;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.content-frame .content-text p {
  margin-bottom: 1rem;
  text-align: justify;
}

.content-frame .content-text ul,
.content-frame .content-text ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.content-frame .content-text li {
  margin-bottom: 0.5rem;
}

.content-frame .content-text blockquote {
  border-left: 4px solid #28a745;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 0 8px 8px 0;
}

.content-frame .content-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.content-frame .content-text table th,
.content-frame .content-text table td {
  border: 1px solid #dee2e6;
  padding: 0.75rem;
  text-align: left;
}

.content-frame .content-text table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.content-frame .content-text img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

.content-frame .content-text a {
  color: #28a745;
  text-decoration: none;
}

.content-frame .content-text a:hover {
  color: #1e7e34;
  text-decoration: underline;
}

/* Officials Carousel Styles */
.officials-carousel-container {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.officials-carousel {
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 20px;
}

.carousel-slide {
  flex: 0 0 calc(33.333% - 14px); /* 3 cards per view */
  min-width: 0;
}

.carousel-slide .official-card-homepage {
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-slide .official-card-homepage:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Navigation Arrows */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-nav:hover {
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: -25px;
}

.carousel-next {
  right: -25px;
}

.carousel-nav i {
  color: #333;
  font-size: 18px;
}

/* Dots Indicator */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active,
.carousel-dot:hover {
  background: #06beb6;
  transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 992px) {
  .carousel-slide {
    flex: 0 0 calc(50% - 10px); /* 2 cards per view on tablets */
  }

  .carousel-prev { left: -20px; }
  .carousel-next { right: -20px; }
}

@media (max-width: 768px) {
  /* Change to vertical stack layout on mobile */
  .officials-carousel-container {
    overflow: visible;
  }

  .carousel-track {
    display: block; /* Change from flex to block for vertical stacking */
    transform: none !important; /* Disable carousel transform */
  }

  .carousel-slide {
    flex: none;
    width: 100%;
    margin-bottom: 20px; /* Add space between cards */
    display: block;
  }

  .carousel-nav {
    display: none; /* Hide navigation arrows on mobile */
  }

  .carousel-dots {
    display: none; /* Hide dots on mobile since we're showing all cards */
  }
}

@media (max-width: 576px) {
  .officials-carousel-container {
    margin: 0 15px;
    overflow: visible;
  }

  .carousel-track {
    display: block; /* Ensure vertical stacking on small screens */
    transform: none !important;
  }

  .carousel-slide {
    margin-bottom: 15px; /* Slightly less space on very small screens */
  }

  .carousel-nav {
    display: none; /* Hide arrows on very small screens */
  }

  .carousel-dots {
    display: none; /* Hide dots since all cards are visible */
  }
}


