/* =========================================================
   UNIVERSITY DETAIL PAGE STYLES
   File: public/css/university-detail.css
   ========================================================= */

/* ================= GENERAL ================= */
.uni-page {
    font-family: inherit;
}

.uni-breadcrumb {
    padding: 14px 0;
    font-size: 14px;
    color: #777;
}

.uni-breadcrumb a {
    color: #777;
    text-decoration: none;
}

.uni-breadcrumb a:hover {
    color: #1a56db;
}

/* ================= HERO BANNER ================= */
.uni-hero {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    min-height: 340px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    margin-bottom: 30px;
}

.uni-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .6) 55%, rgba(0, 0, 0, .88) 100%);
}

.uni-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 30px 35px;
    color: #fff;
}

.uni-logo {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #fff;
    object-fit: contain;
    margin-bottom: 14px;
}

.uni-hero-inner h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}

.uni-tagline {
    font-size: 15px;
    font-weight: 500;
    color: #ffffff !important;
    opacity: .95;
    margin-bottom: 10px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}

.uni-location {
    font-size: 14px;
    color: #ffffff !important;
    opacity: .95;
    margin-bottom: 12px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}

.uni-location i,
.uni-location svg {
    margin-right: 6px;
    vertical-align: -2px;
}

.uni-short-desc {
    max-width: 640px;
    font-size: 14.5px;
    line-height: 1.7;
    color: #ffffff !important;
    opacity: .95;
    margin-bottom: 18px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}

.uni-hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.uni-hero-stats div strong {
    color: #ffffff !important;
    display: block;
    font-size: 20px;
    font-weight: 700;
}

.uni-hero-stats div span {
    font-size: 12.5px;
    color: #ffffff !important;
    opacity: .85;
}

.uni-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-brochure,
.btn-guidance,
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-brochure {
    background: #1a56db;
    color: #fff;
}

.btn-brochure:hover {
    background: #1442ac;
    color: #fff;
}

.btn-guidance {
    background: #1c1c1c;
    color: #fff;
}

.btn-guidance:hover {
    background: #000;
    color: #fff;
}

.btn-whatsapp {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .5);
}

.btn-whatsapp:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

/* ================= INFO STRIP ================= */
.uni-info-strip {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
    padding: 22px 10px;
    margin-bottom: 35px;
}

.uni-info-strip .row {
    margin: 0;
}

.uni-info-item {
    text-align: center;
    padding: 6px 10px;
    border-right: 1px solid #eee;
}

.uni-info-item:last-child {
    border-right: none;
}

.uni-info-item i,
.uni-info-item svg {
    font-size: 20px;
    width: 22px;
    height: 22px;
    color: #1a56db;
    stroke: #1a56db;
    margin-bottom: 8px;
    display: inline-block;
}

.uni-info-item .label {
    font-size: 12.5px;
    color: #888;
    margin-bottom: 3px;
}

.uni-info-item .value {
    font-size: 14.5px;
    font-weight: 700;
    color: #1a1a1a;
}

@media (max-width: 991px) {
    .uni-info-item {
        border-right: none;
        border-bottom: 1px solid #eee;
        margin-bottom: 10px;
        padding-bottom: 14px;
    }
}

/* ================= ABOUT SECTION ================= */
.uni-about-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111;
}

.uni-about-text {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
}

.uni-about-text p {
    margin-bottom: 12px;
}

.uni-learn-more {
    color: #1a56db;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    margin-top: 6px;
}

.uni-learn-more:hover {
    color: #1442ac;
}

.uni-video-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .1);
    margin-bottom: 18px;
}

.uni-video-box img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.uni-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a56db;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
}

.uni-stats-row {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
    padding: 18px 5px;
    display: flex;
}

.uni-stats-row .stat-item {
    flex: 1;
    text-align: center;
    border-right: 1px solid #eee;
}

.uni-stats-row .stat-item:last-child {
    border-right: none;
}

.uni-stats-row .stat-item i {
    color: #1a56db;
    font-size: 18px;
    margin-bottom: 6px;
    display: block;
}

.uni-stats-row .stat-item strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.uni-stats-row .stat-item span {
    font-size: 11.5px;
    color: #888;
}

