/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar Styles */
.top-bar {
    background-color: #1e4a7a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 400;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 400;
    margin-left: auto;
}

.top-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    transition: opacity 0.2s;
    padding: 4px 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.top-link:last-child {
    border-right: none;
}

.top-link:hover {
    opacity: 0.8;
}

.top-link svg {
    width: 14px;
    height: 14px;
}

.top-link p {
    margin: 0;
    font-size: 13px;
}

.separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    display: none;
}

/* Main Header Styles */
.main-header {
    background-color: #ffffff;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* Logo Styles */
.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: height 0.3s ease;
}

.main-header.scrolled .logo-img {
    height: 45px;
}

.logo-icon {
    display: flex;
    align-items: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #1e4a7a;
    line-height: 1;
}

.logo-tagline {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #3eb1c8;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Navigation Styles */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1e4a7a;
    font-size: 17px;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.2s;
    cursor: pointer;
}

.nav-link:hover {
    color: #3eb1c8;
}

.nav-link svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
}

.nav-item.dropdown:hover .nav-link svg {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
    color: #3eb1c8;
}

/* Mega Menu - Exact Mancosa Styles */
.submenu.megamenu {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    top: 100%;
    width: 100vw;
    background-color: #f5f5f5;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 8px 11px -10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    max-height: 0;
    overflow: hidden;
}

.nav-item.menu-dropdown {
    position: static;
}

.nav-item.menu-dropdown:hover .submenu.megamenu,
.nav-item.menu-dropdown.active .submenu.megamenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    max-height: 800px;
}

.container.grid {
    display: flex;
    max-width: 1480px;
    margin: 0 auto;
    width: 100%;
}

.col.col--3-5 {
    width: 880px;
    padding: 64px 40px 40px 40px;
    background-color: #ffffff;
}

.col.col--2-5 {
    width: 584px;
    background-color: #f5f5f5;
    padding: 64px 64px 40px 40px;
}

.submenu-heading {
    margin-bottom: 40px;
}

.submenu-heading .submenu-title {
    font-size: 30px;
    font-weight: 500;
    color: rgb(0, 0, 0);
    margin-bottom: 20px;
    line-height: normal;
}

.submenu-description {
    font-size: 15px;
    line-height: 1.6;
    color: #666666;
}

.submenu-description p {
    margin-bottom: 16px;
}

.link.link-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3eb1c8;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s;
}

.link.link-secondary:hover {
    gap: 12px;
}

.link.link-secondary svg {
    width: 16px;
    height: 16px;
}

.submenu-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.submenu-inner h4.submenu-title {
    font-size: 20px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 16px;
    line-height: normal;
}

.submenu-inner h4.submenu-title a {
    color: #333333;
    text-decoration: none;
}

.submenu-inner h4.submenu-title a:hover {
    color: #3eb1c8;
}

.submenu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.submenu-list li {
    margin-bottom: 12px;
}

.submenu-list a {
    color: #333333;
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.6;
}

.submenu-list a:hover {
    color: #3eb1c8;
}

.interested-block {
    background-color: #f5f5f5;
}

.interested-block h5 {
    font-size: 20px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 20px;
    line-height: normal;
}

.interested-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.interested-block li {
    margin-bottom: 0;
}

.card.card-text {
    background-color: rgb(255, 255, 255);
    padding: 16px 32px;
    margin-bottom: 16px;
    border-radius: 3px;
    cursor: pointer;
    transition: box-shadow 0.3s;
    position: relative;
}

.card.card-text:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card__heading {
    margin-bottom: 12px;
}

.card__heading.d-flex {
    display: flex;
    justify-content: flex-end;
}

.card__heading svg {
    width: 20px;
    height: 20px;
    color: #1e4a7a;
}

.card__body .sub-heading {
    font-size: 12px;
    font-weight: 500;
    color: #1e4a7a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.card__body .heading {
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    line-height: 1.4;
    margin-bottom: 8px;
}

.card__body p {
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 0;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    border: 2px solid transparent;
}

.btn-outline {
    background-color: transparent;
    border-color: #1e4a7a;
    color: #1e4a7a;
}

.btn-outline:hover {
    background-color: #1e4a7a;
    color: #ffffff;
}

.btn-primary {
    background-color: #3eb1c8;
    color: #ffffff;
    border-color: #3eb1c8;
}

.btn-primary:hover {
    background-color: #1e4a7a;
    color: #ffffff;
    border-color: #1e4a7a;
}

.btn-filled {
    background-color: #ffffff;
    color: #1e4a7a;
    border-color: #ffffff;
}

.btn-filled:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-block {
    width: 100%;
    display: flex;
}

