/* 
 * Don Bosco Institute Design System
 * Primary: DBI Theme Blue (#294A70)
 * Accent: DBI Gold (#F4A024)
 * Alert: DBI Orange (#f0632b)
 * Background: Off White (#F7F6F2)
 */

:root {
    --color-navy: #2c4a70;
    --color-navy-light: #49688E;
    --color-gold: #f49b1c;
    --color-gold-bright: #FFAB1F;
    --color-red: #f0632b;
    --color-bg: #f7f7f7;
    --color-text: #404040;
    --color-deep: #09254B;
    
    --font-heading: 'Merriweather Sans', 'Playfair Display', serif;
    --font-body: 'Open Sans', 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: #fff;
    color: var(--color-text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-navy);
}

a {
    text-decoration: none;
    color: var(--color-navy);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-gold);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-gold);
    color: white;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    border: 2px solid transparent;
}

.btn:hover {
    background-color: var(--color-gold-bright);
    color: var(--color-navy);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid var(--color-gold);
}

.btn-outline:hover {
    background-color: var(--color-gold);
    color: white;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.wide-container {
    margin: 0 auto;
    max-width: 100%;
    padding: 0 24px;
}

/* Header */
.top-bar {
    background-color: var(--color-navy);
    color: white;
    padding: 7px 0;
    font-size: 0.88rem;
}

.top-bar a {
    color: #fff;
    font-weight: 700;
}

.top-bar__inner,
.top-bar__contact,
.quick-link-bar__inner,
.brand-row__inner,
.main-nav__inner {
    display: flex;
    align-items: center;
}

.top-bar__inner,
.brand-row__inner {
    justify-content: space-between;
    gap: 18px;
}

.top-bar__contact,
.quick-link-bar__inner {
    gap: 18px;
    flex-wrap: wrap;
}

.top-bar__prospectus {
    color: #fff9c0;
}

.quick-link-bar {
    background: #f4f4f4;
    border-bottom: 1px solid #e8e8e8;
    font-size: 0.86rem;
    padding: 9px 0;
}

.quick-link-bar span {
    color: var(--color-deep);
    font-weight: 800;
}

.quick-link-bar a {
    color: #5d5d5d;
    font-weight: 700;
}

.brand-row {
    background: #fff;
    padding: 18px 0;
}

.brand-mark {
    align-items: center;
    color: var(--color-deep);
    display: flex;
    gap: 14px;
}

.brand-mark img {
    height: 72px;
    width: 72px;
    object-fit: contain;
}

.brand-mark strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.1;
    text-transform: uppercase;
}

.brand-mark small {
    color: #666;
    display: block;
    font-size: 0.9rem;
    margin-top: 4px;
}

.site-search {
    align-items: center;
    display: flex;
    gap: 10px;
}

.site-search label {
    color: #666;
    font-size: 0.9rem;
}

.site-search input {
    border: 1px solid #ddd;
    border-radius: 3px;
    min-width: 220px;
    padding: 9px 11px;
}

.site-header {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 1000;
}

.main-nav {
    background: var(--color-deep);
}

.main-nav__inner {
    min-height: 48px;
}

.menu-label {
    background: var(--color-gold);
    color: #111;
    font-weight: 800;
    margin-right: 18px;
    padding: 13px 16px;
    text-transform: uppercase;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-navy);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

.nav-links li a {
    font-weight: 500;
    color: white;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0;
    display: block;
    padding: 15px 13px;
}

.nav-links li a:hover {
    background: var(--color-gold);
    color: #111;
}

.has-menu {
    position: relative;
}

.has-menu > ul {
    background: #fff;
    box-shadow: 0 12px 24px rgba(0,0,0,0.16);
    display: none;
    left: 0;
    list-style: none;
    min-width: 250px;
    position: absolute;
    top: 100%;
    z-index: 20;
}

.has-menu > ul .has-menu > ul {
    left: 100%;
    top: 0;
}

.has-menu:hover > ul,
.has-menu:focus-within > ul {
    display: block;
}

.has-menu > ul a {
    border-bottom: 1px solid #eee;
    color: #404040;
    font-size: 0.82rem;
    padding: 11px 14px;
    text-transform: none;
}