/* ================= POPULAR PROGRAMS ================= */
.uni-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 45px 0 20px;
}

.uni-section-head h4 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.uni-section-head a {
    color: #1a56db;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.program-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
    border: 1px solid #f0f0f0;
    margin-bottom: 26px;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
}

.program-card-img-wrap {
    position: relative;
    overflow: hidden;
}

.program-card-img-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .35) 100%);
}

.program-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.program-card:hover img {
    transform: scale(1.06);
}

.program-card-body {
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.program-degree-level {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #1a56db;
    margin-bottom: 6px;
}

.program-card-body h6 {
    font-size: 16.5px;
    font-weight: 700;
    color: #111;
    line-height: 1.35;
    margin-bottom: 10px;
    min-height: 44px;
}

.program-university-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.program-card-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: contain;
    border: 1px solid #eee;
}

.program-university-name {
    font-size: 12px;
    color: #888;
    font-weight: 600;
}

.program-desc {
    font-size: 13px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 10px;
}

.program-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #777;
    margin-bottom: 6px;
}

.program-meta-row svg {
    width: 14px;
    height: 14px;
    stroke: #1a56db;
    flex-shrink: 0;
}

.program-price {
    font-size: 15.5px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 8px 0 4px;
}

.program-price span {
    font-size: 12px;
    font-weight: 500;
    color: #999;
}

.program-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 6px;
}

.program-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f6f6f6;
    color: #555;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 20px;
}

.program-tag-icon {
    width: 12px;
    height: 12px;
}

.program-tag.scholarship {
    background: #e8f0fe;
    color: #1a56db;
}

.program-featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #1a56db;
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(26, 86, 219, .35);
}

.program-divider {
    border: none;
    border-top: 1px dashed #eee;
    margin: 6px 0 10px;
}

.program-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.program-info-row strong {
    display: block;
    font-size: 14.5px;
    color: #111;
}

.program-info-row span {
    font-size: 11.5px;
    color: #888;
}

.program-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1a56db;
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f2f2f2;
    transition: gap .2s ease;
}

.program-link:hover {
    gap: 10px;
    color: #1442ac;
}

.no-programs-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .06);
    padding: 30px;
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 24px;
}

/* ================= TUITION / SCHOLARSHIP BOXES ================= */
.uni-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .06);
    padding: 22px;
    margin-bottom: 24px;
    height: 100%;
}

.uni-box h6 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111;
}

/* --- Tuition cards (3-across, matches reference design) --- */
.fee-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.fee-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 14px 12px;
    background: #fff;
}

.fee-card .f-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.fee-card .f-amount {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 2px;
    line-height: 1.3;
}

.fee-card .f-sub {
    font-size: 11.5px;
    color: #999;
}

@media (max-width: 576px) {
    .fee-grid {
        grid-template-columns: 1fr;
    }
}

.fee-note {
    font-size: 12px;
    color: #999;
    margin: 0;
}

/* --- Scholarship grid (icon cards, matches reference design) --- */
.scholarship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px 16px;
    margin-bottom: 16px;
}

.scholarship-card {
    text-align: left;
}

.scholarship-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 15px;
    margin-bottom: 10px;
}

.scholarship-card .sc-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
    line-height: 1.35;
}

.scholarship-card .sc-sub {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
}

.uni-box-footer-link {
    color: #1a56db;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 14px;
}

.uni-box-footer-link:hover {
    color: #1442ac;
}

/* ================= STUDENT LIFE ================= */
.student-life-block {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .06);
    height: 100%;
}

.student-life-block img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.student-life-body {
    padding: 22px;
}

.student-life-body h5 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.student-life-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}

.student-life-body ul li {
    font-size: 14px;
    color: #555;
    padding-left: 22px;
    position: relative;
    margin-bottom: 8px;
    line-height: 1.5;
}

.student-life-body ul li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: #1a56db;
    font-weight: 700;
}

.student-life-body p {
    font-size: 14.5px;
    color: #555;
    line-height: 1.8;
}

.living-cost-badge {
    display: inline-block;
    background: #e8f0fe;
    color: #1a56db;
    font-weight: 700;
    font-size: 13.5px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-top: 10px;
}