/* Hero Section */
.hero {
    background: #1e4a7a;
    min-height: 720px;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Hero Background Slider */
.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


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

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background-color: #3eb1c8;
    color: #ffffff;
    font-size: 32px;
    font-weight: 800;
    padding: 16px 40px;
    border-radius: 0 60px 60px 0;
    margin-bottom: 40px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-title .highlight {
    color: #3eb1c8;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-white {
    background-color: #ffffff;
    color: #1e4a7a;
    border-color: #ffffff;
}

.btn-white:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-white .highlight-text {
    color: #3eb1c8;
    font-weight: 700;
}

.btn-outline-white {
    background-color: transparent;
    border-color: #ffffff;
    color: #ffffff;
}

.btn-outline-white:hover {
    background-color: #ffffff;
    color: #1e4a7a;
}

.hero-tag {
    position: absolute;
    top: 180px;
    right: 120px;
    text-align: center;
}

.tag-small {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 8px 24px;
    border-radius: 4px;
}

.tag-large {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Quick Links Strip */
.quick-links-strip {
    background-color: transparent;
    padding: 0;
    margin-top: -120px;
    position: relative;
    z-index: 10;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quick-link-card {
    background-color: #ffffff;
    padding: 32px 24px;
    text-align: center;
    border-right: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.quick-link-card:last-child {
    border-right: none;
}

.quick-link-card:hover {
    background-color: #f5f5f5;
}

.quick-link-card.active {
    background-color: #1e4a7a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.quick-link-card.active .quick-link-label {
    color: #3eb1c8;
}

.quick-link-card.active .quick-link-title {
    color: #ffffff;
}

.quick-link-label {
    font-size: 13px;
    font-weight: 400;
    color: #1e4a7a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.quick-link-title {
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    line-height: 1.3;
}

/* Maintenance Notice */
.maintenance-notice {
    background-color: #f5f5f5;
    padding: 60px 0;
}

.maintenance-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.maintenance-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1e4a7a;
    margin-bottom: 24px;
}

.maintenance-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 16px;
}

.maintenance-content p strong {
    font-weight: 600;
}

/* Featured Courses Section */
.featured-courses {
    background-color: #f5f5f5;
    padding: 80px 0;
}

.featured-courses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.carousel-controls {
    display: flex;
    gap: 12px;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #333333;
    background-color: transparent;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background-color: #1e4a7a;
    border-color: #1e4a7a;
    color: #ffffff;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

.courses-carousel {
    overflow: hidden;
    position: relative;
}

.courses-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease-in-out;
}

.course-card {
    flex: 0 0 calc(25% - 18px);
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.course-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.course-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: #eaf6f9;
    color: #1e4a7a;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-content {
    padding: 24px;
}

.course-meta {
    font-size: 13px;
    font-weight: 500;
    color: #666666;
    margin-bottom: 12px;
}

.course-title {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    line-height: 1.3;
    margin-bottom: 12px;
    min-height: 52px;
}

.course-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 20px;
    min-height: 88px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1e4a7a;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.course-link:hover {
    gap: 12px;
    color: #3eb1c8;
}

.course-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.course-link:hover svg {
    transform: translateX(4px);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .header-content {
        gap: 24px;
    }

    .nav-list {
        gap: 24px;
    }

    .hero-tag {
        right: 60px;
    }
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-tag {
        position: static;
        margin-top: 60px;
    }

    .tag-large {
        font-size: 36px;
    }

    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-link-card {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .quick-link-card:nth-child(odd) {
        border-right: 1px solid #e0e0e0;
    }

    .course-card {
        flex: 0 0 calc(50% - 12px);
    }

    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .top-bar-right {
        font-size: 12px;
        gap: 8px;
    }

    .logo-title {
        font-size: 16px;
    }

    .logo-tagline {
        font-size: 8px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
    }

    .hero-badge {
        font-size: 24px;
        padding: 12px 30px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .quick-link-card {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .quick-link-card:nth-child(odd) {
        border-right: none;
    }

    .quick-link-card:last-child {
        border-bottom: none;
    }

    .maintenance-content h2 {
        font-size: 28px;
    }

    .maintenance-content p {
        font-size: 15px;
    }

    .course-card {
        flex: 0 0 100%;
    }

    .featured-courses {
        padding: 60px 0;
    }

    .featured-courses-header {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 32px;
    }

    .section-title {
        font-size: 32px;
        text-align: center;
    }

    .carousel-controls {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .top-bar-right {
        gap: 6px;
    }

    .top-link span {
        display: none;
    }

    .separator {
        display: none;
    }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #1e4a7a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #1e4a7a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-header .logo-title {
    font-size: 16px;
    color: #ffffff;
}

.mobile-nav-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: opacity 0.2s;
}

.mobile-nav-close:hover {
    opacity: 0.8;
}

.mobile-nav-menu {
    flex: 1;
    padding: 20px 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #e5e5e5;
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    color: #333333;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s;
}

.mobile-nav-link-simple {
    border: none;
}

.mobile-nav-link:hover {
    background-color: #f5f5f5;
}

.mobile-nav-link svg {
    transition: transform 0.3s ease;
}

.mobile-nav-link.active svg {
    transform: rotate(180deg);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    background-color: #f9f9f9;
    transition: max-height 0.3s ease;
}

.mobile-submenu.active {
    max-height: 600px;
}

.mobile-submenu-section {
    padding: 16px 20px;
}

.mobile-submenu-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e4a7a;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-submenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-submenu li {
    margin-bottom: 8px;
}

.mobile-submenu a {
    display: block;
    padding: 8px 0;
    color: #666666;
    font-size: 14px;
    transition: color 0.2s;
}

.mobile-submenu a:hover {
    color: #3eb1c8;
}

.mobile-nav-footer {
    padding: 20px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Update Responsive Styles */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .cta-buttons {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

/* Update top bar for better alignment */
.top-bar-right .top-link p {
    margin: 0;
}

/* Accreditations Section */
.accreditations-section {
    background-color: #ffffff;
    padding: 80px 0;
}

.accreditations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 20px;
}

.accreditations-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.accreditations-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
}

.accreditations-link:hover {
    color: #1A5740;
}

.accreditations-link svg {
    transition: transform 0.3s ease;
}

.accreditations-link:hover svg {
    transform: translateX(4px);
}

.accreditations-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.accreditation-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 80px;
}

.accreditation-logo img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.accreditation-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .accreditations-section {
        padding: 60px 0;
    }

    .accreditations-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 40px;
    }

    .accreditations-title {
        font-size: 28px;
    }

    .accreditations-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .accreditations-logos {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .accreditation-logo {
        height: 60px;
    }

    .accreditation-logo img {
        max-height: 60px;
    }
}

/* Explore Opportunities Section */
.explore-opportunities {
    background-color: #f5f5f5;
    padding: 80px 0;
}

.explore-header {
    margin-bottom: 60px;
}

.explore-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.explore-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 0;
}

.explore-nav {
    display: flex;
    gap: 16px;
}

.explore-nav-btn {
    width: 48px;
    height: 48px;
    border: 2px solid #1a1a1a;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.explore-nav-btn:hover {
    background-color: #1a1a1a;
    color: white;
}

.explore-nav-btn:hover svg {
    stroke: white;
}

.explore-nav-btn svg {
    stroke: #1a1a1a;
    transition: stroke 0.3s ease;
}

.schools-carousel {
    overflow: hidden;
}

.schools-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.school-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 0;
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.school-card:hover {
    transform: translateY(-8px);
}

.school-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.school-card:hover img {
    transform: scale(1.05);
}

.school-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.45);
    padding: 30px;
    display: flex;
    align-items: flex-end;
}