.has-menu > ul a:hover {
    background: #f4f4f4;
    color: var(--color-navy);
}

.rich-content {
    color: #444;
    font-size: 1.04rem;
    line-height: 1.8;
}

.rich-content h2,
.rich-content h3,
.rich-content h4 {
    margin: 28px 0 12px;
}

.rich-content h2:first-child,
.rich-content h3:first-child,
.rich-content h4:first-child {
    margin-top: 0;
}

.rich-content p,
.rich-content ul {
    margin-bottom: 18px;
}

.rich-content ul {
    padding-left: 22px;
}

.rich-content li {
    margin-bottom: 8px;
}

.rich-content a {
    color: var(--color-navy);
    font-weight: 700;
    text-decoration: underline;
}

/* Homepage */
.hero-layout-wrap {
    background: #f1f1f1;
    padding: 18px 0 0;
}

.hero-layout {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 3fr) minmax(290px, 1fr);
}

.home-hero {
    background: var(--color-deep);
}

.home-hero__slide {
    min-height: 555px;
    overflow: hidden;
    position: relative;
}

.home-hero__slide::after {
    background: linear-gradient(90deg, rgba(9,37,75,0.9), rgba(9,37,75,0.48), rgba(9,37,75,0.2));
    content: "";
    inset: 0;
    position: absolute;
}