/* ================= INLINE INQUIRY CARD (replaces Why Choose) ================= */
.uni-inline-contact-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .06);
    padding: 26px 26px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 100px;
}

.uni-inline-contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a56db, #5b8def);
}

.uni-inline-contact-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 6px;
}

.uni-inline-contact-header .uni-inquiry-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #e8f0fe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a56db;
    font-size: 18px;
}

.uni-inline-contact-eyebrow {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #1a56db;
    margin-bottom: 3px;
}

.uni-inline-contact-header h5 {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    line-height: 1.35;
    margin: 0;
}

.uni-inline-contact-sub {
    font-size: 13px;
    color: #888;
    margin: 10px 0 18px;
    line-height: 1.6;
}

.uni-inline-contact-form {
    text-align: left;
    margin-top: auto;
}

.uni-inline-contact-form .uni-contact-submit {
    margin-top: 2px;
}

@media (max-width: 991px) {
    .uni-inline-contact-card {
        margin-top: 0;
    }
}

/* ================= CTA BANNER ================= */
.uni-cta-banner {
    background: #1c2b1f;
    border-radius: 12px;
    padding: 26px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin: 40px 0;
}

.uni-cta-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.uni-cta-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 18px;
}

.uni-cta-left h6 {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.uni-cta-left p {
    color: rgba(255, 255, 255, .75);
    font-size: 13.5px;
    margin: 0;
}

.uni-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a56db;
    color: #fff;
    padding: 11px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.btn-cta-primary:hover {
    background: #1442ac;
    color: #fff;
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .4);
    padding: 11px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.btn-cta-outline:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

/* ================= YOU MAY ALSO LIKE ================= */
.related-uni-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .06);
    margin-bottom: 20px;
    display: block;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

.related-uni-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .1);
}

.related-uni-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}

.related-uni-card-body {
    padding: 12px 14px;
}

.related-uni-card-body h6 {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin-bottom: 3px;
}

.related-uni-card-body .r-location {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.related-uni-card-body .r-ranking {
    font-size: 11.5px;
    color: #1a56db;
    font-weight: 600;
}

/* ================= INQUIRY FORM FIELDS (used inside .uni-inline-contact-card) ================= */
.uni-contact-form {
    text-align: left;
}

.uni-form-row {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}

.uni-form-row input {
    flex: 1;
    min-width: 0;
}

.uni-contact-form input,
.uni-contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    outline: none;
    transition: border-color .2s ease, background .2s ease;
    margin-bottom: 14px;
    font-family: inherit;
}

.uni-form-row input {
    margin-bottom: 0;
}

.uni-contact-form input:focus,
.uni-contact-form textarea:focus {
    border-color: #1a56db;
    background: #fff;
}

.uni-contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.uni-contact-submit {
    width: 100%;
    background: #1a56db;
    color: #fff;
    border: none;
    padding: 13px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease;
}

.uni-contact-submit:hover {
    background: #1442ac;
}

@media (max-width: 576px) {
    .uni-form-row {
        flex-direction: column;
        gap: 0;
    }
}


/* =========================================================
   MODERN RESPONSIVE OVERRIDES
   - Fixes excessive empty space in the inquiry card
   - Improves desktop spacing and visual hierarchy
   - Better tablet/mobile behaviour
   - Keeps all existing class names and HTML compatible
   ========================================================= */

:root {
    --uni-primary: #1a56db;
    --uni-primary-dark: #1442ac;
    --uni-primary-soft: #eef4ff;
    --uni-text: #151922;
    --uni-text-soft: #5f6875;
    --uni-muted: #87909d;
    --uni-border: #e8ebf0;
    --uni-bg: #f7f9fc;
    --uni-card: #ffffff;
    --uni-radius: 16px;
    --uni-shadow: 0 8px 28px rgba(24, 39, 75, 0.07);
    --uni-shadow-hover: 0 16px 38px rgba(24, 39, 75, 0.12);
}

/* ---------- Base / spacing ---------- */

.uni-page,
.uni-page * {
    box-sizing: border-box;
}

.uni-page {
    width: 100%;
    color: var(--uni-text);
}

.uni-page img {
    max-width: 100%;
}

