/* ===== MAIN LAYOUT ===== */
.edu-layout {
    display: grid;
    grid-template-columns: 30% 1fr;
    gap: 30px;
    align-items: flex-start;
}

/* LEFT FILTER */
.edu-sidebar {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 6px 25px rgba(0,0,0,.08);
    position: sticky;
    top: 90px;
}

/* RIGHT RESULTS */
.edu-results-wrap {
    width: 100%;
}

/* ===== RESULT CARD ===== */
.edu-result-card {
    display: grid;
    grid-template-columns: 45% 54%;
    gap: 10px;
    background: #fff;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 6px 10px #1414145e;
    margin-bottom: 30px;
    align-items: stretch;
}

/* LEFT IMAGE */
.edu-card-left {
    position: relative;
    display: flex;
    min-height: 220px;
}

.edu-card-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* MODE BADGE */
/* ===== MODE BADGES ===== */
.edu-mode-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
    letter-spacing: 0.3px;
}

/* Online Mode – Green */
.edu-mode-badge.online {
    background: #1e7e34; /* green */
}

/* Distance Mode – Orange / Red */
.edu-mode-badge.distance {
    background: #f57c00; /* orange */
}

/* Optional hover polish */
.edu-mode-badge.distance:hover {
    background: #e65100;
}


/* RIGHT CONTENT */
.edu-card-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.edu-university-title {
    color: #d32f2f;
    font-size: 22px;
    margin-bottom: 16px;
    font-weight: 800;
}

/* INFO GRID */
.edu-card-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px 10px;
    margin-bottom: 22px;
}

/* ACTIONS */
.edu-card-actions {
    display: flex;
    gap: 16px;
    margin-top: auto;
}

.edu-btn {
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.edu-btn-primary {
    background: #2e7d32;
    color: #fff;
}

.edu-btn-secondary {
    background: #1565c0;
    color: #fff;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .edu-result-card {
        grid-template-columns: 1fr;
    }

    .edu-card-left img {
        height: 220px;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .edu-layout {
        grid-template-columns: 1fr;
    }

    .edu-sidebar {
        position: relative;
        top: auto;
    }
}

@media (max-width: 768px) {
    .edu-result-card {
        /*grid-template-columns: 1fr;*/
        grid-template-columns: 48% 52%;
        gap: 10px;
        padding: 10px;
    }

    .edu-card-details {
        /*grid-template-columns: 1fr;*/
        grid-template-columns: 48% 52%;
        gap: 5px;
  margin-bottom: 10px;
    }

    .edu-university-title {
  color: #d32f2f;
  font-size: 16px;
  margin-bottom: 5px;
}

.edu-card-details div{
    font-size: 12px;
}
.edu-card-left img {
    height: 200px;
  }
  .edu-card-left{
    min-height: 200px;
  }

  .edu-mode-badge{
    top: 10px;
  right: 10px;
  padding: 4px 10px;
  
  font-size: 10px;
  }
}
/* =========================
   EDU FILTER SIDEBAR UI
========================= */

.edu-sidebar {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

/* =========================
   FILTER BLOCK REFINEMENT
========================= */

/* Block spacing ONLY between cards */
.edu-filter-block {
    background: #f9fafb;
    border-radius: 12px;
    padding: 14px 14px 10px;
    margin-bottom: 16px;
    border: 1px solid #eef1f5;

    /* scroll control */
    max-height: 220px;          /* 👈 adjust if needed */
    overflow-y: auto;
}

/* Title stays separated */
.edu-filter-block h4 {
    font-size: 18px;
    font-weight: 700;
    color: #161616;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #dbe2ea;
}

/* REMOVE extra spacing between values */
.edu-filter-block label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;

    margin: 0;              /* 🔥 remove vertical gaps */
    padding: 4px 0;         /* minimal touch-friendly spacing */
    line-height: 1.3;
    cursor: pointer;
}

/* Checkbox size */
.edu-filter-block input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #2563eb;
}

/* =========================
   SCROLLBAR STYLING
========================= */

.edu-filter-block::-webkit-scrollbar {
    width: 6px;
}

.edu-filter-block::-webkit-scrollbar-track {
    background: transparent;
}

.edu-filter-block::-webkit-scrollbar-thumb {
    background: #cfd6df;
    border-radius: 10px;
}

.edu-filter-block::-webkit-scrollbar-thumb:hover {
    background: #aeb7c2;
}

/* Firefox */
.edu-filter-block {
    scrollbar-width: thin;
    scrollbar-color: #cfd6df transparent;
}


/* Checkbox styling */
.edu-filter-block input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #2563eb; /* modern blue */
}

/* Hover effect */
.edu-filter-block label:hover {
    color: #2563eb;
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 991px) {
    .edu-sidebar {
        padding: 14px;
    }

    .edu-filter-block {
        padding: 14px;
    }

    .edu-filter-block h4 {
        font-size: 14px;
    }

    .edu-filter-block label {
        font-size: 13.5px;
    }
}


