/* Google Fonts: Plus Jakarta Sans */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-cream: #FAF9F6;
    --navy-blue: #1e3a8a;
    --slate-gray: #475569;
    --white: #ffffff;
    --card-border: #f1f5f9;
    --shadow-soft: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
    background-color: var(--bg-cream);
    color: var(--slate-gray);
    color: var(--slate-gray);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

/* Background Watermarks */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

body::before {
    top: 10%;
    left: -50px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231e3a8a'%3E%3Cpath d='M21 12l-1.41 1.41L13 6.83V21h-2V6.83l-6.59 6.58L3 12 12 3l9 9z'/%3E%3C/svg%3E") no-repeat center/contain;
}

body::after {
    bottom: 10%;
    right: -50px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231e3a8a'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") no-repeat center/contain;
}

.gallery-section {
    max-width: 1200px;
    margin: 120px auto 60px;
    padding: 0 24px;
}

.gallery-section h1 {
    color: black !important;
}

.section-heading {
    color: black !important;
}

.achievement-label {
    color: black !important;
}

/* Header Area */
.gallery-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-title {
    font-size: 3.5rem;
    color: var(--navy-blue);
    margin: 0;
    font-weight: 800;
}

.gallery-subtitle {
    font-size: 1.125rem;
    color: var(--slate-gray);
    margin-top: 12px;
    font-weight: 400;
    letter-spacing: 0.025em;
}

/* Section Headings */
.section-heading {
    font-size: 1.75rem;
    color: var(--navy-blue);
    margin: 48px 0 32px;
    font-weight: 700;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--card-border);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Card Styling */
.gallery-card {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

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

.card-image-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.grid-2 .card-image-wrapper {
    height: 320px;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.achievement-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--navy-blue);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--slate-gray);
    line-height: 1.4;
    margin: 0;
}

.card-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin-top: 4px;
}

/* Interaction Buttons */
.card-footer {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.interaction-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: color 0.3s ease;
    font-weight: 500;
}

.interaction-btn:hover {
    color: var(--navy-blue);
}

.interaction-btn i {
    font-size: 1rem;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .gallery-title {
        font-size: 2.5rem;
    }

    .gallery-section {
        margin-top: 100px;
    }



    .card-image-wrapper,
    .grid-2 .card-image-wrapper {
        height: 220px;
    }
}

/* Lightbox (Refined) */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(8px);
}

#lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}

#close-btn {
    position: absolute;
    top: 32px;
    right: 32px;
    background: var(--white);
    color: var(--navy-blue);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#close-btn:hover {
    background: var(--navy-blue);
    color: var(--white);
    transform: rotate(90deg);
}