/* Gallery Page Styles */
/* Banner Section  */
.gallery_page-banner {
 position: relative;
 background-color: var(--primary-dark);
 height: 160px;
 display: flex;
 align-items: center;
 margin-bottom: 2rem;
 overflow: hidden;
}

.gallery_page-overlay {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: linear-gradient(45deg, rgba(0, 112, 60, 0.95), rgba(0, 90, 48, 0.9));
 z-index: 1;
}

.gallery_page-pattern {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
 background-repeat: repeat;
 z-index: 2;
}

.gallery_page-banner-content {
 position: relative;
 z-index: 3;
 text-align: center;
 color: var(--white);
}

.gallery_page-icon {
 width: 60px;
 height: 60px;
 background-color: var(--secondary-gold);
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 margin: 0 auto 0.75rem;
 font-size: 1.75rem;
 color: var(--white);
 box-shadow: 0 0 15px rgba(194, 155, 64, 0.5);
}

.gallery_page-title {
 font-size: 1.75rem;
 font-weight: 700;
 margin-bottom: 0.75rem;
 position: relative;
 display: inline-block;
}

.gallery_page-title::after {
 content: '';
 position: absolute;
 bottom: -8px;
 left: 50%;
 transform: translateX(-50%);
 width: 60px;
 height: 2px;
 background-color: var(--secondary-gold);
}

.gallery_page-breadcrumb {
 display: flex;
 justify-content: center;
 margin-top: 1rem;
}

.breadcrumb {
 background-color: transparent;
 margin-bottom: 0;
 padding: 0.25rem 0.75rem;
 border-radius: 20px;
 display: inline-flex;
 background-color: rgba(255, 255, 255, 0.15);
}

.breadcrumb-item {
 font-size: 0.85rem;
}

.breadcrumb-item a {
 color: var(--white);
 text-decoration: none;
 transition: var(--transition);
}

.breadcrumb-item a:hover {
 color: var(--secondary-gold);
}

.breadcrumb-item.active {
 color: var(--secondary-gold);
}

.breadcrumb-item+.breadcrumb-item::before {
 color: rgba(255, 255, 255, 0.7);
 content: "/";
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
 .gallery_page-banner {
  height: 140px;
 }
 
 .gallery_page-icon {
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
 }
 
 .gallery_page-title {
  font-size: 1.5rem;
 }
}

@media (max-width: 575.98px) {
 .gallery_page-banner {
  height: 120px;
 }
 
 .gallery_page-icon {
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
 }
 
 .gallery_page-title {
  font-size: 1.25rem;
 }
 
 .breadcrumb-item {
  font-size: 0.75rem;
 }
}
/* Gallery Main Section */
.gallery_page-main {
    padding-bottom: 4rem;
}

.gallery_page-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.gallery_page-section-title i {
    margin-left: 0.75rem;
    color: var(--secondary);
    font-size: 1.75rem;
}

/* Gallery Filters */
.gallery_page-filters {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

.gallery_page-filter-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.gallery_page-filter-label {
    margin-left: 1rem;
    margin-bottom: 0;
    font-weight: 600;
    color: var(--dark);
}

.gallery_page-filter-select {
    max-width: 250px;
    border: 1px solid rgba(0, 112, 60, 0.2);
    color: var(--dark);
    border-radius: 5px;
    padding: 0.5rem 1rem;
    background-color: var(--white);
    transition: var(--transition);
}

.gallery_page-filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 112, 60, 0.25);
}

/* Gallery Grid */
.gallery_page-grid {
    margin-bottom: 3rem;
}

.gallery_page-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.gallery_page-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery_page-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 66.66%; /* 3:2 Aspect Ratio */
}

.gallery_page-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery_page-card:hover .gallery_page-img {
    transform: scale(1.05);
}

.gallery_page-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery_page-card:hover .gallery_page-overlay {
    opacity: 1;
}

.gallery_page-zoom {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.1s;
}

.gallery_page-card:hover .gallery_page-zoom {
    transform: translateY(0);
    opacity: 1;
}

.gallery_page-zoom:hover {
    background-color: var(--primary);
    color: var(--white);
}

.gallery_page-card-body {
    padding: 1.25rem;
}

.gallery_page-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
    line-height: 1.5;
    height: 3.3rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.gallery_page-card-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--gray);
}

.gallery_page-card-category,
.gallery_page-card-date {
    display: flex;
    align-items: center;
}

.gallery_page-card-category i,
.gallery_page-card-date i {
    margin-left: 0.5rem;
    color: var(--secondary);
}

/* Pagination */
.gallery_page-pagination {
    margin-top: 3rem;
}

.pagination {
    gap: 0.5rem;
}

.page-link {
    color: var(--primary);
    border: 1px solid rgba(0, 112, 60, 0.2);
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px !important;
    font-weight: 500;
    transition: var(--transition);
}

.page-link:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

.page-item.disabled .page-link {
    color: #ccc;
}

/* CTA Section */
.gallery_page-cta {
    padding: 4rem 0;
    background: url('/Assets/SiteTheme/img/cta-bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
}

.gallery_page-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 112, 60, 0.9), rgba(0, 90, 48, 0.8));
}

.gallery_page-cta-wrapper {
    position: relative;
    z-index: 1;
    color: var(--white);
}

.gallery_page-cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.gallery_page-cta-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-gold);
}

.gallery_page-cta-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.gallery_page-cta-hadith {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    position: relative;
    border-right: 4px solid var(--secondary-gold);
}

.gallery_page-cta-hadith-text {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.gallery_page-cta-hadith-source {
    font-size: 0.9rem;
    opacity: 0.8;
}

.gallery_page-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    height: 100%;
}

.gallery_page-cta-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: 5px;
    transition: var(--transition);
}

.gallery_page-cta-btn-outline {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: 5px;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.gallery_page-cta-btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .gallery_page-banner {
        height: 250px;
    }
    
    .gallery_page-title {
        font-size: 2rem;
    }
    
    .gallery_page-filter-wrapper {
        justify-content: flex-start;
        margin-top: 1rem;
    }
    
    .gallery_page-cta-buttons {
        margin-top: 2rem;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .gallery_page-cta-btn,
    .gallery_page-cta-btn-outline {
        width: auto;
    }
}

@media (max-width: 767.98px) {
    .gallery_page-banner {
        height: 200px;
    }
    
    .gallery_page-title {
        font-size: 1.75rem;
    }
    
    .gallery_page-section-title {
        font-size: 1.25rem;
    }
    
    .gallery_page-filter-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .gallery_page-filter-label {
        margin-bottom: 0.5rem;
        margin-left: 0;
    }
    
    .gallery_page-filter-select {
        width: 100%;
        max-width: 100%;
    }
    
    .gallery_page-cta-title {
        font-size: 1.5rem;
    }
    
    .gallery_page-cta-text {
        font-size: 1rem;
    }
    
    .gallery_page-cta-hadith-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 575.98px) {
    .gallery_page-banner {
        height: 180px;
    }
    
    .gallery_page-title {
        font-size: 1.5rem;
    }
    
    .gallery_page-cta-buttons {
        flex-direction: column;
    }
}