/* Gallery Section Styles */
.gallery-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#parent-button {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 30px auto;
}

/* grp button */
   .secondary {
            background-color: transparent;
            color: #2563eb;
            border: 2px solid #2563eb;
        }
        .secondary:hover {
            background-color: #f0f5ff;
        }
        

.section-subtitle {
      text-align: center;
    color: #4415a8;
    margin-bottom: 40px;
    font-size: 2.1rem;
}

/* Filter Buttons */
.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    border: none;
    background: #094C9B;
    color: white;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
}

.filter-btn:hover {
    background: #073b7d;
}

.filter-btn.active {
    background: #a9700d;
    color: wheat;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 250px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(9, 76, 155, 0.9);
    color: white;
    transition: bottom 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

.gallery-overlay h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.gallery-overlay p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}


/* group A,B div */
 .child-1,.child-2{
  
  background: 
    linear-gradient(
      135deg,
      rgba(4, 92, 90, 0.9) 0%, 
      rgba(34, 180, 168, 0.8) 50%, 
      rgba(12, 66, 181, 0.6) 100%
    );
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(48, 12, 131, 0.3);
  
  margin: 20px auto;
   
  overflow: hidden;
  text-align: left;
}

.grpa, .grpb
{
    background-color: #300c83;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(48, 12, 131, 0.3);
 
  margin: 20px auto;
  width: fit-content;
  position: relative;
  overflow: hidden;
}

 .grp-parent {
            display: flex;
            justify-content: center;
            gap: 30px;
            padding: 30px;
            background-color: #f8f9fa;
            min-height:200 px;
        }
/* Responsive Design */


/* responsive for grpa,grpb */
 @media (max-width: 768px) {
            .grp-parent {
                flex-direction: column;
                align-items: center;
                gap: 15px;
                padding: 20px;
            }
            
            .child-1, .child-2 {
                padding: 10px 20px;
                font-size: 14px;
                margin: 10px auto;
                max-width: 100%;
            }
            
            .grpa, .grpb {
                padding: 10px 20px;
                font-size: 1rem;
                margin: 10px auto;
                width: 100%;
                text-align: center;
            }
        }
        
        @media (max-width: 480px) {
            .grp-parent {
                padding: 15px;
            }
            
            .child-1, .child-2 {
                padding: 8px 16px;
                font-size: 13px;
            }
            
            .grpa, .grpb {
                padding: 8px 16px;
                font-size: 0.9rem;
            }
        }

/* responsive for grpa,grpb */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .gallery-filter {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}