.uni-breadcrumb {
    padding: 10px 0 16px;
    line-height: 1.4;
}

.uni-breadcrumb a {
    transition: color .2s ease;
}

/* Prevent Bootstrap columns from creating unexpected vertical gaps */
.uni-page .row {
    --bs-gutter-y: 20px;
}

.uni-page .row > [class*="col-"] {
    margin-bottom: 0;
}

/* ---------- Hero ---------- */

.uni-hero {
    min-height: 330px;
    margin-bottom: 22px;
    border-radius: var(--uni-radius);
    box-shadow: var(--uni-shadow);
}

.uni-hero-inner {
    padding: 28px 32px;
}

.uni-logo {
    width: 62px;
    height: 62px;
    margin-bottom: 12px;
}

.uni-hero-inner h1 {
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.18;
    margin: 0 0 6px;
}

.uni-tagline {
    line-height: 1.5;
    margin-bottom: 7px;
}

.uni-location {
    margin-bottom: 10px;
}

.uni-short-desc {
    max-width: 720px;
    line-height: 1.65;
    margin-bottom: 16px;
}

.uni-hero-stats {
    gap: 22px;
    margin-bottom: 16px;
}

.uni-hero-actions {
    gap: 9px;
}

.btn-brochure,
.btn-guidance,
.btn-whatsapp {
    min-height: 42px;
    padding: 10px 17px;
    border-radius: 8px;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.btn-brochure:hover,
.btn-guidance:hover,
.btn-whatsapp:hover {
    transform: translateY(-1px);
}

/* ---------- Information strip ---------- */

.uni-info-strip {
    padding: 7px;
    margin-bottom: 24px;
    border: 1px solid var(--uni-border);
    border-radius: 14px;
    box-shadow: var(--uni-shadow);
}

.uni-info-strip .row {
    --bs-gutter-y: 0;
}

.uni-info-item {
    min-height: 74px;
    padding: 11px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.uni-info-item i,
.uni-info-item svg {
    margin-bottom: 5px;
    color: var(--uni-primary);
    stroke: var(--uni-primary);
}

.uni-info-item .label {
    margin-bottom: 2px;
    line-height: 1.25;
}

.uni-info-item .value {
    line-height: 1.35;
}

/* ---------- Main content cards ---------- */

.uni-about-title,
.uni-section-head h4 {
    color: var(--uni-text);
}

.uni-about-title {
    font-size: 23px;
    line-height: 1.25;
    margin-bottom: 12px;
}

.uni-about-text {
    color: var(--uni-text-soft);
    font-size: 15px;
    line-height: 1.75;
}

.uni-about-text p {
    margin-bottom: 10px;
}

.uni-video-box,
.uni-stats-row,
.uni-box,
.student-life-block,
.related-uni-card,
.uni-inline-contact-card,
.program-card {
    border: 1px solid var(--uni-border);
    box-shadow: var(--uni-shadow);
}

/* ---------- Student life ---------- */

.student-life-block {
    height: auto;
    border-radius: var(--uni-radius);
}

.student-life-block img {
    height: 205px;
}

.student-life-body {
    padding: 20px 22px 22px;
}

.student-life-body h5 {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 11px;
}

.student-life-body p {
    margin-bottom: 10px;
    line-height: 1.75;
}

/* ---------- CRITICAL FIX: inquiry card ---------- */
/*
   The old height: 100% + margin-top: auto combination can make the
   right-side card stretch to the height of a long left column.
   That is the large blank white area visible in the screenshot.
*/
.uni-inline-contact-card {
    height: auto !important;
    min-height: 0;
    padding: 22px;
    align-self: flex-start;
    margin-bottom: 0;
    border-radius: var(--uni-radius);
    box-shadow: var(--uni-shadow);
}

.uni-inline-contact-form {
    margin-top: 0 !important;
}

.uni-inline-contact-sub {
    margin: 8px 0 15px;
}

.uni-inline-contact-header {
    gap: 12px;
}

.uni-inline-contact-header .uni-inquiry-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--uni-primary-soft);
}

.uni-inline-contact-header h5 {
    font-size: 18px;
    line-height: 1.3;
}

/* ---------- Stats ---------- */

.uni-stats-row {
    border-radius: 14px;
    padding: 12px 4px;
}

