/* Floating icon */
#floating-icon a.bg-orange { background: var(--uni-blue) !important; }

#mob-header{
    background: linear-gradient(140deg, var(--uni-blue) 0%, #4a0082 100%) !important;
}
/* ── Photo Gallery (top) ── */
#gallery-hero {
    margin-top: 92px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 300px 200px;
    gap: 6px;
    max-height: 506px;
    overflow: hidden;
}
.gallery-hero-main {
    grid-row: 1 / 3;
    position: relative;
    overflow: hidden;
}
.gallery-hero-main a, .gallery-hero-sub a { display:block; width:100%; height:100%; position:relative; overflow:hidden; }
.gallery-hero-main img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .4s;
}
.gallery-hero-main a:hover img { transform: scale(1.03); }
.gallery-hero-sub {
    position: relative;
    overflow: hidden;
}
.gallery-hero-sub img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .4s;
}
.gallery-hero-sub a:hover img { transform: scale(1.04); }
.mfp-close { cursor: pointer !important; }
.gallery-zoom {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(41,0,151,.45);
    opacity: 0; transition: opacity .25s;
}
.gallery-zoom i { color: #fff; font-size: 1.8rem; }
a:hover .gallery-zoom { opacity: 1; }
.gallery-hero-sub.last { position: relative; }
@media(max-width: 767px) {
    #gallery-hero { grid-template-columns: 1fr; grid-template-rows: 240px; }
    .gallery-hero-main { grid-row: auto; }
    .gallery-hero-sub { display: none; }
}

/* ── Breadcrumb ── */
.breadcrumb-bar { background: #f7f8fc; border-bottom: 1px solid #eee; padding: 12px 0; }
.breadcrumb-bar a { color: var(--uni-blue); text-decoration: none; font-size: .9rem; font-weight: 600; }
.breadcrumb-bar span { color: #999; font-size: .9rem; margin: 0 8px; }
.breadcrumb-bar strong { color: #444; font-size: .9rem; }

/* ── Main layout ── */
#section-detail { padding: 48px 0 88px; background: #fff; }
.detail-left { padding-right: 32px; }
.detail-right { padding-left: 8px; }

/* University header */
.uni-header { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.uni-header-logo { width: 80px; height: 80px; border-radius: 16px; background: #fff; border: 1.5px solid #eee; box-shadow: 0 2px 12px rgba(0,0,0,.08); display: flex; align-items: center; justify-content: center; padding: 10px; flex-shrink: 0; }
.uni-header-logo img { width: 100%; height: 100%; object-fit: contain; }
.uni-header-info h1 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 900; color: #0d0028; font-family: var(--font-main); margin: 0 0 6px; line-height: 1.2; }
.uni-header-location { display: flex; align-items: center; gap: 6px; color: #888; font-size: .95rem; }
.uni-header-location img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }

/* Quick stats row */
.quick-stats { display: flex; gap: 0; flex-wrap: wrap; border: 1.5px solid #eef0f8; border-radius: 14px; margin-bottom: 32px; overflow: hidden; }
.quick-stat { flex: 1; min-width: 120px; padding: 16px 20px; border-right: 1.5px solid #eef0f8; text-align: center; }
.quick-stat:last-child { border-right: none; }
.quick-stat-val { font-size: 1.3rem; font-weight: 900; color: var(--uni-blue); font-family: var(--font-main); display: block; }
.quick-stat-lbl { font-size: .78rem; color: #999; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* Tabs */
.detail-tabs { display: flex; gap: 0; border-bottom: 2px solid #eee; margin-bottom: 32px; }
.detail-tab { padding: 12px 22px; font-size: .97rem; font-weight: 700; color: #888; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color .2s, border-color .2s; font-family: var(--font-main); }
.detail-tab.active { color: var(--uni-blue); border-bottom-color: var(--uni-blue); }
.detail-tab:hover { color: var(--uni-blue); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Content styles */
.detail-prose h3 { font-size: 1.18rem; font-weight: 800; color: #0d0028; font-family: var(--font-main); margin: 28px 0 10px; }
.detail-prose h3:first-child { margin-top: 0; }
.detail-prose p { font-size: 1rem; color: #555; line-height: 1.8; margin-bottom: 16px; }
.detail-prose ul { list-style: none; padding: 0; margin: 0 0 16px; }
.detail-prose ul li { padding: 7px 0 7px 26px; position: relative; font-size: .98rem; color: #555; line-height: 1.6; border-bottom: 1px solid #f4f4f8; }
.detail-prose ul li:last-child { border-bottom: none; }
.detail-prose ul li::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 10px; height: 10px; border-radius: 50%; background: var(--uni-blue); opacity: .6; }

/* Programs table */
.programs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media(max-width: 600px){ .programs-grid { grid-template-columns: 1fr; } }
.program-item { background: #f7f8fc; border-radius: 10px; padding: 14px 16px; border-left: 3px solid var(--uni-blue); }
.program-item strong { display: block; font-size: .96rem; font-weight: 800; color: #0d0028; font-family: var(--font-main); margin-bottom: 4px; }
.program-item span { font-size: .84rem; color: #888; }

/* Admission table */
.admission-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid #f0f0f5; }
.admission-row:last-child { border-bottom: none; }
.admission-row .label { font-size: .92rem; color: #888; font-weight: 600; }
.admission-row .value { font-size: .95rem; color: #0d0028; font-weight: 700; font-family: var(--font-main); }

/* ── Sidebar ── */
.sidebar-card { background: #f7f8fc; border-radius: 16px; padding: 24px; margin-bottom: 20px; }
.sidebar-card h4 { font-size: 1rem; font-weight: 800; color: #0d0028; font-family: var(--font-main); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.sidebar-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #eee; font-size: .9rem; }
.sidebar-row:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-row .s-label { color: #888; }
.sidebar-row .s-value { color: #0d0028; font-weight: 700; text-align: right; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.s-tag { background: #fff; border: 1.5px solid #dde; color: var(--uni-blue); font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; }

/* CTA sidebar */
.cta-card { background: var(--uni-blue); border-radius: 16px; padding: 28px 24px; text-align: center; margin-top: 20px; }
.cta-card h4 { color: #fff; font-size: 1.1rem; font-weight: 800; font-family: var(--font-main); margin-bottom: 10px; }
.cta-card p { color: rgba(255,255,255,.8); font-size: .9rem; line-height: 1.65; margin-bottom: 20px; }
.btn-cta-yellow { display: block; background: var(--uni-yellow); color: var(--uni-blue) !important; padding: 13px 20px; border-radius: 10px; font-weight: 800; font-size: .97rem; font-family: var(--font-main); text-decoration: none !important; text-align: center; transition: opacity .2s; margin-bottom: 10px; }
.btn-cta-yellow:hover { opacity: .88; }
.btn-cta-white { display: block; border: 2px solid rgba(255,255,255,.4); color: #fff !important; padding: 11px 20px; border-radius: 10px; font-weight: 700; font-size: .93rem; font-family: var(--font-main); text-decoration: none !important; text-align: center; transition: border-color .2s; }
.btn-cta-white:hover { border-color: #fff; }

/* Fair badge in sidebar */
.fair-mini { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eee; }
.fair-mini:last-child { border-bottom: none; }
.fair-mini-badge { background: var(--uni-blue); color: #fff; font-size: .7rem; font-weight: 800; padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.fair-mini-info strong { display: block; font-size: .88rem; font-weight: 700; color: #0d0028; font-family: var(--font-main); }
.fair-mini-info span { font-size: .8rem; color: #888; }

/* ── Responsive ── */

/* ── Tablet (≤ 991px) ── */
@media (max-width: 991px) {
  .detail-left { padding-right: 16px; }
  #section-detail { padding: 36px 0 64px; }
}

/* ── Mobile (≤ 767px) ── */
@media (max-width: 767px) {
  .detail-left  { padding-right: 0; }
  .detail-right { padding-left: 0; margin-top: 32px; }
  #section-detail { padding: 28px 0 48px; }
  /* Tabs scroll horizontally on narrow screens */
  .detail-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; border-bottom: 2px solid #eee; }
  .detail-tab  { white-space: nowrap; }
  /* Quick stats: 2-up grid on mobile */
  .quick-stats { flex-wrap: wrap; }
  .quick-stat  { flex: 1 1 50%; min-width: 0; border-right: none !important; border-bottom: 1.5px solid #eef0f8; }
  .quick-stat:nth-child(odd)  { border-right: 1.5px solid #eef0f8 !important; }
  .quick-stat:last-child { border-bottom: none; }
  /* Admission rows stack on narrow screens */
  .admission-row { flex-direction: column; align-items: flex-start; gap: 3px; }
  .admission-row .value { font-size: .9rem; }
}

/* ── Tiny phone (≤ 480px) ── */
@media (max-width: 480px) {
  #section-detail { padding: 20px 0 36px; }
  .quick-stat { flex: 1 1 100%; border-right: none !important; }
  .quick-stat:nth-child(odd) { border-right: none !important; }
  .uni-header { gap: 12px; }
  .uni-header-logo { width: 60px; height: 60px; }
  .uni-header-info h1 { font-size: 1.3rem; }
}
