﻿/* QuickLinks Container - Overlaps banner */
.quicklinks-wrapper {
    position: relative;
    margin-top: -80px;
    z-index: 10;
    padding: 0 15px;    /* 40px;*/
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.quicklinks-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background-color: #1a2b3c;
    border-radius: 0;
    overflow: hidden;
}

/* Individual QuickLink Item */
.quicklink-item {
    display: grid;
    grid-template-columns: 45px 1fr;
    grid-template-rows: 1fr auto;
    gap: 0 15px;
    padding: 25px 20px;
    background-color: #1a2b3c;
    color: white;
    transition: background-color 0.3s ease;
    min-height: 140px;
    position: relative;
}

    .quicklink-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 20%;
        bottom: 20%;
        width: 2px;
        background-color: white;    /*rgba(255, 255, 255, 0.2);*/
    }

    .quicklink-item:hover {
        background-color: #233749;
    }

/* Icon Styling - spans only first row */
.quicklink-icon {
    grid-column: 1;
    grid-row: 1;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center; /*flex-start;*/
    justify-content: center;
}

    .quicklink-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

/* Content wrapper - spans first row, second column */
.quicklink-content {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
}

/* Text wrapper for title and subtitle */
.quicklink-text {
    margin-bottom: auto; /* Pushes link to bottom */
}

.quicklink-title {
    font-family: "Roboto Flex", sans-serif !important;
    font-size: 1.5rem; /*1.05rem;*/
    font-weight: 600;
    line-height: 1.3;
    margin: 0; /* 0 0 5px 0;*/
    color: white;
}

.quicklink-subtitle {
    font-family: "Roboto Flex", sans-serif !important;
    font-size: 1.4rem !important; /*0.95rem;*/
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Learn More Link - spans second row, second column */
.quicklink-cta {
    grid-column: 2;
    grid-row: 2;
    font-family: "Roboto Flex", sans-serif !important;
    font-size: 0.9rem;
    font-weight: 600;
    color: #F5C842;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: end; /* Aligns to bottom of its grid cell */
    transition: color 0.3s ease;
    padding-top: 10px;
}

    .quicklink-cta:hover {
        color: #E6B830;
    }

.quicklink-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.quicklink-cta:hover .quicklink-arrow {
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .quicklinks-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .quicklink-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }


    .quicklink-item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    .quicklink-item:after {
        background-color: transparent!important;
    }

    .quicklink-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .quicklinks-wrapper {
        margin-top: 0;
        padding: 0
    }
}

@media (max-width: 768px) {
    .quicklinks-wrapper {
        margin-top: 0;  /*-40px;*/
        padding: 0 20px;
        padding:0;
    }

    .quicklinks-container {
        grid-template-columns: 1fr;
    }

    .quicklink-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        min-height: auto;
    }

    .quicklink-item::after {
        background-color: transparent!important;
    }


    .quicklink-item:nth-child(odd) {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .quicklink-item:last-child {
        border-bottom: none;
    }
    .quicklink-content {
        background: url('../images/quick-link-arrow.png') no-repeat right center !important;
    }
    .quicklink-arrow {
        display: none;
    }
}
