:root {
    /* Brand */
    --primary: #8CC63F;
    --secondary: #0B5F2A;
    --accent: #5FAE2E;

    /* Neutrals */
    --dark: #1F2933;
    --light: #F7FAF7;
    --border: #E2E8E4;

    /* States */
    --primary-hover: #76B82A;
    --secondary-hover: #094D22;

    /* Template token overrides */
    --ul-primary: var(--primary);
    --ul-secondary: var(--secondary);
    --ul-c5: var(--accent);
    --ul-black: var(--dark);
    --ul-gray2: var(--border);
    --ul-gray3: var(--light);
}

.ul-header .logo,
.ul-sidebar .logo {
    width: auto;
    height: 52px;
}

.logo-container .brand-stack {
    max-width: 360px;
}

@media (max-width: 1199.98px) {

    .ul-header .logo,
    .ul-sidebar .logo {
        height: 46px;
    }
}

@media (max-width: 991.98px) {

    .ul-header .logo,
    .ul-sidebar .logo {
        height: 40px;
    }

    .logo-container .brand-stack {
        max-width: 220px;
    }
}

@media (max-width: 767.98px) {
    .ul-header-bottom-wrapper {
        flex-wrap: nowrap;
        gap: 12px;
    }

    .logo-container a {
        gap: 8px;
    }

    .logo-container .brand-stack {
        max-width: 160px;
    }

    .brand-name {
        font-size: 14px;
        line-height: 1.05;
    }

    .brand-tagline {
        font-size: 11px;
    }
}

@media (max-width: 575.98px) {
    .logo-container .brand-stack {
        display: none;
    }

    .ul-header .logo {
        height: 36px;
    }
}

.brand-name {
    font-family: var(--font-quicksand);
    font-size: clamp(15px, 1.2vw, 19px);
    font-weight: 700;
    color: #9BDE64;
    letter-spacing: 0.2px;
    line-height: 1.1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.ul-sidebar .brand-name {
    color: var(--dark);
}

.brand-tagline {
    font-family: var(--font-caveat);
    font-size: clamp(12px, 1vw, 15px);
    color: var(--primary);
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.ul-sidebar .brand-tagline {
    color: var(--secondary);
}

.ul-header .brand-stack {
    padding: 0;
    background: none;
}

.ul-footer-widget-links a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ul-footer-widget-links a i {
    color: var(--primary);
    font-size: 0.9em;
}

.ul-footer-widget-links {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.ul-footer-widget-links a::before {
    display: none;
}

.ul-footer-top .ul-footer-container {
    max-width: 1400px;
}

.ul-footer-top-contact-infos {
    flex-wrap: wrap;
    gap: 20px;
}

.ul-footer-top-contact-info {
    flex: 1 1 280px;
}

.ul-footer-top-contact-info-address {
    white-space: normal;
    word-break: break-word;
}

.ul-banner-img .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ul-team-member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.ul-donation-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.animate__animated {
    animation-duration: 1.2s;
    animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.tcg-gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(12px, 2vw, 24px);
}

.tcg-gallery-item,
.tcg-gallery-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    display: block;
}

.tcg-gallery-item img,
.tcg-gallery-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.tcg-gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(5, 14, 10, 0.85) 100%);
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.tcg-gallery-overlay h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.tcg-gallery-overlay p {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
}

.tcg-gallery-card:hover .tcg-gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.tcg-gallery-item:nth-child(12n + 1),
.tcg-gallery-item:nth-child(12n + 6),
.tcg-gallery-card:nth-child(12n + 1),
.tcg-gallery-card:nth-child(12n + 6) {
    grid-column: span 6;
    aspect-ratio: 16 / 9;
}

.tcg-gallery-item:nth-child(12n + 2),
.tcg-gallery-item:nth-child(12n + 3),
.tcg-gallery-item:nth-child(12n + 4),
.tcg-gallery-item:nth-child(12n + 5),
.tcg-gallery-card:nth-child(12n + 2),
.tcg-gallery-card:nth-child(12n + 3),
.tcg-gallery-card:nth-child(12n + 4),
.tcg-gallery-card:nth-child(12n + 5) {
    grid-column: span 3;
    aspect-ratio: 4 / 5;
}

.tcg-gallery-item:nth-child(12n + 7),
.tcg-gallery-item:nth-child(12n + 8),
.tcg-gallery-item:nth-child(12n + 9),
.tcg-gallery-card:nth-child(12n + 7),
.tcg-gallery-card:nth-child(12n + 8),
.tcg-gallery-card:nth-child(12n + 9) {
    grid-column: span 4;
    aspect-ratio: 4 / 3;
}

.tcg-gallery-item:nth-child(12n + 10),
.tcg-gallery-item:nth-child(12n + 11),
.tcg-gallery-item:nth-child(12n + 12),
.tcg-gallery-card:nth-child(12n + 10),
.tcg-gallery-card:nth-child(12n + 11),
.tcg-gallery-card:nth-child(12n + 12) {
    grid-column: span 4;
    aspect-ratio: 1 / 1;
}

@media (max-width: 991.98px) {
    .tcg-gallery-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .tcg-gallery-item:nth-child(n),
    .tcg-gallery-card:nth-child(n) {
        grid-column: span 3;
    }
}

@media (max-width: 575.98px) {
    .tcg-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tcg-gallery-item:nth-child(n),
    .tcg-gallery-card:nth-child(n) {
        grid-column: span 2;
        aspect-ratio: 4 / 3;
    }
}

.tcg-projects .ul-section-heading .ul-section-descr {
    max-width: 720px;
    margin: 10px auto 0;
    color: rgba(31, 41, 51, 0.7);
}

/* Project styles migrated to `public/assets/css/style.css` to avoid duplication */
