/* --- Accessibility Utility Classes --- */
:root {
    --a11y-bg: #ffffff;
    --a11y-text: #2c3e50;
    --warning-color: #ffc107;
}

/* 1. Accessibility Toolbar Styling */
.a11y-toolbar {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
}

#a11y-toggle {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    background-color: var(--primary-color);
    border: none;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#a11y-toggle:hover {
    transform: scale(1.1);
}

.a11y-panel {
    position: absolute;
    bottom: 75px;
    left: 0;
    width: 280px;
    background: #fff;
    border-radius: 12px;
    display: none;
    transform-origin: bottom left;
    animation: slideUp 0.3s ease-out;
}

.a11y-panel.active {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 2. Visual Mode Overrides */

/* --- High Contrast Mode --- */
body.high-contrast-mode {
    background-color: #000 !important;
    color: #ffff00 !important;
}

body.high-contrast-mode *:not(.a11y-toolbar *) {
    background-color: #000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    background-image: none !important;
}

body.high-contrast-mode a {
    color: #00ffff !important;
    text-decoration: underline !important;
}

body.high-contrast-mode .btn {
    border: 2px solid #ffff00 !important;
}

/* --- Monochrome Mode --- */
body.monochrome-mode {
    filter: grayscale(100%) !important;
}

/* --- Readable Font Mode --- */
body.readable-font-mode * {
    font-family: Arial, Verdana, sans-serif !important;
}

/* --- Focus Indicator --- */
*:focus-visible {
    outline: 3px solid var(--warning-color) !important;
    outline-offset: 3px !important;
}

/* Thika Technical Training Institute - Custom CSS */
:root {
    --primary-color: #0076c0;
    /* Blue based on the image */
    --secondary-color: #f8f9fa;
    --maroon-color: #800000;
    --maroon-light: #fff5f5;
    --accent-color: var(--maroon-color);
    --text-dark: #333;
    --text-light: #fff;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* --- Triple-Tier Header Redesign --- */

/* 1. Top Utility Bar (Blue) */
.top-bar-blue {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar-blue a {
    color: #fff;
    text-decoration: none;
    margin-right: 15px;
    font-weight: 500;
}

.top-bar-blue .social-icons a {
    margin-left: 12px;
    margin-right: 0;
    font-size: 1rem;
}

.accessibility-icon {
    width: 35px;
    height: 35px;
    background: #fff;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 2. Branding Section (White) */
.branding-section {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.school-name-serif {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #222;
    font-weight: 500;
    font-size: 1.8rem;
    margin: 0;
}

.contact-info-header {
    font-size: 0.85rem;
    color: #444;
}

.contact-info-header i {
    color: #555;
    margin-right: 5px;
}

.kenya-crest {
    height: 80px;
    width: auto;
}

/* 3. Primary Navigation Bar (Blue) */
.nav-bar-blue {
    background-color: var(--primary-color);
    padding: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-bar-blue .nav-link {
    color: #fff !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 15px 20px !important;
    transition: 0.3s;
}

.nav-bar-blue .nav-link:hover,
.nav-bar-blue .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
}

/* Old navbar removal (deprecated) */
.main-nav {
    display: none;
}

.secondary-top-bar {
    display: none;
}

/* ===== INTAKE NEWS BANNER ===== */
.intake-banner {
    background: #ffffff;
    position: relative;
    overflow: hidden;
    z-index: 10;
    border-top: 3px solid #800000;
    border-bottom: 3px solid #0076c0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.intake-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #800000, #0076c0, #800000);
    background-size: 200% 100%;
    animation: shimmerLine 3s linear infinite;
}

@keyframes shimmerLine {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.intake-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 20px;
    flex-wrap: wrap;
}

.intake-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.intake-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #b10808;
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.5);
    animation: livePulse 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes livePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.5);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

.intake-label {
    background: #d8c451;
    color: #800000;
    font-weight: 900;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 13px;
    border-radius: 4px;
    animation: labelFlash 3s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes labelFlash {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.82;
    }
}

.intake-pipe {
    width: 1px;
    height: 28px;
    background: #ddd;
    flex-shrink: 0;
}

.intake-ticker-wrap {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.intake-ticker {
    display: flex;
    gap: 70px;
    width: max-content;
    animation: tickerScroll 30s linear infinite;
}

.intake-ticker:hover {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.intake-ticker-item {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #444444;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.intake-ticker-item i {
    color: #0076c0;
    animation: starSpin 3s ease-in-out infinite;
}

@keyframes starSpin {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(15deg) scale(1.15);
    }
}

.intake-ticker-item strong {
    color: #800000;
    font-weight: 800;
}

.ticker-divider {
    color: #cccccc;
    font-size: 1rem;
    align-self: center;
}

.intake-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.intake-cta .intake-deadline {
    color: #888;
    font-size: 0.76rem;
    text-align: right;
    line-height: 1.4;
    white-space: nowrap;
}

.intake-cta .intake-deadline strong {
    color: #800000;
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
}

.btn-apply-now {
    background: #0069f1;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    border: 2px solid #019ee7;
    box-shadow: 0 3px 12px rgba(7, 205, 255, 0.301);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    animation: applyGlow 2.5s ease-in-out infinite alternate;
}

@keyframes applyGlow {
    from {
        box-shadow: 0 3px 12px rgba(128, 0, 0, 0.2);
    }

    to {
        box-shadow: 0 5px 22px rgba(128, 0, 0, 0.45);
    }
}

.btn-apply-now:hover {
    background: #ffffff;
    color: #800000;
    border-color: #800000;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(128, 0, 0, 0.3);
}

.btn-apply-now i {
    font-size: 0.85rem;
    animation: arrowBounce 1.2s ease-in-out infinite;
}

@keyframes arrowBounce {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(4px);
    }
}

@media (max-width:767px) {
    .intake-cta .intake-deadline {
        display: none;
    }

    .intake-pipe {
        display: none;
    }

    .intake-label {
        font-size: 0.62rem;
        padding: 4px 9px;
    }

    .intake-ticker-item {
        font-size: 0.82rem;
    }

    .btn-apply-now {
        font-size: 0.75rem;
        padding: 8px 15px;
    }

    .intake-inner {
        padding: 9px 0;
    }
}

/* Hero Slider - Standard 400px Version */
.hero-slider .carousel-item {
    height: 550px;
    overflow: hidden;
}

.hero-slider .carousel-item img {
    height: 550px;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    animation: kenBurnsZoom 10s linear infinite alternate;
}

/* Action Bar Styled Caption - Centered */
.carousel-caption {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    padding: 0;
    display: flex !important;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.caption-action-bar {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 35px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.5);
    animation: fadeInUpStaggered 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.caption-text-left h4 {
    font-size: 1.3rem;
    /* Slightly smaller for 350px */
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.caption-text-center p {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding-left: 25px;
    max-width: 400px;
}

.caption-btn-right .btn {
    font-size: 0.8rem;
    padding: 8px 20px;
    font-weight: 600;
}

@keyframes fadeInUpStaggered {
    from {
        opacity: 1;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes kenBurnsZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.carousel-fade .carousel-item {
    transition-duration: 1.2s;
}

.carousel-fade .carousel-item {
    transition-duration: 1.2s;
}

/* Sections */
.section-title {
    color: linear-gradient(135deg, var(--primary-color) 0%, #005f9e 100%);
    font-weight: 600;
    position: relative;
    margin-bottom: 40px;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
}

/* Notice Board - Redesign */
.notice-board-custom {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.notice-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #005f9e 100%);
    padding: 25px 20px;
    text-align: center;
    border-bottom: 4px solid rgba(255, 255, 255, 0.2);
}

.notice-header h3 {
    margin: 0;
    color: #fff;
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: 1px;
}

.notice-item-custom {
    padding: 25px 30px;
    border-bottom: 2px solid #f8f9fa;
    transition: 0.3s;
}

.notice-item-custom:hover {
    background-color: #fcfcfc;
}

.notice-item-custom h6 {
    color: #2c3e50;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.4;
    margin-bottom: 12px;
    font-size: 1.05rem;
    transition: color 0.3s;
}

.notice-item-custom:hover h6 {
    color: var(--primary-color);
}

.btn-read-more {
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 15px;
}

.btn-read-more:hover {
    color: var(--primary-color);
}

/* CEO Quick Message Bar */
.ceo-quick-bar {
    margin-top: 20px;
    background: #fff;
    min-height: 80px;
}

.ceo-divider hr {
    margin: 0 auto;
    width: 80%;
    opacity: 0.1;
    border-top: 1px solid var(--primary-color);
}

.ceo-thumb-wrapper img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid rgba(0, 118, 192, 0.1);
}

.ceo-short-msg p {
    font-size: 1.1rem;
    color: #555;
}

.ceo-mini-signature h6 {
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.notice-date-maroon {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.85rem;
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
    display: block;
}

/* Footer */
footer {
    background: #222;
    color: #eee;
    padding: 60px 0 20px;
}

footer a {
    color: #bbb;
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-color);
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 118, 192, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Animations and Transitions */
.news-img {
    height: 180px;
    background: #eee;
    overflow: hidden;
}

/* Gallery Hover Effects */
.news-card {
    transition: 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Service Charter Section */
.service-charter-section {
    position: relative;
    overflow: hidden;
    margin-top: -50px;
    z-index: 1001;
    /* Above sticky navbar if needed */
}

.charter-banner {
    display: flex;
    align-items: center;
    min-height: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.charter-left {
    background-color: #616161;
    color: #fff;
    padding: 20px 40px;
    flex: 1.2;
    display: flex;
    align-items: center;
    position: relative;
    clip-path: polygon(0 0, 92% 0, 100% 100%, 0% 100%);
}

.charter-right {
    background-color: #800000;
    /* Golden/Yellow */
    color: #fff;
    padding: 20px 40px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    margin-left: -50px;
}

.charter-icon {
    font-size: 3rem;
    margin-right: 25px;
}

.charter-content h3 {
    margin: 0;
    font-weight: 800;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.charter-content a {
    color: #ffc107;
    text-decoration: underline;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    color: #555555;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Upcoming Events Cards */
.event-card-custom {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: #fff;
    height: 100%;
}

.event-card-custom:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.event-img-wrapper {
    position: relative;
    height: 220px;
}

.event-date-badge {
    position: absolute;
    bottom: -15px;
    right: 20px;
    background: #800000;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-align: center;
    min-width: 70px;
    line-height: 1.1;
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.3);
    z-index: 10;
}

.event-date-badge .day {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
}

.event-date-badge .month {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Campus Life Revamp */
.campus-life-row {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 30px 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
    -ms-overflow-style: none;
    /* IE and Edge */
}

.campus-life-row::-webkit-scrollbar {
    height: 6px;
}

.campus-life-row::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.campus-item {
    min-width: 200px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.campus-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.campus-item:hover img {
    transform: scale(1.15);
}

.campus-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0.95;
    transition: opacity 0.3s;
}

.campus-item h5 {
    padding: 12px 15px;
    background: rgba(128, 0, 0, 0.85);
    /* Maroon with slight transparency */
    color: #fff;
    margin: 0;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 1.1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
    border-radius: 4px;
    /* Slight rounding for better look */
    text-align: center;
}

/* --- Downloads & Vacancies --- */
.download-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: none;
    transition: 0.3s;
    height: 100%;
}

.download-card:hover {
    transform: translateY(-5px);
}

.icon-box-blue {
    width: 60px;
    height: 60px;
    background: rgba(0, 118, 192, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.count-badge {
    background: var(--primary-color);
    color: #fff;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    position: absolute;
    top: 30px;
    right: 30px;
}

.resource-list-item {

    padding-left: 80px;
    padding-top: 8px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    transition: 0.2s;
}

.resource-list-item:last-child {

    border-bottom: none;
}

.resource-list-item a {

    color: #444;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.resource-list-item:hover a {
    color: var(--primary-color);
}

.vacancy-card {
    border-left: 5px solid var(--primary-color);
    transition: 0.3s;
}

.vacancy-card:hover {
    background: #f8f9fa;
}

.deadline-badge {
    background: #fff5f5;
    color: var(--accent-color);
    border: 1px solid #ffe3e3;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* --- Admissions & Contact --- */
.step-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    height: 100%;
    transition: 0.3s;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 20px;
}

.admission-path-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info-card {
    border-left: 5px solid var(--primary-color);
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--maroon-color);
}

.border-maroon {
    border-color: var(--maroon-color) !important;
}

.text-maroon {
    color: var(--maroon-color) !important;
}

.bg-maroon {
    background-color: var(--maroon-color) !important;
}

.btn-maroon {
    background-color: var(--maroon-color);
    color: #fff;
    border: none;
}

.btn-maroon:hover {
    background-color: #600000;
    color: #fff;
}

.card.hover-maroon:hover {
    border-top: 5px solid var(--maroon-color) !important;
}

.section-title::after {
    background: linear-gradient(to right, var(--primary-color), var(--maroon-color));
}

.nav-link:hover,
.nav-link.active {
    color: var(--maroon-color) !important;
}

/* --- Partners Logo Ticker --- */
.logo-ticker-section {
    background-color: var(--secondary-color);
    padding: 60px 0;
    border-top: 1px solid #eee;
}

.logo-ticker {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.logo-ticker::before,
.logo-ticker::after {
    content: "";
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 2;
}

.logo-ticker::before {
    left: 0;
    background: linear-gradient(to right, #f8f9fa, transparent);
}

.logo-ticker::after {
    right: 0;
    background: linear-gradient(to left, #f8f9fa, transparent);
}

.ticker-track {
    display: flex;
    gap: 100px;
    animation: scrollTicker 50s linear infinite;
    width: max-content;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.logo-item img {
    height: 65px;
    width: auto;
    opacity: 0.9;
    transition: 0.3s ease;
}

.logo-item img:hover {
    opacity: 1;
}

@keyframes scrollTicker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =========================================================
   MAROON BRAND UTILITIES
   ========================================================= */

/* Background */
.bg-maroon {
    background-color: var(--maroon-color) !important;
}

.bg-maroon-light {
    background-color: var(--maroon-light) !important;
}

/* Text */
.text-maroon {
    color: var(--maroon-color) !important;
}

/* Borders */
.border-maroon {
    border-color: var(--maroon-color) !important;
}

.border-bottom-maroon {
    border-bottom: 3px solid var(--maroon-color) !important;
}

/* Buttons */
.btn-maroon {
    background-color: var(--maroon-color);
    border-color: var(--maroon-color);
    color: #fff;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-maroon:hover,
.btn-maroon:focus {
    background-color: #5c0000;
    border-color: #5c0000;
    color: #fff;
    box-shadow: 0 4px 16px rgba(128, 0, 0, 0.35);
}

.btn-outline-maroon {
    border: 2px solid var(--maroon-color);
    color: var(--maroon-color);
    background: transparent;
    transition: all 0.25s ease;
}

.btn-outline-maroon:hover {
    background: var(--maroon-color);
    color: #fff;
}

/* Hover lift with maroon accent */
.hover-maroon {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hover-maroon:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(128, 0, 0, 0.14) !important;
    border-top-color: var(--maroon-color) !important;
}

/* Page hero utility */
.page-hero {
    position: relative;
    width: 100%;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--maroon-color));
}

/* Section title with maroon underline */
.section-title::after {
    background: linear-gradient(90deg, var(--primary-color), var(--maroon-color));
}

/* Image lazy load fade-in */
img[loading="lazy"] {
    opacity: 1;
    transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

/* --- Glassmorphism Modal --- */
#noticeModal .modal-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

#noticeModal .modal-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 118, 192, 0.1);
}

#noticeModal .btn-primary {
    background: linear-gradient(90deg, var(--primary-color), #005f9e);
    border: none;
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 700;
}

/* =========================================================
   MOBILE RESPONSIVENESS OVERRIDES
   ========================================================= */

@media (max-width: 991px) {
    .branding-section .school-name-serif {
        font-size: 1.4rem;
        text-align: center;
    }

    .hero-slider .carousel-item {
        height: 420px;
    }

    .hero-slider .carousel-item img {
        height: 420px;
    }

    .charter-banner {
        flex-direction: column;
        border-radius: 15px;
    }

    .charter-left {
        clip-path: none;
        width: 100%;
        text-align: center;
        flex-direction: column;
        padding: 30px 20px;
    }

    .charter-right {
        width: 100%;
        margin-left: 0;
        justify-content: center;
        padding: 20px;
        flex-wrap: wrap;
    }

    .charter-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 767px) {

    .top-bar-blue .social-icons,
    .top-bar-blue .container>.d-flex>div:first-child {
        justify-content: center !important;
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }

    .top-bar-blue .container>.d-flex {
        flex-direction: column;
    }

    .carousel-caption {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        width: 95%;
        margin: 0 auto;
    }

    .caption-action-bar {
        border-radius: 15px;
        padding: 15px;
        gap: 15px;
        width: 100%;
    }

    .caption-text-left h4 {
        font-size: 1.1rem;
    }

    .caption-text-center p {
        border-left: none;
        padding-left: 0;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .ceo-quick-bar .row {
        text-align: center;
    }

    .ceo-thumb-wrapper img {
        margin-bottom: 15px;
    }

    footer {
        text-align: center;
    }

    footer .text-end {
        text-align: center !important;
        margin-top: 20px;
    }

    .social-icons {
        justify-content: center;
        margin-top: 20px;
    }

    /* Demo stats */
    .stat-item {
        margin-bottom: 30px;
    }
}

@media (max-width: 575px) {
    .hero-slider .carousel-item {
        height: 360px;
    }

    .hero-slider .carousel-item img {
        height: 360px;
    }

    .caption-action-bar {
        background: rgba(0, 0, 0, 0.6);
        /* Darker for readability on tiny screens */
    }
}

/* --- Home Identity Section (Mission/Vision/Mandate) --- */
.home-identity-section {
    display: flex;
    flex-wrap: wrap;
    background: #000;
}

.identity-panel {
    flex: 1;
    min-width: 33.333%;
    min-height: 200px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    color: #fff;
    overflow: hidden;
    transition: 0.5s ease;
}

.identity-panel:hover {
    flex: 1.2;
}

.id-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    z-index: 1;
    transition: 0.5s ease;
}

.identity-panel:hover .id-bg {
    transform: scale(1.1);
    opacity: 0.4;
}

.id-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(159, 206, 236, 0.7));
    z-index: 2;
}

.id-content {
    position: relative;
    z-index: 3;
}

.id-icon {
    font-size: 2.22rem;
    color: #007bce;
    margin-bottom: 20px;
    display: block;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.id-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.id-text {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 400px;
    opacity: 0.95;
}

/* Core Values Bar */
.core-values-bar {
    background-color: var(--maroon-color);
    color: #fff;
    padding: 20px 0;
    width: 100%;
}

.values-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-style: italic;
    font-weight: 500;
    font-size: 1.05rem;
}

.value-item::after {
    content: " | ";
    margin-left: 10px;
    opacity: 0.3;
    font-weight: 300;
}

.value-item:last-child::after {
    content: "";
}

/* --- Redesigned Announcement Modal --- */
#noticeModal .modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

#noticeModal .modal-dialog {
    max-width: 90%;
    width: 600px;
}

#noticeModal .btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1060;
    background-color: rgba(255, 255, 255, 0.82);
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#noticeModal .popup-image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

#noticeModal .popup-text-content {
    padding: 40px;
}

@media (max-width: 991px) {
    .identity-panel {
        min-width: 100%;
        min-height: 300px;
    }

    .identity-panel:hover {
        flex: 1;
    }
}

/* --- All Programs Filtering UI --- */
.programs-sidebar .nav-pills .nav-link {
    color: #444;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.programs-sidebar .nav-pills .nav-link:hover {
    background: #e9ecef;
}

.programs-sidebar .nav-pills .nav-link.active {
    background-color: var(--primary-color) !important;
    /* Blue */
    color: #fff !important;
}

.course-search-input {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 10px 15px;
}

.course-search-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 118, 192, 0.25);
    border-color: var(--primary-color);
}

.course-level-filter {
    border-radius: 4px;
    padding: 6px 16px;
}

.course-card .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

.admission-tabs .nav-link {
    color: #555;
    transition: 0.3s;
}

.admission-tabs .nav-link.active {
    background-color: var(--maroon-color) !important;
    color: #fff !important;
}

/* Custom Brands for Admission UI */
.bg-maroon {
    background-color: var(--maroon-color) !important;
}

.border-maroon {
    border-color: var(--maroon-color) !important;
}

.text-maroon {
    color: var(--maroon-color) !important;
}

.btn-outline-gray {
    color: #6c757d;
    border-color: #ced4da;
    background-color: #f8f9fa;
}

.btn-outline-gray:hover {
    color: #495057;
    background-color: #e2e6ea;
    border-color: #dae0e5;
}

.btn-m-active.active {
    background-color: var(--maroon-color) !important;
    color: #fff !important;
    border-color: var(--maroon-color) !important;
}

.card-brand-hover:hover {
    border-color: var(--primary-color) !important;
}

/* --- About Us Special Sections --- */
.principal-img-wrapper {
    transition: transform 0.3s ease;
    aspect-ratio: 1/1 !important;
    max-width: 350px;
    margin: 0 auto;
}

.principal-img-wrapper:hover {
    transform: scale(1.02);
}

.principal-message {
    line-height: 1.8;
}

.principal-message-wrapper {
    position: relative;
    max-height: 250px;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.principal-message-wrapper.expanded {
    max-height: 2500px;
}

.principal-message-wrapper:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, #ffffff);
    pointer-events: none;
}

.btn-read-more-message {
    margin-top: 20px;
    font-weight: 700;
    color: var(--maroon-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 0;
}

.btn-read-more-message:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.bog-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
}

.bog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
}

.bog-img-container {
    width: 130px;
    height: 130px;
    position: relative;
    padding: 6px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--maroon-color) 100%);
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 118, 192, 0.2);
    margin: 0 auto 20px;
}

.bog-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 4px solid #fff;
}

.bog-img-container img {
    border-radius: 50% !important;
}

.bog-card .card-body h5 {
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}

.bog-position-badge {
    display: inline-block;
    background: var(--maroon-light);
    color: var(--maroon-color);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.8px;
}

.bog-qualification {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.5;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    display: inline-block;
}

/* --- Modern Intake Callout Section --- */
.intake-callout-section {
    padding: 50px 0;
    background-color: #ffffff;
    position: relative;
    z-index: 10;
}

.intake-callout-card {
    background: #ffffff;
    border-radius: 0;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    color: #2c3e50;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid #eeeeee;
    border-top: 6px solid var(--primary-color);
    border-bottom: 6px solid var(--maroon-color);
    animation: fadeInUp 0.8s ease-out forwards;
}

.glow-overlay {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 118, 192, 0.03) 0%, transparent 60%);
    animation: rotateGlow 25s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.intake-callout-content {
    position: relative;
    z-index: 2;
}

.intake-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.intake-icon-wrapper {
    font-size: 4.5rem;
    color: var(--primary-color);
    filter: drop-shadow(0 5px 15px rgba(0, 118, 192, 0.2));
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.intake-main-title {
    font-size: 4rem;
    font-weight: 950;
    margin: 0;
    letter-spacing: -2px;
    color: #1a1a1a;
    text-transform: uppercase;
}

.intake-sub-title {
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.intake-levels-info {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--maroon-light);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: var(--maroon-color);
    font-weight: 700;
    border: 1px solid rgba(128, 0, 0, 0.1);
}

.intake-levels-info i {
    color: #ff4747;
    font-size: 1.2rem;
}

.intake-para {
    font-size: 1.25rem;
    max-width: 1000px;
    margin: 0 auto 45px;
    color: #555555;
    line-height: 1.7;
}

.intake-action-btns {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-intake-download {
    background: #ff4747;
    color: #ffffff;
    border: none;
    padding: 14px 30px;
    border-radius: 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(255, 71, 71, 0.2);
}

.btn-intake-download:hover {
    background: #e63939;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 71, 71, 0.45);
    color: #ffffff;
}

.btn-intake-apply {
    background: #ff9d00;
    color: #ffffff;
    border: none;
    padding: 14px 30px;
    border-radius: 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(255, 157, 0, 0.2);
}

.btn-intake-apply:hover {
    background: #e68d00;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 157, 0, 0.45);
    color: #ffffff;
}

.intake-footer-note {
    font-size: 1.1rem;
    color: #777777;
    margin-top: 15px;
    font-weight: 500;
}

@keyframes fadeInUp {
    from {
        opacity: 1;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsiveness */
@media (max-width: 991px) {
    .intake-main-title {
        font-size: 2.8rem;
    }

    .intake-sub-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 767px) {
    .intake-callout-section {
        padding: 60px 0 40px;
    }

    .intake-callout-card {
        padding: 40px 20px;
        border-radius: 20px;
    }

    .intake-main-title {
        font-size: 2.2rem;
        letter-spacing: -0.5px;
    }

    .intake-icon-wrapper {
        font-size: 3rem;
    }

    .intake-sub-title {
        font-size: 1.2rem;
    }

    .intake-levels-info {
        font-size: 0.95rem;
        padding: 8px 20px;
    }

    .intake-para {
        font-size: 1.05rem;
    }

    .btn-intake-download,
    .btn-intake-apply {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
}

/* --- Dashboard Section (Events | Intake | Notice Board) --- */
.bg-light-grey {
    background-color: #f5f7fa !important;
}

.dashboard-side-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
    display: flex;
    flex-direction: column;
}

.dashboard-side-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
}

.side-card-header {
    padding: 20px 25px;
    position: relative;
    overflow: hidden;
}

/* Specific Header Backgrounds */
.events-side-card .side-card-header {
    background: linear-gradient(135deg, var(--maroon-color) 0%, #a00000 100%);
}

.notice-side-card .side-card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #005f9e 100%);
}

.side-card-header h5 {
    color: #ffffff;
    letter-spacing: 0.5px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.1rem;
    margin: 0;
}

.btn-view-all {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 15px;
    border-radius: 50px;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-view-all:hover {
    background: #ffffff;
    color: var(--primary-color);
}

.events-side-card .btn-view-all:hover {
    color: var(--maroon-color);
}

.dashboard-event-item {
    border-bottom: 1px solid #f0f0f0;
    transition: 0.3s;
}

.dashboard-event-item:last-child {
    border-bottom: none;
}

.dashboard-event-item:hover {
    background: #fafafa;
}

.event-mini-img {
    height: 120px !important;
    /* Shorter height for column mode */
    position: relative;
    overflow: hidden;
}

.event-mini-date-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    text-align: center;
    line-height: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.event-mini-date-badge .day {
    display: block;
    font-size: 1.1rem;
    font-weight: 900;
}

.event-mini-date-badge .month {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: 700;
}

.btn-outline-maroon {
    border: 2px solid var(--maroon-color);
    color: var(--maroon-color);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    border-radius: 0;
    transition: 0.3s;
}

.btn-outline-maroon:hover {
    background: var(--maroon-color);
    color: #fff;
}

/* Scaling down Intake Callout for Dashboard - RESTORED LOOK */
.premium-dashboard-card {
    padding: 60px 40px !important;
    position: relative;
    overflow: hidden;
}

.intake-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 118, 192, 0.05) 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0.5;
    pointer-events: none;
}

.floating-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.blob {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 118, 192, 0.1) 0%, rgba(128, 0, 0, 0.05) 100%);
    filter: blur(50px);
    border-radius: 50%;
    animation: floatBlob 15s infinite alternate;
}

.blob-1 {
    top: -50px;
    right: -50px;
}

.blob-2 {
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 30px) scale(1.2);
    }
}

.premium-dashboard-card .intake-main-title {
    font-size: 2.8rem !important;
    letter-spacing: -1.5px !important;
    position: relative;
    z-index: 2;
}

.premium-dashboard-card .intake-icon-wrapper {
    font-size: 3.5rem !important;
}

.premium-dashboard-card .intake-sub-title {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
}

.premium-dashboard-card .intake-levels-info {
    padding: 12px 30px !important;
    font-size: 1.05rem !important;
}

.premium-dashboard-card .btn-intake-download,
.premium-dashboard-card .btn-intake-apply {
    padding: 14px 25px !important;
    font-size: 0.85rem !important;
}

@media (max-width: 991px) {
    .premium-dashboard-card .intake-main-title {
        font-size: 2.2rem !important;
    }
}

/* =========================================================
   2024 REDESIGN - MODERN TRENDS
   ========================================================= */

:root {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --modern-gradient: linear-gradient(135deg, #0076c0 0%, #005f9e 100%);
    --maroon-gradient: linear-gradient(135deg, #800000 0%, #600000 100%);
    --card-radius: 20px;
    --soft-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--card-radius);
}

/* 1. Dashboard Redesign */
.dashboard-section {
    padding: 80px 0;
    background-color: #f4f7f9;
}

.dashboard-side-card {
    border: none;
    border-radius: var(--card-radius);
    background: #fff;
    box-shadow: var(--soft-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dashboard-side-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.side-card-header {
    border-bottom: 1px solid #f0f0f0;
}

.btn-view-all {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 50px;
    background: rgba(0, 118, 192, 0.05);
    transition: 0.3s;
}

.btn-view-all:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Event Card in Dashboard */
.event-mini-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #fff;
    padding: 5px 12px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.event-mini-date-badge .day {
    display: block;
    font-weight: 800;
    color: var(--maroon-color);
    font-size: 1.2rem;
    line-height: 1;
}

.event-mini-date-badge .month {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
}

/* 2. News Redesign */
.news-card-main {
    border-radius: var(--card-radius);
    transition: all 0.4s ease;
    border: 1px solid #eee !important;
}

.news-card-main:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08) !important;
}

.news-img-container {
    overflow: hidden;
    border-radius: var(--card-radius) 0 0 var(--card-radius);
}

@media (max-width: 767px) {
    .news-card-main {
        flex-direction: column !important;
    }

    .news-img-container {
        width: 100% !important;
        height: 200px !important;
        border-radius: var(--card-radius) var(--card-radius) 0 0;
    }
}

/* 3. Identity Section Redesign */
.home-identity-section {
    padding: 0;
    gap: 0;
}

.identity-panel {
    border: none !important;
    padding: 60px 40px !important;
}

.identity-panel .id-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 118, 192, 0.8)) !important;
}

