/* Projects Page */
.filter-section {
  padding: 30px 0;
  background: #f5f5f5;
}

.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.filter-btn {
  padding: 10px 20px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-btn:hover, 
.filter-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Projects Grid - Single Definition */
.projects-grid-section {
  padding: 80px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
  align-items: stretch; /* Ensures equal height */
}

/* Project Item - Single Definition */
.project-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Fixed Height Solution Without !important */
.project-image {
  position: relative;
  height: 300px; /* Now works without !important because duplicates removed */
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Swiper Overrides - Clean Version */
.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  width: 100%;
  height: 100%;
}

.swiper-pagination {
  bottom: 10px;
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: white;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--primary-color);
}

/* Navigation Arrows */
.swiper-button-next,
.swiper-button-prev {
  --swiper-navigation-color: rgba(255, 255, 255, 0.9);
  color: var(--swiper-navigation-color);
  background: rgba(0, 0, 0, 0.15);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}

.project-item:hover .swiper-button-next,
.project-item:hover .swiper-button-prev {
  opacity: 0.9;
}

/* Pagination dots - subtle style */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.6);
    width: 6px;
    height: 6px;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: rgba(255, 255, 255, 0.9); /* Brighter active dot */
}

.project-item:hover .swiper-pagination-bullet {
    opacity: 1;
}

/* Project Details */
.project-details {
  padding: 25px;
}

.project-meta {
  display: flex;
  gap: 15px;
  margin: 10px 0;
  color: #666;
  font-size: 0.9rem;
  justify-content: space-around;
}

/* Stats Section */
.stats-section {
  padding: 40px 0;
  background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('../images/stats-bg.jpg');
  background-size: cover;
  color: white;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Accordion Styles */
.accordion {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  margin-bottom: 10px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.accordion-header {
  width: 100%;
  padding: 15px 20px;
  background-color: #175771;
  color: white;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.accordion-header:hover {
  background-color: #1e4bb6;
}

.accordion-header i {
  transition: transform 0.3s;
}

.accordion-header.active i {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: #e6e6e6;
}

.accordion-content .project-detail {
  padding: 20px;
}

.project-detail p {
  margin: 8px 0;
  line-height: 1.5;
}


/* Additional Styles for Plans Card */

.plan-details {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.plan-details h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--dark-blue);
}

.plan-details ul {
  padding-left: 20px;
  margin-top: 5px;
}

.plan-details li {
  margin-bottom: 5px;
  font-size: 0.9rem;
  line-height: 1.5;
}