.uni-stats-row .stat-item {
    padding: 6px 8px;
}

.uni-stats-row .stat-item strong {
    line-height: 1.3;
}

/* ---------- Section headers ---------- */

.uni-section-head {
    margin: 32px 0 16px;
    min-height: 34px;
}

.uni-section-head h4 {
    font-size: 21px;
    line-height: 1.3;
}

/* ---------- Program cards ---------- */

.program-card {
    border-radius: var(--uni-radius);
    margin-bottom: 20px;
    box-shadow: var(--uni-shadow);
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--uni-shadow-hover);
}

.program-card-img-wrap,
.program-card img {
    height: 175px;
}

.program-card-body {
    padding: 16px 17px 15px;
}

.program-card-body h6 {
    font-size: 16px;
    margin-bottom: 8px;
}

.program-desc {
    line-height: 1.55;
}

.program-tags-wrap {
    margin: 8px 0 5px;
}

/* ---------- Fee / scholarship boxes ---------- */

.uni-box {
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
}

.uni-box h6 {
    margin-bottom: 13px;
}

.fee-grid {
    gap: 10px;
}

.fee-card {
    padding: 13px 12px;
    border-color: var(--uni-border);
    transition: border-color .2s ease, transform .2s ease;
}

.fee-card:hover {
    border-color: #cbd8f4;
    transform: translateY(-1px);
}

/* ---------- CTA ---------- */

.uni-cta-banner {
    margin: 30px 0;
    padding: 22px 24px;
    border-radius: 14px;
}

.btn-cta-primary,
.btn-cta-outline {
    min-height: 42px;
    padding: 10px 17px;
    border-radius: 8px;
}

/* ---------- Related universities ---------- */

.related-uni-card {
    margin-bottom: 16px;
    border-radius: 14px;
}

.related-uni-card img {
    height: 125px;
}

.related-uni-card-body {
    padding: 13px 14px 14px;
}

/* ---------- Form ---------- */

.uni-form-row {
    gap: 10px;
    margin-bottom: 10px;
}

.uni-contact-form input,
.uni-contact-form textarea {
    padding: 11px 13px;
    border-radius: 9px;
    border-color: #dde2ea;
    background: #fbfcfe;
    margin-bottom: 10px;
    font-size: 14px;
}

.uni-contact-form textarea {
    min-height: 90px;
}

.uni-contact-submit {
    min-height: 44px;
    border-radius: 9px;
    padding: 11px 18px;
    box-shadow: 0 5px 14px rgba(26, 86, 219, .18);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.uni-contact-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(26, 86, 219, .22);
}

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

@media (max-width: 1199px) {
    .uni-hero {
        min-height: 310px;
    }

    .uni-hero-inner {
        padding: 25px 28px;
    }

    .uni-short-desc {
        max-width: 650px;
    }

    .student-life-body {
        padding: 19px 20px 20px;
    }
}