.identity-panel:nth-child(2) .id-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(128, 0, 0, 0.8)) !important;
}

.identity-panel:nth-child(3) .id-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(44, 62, 80, 0.8)) !important;
}

.id-icon {
    font-size: 3.5rem !important;
    color: #fff !important;
    margin-bottom: 25px !important;
    opacity: 0.9 !important;
}

/* 4. Stats Section Redesign */
.stat-item {
    padding: 30px !important;
    border-radius: var(--card-radius) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: 0.3s !important;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-5px) !important;
}

/* 5. Core Values Redesign */
.core-values-bar {
    background: var(--maroon-gradient) !important;
    padding: 25px 0 !important;
}

.value-item {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-style: normal !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* 6. Gallery Row Redesign */
.campus-item {
    min-width: 300px !important;
    height: 220px !important;
    border-radius: var(--card-radius) !important;
}

.campus-item h5 {
    background: var(--primary-color) !important;
    font-size: 0.9rem !important;
    padding: 8px 15px !important;
    border-radius: 0 10px 0 0 !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
}

/* 7. Logo Ticker */
.logo-ticker-section {
    background: #fff !important;
}

.ticker-track {
    gap: 80px !important;
}

/* =========================================================
   CORPORATE REFINEMENTS
   ========================================================= */

/* Corporate Dashboard Adjustments */
.dashboard-section {
    background-color: #f8fafc !important;
}

.dashboard-side-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    border-radius: 12px !important;
}

