.single-card {
    height: 90vh;
}

.button-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    padding: 40px;
    justify-content: center;
    margin-bottom: 8vh;
    max-width: 700px;
    margin-inline: auto;
}

/* Card Styling */
.custom-card {
    border-radius: 20px;
    padding: 20px;
    position: relative;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.custom-card:hover {
    transform: translateY(-5px);
}

/* Icon White Box */
.icon-box {
    background: white;
    width: 140px;
    height: 140px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    /* border-radius: 0 0 10px 10px; */
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {

    .icon-box {
        width: 90px;
        /* Scaled down for mobile */
        height: 90px;
    }

    .custom-card {
        height: 170px;

    }
}

.vendor-col p {
    color: #003366 !important;
    -webkit-text-fill-color: #003366;
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
    text-decoration-skip-ink: none;
    -webkit-text-decoration-skip: none;
}

/* Icon Image */
.icon-box img {
    width: 100%;
    height: 100%;
}

/* Title Styling using your Merriweather H3 */
.card-title {
    color: white !important;
    margin: 0 0 0 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    padding-bottom: 5px;
    font-style: italic;
    /* Use clamp so it doesn't get too small on laptop or too big on desktop */
    font-size: clamp(1.2rem, 1.5vw, 2rem);
    text-align: center;
}

/* Specific Card Colors */
.school-fees {
    background-color: #e2a652;
    /* Golden-yellow */
}

.cafeteria-fees {
    background-color: #ba5d38;
    /* Rust-orange */
}

.cafeteria-menu {
    background-color: #3f66c1;
    /* Royal-blue */
}

.managebac {
    background-color: #2daae1;
    /* Sky-blue */
}

/* Demo MB Logo style */
.mb-logo-demo {
    height: auto !important;
    width: 90% !important;
}

/* Container Backgrounds */
.vendor-container {
    padding: 70px 40px;
    border-radius: 15px;
    margin: 10px 0;
}

.bg-secondary-light {
    background-color: var(--secondary-color);
    /* The gold color */
    opacity: 0.9;
}

.bg-blue-dark {
    background-color: var(--blue);
    /* The dark blue color */

}

/* .bg-blue-dark {
    border: 2px solid var(--secondary-color);
    The gold color
} */

/* Titles */
.vendor-main-title {
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 1.8vw;
    margin-bottom: 25px;
    letter-spacing: 1px;
    color: #003366;
}

.text-white {
    color: #fff !important;
}

/* The White Card */
.vendor-white-card {
    background: #fff;
    border-radius: 20px;
    /* Main border changed to yellow */
    border: 2px solid var(--blue);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}

.grid-2>div {
    flex: 1;
    min-width: 300px;
    /* border: 2px solid var(--blue);  */

}

.text-center {
    text-align: center;
    display: block !important;
}

/* Internal Spacing & Borders */
.vendor-col {
    padding: 0;
}

.border-right {
    border-right: 1px solid var(--secondary-color);
}

/* Optional: Adjusting the name color to match the line */
.vendor-name {
    color: var(--secondary-color);
    font-family: 'Merriweather', serif;
    font-weight: 700;
    margin-bottom: 5px;
    text-align: center;
    font-size: 2.5rem;
}

.contact-info {
    font-family: 'Lato', sans-serif;
    color: var(--blue);
    font-weight: 600;
    font-size: 1.1vw;
    margin-bottom: 20px;
    text-align: center;
}

.space-down {
    padding-bottom: 50px !important;
}

/* Address Blocks with FULL yellow lines */
.address-block {
    padding: 15px 25px;
    /* Full width yellow line */
    border-top: 1px solid var(--secondary-color);
    font-family: 'Merriweather', serif;
    font-size: 1vw;
    line-height: 1.6;
    color: var(--blue);
    width: 100%;
    box-sizing: border-box;
}

.address-block.no-border {
    border: none;
    max-width: 70%;
    margin: 0 auto;
}

.address-label {
    margin-top: 20px;
    font-weight: 700;
    color: var(--blue);
    /* text-decoration: underline; */
    font-size: 2vh;
}

/* Top headers inside the card (Name and Contact) */
.vendor-info-header {
    padding: 20px 25px;
}

/* First accordion: always keep table layout */
.accordion-item:first-child .vendor-container {
    padding: 70px 40px;
}

.accordion-item:first-child .vendor-white-card {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    flex-wrap: nowrap;
}

.accordion-item:first-child .grid-2>div {
    min-width: 0;
}

.accordion-item:first-child .vendor-col {
    display: grid;
    grid-template-rows: auto auto 1fr 1fr 1fr;
    align-content: start;
}

.accordion-item:first-child .vendor-name {
    font-size: clamp(2.2rem, 0.9rem + 0.35vw, 1.35rem);
    margin-bottom: 0.2rem;
    padding: 0.95rem 0.85rem 0 0.85rem;
}

.accordion-item:first-child .contact-info {
    font-size: clamp(0.72rem, 0.66rem + 0.22vw, 0.95rem);
    line-height: 1.45;
    margin-bottom: 0;
    padding: 0 0.85rem 0.8rem 0.85rem;
}

.accordion-item:first-child .address-block {
    display: flex;
    align-items: center;
    /* font-size: clamp(0.68rem, 0.62rem + 0.16vw, 0.88rem); */
    line-height: 1.55;
    min-height: 76px;
    padding: 0.85rem 1rem;
}

.accordion-item:first-child .vendor-col:last-child .address-block:last-child,
.accordion-item:first-child .vendor-col:last-child .address-block:nth-last-child(2) {
    min-height: 76px;
}


/* Responsive adjustments */
@media (max-width: 1199px) {
    .accordion-item:first-child .vendor-container {
        padding: 20px 16px;
    }

    .accordion-item:first-child .vendor-main-title {
        font-size: clamp(0.8rem, 0.74rem + 0.32vw, 1rem);
        margin-bottom: 18px;
    }

    .accordion-item:first-child .address-block {
        min-height: 82px;
        padding: 0.8rem 0.9rem;
    }
}

@media (max-width: 991px) {
    .accordion-item:first-child .vendor-container {
        padding: 18px 14px;
    }

    .accordion-item:first-child .vendor-white-card {
        grid-template-columns: minmax(235px, 1.08fr) minmax(190px, 0.92fr);
        overflow-x: auto;
    }

    .accordion-item:first-child .border-right {
        border-right: 2px solid var(--secondary-color);
        border-bottom: 0;
    }

    .accordion-item:first-child .vendor-name {
        font-size: 0.95rem;
    }

    .accordion-item:first-child .contact-info {
        font-size: 0.7rem;
    }

    .accordion-item:first-child .address-block {
        font-size: 0.66rem;
        min-height: 86px;
        padding: 0.75rem 0.8rem;
    }
}

@media (max-width: 768px) {
    .grid-2 {
        flex-direction: column;
    }

    .border-right {
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .vendor-main-title {
        font-size: 5vw;
    }

    .vendor-name {
        font-size: 4vw;
    }

    .address-block {
        font-size: 3.5vw;
    }

    .contact-info {
        font-size: 3.5vw;
    }

    .accordion-item:first-child .grid-2 {
        flex-direction: row;
    }

    .accordion-item:first-child .vendor-container {
        padding: 16px 12px;
    }

    .accordion-item:first-child .vendor-white-card {
        grid-template-columns: minmax(220px, 1.08fr) minmax(170px, 0.92fr);
        min-width: 100%;
    }

    .accordion-item:first-child .vendor-main-title {
        font-size: 0.78rem;
        margin-bottom: 14px;
    }

    .accordion-item:first-child .vendor-name {
        font-size: 0.88rem;
        padding: 0.8rem 0.7rem 0 0.7rem;
    }

    .accordion-item:first-child .contact-info {
        font-size: 0.65rem;
        padding: 0 0.7rem 0.65rem 0.7rem;
    }

    .accordion-item:first-child .address-block {
        font-size: 0.62rem;
        line-height: 1.45;
        min-height: 82px;
        padding: 0.7rem;
    }

    .accordion-item:first-child .border-right {
        border-right: 2px solid var(--secondary-color);
        border-bottom: 0;
    }

    .single-card {
        height: 240px !important;
    }

    .vendor-container {
        padding: 14px 10px;
    }

    .address-block.no-border {
        max-width: 100%;
    }

    .address-block {
        padding: 10px 16px;
    }

    .space-down {
        padding-bottom: 20px !important;
    }
    .vendor-main-title {
        font-size: 1.2rem;
    }
     
}

@media (max-width: 575px) {
    .accordion-item:first-child .vendor-container {
        padding: 14px 10px;
    }

    .accordion-item:first-child .vendor-main-title {
        font-size: 1.2rem;
    }  

    .accordion-item:first-child .vendor-white-card {
        grid-template-columns: minmax(205px, 1.06fr) minmax(155px, 0.94fr);
        border-radius: 14px;
    }

    .accordion-item:first-child .vendor-name {
        font-size: 0.82rem;
    }

    .accordion-item:first-child .contact-info {
        font-size: 0.6rem;
    }

    .accordion-item:first-child .address-block {
        font-size: 0.58rem;
        min-height: 78px;
        padding: 0.62rem;
    }
}


/* --- Tablet (1024px and down) --- */
@media (max-width: 1024px) {
    .card-title {
        font-size: 2vw;
        /* Slight increase for readability */
    }

    .button-container {
        padding: 20px;
        gap: 15px;
    }
}

/* --- Mobile (768px and down) --- */
@media (max-width: 768px) {
    .card-title {
        font-size: 4vw;
        /* Larger font for smaller screens */
    }

    .button-container {
        padding: 15px;
        gap: 10px;
        /* Ensures the container doesn't overflow the phone edges */
        width: 100%;
        box-sizing: border-box;
    }
}

/* --- Small Mobile (375px and down) --- */
@media (max-width: 375px) {
    .card-title {
        font-size: 4.5vw;
    }

    .button-container {
        padding: 10px;
        gap: 8px;
    }
}