/* === Before & After Page specific styles === */

/* Hero Section */
.ba-hero {
    background-color: var(--deep-navy);
    color: var(--ivory);
    margin-top: 65px;
    /* Start below navbar */
    padding: 6rem 4rem;
    position: relative;
    overflow: hidden;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ba-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.15) 0%, rgba(13, 27, 62, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.ba-hero-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.ba-hero h1 {
    color: var(--ivory);
    font-size: 3.2rem;
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

.ba-hero p {
    font-size: 1rem;
    color: var(--soft-slate);
    line-height: 1.6;
    margin: 0;
}

/* Category Selectors */
.ba-category-section {
    background-color: var(--ivory);
    padding: 4rem 4rem 2rem 4rem;
    text-align: center;
}

/* Grid Section */
.ba-grid-section {
    background-color: var(--ivory);
    padding: 2rem 4rem 6rem 4rem;
}

.ba-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Tab content logic */
.ba-tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.ba-tab-content.active {
    display: block;
}

.ba-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.ba-card {
    position: relative;
    width: 100%;
    /* 16:9 aspect ratio to match home page */
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ba-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ba-card:hover img {
    transform: scale(1.05);
}

/* Before / After Badges for the card */
.ba-card-badge {
    position: absolute;
    top: 0;
    padding: 0.25rem 0.6rem;
    background-color: var(--sovereign-gold);
    color: var(--midnight-navy);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    z-index: 2;
}

.ba-card-badge.before {
    left: 0;
    border-bottom-right-radius: 6px;
}

.ba-card-badge.after {
    right: 0;
    border-bottom-left-radius: 6px;
}

@media (max-width: 1200px) {
    .ba-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .ba-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ba-grid {
        grid-template-columns: 1fr;
    }

    .ba-hero {
        padding: 4rem 1rem;
    }

    .ba-hero h1 {
        font-size: 2.2rem;
    }

    .ba-category-section,
    .ba-grid-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}