.home-hero__slide img {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.home-hero__content {
    color: #fff;
    max-width: 760px;
    padding: 105px 48px 84px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    background: var(--color-red);
    color: white;
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 18px;
    padding: 7px 13px;
    text-transform: uppercase;
}

.home-hero h1 {
    color: white;
    font-size: clamp(3rem, 5.3vw, 5.8rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.98;
    margin-bottom: 16px;
    max-width: 720px;
    text-transform: uppercase;
}

.home-hero p {
    color: rgba(255,255,255,0.92);
    font-size: 1.12rem;
    max-width: 690px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn-light {
    background: white;
    color: var(--color-deep);
}

.news-flyer {
    background: #fff;
    box-shadow: 0 3px 14px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    min-height: 555px;
    overflow: hidden;
}

.news-flyer img {
    height: 265px;
    object-fit: cover;
    width: 100%;
}

.news-flyer__body {
    background: var(--color-navy);
    color: #fff;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.news-flyer h2 {
    color: var(--color-gold);
    font-size: 1.55rem;
    font-weight: 900;
    margin-bottom: 4px;
}

.news-flyer a {
    background: rgba(255,255,255,0.11);
    color: #fff;
    display: block;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.35;
    padding: 12px;
}

.news-flyer a:hover {
    background: var(--color-gold);
    color: #111;
}

.news-flyer a span {
    color: #fff9c0;
    display: block;
    font-size: 0.72rem;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.home-section {
    padding: 62px 0;
}

.section-heading {
    margin-bottom: 32px;
    text-align: center;
}

.section-heading h2,
.split-heading h2,
.director-message h2,
.about-grid h2,
.video-grid h2 {
    font-size: 2.1rem;
    margin-bottom: 10px;
}

.section-heading p {
    color: #666;
    margin: 0 auto;
    max-width: 700px;
}

.course-tile-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-course-tile {
    align-items: center;
    aspect-ratio: 1.2 / 1;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 176px;
    overflow: hidden;
    padding: 22px 14px;
    text-align: center;
}

.colorful-tile {
    background: #1E8291;
    box-shadow: 0 5px 14px rgba(0,0,0,0.13);
}

.colorful-tile:nth-child(2) { background: #495E8E; }
.colorful-tile:nth-child(3) { background: #60A855; }
.colorful-tile:nth-child(4) { background: #995498; }
.colorful-tile:nth-child(5) { background: #D32F85; }
.colorful-tile:nth-child(6) { background: #27BFD6; }
.colorful-tile:nth-child(7) { background: #706657; }
.colorful-tile:nth-child(8) { background: #498230; }
.colorful-tile:nth-child(9) { background: #4A75A8; }
.colorful-tile:nth-child(10) { background: #D26A05; }
.colorful-tile:nth-child(11) { background: #64AA55; }
.colorful-tile:nth-child(12) { background: #E64B4B; }
.colorful-tile:nth-child(13) { background: #BEB563; }
.colorful-tile:nth-child(14) { background: #435D64; }
.colorful-tile:nth-child(15) { background: #F7B57E; color: #222; }
.colorful-tile:nth-child(16) { background: #184886; }

.colorful-tile:hover {
    color: #fff;
    filter: brightness(1.05);
    transform: translateY(-2px);
}

.colorful-tile i {
    font-size: 2.4rem;
    margin-bottom: 14px;
}

.colorful-tile strong {
    color: inherit;
    display: block;
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.colorful-tile span {
    color: inherit;
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    opacity: 0.92;
}

.director-section {
    background: #f4f4f4;
    padding: 68px 0;
}

.director-grid,
.about-grid,
.video-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
}

.director-photo img {
    border: 8px solid white;
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    max-height: 520px;
    object-fit: cover;
    width: 100%;
}

.director-message {
    background: white;
    border-top: 5px solid var(--color-gold);
    box-shadow: 0 3px 14px rgba(0,0,0,0.06);
    padding: 34px;
}

.director-message p,
.about-grid p,
.video-grid p {
    color: #5d5d5d;
    margin-bottom: 16px;
}

.signature {
    color: var(--color-deep) !important;
    font-weight: 800;
}

.signature span {
    color: #666;
    font-weight: 500;
}

.about-band {
    background: #fff;
}

.check-list {
    display: grid;
    gap: 12px;
    list-style: none;
    margin-top: 22px;
}

.check-list li {
    border-left: 4px solid var(--color-gold);
    background: #f7f7f7;
    padding: 13px 15px;
}

.about-card-grid,
.utility-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-card-grid a,
.utility-grid a {
    background: var(--color-navy);
    color: white;
    display: block;
    font-weight: 800;
    padding: 18px;
}

.about-card-grid a:nth-child(even),
.utility-grid a:nth-child(even) {
    background: var(--color-gold);
    color: #111;
}

.split-heading {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 20px;
}

.split-heading > a {
    color: var(--color-red);
    font-weight: 800;
}

.video-band {
    background: var(--color-deep);
    color: white;
    padding: 64px 0;
}

.video-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
}

.video-grid h2 {
    color: white;
}

.video-placeholder {
    align-items: center;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #294A70, #F4A024);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.video-placeholder span {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.video-placeholder strong {
    font-size: 1.2rem;
    margin-top: 8px;
}

.utility-section {
    background: #f4f4f4;
}

.utility-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

/* Shared responsive safeguards */
img, video, iframe {
    max-width: 100%;
}

input, textarea, select, button {
    font: inherit;
}

button.btn {
    cursor: pointer;
}

.btn {
    text-align: center;
}

@media (max-width: 900px) {
    .top-bar .container,
    .brand-row__inner,
    .main-nav .container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .quick-link-bar__inner,
    .top-bar__inner,
    .top-bar__contact {
        justify-content: center;
        text-align: center;
    }

    .site-search {
        justify-content: center;
        width: 100%;
    }

    .menu-label {
        margin: 0;
        width: 100%;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px 20px;
    }

    .has-menu > ul,
    .has-menu > ul .has-menu > ul {
        left: auto;
        position: static;
        top: auto;
        width: 100%;
    }

    .hero {
        padding: 80px 0 !important;
    }

    .hero h1 {
        font-size: 2.4rem !important;
    }

    .quick-stats {
        margin-top: 0 !important;
        border-radius: 0 !important;
    }

    .quick-stats .container {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .container > div[style*="grid-template-columns: 1fr 1fr"],
    .container > div[style*="grid-template-columns: 2fr 1fr"],
    .container > div[style*="grid-template-columns: 1fr 1fr;"] {
        grid-template-columns: 1fr !important;
    }

    .director-grid,
    .about-grid,
    .video-grid,
    .hero-layout {
        grid-template-columns: 1fr;
    }

    .course-tile-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .news-flyer {
        min-height: 0;
    }

    .admin-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100% !important;
    }

    .topbar {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 8px;
    }

    .course-hero__inner,
    .course-detail {
        grid-template-columns: 1fr;
    }

    .course-detail-card {
        order: -1;
    }

    .official-topic-list {
        columns: 1;
    }

    .homestay-intro,
    .homestay-split,
    .homestay-gallery,
    .homestay-testimonial-grid {
        grid-template-columns: 1fr;
    }

    .homestay-gallery img {
        height: 220px;
    }
}

@media (max-width: 560px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .logo {
        font-size: 1.45rem;
    }

    .nav-links {
        gap: 10px 14px;
    }

    .nav-links li a {
        font-size: 0.8rem;
        padding: 10px 8px;
    }

    .brand-mark {
        flex-direction: column;
    }

    .brand-mark strong {
        font-size: 1.45rem;
    }

    .site-search {
        flex-direction: column;
    }

    .site-search input {
        min-width: 0;
        width: 100%;
    }

    .hero h1 {
        font-size: 2rem !important;
    }

    .home-hero h1 {
        font-size: 2.35rem;
    }

    .home-hero__content {
        padding-bottom: 58px;
        padding-top: 62px;
        padding-left: 22px;
        padding-right: 22px;
    }

    .home-hero__slide {
        min-height: 440px;
    }

    .wide-container {
        padding-left: 14px;
        padding-right: 14px;
    }

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

    .home-course-tile {
        aspect-ratio: auto;
        min-height: 150px;
    }

    .hero p {
        font-size: 1rem !important;
    }

    .hero .container > div:last-child,
    div[style*="display: flex; gap: 15px;"],
    div[style*="display: flex; gap: 20px; justify-content: center;"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .quick-stats .container {
        grid-template-columns: 1fr !important;
    }

    .site-footer {
        margin-top: 30px !important;
    }

    .news-strip__inner,
    .news-strip__items,
    .split-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .news-strip__items {
        gap: 8px;
    }

    .about-card-grid,
    .utility-grid {
        grid-template-columns: 1fr;
    }

    .director-message {
        padding: 24px;
    }

    .course-hero h1,
    .course-detail-hero h1 {
        font-size: 2rem;
    }

    .course-hero img {
        height: 220px;
    }

    .course-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Chatbot Styles */
.chatbot-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: auto;
    height: auto;
    padding: 12px 24px;
    background-color: var(--color-navy);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.chatbot-toggle-btn:hover {
    transform: scale(1.05);
    background-color: var(--color-gold);
    color: #111;
}

#chatbot-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 450px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: bottom right;
}

#chatbot-widget.chatbot-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
}

.chatbot-header {
    background-color: var(--color-navy);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h4 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
}

#chatbot-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #f9f9f9;
}

.chat-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.bot-message {
    background-color: #e9e9eb;
    color: var(--color-text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.user-message {
    background-color: var(--color-navy);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chatbot-input {
    display: flex;
    border-top: 1px solid #eee;
    padding: 15px;
    background-color: white;
}

.chatbot-input input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    font-family: var(--font-body);
    outline: none;
}

.chatbot-input input:focus {
    border-color: var(--color-gold);
}

.chatbot-input button {
    background-color: var(--color-gold);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0 15px;
    margin-left: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.chatbot-input button:hover {
    background-color: var(--color-gold-bright);
}

/* Course catalog */
.section-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--color-gold-bright);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.course-hero {
    background: var(--color-navy);
    color: white;
    padding: 56px 0;
    border-bottom: 6px solid var(--color-gold);
}

.course-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 36px;
    align-items: center;
}

.course-hero h1,
.course-detail-hero h1 {
    color: white;
    font-size: 2.8rem;
    line-height: 1.15;
    margin-bottom: 16px;
}

.course-hero p,
.course-detail-hero p {
    max-width: 680px;
    color: rgba(255,255,255,0.84);
    font-size: 1.05rem;
}

.course-hero img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.course-page {
    padding: 52px 20px 70px;
}

.course-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 34px;
}

.course-filter {
    border: 1px solid #d8d8d8;
    background: white;
    color: var(--color-navy);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    padding: 11px 18px;
}

.course-filter.is-active,
.course-filter:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: white;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 26px;
}

.course-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    overflow: hidden;
    border-bottom: 4px solid var(--color-navy);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.course-card.is-hidden {
    display: none;
}

.course-card__media {
    display: block;
    height: 165px;
    position: relative;
    overflow: hidden;
    background: #eee;
}

.course-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-card__media img {
    transform: scale(1.04);
}

.course-card__media span {
    position: absolute;
    left: 14px;
    bottom: 14px;
    background: rgba(11,31,58,0.9);
    color: white;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

.course-card__body {
    padding: 22px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.course-card__eyebrow {
    color: var(--color-gold);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 9px;
}

.course-card h3 {
    font-size: 1.22rem;
    line-height: 1.35;
    margin-bottom: 10px;
}

.course-card__body > p:not(.course-card__eyebrow) {
    color: #5f6672;
    font-size: 0.94rem;
    margin-bottom: 18px;
}

.course-card__footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: auto;
    font-weight: 700;
}

.course-card__footer span {
    color: var(--color-gold);
    font-size: 0.9rem;
}

.course-card__footer a {
    color: var(--color-navy);
    white-space: nowrap;
}

.course-detail-hero {
    min-height: 380px;
    color: white;
    display: flex;
    align-items: end;
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
    background: var(--color-navy);
}

.course-detail-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
}

.course-detail-hero .container {
    position: relative;
    z-index: 1;
}

.course-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    padding: 60px 20px;
}

.highlight-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 22px;
    list-style: none;
}

.highlight-list li {
    background: white;
    border-left: 4px solid var(--color-gold);
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
    padding: 14px 16px;
}

.official-course-content {
    margin-top: 42px;
}

.official-course-note {
    color: #555;
    line-height: 1.7;
    margin-top: 10px;
}

.official-course-section {
    background: white;
    border: 1px solid #e9edf3;
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.04);
    margin-top: 18px;
    padding: 22px;
}

.official-course-section h3 {
    color: var(--color-navy);
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.official-course-section p {
    color: #555;
    line-height: 1.7;
}

.official-topic-list {
    columns: 2;
    column-gap: 34px;
    margin-top: 14px;
    padding-left: 20px;
}

.official-topic-list li {
    break-inside: avoid;
    color: #444;
    line-height: 1.65;
    margin-bottom: 6px;
}

.course-detail-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    padding: 26px;
    align-self: start;
}

.course-detail-card dl {
    margin: 20px 0;
}

.course-detail-card dl div {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.course-detail-card dt {
    color: #667085;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.course-detail-card dd {
    color: var(--color-navy);
    font-weight: 700;
    margin-top: 4px;
}

.course-back-link {
    display: inline-block;
    margin-top: 16px;
    font-weight: 700;
}

.homestay-hero {
    min-height: 460px;
    color: white;
    display: flex;
    align-items: end;
    position: relative;
    padding: 90px 0 64px;
    overflow: hidden;
    background: var(--color-navy);
}

.homestay-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.52;
}

.homestay-hero .container {
    position: relative;
    z-index: 1;
}

.homestay-hero h1 {
    color: white;
    font-size: 2.8rem;
    line-height: 1.15;
    max-width: 760px;
}

.homestay-hero p {
    color: rgba(255,255,255,0.86);
    font-size: 1.08rem;
    max-width: 680px;
    margin-top: 14px;
}

.homestay-page {
    padding: 60px 20px;
}

.homestay-intro,
.homestay-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    gap: 34px;
    align-items: center;
}

.homestay-intro p {
    color: #555;
    line-height: 1.8;
    margin-top: 14px;
}

.homestay-intro img,
.homestay-card img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.homestay-intro img {
    aspect-ratio: 4 / 3;
}

.homestay-gallery {
    display: grid;
    grid-template-columns: 1.3fr 1fr 0.8fr;
    gap: 16px;
    margin: 42px 0;
}

.homestay-gallery img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 8px;
}

.homestay-card {
    background: white;
    border: 1px solid #e9edf3;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    padding: 30px;
}

.homestay-card p {
    color: #555;
    line-height: 1.7;
    margin: 12px 0 20px;
}

.homestay-booking-card {
    align-self: stretch;
}

.homestay-testimonials {
    margin-top: 54px;
}

.homestay-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.homestay-testimonial-grid article {
    background: white;
    border: 1px solid #e9edf3;
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.04);
    padding: 20px;
}

.homestay-testimonial-grid img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.homestay-testimonial-grid p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
}

.content-hero {
    min-height: 360px;
    color: white;
    display: flex;
    align-items: end;
    position: relative;
    padding: 80px 0 56px;
    overflow: hidden;
    background: var(--color-navy);
}

.content-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 32px;
}

.content-gallery figure {
    margin: 0;
}

.content-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
}

.content-gallery figcaption {
    color: #555;
    font-weight: 700;
    margin-top: 8px;
}

.content-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 32px;
}

.content-card {
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.04);
    color: inherit;
    overflow: hidden;
}

.content-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.content-card strong,
.content-card span {
    display: block;
    padding: 0 18px;
}

.content-card strong {
    color: var(--color-navy);
    font-size: 1.05rem;
    padding-top: 16px;
}

.content-card span {
    color: #555;
    line-height: 1.6;
    padding-bottom: 18px;
    padding-top: 8px;
}

.content-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
}

.content-hero .container {
    position: relative;
    z-index: 1;
}

.content-hero h1 {
    color: white;
    font-size: 2.7rem;
    line-height: 1.15;
    margin-bottom: 14px;
}

.content-hero p {
    max-width: 760px;
    color: rgba(255,255,255,0.86);
    font-size: 1.08rem;
}

.content-page {
    padding: 56px 20px 70px;
}

.article-grid,
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 26px;
}

.article-card,
.media-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

.article-card img,
.media-card img,
.media-pdf {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #eef2f7;
}

.media-pdf {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-navy);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
}

.article-card > div,
.media-card > div {
    padding: 22px;
}

.article-card span,
.media-card span {
    color: var(--color-gold);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
}

.article-date {
    color: #777;
    font-size: 0.85rem;
    margin: 8px 0;
}

.article-card h3,
.media-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.article-card p {
    color: #5f6672;
    margin-bottom: 16px;
}

/* ============================================================
   DBI FOOTER STYLES
   ============================================================ */
.dbi-footer { background:#071e3d; color:#ccc; font-size:.9rem; margin-top:0; }
.dbi-footer__top { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:40px; padding:60px 20px 40px; }
.dbi-footer__col h4 { color:#f49b1c; font-size:1rem; margin-bottom:16px; text-transform:uppercase; letter-spacing:.5px; }
.dbi-footer__col ul { list-style:none; padding:0; }
.dbi-footer__col ul li { margin-bottom:8px; }
.dbi-footer__col ul li a { color:#ccc; text-decoration:none; font-size:.88rem; transition:color .2s; }
.dbi-footer__col ul li a:hover { color:#f49b1c; }
.dbi-footer__col p { color:#aaa; font-size:.88rem; margin-bottom:10px; line-height:1.6; }
.dbi-footer__col p i { color:#f49b1c; margin-right:6px; }
.dbi-footer__col p a { color:#ccc; } .dbi-footer__col p a:hover { color:#f49b1c; }
.dbi-footer__logo-link { display:flex; align-items:center; gap:10px; margin-bottom:14px; text-decoration:none; }
.dbi-footer__logo-link img { filter:brightness(1.2); }
.dbi-footer__logo-link span { color:#fff; font-weight:800; font-size:1.05rem; line-height:1.2; }
.dbi-footer__social { display:flex; gap:10px; margin-top:14px; }
.dbi-footer__social a { width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.1); color:#fff; display:flex; align-items:center; justify-content:center; font-size:.95rem; text-decoration:none; transition:background .2s; }
.dbi-footer__social a:hover { background:#f49b1c; color:#111; }
.dbi-footer__map { margin-top:14px; border-radius:4px; overflow:hidden; }
.dbi-footer__bottom { border-top:1px solid rgba(255,255,255,.08); padding:20px 20px 30px; text-align:center; }
.dbi-footer__bottom p { color:#777; font-size:.85rem; margin-bottom:6px; }
.dbi-footer__credits { color:#aaa !important; font-style:italic; }
.dbi-footer__credits strong { color:#f49b1c; font-style:normal; }
.dbi-footer__bottom-links { display:flex; flex-wrap:wrap; justify-content:center; gap:6px 20px; margin-top:12px; }
.dbi-footer__bottom-links a { color:#777; font-size:.82rem; text-decoration:none; }
.dbi-footer__bottom-links a:hover { color:#f49b1c; }


/* Disable old manipal floating header */
.site-header { display:none !important; }
main { padding-top:0 !important; }