.side-card-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 20px 25px !important;
}

.side-card-header h5 {
    font-size: 1.1rem !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

/* Premium Intake Card - Corporate Version */
.premium-dashboard-card {
    background: var(--modern-gradient) !important;
    border-radius: 15px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    border: none !important;
    overflow: hidden !important;
}

.premium-dashboard-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1523050335102-c3250d857222?q=80&w=1200') center/cover;
    opacity: 0.15;
    z-index: 0;
}

.intake-callout-content {
    position: relative;
    z-index: 1;
}

/* News Section Corporate Refinement */
.news-card-main {
    background: #fff !important;
    border: 1px solid #edf2f7 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}

.news-card-main:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    transform: none !important;
    border-color: var(--primary-color) !important;
}

.news-img-container {
    border-radius: 12px 0 0 12px !important;
}

/* Partner Logos - Colored */
.logo-item img {
    filter: none !important;
    opacity: 1 !important;
}


/* =========================================================
   CTA SPLIT HERO SECTION
   ========================================================= */
.cta-split-hero {
    position: relative;
    background: #ffffff;
    overflow: visible;
    padding-top: 100px;
    /* Reduced padding since image is smaller and centered on the line */
}

/* Blue lower strip */
.cta-blue-strip {
    background-color: #b9d6eb;
    /* Solid light blue to match design */
    padding: 60px 0 55px;
    position: relative;
    z-index: 2;
    margin-top: 0;
}

