/* =========================================================
   B.Ed. pages — shared styles
   ========================================================= */
:root {
    --bed-blue: var(--rs-theme-blue, #0b2b5e);
    --bed-soft: #f4f6fa;
    --bed-border: rgba(0, 0, 0, .08);
    --bed-text: #1c1c1c;
}

/* ---------- Layout: side column + main ---------- */
.bed-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}
.bed-side { display: flex; flex-direction: column; gap: 20px; }
.bed-main { min-width: 0; }

/* ---------- Side widgets ---------- */
.bed-widget { background: #fff; border-radius: 15px; padding: 18px; }
.bed-widget-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--bed-blue); margin: 2px 6px 12px;
}
.bed-widget-title i { font-size: 18px; }

.bed-sidenav { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bed-nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: 8px;
    color: var(--bed-text); font-weight: 600; font-size: 15px; line-height: 1.3;
    transition: background .2s, color .2s;
}
.bed-nav-link i { font-size: 18px; color: var(--bed-blue); flex-shrink: 0; transition: color .2s; }
.bed-nav-link:hover, .bed-nav-link:focus-visible { background: var(--bed-soft); color: var(--bed-blue); }
.bed-nav-link.active { background: var(--bed-blue); color: #fff; }
.bed-nav-link.active i { color: #fff; }

/* ---------- Upcoming events ticker ---------- */
.bed-ticker { position: relative; height: 270px; overflow: hidden; }
.bed-ticker::before, .bed-ticker::after {
    content: ""; position: absolute; left: 0; right: 0; height: 22px; z-index: 1; pointer-events: none;
}
.bed-ticker::before { top: 0; background: linear-gradient(#fff, rgba(255, 255, 255, 0)); }
.bed-ticker::after { bottom: 0; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.bed-ticker:not(.is-scrolling)::before, .bed-ticker:not(.is-scrolling)::after { display: none; }
.bed-ticker:not(.is-scrolling) { height: auto; }

.bed-ticker-list { list-style: none; margin: 0; padding: 0; }
.bed-ticker.is-scrolling .bed-ticker-list { animation: bed-ticker-up var(--bed-ticker-duration, 20s) linear infinite; }
.bed-ticker.is-scrolling:hover .bed-ticker-list,
.bed-ticker.is-scrolling:focus-within .bed-ticker-list { animation-play-state: paused; }
@keyframes bed-ticker-up {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

.bed-ticker-list li { padding: 0 2px 10px; }
.bed-ticker-list a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px; border-radius: 10px; border: 1px solid var(--bed-border);
    color: var(--bed-text); transition: border-color .2s, background .2s;
}
.bed-ticker-list a:hover { border-color: var(--bed-blue); background: var(--bed-soft); }
.bed-ticker-date {
    flex-shrink: 0; width: 52px; height: 52px; border-radius: 8px;
    background: var(--bed-blue); color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600; text-transform: uppercase; line-height: 1.1;
}
.bed-ticker-date b { font-size: 20px; }
.bed-ticker-text { display: flex; flex-direction: column; min-width: 0; }
.bed-ticker-title { font-weight: 600; font-size: 14px; line-height: 1.35; }
.bed-ticker-venue { font-size: 12px; opacity: .7; margin-top: 2px; }

.bed-widget-more { display: inline-flex; align-items: center; gap: 6px; margin: 6px 6px 0; font-weight: 600; font-size: 14px; color: var(--bed-blue); }

@media (prefers-reduced-motion: reduce) {
    .bed-ticker.is-scrolling { overflow-y: auto; }
    .bed-ticker.is-scrolling .bed-ticker-list { animation: none; }
}

/* ---------- Overview: course summary on top ---------- */
.bed-meta-line { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 6px 0 22px; font-weight: 600; }
.bed-meta-line i { margin-right: 6px; color: var(--bed-blue); }

.rs-feature-icon.bed-uni-logo-wrap { display: flex; align-items: center; justify-content: center; }
.bed-uni-logo { width: 60px; height: 60px; object-fit: contain; border-radius: 50%; display: block; }

.bed-btn-group.bed-btn-group-start { justify-content: flex-start; }

.bed-fee-card { border: 1px solid var(--bed-border); border-radius: 12px; padding: 18px 20px; margin-top: 26px; background: #fff; max-width: 420px; }
.bed-fee-card h3 { font-size: 18px; margin-bottom: 10px; }
.bed-fee-card ul { list-style: none; padding: 0; margin: 0; }
.bed-fee-card li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed rgba(0, 0, 0, .1); }
.bed-fee-card li:last-child { border-bottom: 0; font-weight: 700; }
.bed-fee-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--bed-blue); }

/* ---------- Full-width blocks (overview: events strip, FAQ) ---------- */
.bed-block { background: #fff; border-radius: 15px; padding: 34px; }
.bed-block-title { text-align: center; margin-bottom: 26px; }
.bed-block-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 22px; }
.bed-block-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; }
.bed-block-head h2 i { color: var(--bed-blue); }
.bed-strip-controls { display: flex; align-items: center; gap: 8px; }
.bed-strip-controls .bed-widget-more { margin: 0 0 0 8px; }
.bed-strip-btn {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--bed-border); background: #fff;
    color: var(--bed-blue); font-size: 22px; display: flex; align-items: center; justify-content: center;
    transition: background .2s, color .2s;
}
.bed-strip-btn:hover, .bed-strip-btn:focus-visible { background: var(--bed-blue); color: #fff; }
.bed-block-head.no-scroll .bed-strip-btn { display: none; }

.bed-strip { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none; }
.bed-strip::-webkit-scrollbar { display: none; }
.bed-strip:focus-visible { box-shadow: 0 0 0 2px var(--bed-blue); border-radius: 12px; }
.bed-strip-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; width: max-content; }
.bed-strip-item { flex: 0 0 320px; }
.bed-strip-card {
    display: flex; gap: 14px; height: 100%; padding: 18px; border-radius: 12px; border: 1px solid var(--bed-border);
    color: var(--bed-text); background: #fff; transition: border-color .2s, background .2s;
}
.bed-strip-card:hover { border-color: var(--bed-blue); background: var(--bed-soft); }
.bed-strip-card .bed-ticker-date { width: 58px; height: 58px; }
.bed-strip-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bed-strip-title { font-weight: 700; font-size: 16px; line-height: 1.35; }
.bed-strip-meta { font-size: 13px; font-weight: 600; color: var(--bed-blue); }
.bed-strip-meta i { margin-right: 4px; }
.bed-strip-desc { font-size: 14px; line-height: 1.5; opacity: .85; }

/* Overview: explore cards */
.bed-explore-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bed-explore-card {
    position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 18px 44px 18px 18px;
    border: 1px solid var(--bed-border); border-radius: 12px; color: var(--bed-text); transition: border-color .2s, background .2s;
}
.bed-explore-card:hover { border-color: var(--bed-blue); background: var(--bed-soft); color: var(--bed-text); }
.bed-explore-icon {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; background: var(--bed-soft); color: var(--bed-blue);
    display: flex; align-items: center; justify-content: center; font-size: 21px; transition: background .2s, color .2s;
}
.bed-explore-card:hover .bed-explore-icon { background: var(--bed-blue); color: #fff; }
.bed-explore-text { display: flex; flex-direction: column; gap: 3px; }
.bed-explore-title { font-weight: 700; font-size: 16px; }
.bed-explore-desc { font-size: 14px; line-height: 1.5; opacity: .8; }
.bed-explore-arrow { position: absolute; top: 18px; right: 16px; font-size: 18px; color: var(--bed-blue); }

/* ---------- Main content ---------- */
.bed-content { background: #fff; border-radius: 15px; padding: 34px; }
.bed-content h2 { font-size: 26px; margin: 34px 0 14px; }
.bed-content h3 { font-size: 20px; margin: 24px 0 10px; }
.bed-content > :first-child, .bed-content h2:first-child { margin-top: 0; }
.bed-content p { margin-bottom: 12px; }


ul.bed-list { padding-left: 0; list-style: none; margin-bottom: 16px; }
ul.bed-list li { position: relative; padding-left: 26px; margin-bottom: 8px; }
ul.bed-list li::before { content: "\eb7b"; font-family: "remixicon"; position: absolute; left: 0; top: 0; color: #198754; }
ul.bed-list.bed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }

.bed-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.bed-table th, .bed-table td { padding: 12px 14px; border: 1px solid rgba(0, 0, 0, .1); vertical-align: top; }
.bed-table thead th { background: var(--bed-soft); }
.bed-table td:first-child { font-weight: 600; width: 38%; }
.bed-table tr.bed-total td { background: var(--bed-soft); font-weight: 700; }

.bed-steps { list-style: none; padding: 0; margin: 0 0 10px; counter-reset: bedstep; }
.bed-steps li { counter-increment: bedstep; position: relative; padding: 4px 0 14px 50px; }
.bed-steps li::before {
    content: counter(bedstep); position: absolute; left: 0; top: 0;
    width: 34px; height: 34px; border-radius: 50%; background: var(--bed-blue); color: #fff; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.bed-steps li::after { content: ""; position: absolute; left: 16px; top: 36px; bottom: 0; width: 2px; background: rgba(11, 43, 94, .2); }
.bed-steps li:last-child::after { display: none; }

.bed-note { padding: 14px 18px; border-radius: 10px; background: var(--bed-soft); font-size: 15px; margin-top: 18px; }

/* FAQ */
.bed-faq .accordion-item { border: 1px solid var(--bed-border); border-radius: 10px !important; margin-bottom: 12px; overflow: hidden; }
.bed-faq .accordion-button { font-weight: 600; font-size: 17px; padding: 18px 20px; background: #fff; box-shadow: none; }
.bed-faq .accordion-button:not(.collapsed) { color: var(--bed-blue); background: var(--bed-soft); }
.bed-faq .accordion-body { padding: 16px 20px 20px; }

/* Cards: faculty / alumni / events */
.bed-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
.bed-card { border: 1px solid var(--bed-border); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; scroll-margin-top: 120px; }
.bed-card-body { padding: 18px; }
.bed-card-body h3 { font-size: 18px; margin: 0 0 4px; }
.bed-card-sub { font-size: 14px; color: var(--bed-blue); font-weight: 600; margin-bottom: 6px; display: block; }
.bed-card-text { font-size: 14px; margin: 0; }

.bed-person-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--bed-soft); display: block; }
.bed-person-initial {
    width: 100%; aspect-ratio: 1 / 1; background: var(--bed-soft); color: var(--bed-blue);
    font-size: 54px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

.bed-alumni-card { padding: 20px; }
.bed-alumni-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.bed-alumni-head img, .bed-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.bed-avatar { background: var(--bed-soft); color: var(--bed-blue); font-weight: 700; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.bed-alumni-head h3 { font-size: 18px; margin: 0; }
.bed-alumni-quote { font-size: 14px; font-style: italic; margin: 0; padding-left: 14px; border-left: 3px solid var(--bed-blue); }

.bed-event-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: flex; align-items: center; justify-content: center; background: var(--bed-soft); }
.bed-event-img i { font-size: 42px; color: var(--bed-blue); }
.bed-event-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; font-weight: 600; color: var(--bed-blue); margin-bottom: 8px; }
.bed-event-meta i { margin-right: 4px; }
.bed-card.is-past { opacity: .85; }

.bed-empty { padding: 26px; border: 1px dashed rgba(0, 0, 0, .15); border-radius: 12px; text-align: center; background: var(--bed-soft); }

/* Previous / next */
.bed-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; }
.bed-pager-link {
    display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px; background: #fff;
    color: var(--bed-text); font-weight: 600; transition: color .2s;
}
.bed-pager-link small { display: block; font-size: 12px; font-weight: 500; opacity: .65; }
.bed-pager-link i { font-size: 20px; color: var(--bed-blue); }
.bed-pager-link:hover { color: var(--bed-blue); }
.bed-pager-next { text-align: right; margin-left: auto; }

/* Bottom CTA */
.bed-btn-group { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.bed-cta-wrap { background: #fff; border-radius: 15px; padding: 40px 30px; text-align: center; }
.bed-cta-wrap p { max-width: 640px; margin: 0 auto 22px; }
.bed-cta-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 24px; }
.bed-cta-contact a { font-weight: 600; }
.bed-cta-contact i { margin-right: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .bed-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 24px; }
    .bed-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablet & mobile: page nav strip on top, content, then institute links and events */
@media (max-width: 991.98px) {
    .bed-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .bed-side { display: contents; }
    .bed-area-nav { order: 1; padding: 10px; }
    .bed-main { order: 2; }
    .bed-area-events { order: 3; }
    .bed-area-institute { order: 4; }

    .bed-area-nav .bed-widget-title { display: none; }
    .bed-area-nav .bed-sidenav {
        flex-direction: row; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    .bed-area-nav .bed-sidenav::-webkit-scrollbar { display: none; }
    .bed-area-nav .bed-sidenav li { flex: 0 0 auto; }
    .bed-area-nav .bed-nav-link { white-space: nowrap; padding: 10px 14px; }

    .bed-area-institute .bed-sidenav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bed-content, .bed-block { padding: 22px; }
}

@media (max-width: 767.98px) {
    ul.bed-list.bed-grid { grid-template-columns: 1fr; }
    .bed-card-grid { grid-template-columns: 1fr; }
    .bed-area-institute .bed-sidenav { grid-template-columns: 1fr; }
    .bed-explore-grid { grid-template-columns: 1fr; }
    .bed-strip-item { flex-basis: 270px; }
    .bed-strip-controls .bed-strip-btn { display: none; }
    .bed-content h2 { font-size: 22px; }
    .bed-cta-wrap { padding: 30px 18px; }
    .bed-pager-link { padding: 12px 14px; font-size: 14px; }
}
