/* =========================
   COMPARE HEADER (REAL DOM)
========================= */

.edu-compare-top {
    display: grid; background: #eef3f7;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
    align-items: stretch;
}

/* FORCE GRID EVEN INSIDE ELEMENTOR */
.edu-compare-top > * {
    width: 100%;
    min-width: 0;
}

/* COURSE SELECT (LEFT – BLUE) */
#edu-compare-course {
    background: #b5c4cf !important;
    color: #000 !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 14px 16px;
    border: none !important;
}

/* UNIVERSITY SELECTS */
.edu-compare-university {
    background: #f4f6f8 !important;
    border: 1px solid #d6dbe0 !important;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 15px;
}

/* REMOVE ASTRA HEIGHT LOCK */
.edu-compare-top select {
    height: auto !important;
}

/* BUTTON */
#edu-compare-btn {
    grid-column: 1 / -1;
    justify-self: center;
    padding: 12px 34px;
    border-radius: 30px;
    background: #ffc107;
    border: none;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .edu-compare-top {
        grid-template-columns: repeat(2, 1fr);
    }

    #edu-compare-course {
        grid-column: 1 / -1;
    }

    .edu-compare-table tbody td{
        padding: 8px !important;
    }

    .edu-compare-table{
        font-size: 12px !important;
    }
    
}

@media (max-width: 480px) {
    .edu-compare-top {
        grid-template-columns: 1fr;
    }
}
/* =========================
   RESULT TABLE – FINAL UI
========================= */

.edu-compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-size: 14px;
}

/* ===== HEADER ROW ===== */
.edu-compare-table thead th {
    width: 25%;
    padding: 18px 16px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #cfd8df;
}

/* Header – first column */
.edu-compare-table thead th:first-child {
    background: #145c73;
    color: #fff;
}

/* Header – university columns */
.edu-compare-table thead th:not(:first-child) {
    background: #f1f4f7;
    color: #1e293b;
}

/* ===== BODY CELLS ===== */
.edu-compare-table tbody td {
    width: 25%;
    padding: 16px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #d9dee4;
    border-right: 1px solid #d9dee4;
}

/* remove last border */
.edu-compare-table tbody td:last-child,
.edu-compare-table thead th:last-child {
    border-right: none;
}

/* ===== PARAMETER COLUMN (LEFT) ===== */
.edu-compare-table tbody td:first-child {
    background: #0e7444;
    color: #fff;
    font-weight: 600;
    border-right: 2px solid #0f4e62;
}

/* ===== DATA COLUMNS ===== */
.edu-compare-table tbody td:not(:first-child) {
    background: #f7f9fb;
    color: #1e293b;
}

/* ===== LINKS & RATING ===== */
.edu-compare-table a {
    color: #1d4ed8;
    font-weight: 500;
    text-decoration: none;
}

.edu-compare-table a:hover {
    text-decoration: underline;
}

.edu-compare-table .star {
    color: #f59e0b;
    font-weight: 600;
}

/* ===== MOBILE SCROLL ===== */
.edu-compare-scroll {
    overflow-x: auto;
}

/* ===============================
   ICONS FOR CURRENT DOM
=============================== */

/* =========================
   TOP ICON + SELECT LAYOUT
========================= */

.edu-select-wrap {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid #d6dde5;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

/* ICON BOX */
.edu-select-icon {
    height: 64px;
    border-radius: 8px;
    /*background: #eef3f7;*/
    display: flex;
    align-items: center;
    justify-content: center;
}

.edu-select-icon img {
    max-height: 42px;
    max-width: 42px;
    object-fit: contain;
}

/* COURSE CARD */
.edu-select-wrap.course {
    background: #e5f4ff;
    border: none;
}

/*
.edu-select-wrap.course .edu-select-icon {
   background: rgba(255,255,255,0.15);
}
   */

/* SELECT */
.edu-select-wrap select {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #cfd6dc;
    font-size: 15px;
}

.edu-select-wrap.course select {
    background: #145c73;
    color: #fff;
    font-weight: 600;
    border: none;
}
.edu-select-wrap {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid #d6dde5;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.edu-select-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edu-select-icon img {
    max-height: 48px;
    max-width: 120px;
    object-fit: contain;
}

.edu-select-icon img.default-icon {
    opacity: 0.4;
}

/* ===============================
   Center & Enlarge Compare Button
   =============================== */

.edu-compare-action {
    display: flex;
    justify-content: center;   /* center horizontally */
    margin-top: 24px;
}

#edu-compare-btn {
    padding: 14px 42px;        /* bigger button */
    font-size: 18px;
    font-weight: 600;
    border-radius: 999px;      /* pill shape */
    min-width: 220px;
    text-align: center;
}

/* ==========================================
   MOBILE FIX – FORCE REFERENCE LAYOUT
========================================== */
@media (max-width: 768px) {

    /* 2-column grid like reference */
    .edu-compare-top {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 5px !important;
    }

    /* Course card spans full width */
    .edu-select-wrap.course {
        grid-column: 1 / -1 !important;
        text-align: center;
    }

    /* University cards */
    .edu-select-wrap.uni {
        text-align: center;
        padding: 5px !important;
    }

    .edu-select-wrap.uni .edu-select-icon {
        justify-content: center;
        margin-bottom: 8px;
    }

    .edu-select-wrap select {
        text-align: center;
        font-size: 14px;
    }

    /* Button centered */
    .edu-compare-action {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }

    #edu-compare-btn {
        width: 220px;
        padding: 14px 28px;
        font-size: 16px;
        border-radius: 999px;
    }

    .edu-select-icon {
  height: 30px;
}

.edu-select-icon img {
  max-height: 36px;
}
}

/* ==========================================
   EXTRA SMALL DEVICES – STACK
========================================== */
/*@media (max-width: 480px) {

    .edu-compare-top {
        grid-template-columns: 1fr !important;
    }

    .edu-select-wrap.uni {
        width: 100%;
    }

    #edu-compare-btn {
        width: 240px;
        font-size: 17px;
        padding: 16px 32px;
    }
}
*/