/* 
 * Keshava Eye Care - Camps Stylesheet
 */

/* ==================================================
 * Hero Section
 * ================================================== */
.camps-hero {
    background-color: var(--color-surface);
    padding: 80px 20px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}
.camps-hero h1 {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: 600;
}
.camps-hero p {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================================================
 * Area Filters
 * ================================================== */
.camps-filters {
    padding: 40px 20px;
    text-align: center;
    background-color: var(--color-background);
}
.camps-filter-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0 20px 10px 20px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}
.camps-filter-list::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Edge */
}
@media (min-width: 768px) {
    .camps-filter-list {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
        padding: 0;
    }
}
.camp-filter-btn {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 1rem;
    white-space: nowrap;
}
.camp-filter-btn:hover {
    background: var(--color-background-alt);
    border-color: var(--color-primary-light);
}
.camp-filter-btn.active {
    background: var(--color-primary);
    color: var(--color-surface);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.2);
}

/* ==================================================
 * Camps List (Upcoming / Past)
 * ================================================== */
.camps-list-section {
    padding: 60px 20px;
}
.camps-list-container {
    max-width: 1200px;
    margin: 0 auto;
}
.camps-list-section h2 {
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 30px;
    text-align: center;
}
@media (max-width: 768px) {
    .camps-list-section {
        padding: 0 20px 60px 20px;
    }
}
.camps-carousel-wrapper {
    position: relative;
    width: 100%;
}
.camps-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
}
.camps-carousel::-webkit-scrollbar {
    display: none;
}
.camps-carousel .camp-card {
    /* M = 1.1 cards for mobile. 1 gap visible */
    flex: 0 0 calc((100% - 30px) / 1.1);
    scroll-snap-align: start;
    min-width: 0;
}
@media (min-width: 768px) {
    .camps-carousel .camp-card {
        /* M = 2.2 cards for tablet. 2 gaps visible */
        flex: 0 0 calc((100% - 2 * 30px) / 2.2);
    }
}
@media (min-width: 1024px) {
    .camps-carousel .camp-card {
        /* M = 3.2 cards for desktop. 3 gaps visible */
        flex: 0 0 calc((100% - 3 * 30px) / 3.2);
    }
}
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    transition: all 0.3s ease;
}
.carousel-nav-btn:hover {
    background: var(--color-primary);
    color: var(--color-surface);
    border-color: var(--color-primary);
}
.carousel-nav-btn.carousel-prev {
    left: -24px;
}
.carousel-nav-btn.carousel-next {
    right: -24px;
}
@media (max-width: 768px) {
    .carousel-nav-btn {
        display: none !important; /* Hide arrows on mobile */
    }
}
.camp-card {
    background: var(--color-surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.camp-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.camp-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.camp-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.camp-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-primary);
}
.camp-card-meta {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.camp-card-meta i {
    margin-right: 5px;
    color: var(--color-secondary);
}
.camp-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* ==================================================
 * Camp Gallery Section
 * ================================================== */
.camp-gallery-section {
    padding: 60px 20px 80px;
    background-color: var(--color-surface);
}
.camp-gallery-container {
    max-width: 1400px;
    margin: 0 auto;
}
.camp-gallery-header {
    text-align: center;
    margin-bottom: 40px;
}
.camp-gallery-header h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}
@media (max-width: 768px) {
    .camps-list-section h2, .camp-gallery-header, .camp-gallery-header h2, .camp-gallery-header p {
        text-align: left;
    }
}

/* Gallery Grid */
#camp-gallery-grid, .archive-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
@media (max-width: 1024px) {
    #camp-gallery-grid, .archive-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    #camp-gallery-grid, .archive-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}
@media (max-width: 480px) {
    #camp-gallery-grid, .archive-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Gallery Item */
.camp-gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    background: #f0f0f0;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}
.camp-gallery-item:hover {
    box-shadow: var(--shadow-md);
}
.camp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.camp-gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery Overlay */
.camp-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    transition: opacity 0.3s ease;
}
.camp-gallery-item:hover .camp-gallery-overlay {
    opacity: 1;
}
.camp-gallery-info {
    color: #fff;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}
.camp-gallery-item:hover .camp-gallery-info {
    transform: translateY(0);
}
.camp-gallery-info h4 {
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    font-weight: 600;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.camp-gallery-info p {
    font-size: 0.85rem;
    margin: 0 0 3px 0;
    color: #eee;
    display: flex;
    align-items: center;
}
.camp-gallery-info p i {
    font-size: 0.9rem;
    margin-right: 6px;
    width: 14px;
    text-align: center;
}

/* Load More Button */
.camp-load-more-container {
    text-align: center;
}
#camp-load-more {
    background: var(--keshava-navy);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}
#camp-load-more:hover {
    transform: translateY(-2px);
}
#camp-load-more:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}
.no-images {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.1rem;
    padding: 40px;
    background: var(--color-background-alt);
    border-radius: 12px;
}

/* Lightbox Customizations */
.gslide-desc {
    background: rgba(255,255,255,0.95) !important;
    color: var(--color-text) !important;
    text-align: center !important;
    border-radius: 8px !important;
    padding: 15px !important;
    font-family: inherit !important;
}
.gslide-desc strong {
    color: var(--color-primary);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}
