/* ============================================
   Website Gallery Styles
   ============================================ */

:root {
    --primary-color: #FF6B35;
    --secondary-color: #004E89;
    --accent-color: #F7931E;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Page Header Section
   ============================================ */

.gallery-header {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(0, 78, 137, 0.08) 100%);
    padding: 3rem 1rem 4rem 1rem;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
}

.gallery-header-content {
    text-align: center;
}

.gallery-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
    display: block;
    visibility: visible;
    opacity: 1;
}

.gallery-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   Gallery Section
   ============================================ */

.gallery-section {
    padding: 3rem 0;
    background: var(--bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* ============================================
   Gallery Card Component
   ============================================ */

.gallery-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.gallery-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.gallery-card-image {
    width: 100%;
    height: 240px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-card:hover .gallery-card-image img {
    transform: scale(1.05);
}

.gallery-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.gallery-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.gallery-card-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Card CTA Button */
.gallery-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: #ffd400;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
}

.gallery-card-cta:hover {
    background: #ffce00;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(255, 212, 0, 0.3);
}

.gallery-card-cta::after {
    content: "→";
    transition: var(--transition);
}

.gallery-card-cta:hover::after {
    transform: translateX(2px);
}

/* ============================================
   CTA Section - Matches Homepage Accent Panel
   ============================================ */

.gallery-cta {
    padding: 0;
    margin: 3rem 0 0 0;
    border: none;
}

.cta-content {
    text-align: center;
    max-width: 100%;
    margin: 0;
    background: #ffd400;
    color: #1a1a1a;
    padding: 3rem 2rem;
    border-radius: 20px;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 1rem;
    margin-top: 0;
}

.cta-content p {
    font-size: 1.05rem;
    color: #1a1a1a;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 16px;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
}

.cta-buttons .btn-primary {
    background: #1a1a1a;
    color: white;
}

.cta-buttons .btn-primary:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: #1a1a1a;
    border-color: #1a1a1a;
}

.cta-buttons .btn-secondary:hover {
    background: #1a1a1a;
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   Empty State
   ============================================ */

.gallery-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.gallery-empty h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .gallery-header h1 {
        font-size: 3rem;
    }

    .gallery-header p {
        font-size: 1.15rem;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    .gallery-header {
        padding: 5rem 0;
        margin: 3rem 0 4rem 0;
    }

    .gallery-header h1 {
        font-size: 3.5rem;
    }

    .cta-content h2 {
        font-size: 2.5rem;
    }
}

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile (under 480px) */
@media (max-width: 480px) {
    .gallery-header {
        padding: 2rem 1rem;
        margin: 0;
    }

    .gallery-header h1 {
        font-size: 1.5rem;
        margin: 0 0 0.75rem 0;
        line-height: 1.3;
    }

    .gallery-header p {
        font-size: 0.95rem;
        display: block;
        visibility: visible;
    }

    .gallery-card {
        border-radius: 12px;
    }

    .gallery-card-image {
        height: 200px;
    }

    .gallery-card-content {
        padding: 1.25rem;
    }

    .cta-content {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* Extra small devices (under 360px) */
@media (max-width: 360px) {
    .gallery-header h1 {
        font-size: 1.5rem;
    }

    .gallery-card-title {
        font-size: 1.1rem;
    }

    .cta-content h2 {
        font-size: 1.25rem;
    }
}