/* Floating image container */
.cta-students-float {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 0);
    z-index: 10;
    pointer-events: none;
}

.cta-students-float img {
    height: 300px;
    /* Reduced size to look nice as a split */
    width: auto;
    object-fit: contain;
    display: block;
}

/* Inner flex layout of the blue strip */
.cta-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Left text */
.cta-headline-text {
    font-size: 1.85rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.25;
    margin: 0;
    max-width: 450px;
}

/* Center spacer holds space for the floating image on desktop */
.cta-strip-spacer {
    min-width: 300px;
    flex-shrink: 0;
}

/* Right actions */
.cta-strip-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

/* Main CTA button */
.cta-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 280px;
    background: #8a2020;
    /* Darker, almost black */
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 20px 30px;
    text-decoration: none;
    border-radius: 0;
    /* Sharp corners like in design */
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-apply-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateX(3px);
}

.cta-apply-btn i {
    transition: transform 0.2s ease;
}

.cta-apply-btn:hover i {
    transform: translateX(4px);
}

/* Sub-links row */
.cta-sub-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 0.95rem;
    margin-top: 5px;
    width: 100%;
}

.cta-sub-links a {
    color: #1a1a2e;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.cta-sub-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.cta-pipe {
    color: #1a1a2e;
    font-weight: 400;
    opacity: 0.5;
}