.school-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.school-name {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.school-arrow {
    stroke: #ffffff;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.school-card:hover .school-arrow {
    transform: translate(4px, -4px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .schools-track {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .explore-opportunities {
        padding: 60px 0;
    }

    .explore-title {
        font-size: 36px;
    }

    .explore-header {
        margin-bottom: 40px;
    }

    .schools-track {
        grid-template-columns: 1fr;
    }

    .school-card {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .explore-title {
        font-size: 28px;
    }

    .school-card {
        height: 300px;
    }

    .school-name {
        font-size: 20px;
    }
}

/* Why Study Section */
.why-study-section {
    background-color: #f0f0f0;
    padding: 80px 0;
}

.why-study-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.why-study-title {
    font-size: 40px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.why-study-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.why-study-link:hover {
    color: #1A5740;
}

.why-study-link svg {
    transition: transform 0.3s ease;
}

.why-study-link:hover svg {
    transform: translateX(4px);
}

.why-study-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.why-study-card {
    background-color: #ffffff;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-study-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.why-study-card-header {
    padding: 24px 24px 20px 24px;
    border-left: 4px solid #1A5740;
    position: relative;
}

.why-study-number {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1A5740;
    margin-bottom: 8px;
}

.why-study-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.why-study-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.why-study-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.why-study-card:hover .why-study-card-image img {
    transform: scale(1.05);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .why-study-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .why-study-section {
        padding: 60px 0;
    }

    .why-study-title {
        font-size: 32px;
    }

    .why-study-header {
        margin-bottom: 40px;
    }

    .why-study-grid {
        grid-template-columns: 1fr;
    }

    .why-study-card-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .why-study-title {
        font-size: 28px;
    }

    .why-study-card-header {
        padding: 20px 20px 16px 20px;
    }

    .why-study-card-title {
        font-size: 18px;
    }

    .why-study-card-image {
        height: 180px;
    }
}

/* Latest News Section */
.latest-news-section {
    background-color: #ffffff;
    padding: 80px 0;
}

.latest-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.latest-news-title {
    font-size: 40px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.latest-news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest-news-link:hover {
    color: #1A5740;
}

.latest-news-link svg {
    transition: transform 0.3s ease;
}

.latest-news-link:hover svg {
    transform: translateX(4px);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.news-card {
    background-color: #ffffff;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Featured Article (Left Side - Full Height) */
.news-card-featured {
    grid-row: span 2;
}

.news-card-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img,
.news-card:hover .news-card-image-small img {
    transform: scale(1.05);
}

.news-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.news-badge svg {
    stroke: #1a1a1a;
}

.news-bookmark {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.news-bookmark:hover {
    background-color: #ffffff;
}

.news-bookmark svg {
    stroke: #1a1a1a;
}

.news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.55);
    padding: 32px;
}

.news-content {
    color: #ffffff;
}

.news-date {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    opacity: 0.9;
}

.news-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 20px 0;
    color: #ffffff;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    transition: gap 0.3s ease;
}

.news-card:hover .news-read-more,
.news-card:hover .news-read-more-dark {
    gap: 12px;
}

.news-read-more svg {
    stroke: #ffffff;
}

/* Regular Articles (Right Side) */
.news-card-image-small {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-card-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card-content {
    padding: 24px;
}

.news-date-dark {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin-bottom: 12px;
}

.news-title-dark {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px 0;
    color: #1a1a1a;
}

.news-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 16px 0;
}

.news-read-more-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    transition: gap 0.3s ease;
}

.news-read-more-dark svg {
    stroke: #1a1a1a;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card-featured {
        grid-row: span 1;
    }

    .news-card-image {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .latest-news-section {
        padding: 60px 0;
    }

    .latest-news-title {
        font-size: 32px;
    }

    .news-card-image {
        min-height: 350px;
    }

    .news-title {
        font-size: 20px;
    }

    .news-title-dark {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .latest-news-title {
        font-size: 28px;
    }

    .news-card-image {
        min-height: 300px;
    }

    .news-overlay {
        padding: 24px;
    }

    .news-title {
        font-size: 18px;
    }

    .news-card-content {
        padding: 20px;
    }
}

/* ============================================
   INNER PAGE COMPONENTS
   Brand: navy #1e4a7a · cyan #3eb1c8 · green #143557 / #1e4a7a
   ============================================ */

/* Page hero ---------------------------------- */
.page-hero {
    position: relative;
    background: #143557;
    color: #fff;
    padding: 110px 0 90px;
    overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 18px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: #3eb1c8; }
.page-hero .breadcrumb-sep { color: rgba(255,255,255,0.4); }
.page-hero h1 {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 700;
    margin: 0 0 18px;
    max-width: 760px;
}
.page-hero .lead {
    font-size: 19px;
    line-height: 1.55;
    color: rgba(255,255,255,0.88);
    max-width: 640px;
    margin: 0;
}
.page-hero .hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 768px) {
    .page-hero { padding: 70px 0 56px; }
    .page-hero h1 { font-size: 36px; }
    .page-hero .lead { font-size: 17px; }
}

/* Section utilities -------------------------- */
.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: #f5f5f5; }
.section--dark { background: #143557; color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-title-block { max-width: 720px; margin-bottom: 48px; }
.section-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: #3eb1c8;
    margin-bottom: 12px;
}
.section-h2 {
    font-size: 40px;
    line-height: 1.15;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
}
.section--dark .section-h2 { color: #fff; }
.section-lead {
    font-size: 17px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}
.section--dark .section-lead { color: rgba(255,255,255,0.85); }

/* Two-up cards (vision / mission) ------------ */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.two-up .panel {
    background: #fff;
    border: 1px solid #e6e8eb;
    border-left: 4px solid #3eb1c8;
    border-radius: 4px;
    padding: 36px 32px;
}
.two-up .panel:nth-child(2) { border-left-color: #143557; }
.two-up .panel h3 {
    color: #1e4a7a;
    font-size: 22px;
    margin: 0 0 14px;
}
.two-up .panel p { color: #4a4a4a; line-height: 1.65; margin: 0; }
@media (max-width: 768px) { .two-up { grid-template-columns: 1fr; } }

/* Stats row ---------------------------------- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 40px 0;
}
.stat { text-align: center; }
.stat .num {
    font-size: 48px;
    font-weight: 700;
    color: #3eb1c8;
    line-height: 1;
    display: block;
}
.section--dark .stat .num { color: #3eb1c8; }
.stat .label {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.section--dark .stat .label { color: rgba(255,255,255,0.85); }
@media (max-width: 768px) { .stats-row { grid-template-columns: repeat(2,1fr); } .stat .num { font-size: 36px; } }

/* History accordion -------------------------- */
.timeline { border-top: 1px solid #e6e8eb; }
.timeline-row {
    display: grid;
    grid-template-columns: 200px 1fr 32px;
    gap: 24px;
    align-items: center;
    padding: 22px 4px;
    border-bottom: 1px solid #e6e8eb;
    cursor: pointer;
    transition: background 0.2s;
}
.timeline-row:hover { background: #fafbfc; }
.timeline-year { font-size: 22px; font-weight: 700; color: #143557; }
.timeline-text { color: #444; line-height: 1.6; }
.timeline-toggle {
    width: 28px; height: 28px;
    background: #143557;
    color: #fff;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700;
}
@media (max-width: 768px) {
    .timeline-row { grid-template-columns: 110px 1fr 28px; gap: 14px; }
    .timeline-year { font-size: 18px; }
}

/* Programme grid + filters ------------------- */
.programmes-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}
.filters {
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 6px;
    padding: 24px;
    position: sticky;
    top: 100px;
}
.filters h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #1e4a7a;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.filters .group { margin-bottom: 22px; }
.filters label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    color: #444;
    cursor: pointer;
}
.filters label:hover { color: #1e4a7a; }
.filters input[type="checkbox"] { accent-color: #143557; }
.filters .reset {
    display: inline-block;
    margin-top: 8px;
    color: #3eb1c8;
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
}

.prog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.prog-card {
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 6px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s, transform 0.25s;
}
.prog-card:hover {
    box-shadow: 0 12px 28px rgba(13,61,42,0.12);
    transform: translateY(-3px);
}
.prog-card .meta {
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.prog-card .meta .chip {
    background: #eaf6f9;
    color: #1e4a7a;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    margin-right: 6px;
}
.prog-card h3 {
    font-size: 19px;
    line-height: 1.3;
    color: #143557;
    margin: 0 0 10px;
}
.prog-card p {
    color: #555;
    font-size: 14.5px;
    line-height: 1.55;
    margin: 0 0 18px;
    flex: 1;
}
.prog-card .more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3eb1c8;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    align-self: flex-start;
}
.prog-card .more::after { content: "→"; }
@media (max-width: 1024px) {
    .programmes-layout { grid-template-columns: 1fr; }
    .filters { position: static; }
}
@media (max-width: 640px) { .prog-grid { grid-template-columns: 1fr; } }

/* Programme detail --------------------------- */
.prog-summary {
    background: #fff;
    border-radius: 8px;
    padding: 32px;
    margin-top: -60px;
    position: relative;
    z-index: 3;
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.prog-summary .stat-block .label {
    font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #888;
}
.prog-summary .stat-block .value {
    margin-top: 6px; font-size: 18px; color: #143557; font-weight: 700;
}
@media (max-width: 768px) { .prog-summary { grid-template-columns: 1fr 1fr; padding: 24px; } }

.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #eee;
    margin: 60px 0 32px;
    overflow-x: auto;
    flex-wrap: wrap;
}
.tabs a {
    padding: 14px 22px;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
}
.tabs a.active, .tabs a:hover { color: #143557; border-bottom-color: #3eb1c8; }
.tab-panel { padding: 8px 0 24px; }
.tab-panel h3 {
    color: #143557;
    font-size: 24px;
    margin: 0 0 14px;
}
.tab-panel p, .tab-panel li { color: #444; line-height: 1.7; }
.tab-panel ul { padding-left: 20px; }
.tab-panel ul li { margin-bottom: 8px; }

.module-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}
.module {
    border: 1px solid #e6e8eb;
    border-left: 3px solid #3eb1c8;
    padding: 16px 18px;
    border-radius: 4px;
    background: #fff;
}
.module .yr { font-size: 11px; color: #1e4a7a; font-weight: 700; letter-spacing: 1px; }
.module h4 { margin: 6px 0 0; font-size: 16px; color: #222; }
@media (max-width: 640px) { .module-grid { grid-template-columns: 1fr; } }

/* Steps (admissions) ------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}
.step {
    background: #fff;
    border: 1px solid #e6e8eb;
    border-top: 4px solid #143557;
    border-radius: 6px;
    padding: 28px 22px;
    position: relative;
}
.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    font-size: 38px;
    font-weight: 700;
    color: #3eb1c8;
    line-height: 1;
    display: block;
    margin-bottom: 14px;
}
.step h4 { color: #143557; margin: 0 0 8px; font-size: 18px; }
.step p { color: #555; line-height: 1.55; margin: 0; font-size: 14.5px; }
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* Checklist ---------------------------------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #333;
    line-height: 1.5;
}
.checklist li::before {
    content: "✓";
    background: #143557;
    color: #fff;
    width: 22px; height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    margin-top: 2px;
}
@media (max-width: 640px) { .checklist { grid-template-columns: 1fr; } }

/* Form ---------------------------------------- */
.form-card {
    background: #fff;
    border-radius: 8px;
    padding: 36px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.form-card h3 { margin: 0 0 6px; color: #143557; font-size: 24px; }
.form-card p.muted { margin: 0 0 24px; color: #666; font-size: 14.5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row.full { grid-template-columns: 1fr; }
.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d6dadf;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: #222;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #3eb1c8;
    box-shadow: 0 0 0 3px rgba(62,177,200,0.18);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #555; margin: 14px 0 22px; }
.form-consent input { margin-top: 3px; accent-color: #143557; }
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #143557;
    color: #fff;
    border: none;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}
.btn-submit:hover { background: #1e4a7a; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } .form-card { padding: 24px; } }

/* Split layout (image + text) ---------------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }
.split-img { width: 100%; height: 100%; min-height: 380px; border-radius: 8px; overflow: hidden; }
.split-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split-text h2 { font-size: 34px; color: #143557; margin: 0 0 14px; line-height: 1.2; }
.split-text p { color: #444; line-height: 1.7; font-size: 16px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split-img { min-height: 240px; } }

/* CTA banner --------------------------------- */
.cta-banner {
    background: #143557;
    color: #fff;
    border-radius: 10px;
    padding: 56px 48px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: center;
}
.cta-banner h2 { color: #fff; font-size: 30px; margin: 0 0 10px; line-height: 1.2; }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 0; line-height: 1.6; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cta-actions .btn { white-space: nowrap; }
@media (max-width: 768px) {
    .cta-banner { grid-template-columns: 1fr; padding: 36px 28px; }
    .cta-actions { justify-content: flex-start; }
}

/* Generic 3-up cards ------------------------- */
.three-up { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.three-up .feature {
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 6px;
    padding: 28px;
}
.three-up .feature .icon {
    width: 44px; height: 44px;
    background: #eaf6f9;
    color: #1e4a7a;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    font-size: 20px;
}
.three-up .feature h4 { color: #143557; margin: 0 0 8px; font-size: 18px; }
.three-up .feature p { color: #555; line-height: 1.6; margin: 0; font-size: 14.5px; }
@media (max-width: 900px) { .three-up { grid-template-columns: 1fr; } }

/* Footer (rich) ------------------------------ */
.site-footer {
    background-color: #143557;
    color: #fff;
    padding: 72px 0 0;
    margin-top: 96px;
}
.site-footer .footer-cols {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 56px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer h5 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: #fff;
    margin: 0 0 20px;
    font-weight: 600;
    padding-bottom: 14px;
    border-bottom: 2px solid #3eb1c8;
    display: inline-block;
}
.footer-about h5 { font-size: 18px; text-transform: none; letter-spacing: 0; line-height: 1.3; max-width: 280px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 12px; }
.site-footer ul li a {
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    font-size: 14.5px;
    transition: color 0.2s, padding 0.2s;
    display: inline-block;
}
.site-footer ul li a:hover { color: #3eb1c8; padding-left: 4px; }
.site-footer .about-blurb {
    color: rgba(255,255,255,0.72);
    font-size: 14.5px;
    line-height: 1.7;
    margin: 0 0 22px;
    max-width: 360px;
}
.footer-contact { display: grid; gap: 10px; font-size: 14px; color: rgba(255,255,255,0.85); }
.footer-contact a { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer-contact .fc-row { display: inline-flex; gap: 8px; align-items: flex-start; }
.footer-contact .fc-row svg { flex-shrink: 0; margin-top: 2px; }
.footer-socials { margin-top: 24px; display: flex; gap: 12px; }
.footer-socials a {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    background: transparent;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
}
.footer-socials a:hover { background: #3eb1c8; border-color: #3eb1c8; }
.footer-bottom {
    padding: 26px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: rgba(255,255,255,0.55);
    font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,0.55); text-decoration: none; margin-left: 22px; }
.footer-bottom a:hover { color: #3eb1c8; }
@media (max-width: 900px) {
    .site-footer .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 540px) {
    .site-footer .footer-cols { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .footer-bottom a { margin-left: 0; margin-right: 14px; }
}

/* Article (news single) ---------------------- */
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 { color: #143557; margin: 32px 0 14px; font-size: 26px; }
.article-body p { color: #333; line-height: 1.75; font-size: 17px; margin: 0 0 18px; }
.article-meta { color: #666; font-size: 13.5px; margin-bottom: 8px; }

/* News list ---------------------------------- */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-item {
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.news-item .thumb { aspect-ratio: 16/10; background: #ddd; overflow: hidden; }
.news-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-item .tag {
    align-self: flex-start;
    background: #eaf6f9;
    color: #1e4a7a;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}
.news-item h3 { margin: 0 0 10px; font-size: 17px; line-height: 1.35; color: #143557; }
.news-item p { color: #555; font-size: 14px; line-height: 1.55; margin: 0 0 14px; flex: 1; }
.news-item time { color: #888; font-size: 12px; }
.news-item a.read-more { color: #3eb1c8; text-decoration: none; font-weight: 600; font-size: 14px; align-self: flex-start; margin-top: 6px; }
@media (max-width: 900px) { .news-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .news-list { grid-template-columns: 1fr; } }

/* Events list -------------------------------- */
.event { display: grid; grid-template-columns: 110px 1fr auto; gap: 24px; align-items: center; padding: 22px; border: 1px solid #e6e8eb; border-radius: 6px; background: #fff; margin-bottom: 16px; }
.event-date { background: #143557; color: #fff; text-align: center; border-radius: 6px; padding: 14px 8px; }
.event-date .day { font-size: 28px; font-weight: 700; line-height: 1; }
.event-date .mon { font-size: 12px; text-transform: uppercase; margin-top: 4px; letter-spacing: 1px; }
.event-info h4 { margin: 0 0 6px; color: #143557; font-size: 17px; }
.event-info p { color: #666; font-size: 14px; margin: 0; }
@media (max-width: 640px) { .event { grid-template-columns: 80px 1fr; } .event > .btn { grid-column: 1 / -1; justify-self: start; } }

/* School cards (large) ----------------------- */
.school-feature {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    margin-bottom: 28px;
}
.school-feature.alt { grid-template-columns: 1fr 1.1fr; }
.school-feature .img { min-height: 320px; background-size: cover; background-position: center; }
.school-feature .body { padding: 40px 36px; }
.school-feature h3 { color: #143557; font-size: 26px; margin: 0 0 12px; }
.school-feature p { color: #555; line-height: 1.65; margin: 0 0 18px; }
.school-feature ul { padding-left: 18px; margin: 0 0 22px; color: #444; }
.school-feature ul li { margin-bottom: 6px; line-height: 1.5; }
@media (max-width: 900px) { .school-feature, .school-feature.alt { grid-template-columns: 1fr; } .school-feature .img { min-height: 220px; } }

/* Helper button variants --------------------- */
.btn-cyan { background: #3eb1c8; color: #fff !important; border: 1px solid #3eb1c8; }
.btn-cyan:hover { background: #2a98ad; border-color: #2a98ad; }
.btn-ghost { background: transparent; color: #fff !important; border: 1px solid rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* Container baseline (in case missing) */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   RESPONSIVE OVERRIDES
   Catches inline-styled grids and tightens inner pages on tablet/mobile
   ============================================ */

/* Tablet (≤1024px) ------------------------- */
@media (max-width: 1024px) {
    .page-hero { padding: 90px 0 70px; }
    .page-hero h1 { font-size: 44px; }
    .page-hero .lead { font-size: 17px; }
    .section { padding: 64px 0; }
    .section--tight { padding: 44px 0; }
    .section-h2 { font-size: 32px; }

    /* Inline 2-column layouts on contact, apply, etc. */
    .container[style*="grid-template-columns:1fr 1.4fr"],
    .container[style*="grid-template-columns:1.6fr 1fr"],
    .container[style*="grid-template-columns: 1fr 1.4fr"],
    .container[style*="grid-template-columns: 1.6fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
}

/* Mobile (≤768px) -------------------------- */
@media (max-width: 768px) {
    .page-hero { padding: 70px 0 56px; }
    .page-hero h1 { font-size: 32px; line-height: 1.15; }
    .page-hero .lead { font-size: 15.5px; }
    .page-hero .breadcrumb { font-size: 11.5px; flex-wrap: wrap; }
    .page-hero .hero-actions { gap: 10px; }
    .page-hero .hero-actions .btn { padding: 10px 16px; font-size: 13.5px; }

    .section { padding: 48px 0; }
    .section--tight { padding: 36px 0; }
    .section-title-block { margin-bottom: 28px; }
    .section-h2 { font-size: 26px; line-height: 1.2; }
    .section-lead { font-size: 15px; }
    .section-eyebrow { font-size: 11px; }

    /* CTA banner stacks; actions left-align */
    .cta-banner { padding: 32px 22px; }
    .cta-banner h2 { font-size: 22px; }
    .cta-banner p { font-size: 14.5px; }
    .cta-actions { justify-content: flex-start; }
    .cta-actions .btn { font-size: 13.5px; padding: 10px 16px; }

    /* Programme summary card overlap is too aggressive on mobile */
    .prog-summary { margin-top: -28px; padding: 22px; gap: 14px; }
    .prog-summary .stat-block .value { font-size: 15.5px; }

    /* Tabs scroll horizontally if they overflow */
    .tabs { gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .tabs a { padding: 12px 16px; font-size: 14px; }
    .tab-panel h3 { font-size: 20px; }

    /* Module/feature/step cards tighten */
    .module { padding: 14px 16px; }
    .step { padding: 22px 18px; }
    .step::before { font-size: 32px; }
    .three-up { gap: 16px; }
    .three-up .feature { padding: 22px 20px; }

    /* Programme grid stays 1-col earlier */
    .prog-grid { grid-template-columns: 1fr; gap: 16px; }
    .prog-card { padding: 20px 18px; }
    .prog-card h3 { font-size: 17px; }

    /* Filter sidebar in programmes index */
    .programmes-layout { gap: 24px; }
    .filters { padding: 18px; position: static; }
    .filters .group { margin-bottom: 16px; }

    /* Schools / news / events tighten */
    .school-feature .body { padding: 28px 24px; }
    .school-feature h3 { font-size: 22px; }
    .news-list { gap: 18px; }
    .event { grid-template-columns: 80px 1fr; padding: 16px; }
    .event > .btn { grid-column: 1 / -1; justify-self: start; }

    /* Two-up panels tighten */
    .two-up { gap: 16px; }
    .two-up .panel { padding: 26px 22px; }

    /* Split image min-height shrink */
    .split-img { min-height: 220px; }

    /* History timeline */
    .timeline-row { grid-template-columns: 90px 1fr 28px; gap: 12px; padding: 18px 0; }

    /* Form cards */
    .form-card { padding: 24px 20px; }
    .form-card h3 { font-size: 20px; }

    /* Apply page form: 2-col → 1-col (form + sidebar) */
    .container[style*="grid-template-columns:1.6fr 1fr"][style*="gap:48px"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* Programme detail summary: 4 stats → 2 cols */
    .prog-summary { grid-template-columns: 1fr 1fr; }

    /* Stats row at small widths */
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat .num { font-size: 30px; }
    .stat .label { font-size: 11.5px; }
}

/* Phone (≤540px) --------------------------- */
@media (max-width: 540px) {
    .top-bar { padding: 6px 0; font-size: 12px; }
    .top-bar-content { gap: 8px; flex-wrap: wrap; }
    .top-bar-left .top-link:first-child p { display: none; } /* phone shortened to icon */
    .top-link { padding: 3px 6px; }
    .top-link p { font-size: 12px; }

    .page-hero { padding: 56px 0 44px; }
    .page-hero h1 { font-size: 27px; }
    .page-hero .hero-actions { flex-direction: column; align-items: stretch; }
    .page-hero .hero-actions .btn { justify-content: center; }

    .section { padding: 40px 0; }
    .section-h2 { font-size: 22px; }

    /* Stats stay 2-col but tighter */
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat .num { font-size: 26px; }

    /* Tabs even more compact */
    .tabs a { padding: 10px 14px; font-size: 13px; }

    /* News items stacking */
    .event { grid-template-columns: 1fr; }
    .event-date { width: 80px; }

    /* Container padding tighter on phone */
    .container { padding: 0 18px; }

    /* CTA banner buttons full width */
    .cta-banner { padding: 28px 20px; }
    .cta-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================
   ADMIN + STUDENT PORTAL RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    /* Admin dashboard recent-students/recent-news 2-col → 1-col */
    .admin-shell .content > div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    /* Admin news form: main + sidebar 2fr/1fr → 1-col */
    .admin-shell .content form > div[style*="grid-template-columns:2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    /* Admin tables: horizontal scroll */
    .admin-shell .table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 768px) {
    /* Admin top bar */
    .admin-shell .topbar { padding: 12px 18px; }
    .admin-shell .topbar h1 { font-size: 17px; }
    .admin-shell .content { padding: 22px 18px; }

    /* Admin stat cards 2x2 */
    .admin-shell .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .admin-shell .stat-card { padding: 16px; }
    .admin-shell .stat-card .num { font-size: 26px; }

    /* Toolbar wraps */
    .admin-shell .toolbar { flex-direction: column; align-items: stretch; }
    .admin-shell .toolbar .search { max-width: none; }
    .admin-shell .toolbar > a.btn { width: 100%; justify-content: center; }

    /* Form grids inside admin to single column */
    .admin-shell .form-grid { grid-template-columns: 1fr !important; gap: 14px; }

    /* Student portal dashboard 2-col → 1-col */
    main > .container > div[style*="grid-template-columns:2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    main > .container > div[style*="grid-template-columns:repeat(2,1fr)"] {
        grid-template-columns: 1fr !important;
    }
    .portal-header { padding: 12px 18px; }
    .portal-header .right { gap: 12px; font-size: 13px; }
}

@media (max-width: 540px) {
    .admin-shell .stat-grid { grid-template-columns: 1fr; }
    .portal-header .right span { display: none; } /* "Hi, Aphiwe" hidden on tiny screens */
}

/* Contact page: hours card */
.hours-card {
    margin-top: 28px;
    background: #143557;
    color: #fff;
    border-radius: 6px;
    padding: 22px 24px;
}
.hours-card h4 { color: #fff; margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: 1.2px; }
.hours-card ul { list-style: none; padding: 0; margin: 0; }
.hours-card li {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.12);
    font-size: 14.5px; color: rgba(255,255,255,0.9);
}
.hours-card li:last-child { border-bottom: 0; }

/* Contact page: accordion */
.accordion { display: grid; gap: 12px; }
.acc-item {
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.acc-item[open] { box-shadow: 0 6px 16px rgba(20,53,87,0.08); }
.acc-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    font-weight: 600;
    color: #143557;
    font-size: 16px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    user-select: none;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover { background: #fafbfc; }
.acc-toggle {
    width: 28px; height: 28px;
    border-radius: 4px;
    background: #143557;
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 600;
    flex-shrink: 0;
}
.acc-body { padding: 4px 22px 22px; color: #444; line-height: 1.65; font-size: 15px; }
.acc-body p { margin: 0 0 12px; }
.acc-body a { color: #1e4a7a; }

/* Contact page: campus card */
.campus-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(20,53,87,0.06);
    border: 1px solid #e6e8eb;
}
.campus-info { padding: 36px 32px; }
.campus-info h3 { color: #143557; margin: 0 0 14px; font-size: 22px; }
.campus-info .addr { color: #444; line-height: 1.65; margin: 0 0 22px; font-size: 15px; }
.campus-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; font-size: 14.5px; }
.campus-meta strong { color: #143557; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.campus-meta a { color: #1e4a7a; text-decoration: none; }
.campus-tags { color: #777; font-size: 13.5px; margin-top: 16px; }
.campus-map { background: #f5f5f5; min-height: 380px; }
@media (max-width: 900px) {
    .campus-card { grid-template-columns: 1fr; }
}

/* Inner pages: stack the contact 2-column on mobile */
@media (max-width: 900px) {
    .container[style*="grid-template-columns:1fr 1.4fr"] { grid-template-columns: 1fr !important; gap: 32px !important; }
    .container[style*="grid-template-columns:1.6fr 1fr"] { grid-template-columns: 1fr !important; gap: 32px !important; }
}

