/**
 * MGE Anchor Menu - Tab Style Navigation
 * Identical design to mission-testimonials-filter-menu
 */

/* Menu Container */
.mge-anchor-menu {
    column-gap: 10px;
    display: flex;
    flex-wrap: wrap;
    row-gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

/* Alignment Variants */
.mge-anchor-menu--center {
    justify-content: center;
}

.mge-anchor-menu--left {
    justify-content: flex-start;
}

.mge-anchor-menu--right {
    justify-content: flex-end;
}

/* Button Base Style */
.mge-anchor-menu__btn {
    background-color: var(--accent-1, #d3dec4);
    font-weight: 600;
    min-width: 200px;
    text-align: center;
    transition: all 0.5s ease 0s;
    border-radius: 5px;
    padding: 12px 30px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--contrast, #000000);
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* Button Hover & Focus */
.mge-anchor-menu__btn:hover,
.mge-anchor-menu__btn:focus {
    background-color: #638536;
    color: var(--base-3, #ffffff);
    transition: all 0.5s ease 0s;
    transform: translate3d(0px, -2px, 0px);
    outline: none;
}

/* Active Button */
.mge-anchor-menu__btn--active,
.mge-anchor-menu__btn--active:hover,
.mge-anchor-menu__btn--active:focus {
    color: var(--base-3, #ffffff);
    background-color: var(--accent, #759e41);
    outline: none;
}

/* Button Text */
.mge-anchor-menu__text {
    font-size: 16px;
    font-weight: 600;
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    .mge-anchor-menu__btn {
        min-width: 150px;
        padding: 10px 20px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .mge-anchor-menu {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .mge-anchor-menu__btn {
        min-width: 250px;
        width: 100%;
        max-width: 300px;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .mge-anchor-menu__btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    .mge-anchor-menu__text {
        font-size: 14px;
    }
}

/* ================================================
   TILES VARIANT - Image Cards with Overlay
   ================================================ */

/* Tiles Container */
.mge-anchor-tiles {
    display: grid;
    gap: 20px;
    padding: 20px 0;
    margin-bottom: 30px;
}

/* Column Variants */
.mge-anchor-tiles--cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.mge-anchor-tiles--cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.mge-anchor-tiles--cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Alignment */
.mge-anchor-tiles--center {
    justify-items: center;
}

.mge-anchor-tiles--left {
    justify-items: start;
}

.mge-anchor-tiles--right {
    justify-items: end;
}

/* Single Tile */
.mge-anchor-tile {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 15px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mge-anchor-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.mge-anchor-tile:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent, #759e41);
}

/* Overlay - gradient from transparent to black */
.mge-anchor-tile__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.6) 70%,
        rgba(0, 0, 0, 0.9) 100%
    );
    transition: background 0.3s ease;
    z-index: 1;
}

.mge-anchor-tile:hover .mge-anchor-tile__overlay {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 30%,
        rgba(0, 0, 0, 0.5) 60%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

/* Title */
.mge-anchor-tile__title {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    padding: 20px 15px;
    letter-spacing: 0.05em;
}

/* Active Tile */
.mge-anchor-tile--active {
    box-shadow: 0 0 0 3px var(--accent, #759e41);
}

.mge-anchor-tile--active .mge-anchor-tile__overlay {
    background: linear-gradient(
        to bottom,
        rgba(117, 158, 65, 0.2) 0%,
        rgba(117, 158, 65, 0.3) 40%,
        rgba(0, 0, 0, 0.7) 70%,
        rgba(0, 0, 0, 0.95) 100%
    );
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    .mge-anchor-tiles--cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .mge-anchor-tiles--cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .mge-anchor-tile__title {
        font-size: 16px;
        padding: 15px 10px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .mge-anchor-tiles--cols-4,
    .mge-anchor-tiles--cols-3,
    .mge-anchor-tiles--cols-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .mge-anchor-tile {
        aspect-ratio: 3 / 4;
    }

    .mge-anchor-tile__title {
        font-size: 14px;
        padding: 15px 10px;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .mge-anchor-tiles--cols-4,
    .mge-anchor-tiles--cols-3,
    .mge-anchor-tiles--cols-2 {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .mge-anchor-tile {
        border-radius: 10px;
    }

    .mge-anchor-tile__title {
        font-size: 12px;
        padding: 10px 8px;
        letter-spacing: 0.02em;
    }
}