/* Responsive: collapse gracefully on mobile */
@media (max-width: 991px) {
    .cta-split-hero {
        padding-top: 100px;
    }

    .cta-students-float {
        position: relative;
        left: auto;
        transform: none;
        top: auto;
        text-align: center;
        margin: -100px auto 30px;
        /* Pull up to break out of blue strip, push text down */
        width: 100%;
        z-index: 10;
    }

    .cta-students-float img {
        height: 380px;
        max-width: 100%;
        object-fit: contain;
    }

    .cta-blue-strip {
        margin-top: 0;
        padding-top: 0;
    }

    .cta-strip-inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .cta-headline-text {
        max-width: 100%;
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .cta-strip-actions {
        align-items: center;
        width: 100%;
    }

    /* Override animations to prevent translate(-50%) from pushing image off-screen */
    .cta-split-hero.cta-visible .cta-students-float {
        animation:
            ctaImgRevealMobile 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both,
            ctaImgFloatMobile 3.5s ease-in-out 1.2s infinite;
    }
}

@media (max-width: 767px) {
    .cta-split-hero {
        padding-top: 80px;
    }

    .cta-students-float {
        margin: -80px auto 20px;
        align-items: center;
        justify-content: center;
        display: flex;
    }

    .cta-students-float img {
        height: 300px;
        align-items: center;
        justify-content: center;
        display: flex;
    }

    .cta-blue-strip {
        padding-top: 0;
    }

    .cta-headline-text {
        font-size: 1.3rem;
        padding: 0 15px;
    }

    .cta-apply-btn {
        width: 100%;
        justify-content: center;
    }

    /* Campus Gallery responsive adjustments */
    .campus-life-row {
        gap: 15px;
        padding: 15px 5px;
    }

    .campus-item {
        min-width: 240px !important;
        height: 180px !important;
    }

    .campus-item h5 {
        font-size: 0.85rem !important;
        padding: 8px 12px !important;
    }
}

@keyframes ctaImgRevealMobile {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ctaImgFloatMobile {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}



/* =========================================================
   CTA SPLIT HERO — ANIMATIONS (v2 - Reliable)
   ========================================================= */

/* === Keyframes === */
@keyframes ctaImgReveal {
    from {
        opacity: 0;
        transform: translate(-50%, 30px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes ctaImgFloat {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, -10px);
    }
}

@keyframes ctaTextSlide {
    from {
        opacity: 1;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ctaBtnSlide {
    from {
        opacity: 1;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ctaBgShimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* === Blue strip (No longer animated gradient as per design) === */
.cta-blue-strip {
    background: #b9d6eb;
}

/* === Initial hidden states === */
.cta-students-float,
.cta-strip-text,
.cta-strip-actions {
    opacity: 1;
    /* Made visible by default in case JS animation fails */
}

/* === Animated state — triggered by adding .cta-visible === */
.cta-split-hero.cta-visible .cta-students-float {
    animation:
        ctaImgReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both,
        ctaImgFloat 3.5s ease-in-out 1.2s infinite;
}

.cta-split-hero.cta-visible .cta-strip-text {
    animation: ctaTextSlide 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.cta-split-hero.cta-visible .cta-strip-actions {
    animation: ctaBtnSlide 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.65s both;
}

/* === Button shine on hover === */
.cta-apply-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.cta-apply-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.cta-apply-btn:hover::after {
    left: 150%;
}

/* === Reduced motion fallback === */
@media (prefers-reduced-motion: reduce) {

    .cta-split-hero .cta-students-float,
    .cta-split-hero .cta-strip-text,
    .cta-split-hero .cta-strip-actions {
        opacity: 1 !important;
        animation: none !important;
    }

    .cta-blue-strip {
        animation: none;
        background: #c5dce8;
    }
}

/* =========================================================
   3 COLUMN FEATURES (RPL, Dual Training, Industry Linkages)
   ========================================================= */
.features-3col-section {
    width: 100%;
}

.feature-col {
    padding: 60px 40px;
    color: #fff;
    transition: background 0.3s ease;
}

.feature-teal {
    background-color: #63a59d;
}

.feature-blue {
    background-color: #4a6eb1;
}

.feature-dark-teal {
    background-color: #2b6170;
}

.feature-content {
    max-width: 400px;
    margin: 0 auto;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.feature-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.feature-link {
    color: #fdd835;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.3s;
}

.feature-link:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .feature-col {
        padding: 40px 30px;
    }
}

/* =========================================================
   FAQ ACCORDION SECTION
   ========================================================= */
.faq-section {
    background-color: #ffffff;
}

.faq-container {
    padding: 20px 0;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #555;
    position: relative;
    z-index: 2;
}

.faq-item:not(.active) .faq-question:hover {
    border-color: #ccc;
    background: #f9f9f9;
}

.faq-indicator {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px dashed #ccc;
    margin-right: 15px;
    flex-shrink: 0;
    transition: opacity 0.3s;
}

.faq-item.active .faq-question {
    background: #ed0031;
    color: #ffffff;
    border-color: #ed0031;
    box-shadow: 0 10px 20px rgba(237, 0, 49, 0.2);
}

.faq-item.active .faq-indicator {
    opacity: 0;
}

.faq-item.active .faq-question h5 {
    color: #ffffff !important;
}

.faq-question h5 {
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s;
}

.faq-answer {
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.faq-answer-inner {
    padding: 20px 20px 20px 40px;
    border-left: 2px dashed #ccc;
    margin-left: 15px;
    margin-top: -10px;
    /* pull up slightly under the pill */
    padding-top: 30px;
    /* add padding so text doesn't overlap pill */
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .faq-question {
        padding: 12px 15px;
    }

    .faq-indicator {
        width: 24px;
        height: 24px;
        margin-right: 10px;
    }

    .faq-question h5 {
        font-size: 0.9rem;
    }

    .faq-answer-inner {
        padding: 25px 15px 15px 25px;
        margin-left: 10px;
    }
}

/* ==========================================
   Chatbot Widget Styling
   ========================================== */
.chatbot-widget {
    position: fixed;
    bottom: 100px;
    /* Elevated above scroll-to-top button which is at bottom: 30px */
    right: 30px;
    z-index: 1050;
    font-family: 'Inter', sans-serif;
}

.chatbot-trigger-btn {
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    background-color: #0076c0 !important; /* Site Primary Blue */
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 118, 192, 0.55), 0 2px 8px rgba(0, 0, 0, 0.18) !important;
}

.chatbot-trigger-btn:hover {
    transform: translateY(-4px) scale(1.05);
    background-color: #005a93 !important;
    box-shadow: 0 12px 32px rgba(0, 118, 192, 0.65), 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Pulsing effect around the circular chat trigger button */
.pulse-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50% !important;
    border: 3px solid rgba(0, 118, 192, 0.45);
    animation: chatPulse 2s infinite;
    pointer-events: none;
}

@keyframes chatPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    70% {
        transform: scale(1.2);
        opacity: 0;
    }

    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

/* Floating animation for the 3D Bot Icon */
@keyframes botFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-4px) scale(1.04);
    }
}

.chatbot-trigger-btn svg {
    animation: botFloat 3s ease-in-out infinite;
}

/* Chat Window Box — hidden by default, shown via JS .chatbot-open class */
.chatbot-window {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 500px;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Shown state — plays entry animation every time */
.chatbot-window.chatbot-open {
    display: flex;
    animation: chatWindowReveal 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes chatWindowReveal {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Chat Header */
.chatbot-header {
    background: linear-gradient(135deg, var(--primary-color, #0076c0) 0%, #005a93 100%);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #2ec4b6;
    border-radius: 50%;
    margin-right: 4px;
    box-shadow: 0 0 8px rgba(46, 196, 182, 0.8);
}

/* Chat Body (Messages Area) */
.chatbot-body {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #f8f9fa;
    scroll-behavior: smooth;
}

.chat-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.45;
    word-wrap: break-word;
}

.bot-message {
    background-color: #fff;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.bot-message a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.user-message {
    background-color: var(--primary-color, #0076c0);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 118, 192, 0.2);
}

/* Quick Help Suggestions Chips */
.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
    align-self: flex-start;
}

.suggestion-chip {
    background-color: #fff;
    color: var(--primary-color, #0076c0);
    border: 1px solid rgba(0, 118, 192, 0.25);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.suggestion-chip:hover {
    background-color: var(--primary-color, #0076c0);
    color: #fff;
    border-color: var(--primary-color, #0076c0);
    transform: translateY(-1px);
}

/* Typing Dots Animation */
.typing-indicator-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 18px !important;
}

.typing-indicator-dots span {
    width: 6px;
    height: 6px;
    background-color: #888;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-indicator-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}

/* Chat Input Footer */
.chatbot-footer {
    padding: 12px 15px;
    background-color: #fff;
}

.chatbot-footer .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color, #0076c0);
}

/* Responsive Overrides */
@media (max-width: 575px) {
    .chatbot-widget {
        bottom: 80px;
        right: 15px;
    }

    /* Adjust circular bot trigger button on small screens */
    .chatbot-trigger-btn {
        width: 60px !important;
        height: 60px !important;
        border-radius: 50% !important;
        padding: 0 !important;
    }

    .chatbot-trigger-btn svg {
        width: 36px !important;
        height: 36px !important;
    }

    .pulse-ring {
        border-radius: 50% !important;
    }

    .chatbot-window {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        top: 0;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0;
        z-index: 1100;
    }
}

/* ==========================================================================
   HOMEPAGE CUSTOM 3-COLUMN RESPONSIVE LAYOUT & QUICK LINKS PORTAL
   ========================================================================== */

/* 90% Container Layout */
.news-notices-container {
    width: 90% !important;
    max-width: 1650px !important;
    margin: 0 auto !important;
    padding-left: 15px;
    padding-right: 15px;
}

/* Precise Desktop Column Widths (45% / 30% / 25%) */
@media (min-width: 992px) {
    .news-notices-row {
        display: flex !important;
        flex-wrap: nowrap !important;
    }
    .col-lg-news {
        width: 45% !important;
        flex: 0 0 45% !important;
        max-width: 45% !important;
    }
    .col-lg-notices {
        width: 30% !important;
        flex: 0 0 30% !important;
        max-width: 30% !important;
    }
    .col-lg-links {
        width: 25% !important;
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
}

/* Medium screen stacking (tablets) */
@media (max-width: 991px) and (min-width: 768px) {
    .col-lg-news {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .col-lg-notices {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    .col-lg-links {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* Standout Quick Links Card - Premium Maroon & Light Grey Theme */
.quick-links-card {
    background: #f4f6f8 !important; /* Clean light grey background */
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-top: 4px solid #800000 !important; /* Thick brand maroon top border */
    border-radius: 0px !important; /* Completely sharp corners to match site branding */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important; /* Sleek soft shadow to blend with notices */
    position: relative;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.quick-links-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

/* Premium Solid Maroon Card Header */
.quick-links-header {
    background: #800000 !important; /* Solid Brand Maroon */
    padding: 22px 18px;
    text-align: center;
    position: relative;
    border-radius: 0px !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1) !important;
}

.quick-links-header h3 {
    margin: 0;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    color: #ffffff !important; /* Clean white title */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.quick-links-header h3 i {
    color: #ffffff !important;
}

/* Scrollable Inner Body with Sleek Layout */
.quick-links-body {
    background: #f4f6f8 !important; /* Matching light grey */
    padding: 20px 16px;
    max-height: 480px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(128, 0, 0, 0.2) transparent;
}

.quick-links-body::-webkit-scrollbar {
    width: 5px;
}

.quick-links-body::-webkit-scrollbar-thumb {
    background-color: rgba(128, 0, 0, 0.2);
    border-radius: 0px !important;
}

.quick-links-body::-webkit-scrollbar-thumb:hover {
    background-color: rgba(128, 0, 0, 0.4);
}

/* Trainee Portal & Link List Styling - Premium White Sharp Cards */
.quick-link-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 10px;
    background: #ffffff !important; /* Clean solid white item backgrounds */
    border-radius: 0px !important; /* Sharp corners to match Notices board */
    text-decoration: none !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-left: 4px solid #800000 !important; /* Thick Brand Maroon left border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.quick-link-item:last-child {
    margin-bottom: 0;
}

/* Square Icon Wrapper */
.link-icon-box {
    width: 36px;
    height: 36px;
    background: rgba(128, 0, 0, 0.05) !important; /* Very soft brand maroon tint */
    color: #800000 !important; /* Brand Maroon icon color */
    border-radius: 0px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    margin-right: 14px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

/* Text Content Wrapper */
.link-meta {
    flex-grow: 1;
    min-width: 0;
}

.link-meta h6 {
    margin: 0 0 2px 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #2c3e50 !important; /* Highly readable dark slate grey */
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-meta p {
    margin: 0;
    font-size: 0.72rem;
    color: #7f8c8d !important; /* Clean medium grey description */
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Right Chevron Arrow */
.link-arrow {
    font-size: 0.75rem;
    color: #800000 !important; /* Maroon arrow */
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.25s ease;
    margin-left: 8px;
    flex-shrink: 0;
}

/* Micro-animations and Hover States */
.quick-link-item:hover {
    background: #fff5f5 !important; /* Soft maroon tint background on hover */
    border-color: rgba(128, 0, 0, 0.15) !important;
    border-left-color: #ed0031 !important; /* Dynamic vibrant red shift on active hover */
    transform: translateX(6px);
    box-shadow: 0 6px 15px rgba(128, 0, 0, 0.06) !important;
}

.quick-link-item:hover .link-icon-box {
    background: #800000 !important; /* Solid Brand Maroon background */
    color: #ffffff !important; /* White icon */
    transform: scale(1.08) rotate(8deg);
}

.quick-link-item:hover .link-meta h6 {
    color: #800000 !important; /* Maroon title on hover */
}

.quick-link-item:hover .link-meta p {
    color: #555555 !important;
}

.quick-link-item:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Ensure robust 3-column container centering and responsiveness */
.news-notices-container {
    width: 90% !important;
    max-width: 1650px !important;
    margin: 0 auto !important;
    padding-left: 15px;
    padding-right: 15px;
}

.news-notices-row {
    display: flex !important;
    flex-wrap: wrap !important; /* Allow natural wrapping for robust mobile & tablet layouts */
}

/* Ensure Official Notices card matches style with sharp corners */
.notice-board-custom {
    border-radius: 0px !important;
}
.notice-board-custom .notice-header {
    border-radius: 0px !important;
}
.notice-board-custom .p-4 {
    border-radius: 0px !important;
}