:root {
    --primary-color: #0b1f44;
    --accent-color: #dc3545;
    --accent-soft: rgba(30, 99, 243, 0.1);
    --cyan: #2ad0ca;
    --text-main: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f5f7fb;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient: linear-gradient(135deg, #0b1f44 0%, #1e63f3 60%, #2ad0ca 100%);
}

/* Bootstrap Overrides */
.bg-primary { background-color: var(--primary-color) !important; }
.text-primary { color: var(--accent-color) !important; }
.btn-primary { 
    background-color: var(--accent-color) !important; 
    border-color: var(--accent-color) !important;
    box-shadow: 0 4px 14px 0 rgba(30, 99, 243, 0.3) !important;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition);
}
.btn-primary:hover {
    background-color: #1a56d6 !important;
    border-color: #1a56d6 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 99, 243, 0.4) !important;
}
.btn-outline-primary {
    color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition);
}
.btn-outline-primary:hover {
    background-color: var(--accent-color) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--accent-soft);
    border-bottom-color: var(--accent-color);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

h1, h2, h3, h4, h5, h6, .display-4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.navbar {
    padding: 1.2rem 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    color: var(--accent-color);
    font-size: 1.8rem;
}

.nav-link {
    font-weight: 600;
    color: var(--primary-color) !important;
    margin: 0 12px;
    position: relative;
    padding: 0.5rem 0 !important;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

/* Generic Page Header Banner */
.page-header-banner {
    background: var(--gradient);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    color: white;
}

.page-header-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.05;
}

.hero-banner {
    height: 65vh;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(11, 31, 68, 0.85) 0%, rgba(30, 99, 243, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .lead, .hero-content .h4 {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    margin-bottom: 2.5rem !important;
}

.hero-content ul {
    display: inline-block;
    text-align: left;
    margin-bottom: 2.5rem !important;
    padding-left: 0;
}

.hero-content ul li {
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.hero-content .btn-lg {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

.section-padding {
    padding: 60px 0;
}

.course-card {
    border: 1px solid #eef2f6;
    border-radius: 24px;
    padding: 2.5rem;
    background: #fff;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
}

.course-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(11, 31, 68, 0.1);
    border-color: var(--accent-soft);
}

.uom-logo {
    height: 60px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    transition: var(--transition);
}

.bg-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Pill Styles */
.pill-soft {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--accent-soft);
    color: var(--accent-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 1.5rem;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        margin-top: 1rem;
    }
    .nav-link { margin: 5px 0; }
}

@media (max-width: 768px) {
    .hero-banner { height: 50vh; min-height: 350px; }
    .section-padding { padding: 70px 0; }
    .hero-content h1 { font-size: 2.2rem !important; }
    .hero-content .lead, .hero-content .h4 { font-size: 1.1rem !important; margin-bottom: 1.5rem !important; }
    .hero-content .btn-lg { padding: 0.8rem 2rem; font-size: 1rem; }
    .display-4 { font-size: 2.2rem; }
}
a.navbar-brand.fw-bold {
    color: red !important;
}
a.navbar-brand.fw-bold a span{
    color: #1e255a !important;
}