@media (max-width: 991px) {
    .uni-hero {
        min-height: 300px;
        margin-bottom: 18px;
    }

    .uni-info-strip {
        margin-bottom: 20px;
    }

    .uni-info-item {
        min-height: 70px;
        border-right: none;
        border-bottom: 1px solid var(--uni-border);
    }

    .uni-info-strip .row > [class*="col-"]:last-child .uni-info-item {
        border-bottom: 0;
    }

    .uni-section-head {
        margin-top: 28px;
    }

    .uni-inline-contact-card {
        width: 100%;
        margin-top: 0 !important;
    }

    .student-life-block {
        height: auto;
    }

    .uni-cta-banner {
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .uni-page {
        font-size: 14px;
    }

    .uni-breadcrumb {
        padding: 7px 0 12px;
        font-size: 13px;
    }

    .uni-hero {
        min-height: 0;
        border-radius: 12px;
    }

    .uni-hero-inner {
        padding: 22px 20px 20px;
    }

    .uni-logo {
        width: 56px;
        height: 56px;
    }

    .uni-hero-inner h1 {
        font-size: 25px;
    }

    .uni-short-desc {
        font-size: 13.5px;
        line-height: 1.6;
    }

    .uni-hero-stats {
        gap: 15px 22px;
    }

    .uni-hero-actions {
        width: 100%;
    }

    .btn-brochure,
    .btn-guidance,
    .btn-whatsapp {
        flex: 1 1 auto;
        justify-content: center;
        min-width: 130px;
    }

    .uni-info-strip {
        padding: 5px;
        border-radius: 12px;
    }

    .uni-info-item {
        min-height: 66px;
        padding: 9px 8px;
    }

    .uni-about-title {
        font-size: 21px;
    }

    .uni-about-text {
        font-size: 14px;
        line-height: 1.7;
    }

    .student-life-block img {
        height: 180px;
    }

    .student-life-body {
        padding: 18px;
    }

    .student-life-body h5 {
        font-size: 19px;
    }

    .uni-inline-contact-card {
        padding: 19px;
        border-radius: 12px;
    }

    .uni-section-head {
        margin: 25px 0 14px;
    }

    .uni-section-head h4 {
        font-size: 19px;
    }

    .program-card-img-wrap,
    .program-card img {
        height: 165px;
    }

    .program-card-body {
        padding: 15px;
    }

    .uni-box {
        padding: 17px;
    }

    .scholarship-grid {
        gap: 15px 12px;
    }

    .uni-cta-banner {
        margin: 24px 0;
        padding: 19px;
        border-radius: 12px;
    }

    .uni-cta-left {
        width: 100%;
    }

    .uni-cta-actions {
        width: 100%;
    }

    .btn-cta-primary,
    .btn-cta-outline {
        flex: 1 1 140px;
        justify-content: center;
    }

    .related-uni-card img {
        height: 140px;
    }
}

@media (max-width: 576px) {
    .uni-hero-inner {
        padding: 19px 16px 18px;
    }

    .uni-hero-inner h1 {
        font-size: 23px;
    }

    .uni-tagline,
    .uni-location {
        font-size: 13px;
    }

    .uni-short-desc {
        font-size: 13px;
        line-height: 1.55;
    }

    .uni-hero-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 14px;
        width: 100%;
    }

    .uni-hero-stats div strong {
        font-size: 17px;
    }

    .uni-hero-stats div span {
        font-size: 11px;
    }

    .uni-hero-actions {
        flex-direction: column;
    }

    .btn-brochure,
    .btn-guidance,
    .btn-whatsapp {
        width: 100%;
        min-width: 0;
    }

    .uni-info-strip {
        padding: 4px;
    }

    .uni-info-item {
        min-height: 62px;
    }

    .uni-info-item .value {
        font-size: 13.5px;
    }

    .uni-video-box img {
        height: 200px;
    }

    .uni-stats-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .uni-stats-row .stat-item {
        padding: 10px 7px;
        border-right: 1px solid var(--uni-border);
        border-bottom: 1px solid var(--uni-border);
    }

    .uni-stats-row .stat-item:nth-child(2n) {
        border-right: none;
    }

    .uni-stats-row .stat-item:nth-last-child(-n + 2) {
        border-bottom: none;
    }

    .uni-inline-contact-header {
        gap: 10px;
    }

    .uni-inline-contact-header .uni-inquiry-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .uni-inline-contact-header h5 {
        font-size: 16.5px;
    }

    .uni-inline-contact-sub {
        font-size: 12.5px;
        line-height: 1.55;
        margin-bottom: 13px;
    }

    .uni-form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }

    .uni-contact-form input,
    .uni-contact-form textarea {
        margin-bottom: 9px;
    }

    .uni-contact-form textarea {
        min-height: 85px;
    }

    .program-card {
        margin-bottom: 15px;
    }

    .fee-grid {
        grid-template-columns: 1fr;
    }

    .scholarship-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .uni-cta-left {
        align-items: flex-start;
    }

    .uni-cta-actions {
        flex-direction: column;
    }

    .btn-cta-primary,
    .btn-cta-outline {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .uni-hero-inner {
        padding-left: 14px;
        padding-right: 14px;
    }

    .uni-inline-contact-card,
    .uni-box,
    .student-life-body {
        padding-left: 15px;
        padding-right: 15px;
    }

    .scholarship-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Accessibility / reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    .uni-page *,
    .uni-page *::before,
    .uni-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
