/* --- CSS Variables & Reset --- */
:root {
    /* Brand Colors */
    --ub-purple: #592d82;
    --ub-purple-dark: #3a1d56;
    --ub-blue: #00a7e0;
    --ub-blue-hover: #008fbf;
    
    /* Neutral Colors */
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --shadow-float: 0 15px 30px rgba(89, 45, 130, 0.2);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow: hidden;
}

.page-layout {
    display: flex;
    height: 100vh;
    width: 100%;
}

.main-content-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: var(--ub-blue);
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.05rem;
}

.btn-primary {
    background-color: var(--ub-purple);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--ub-purple-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--ub-blue);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--ub-blue-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border-color: var(--ub-purple);
    color: var(--ub-purple);
    background: transparent;
}

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

.btn-outline-light {
    border-color: var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--ub-purple);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-ai {
    background: linear-gradient(135deg, var(--ub-purple), var(--ub-blue));
    color: var(--white);
    border: none;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(89, 45, 130, 0.2);
}

.btn-ai:hover {
    box-shadow: 0 6px 15px rgba(89, 45, 130, 0.4);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-ai .ai-sparkle-icon {
    width: 20px;
    height: 20px;
}

/* --- 3-Tier Header System --- */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

/* Tier 1: Utility Bar */
.utility-bar {
    background-color: var(--bg-light);
    border-bottom: 1px solid #eaeaea;
    font-size: 0.85rem;
    padding: 8px 0;
}
.utility-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.utility-left a, .utility-right a {
    color: var(--text-light);
    margin-right: 20px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}
.utility-left a:hover, .utility-right a:hover {
    color: var(--ub-purple);
}
.utility-right {
    display: flex;
    align-items: center;
}
.utility-right a:last-child {
    margin-right: 0;
}
.utility-login {
    font-weight: 700 !important;
    color: var(--ub-purple) !important;
}

/* Tier 2: Brand Bar */
.brand-bar {
    padding: 15px 0;
    background: var(--white);
}
.brand-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    height: 55px;
    width: auto;
}

/* Tier 3: Navigation Bar (Mega Menu Core) */
.nav-bar {
    background-color: var(--white);
    border-top: 1px solid #eaeaea;
}
.nav-container {
    display: flex;
    justify-content: center;
    position: relative; /* Anchor for mega menu */
}
.main-nav {
    width: 100%;
}
.main-nav > ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
}
.main-nav > ul > li > a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 15px 0;
    transition: var(--transition);
}
.main-nav > ul > li > a i {
    font-size: 0.8rem;
    color: var(--ub-purple);
    transition: transform 0.3s ease;
}
.main-nav > ul > li:hover > a {
    color: var(--ub-purple);
}
.main-nav > ul > li:hover > a i {
    transform: rotate(180deg);
}

/* Mega Menu Panels */
.mega-menu-trigger {
    position: static; /* Let the mega menu span the full nav-container width */
}
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-top: 3px solid var(--ub-purple);
    display: flex;
    justify-content: center;
    gap: 80px;
    padding: 40px 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 1000;
}
.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mega-column h4 {
    color: var(--ub-purple);
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 10px;
}
.mega-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mega-column ul li a {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    display: block;
}
.mega-column ul li a:hover {
    color: var(--ub-blue);
    padding-left: 5px;
}

.header-actions {
    display: flex;
    gap: 15px;
}

/* Moved mobile-menu-toggle to media queries section to avoid conflict */

/* --- Hero Section --- */
.hero {
    height: 85vh;
    max-height: 850px;
    min-height: 650px;
    position: relative;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-image: url('https://www.bridgeport.edu/files/images/slider/aerial.jpg');
    transition: background-image 1s ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(89, 45, 130, 0.85) 0%, rgba(0, 167, 224, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    padding-bottom: 80px; /* Space for overlapping stats */
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-title span {
    display: block;
    font-size: 2.5rem;
    font-weight: 300;
    margin-top: 10px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    font-weight: 400;
    opacity: 0.9;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

/* Animations */
.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

/* Hero Stats */
.hero-stats-wrapper {
    position: relative;
    width: 100%;
    z-index: 10;
    margin-top: -80px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border-bottom: 4px solid var(--ub-blue);
}

.stat-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--ub-purple);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--ub-purple);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

/* --- Programs Section --- */
.programs-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--ub-purple);
    margin-bottom: 10px;
    font-weight: 800;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.program-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(89, 45, 130, 0.05) 0%, rgba(0, 167, 224, 0.05) 100%);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.program-card:hover::before {
    opacity: 1;
}

.program-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 167, 224, 0.1);
    color: var(--ub-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: var(--transition);
}

.program-card:hover .program-icon {
    background-color: var(--ub-blue);
    color: var(--white);
}

.program-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--ub-purple);
}

.program-card p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.program-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.program-link i {
    transition: transform 0.3s ease;
}

.program-card:hover .program-link i {
    transform: translateX(5px);
}

/* --- News & Events Section --- */
.news-events-section {
    padding: 80px 0;
    background-color: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

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

.news-content {
    padding: 25px;
}

.news-date {
    display: inline-block;
    color: var(--ub-blue);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.news-card h3 {
    font-size: 1.3rem;
    color: var(--ub-purple);
    margin-bottom: 10px;
    line-height: 1.3;
}

.news-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--ub-purple) 0%, var(--ub-purple-dark) 100%);
    padding: 80px 0;
    color: var(--white);
}

.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.cta-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

/* --- Footer --- */
.site-footer {
    background: #1a1a1a;
    color: rgba(255,255,255,0.6);
    padding: 60px 0 20px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 45px;
    width: auto;
    margin-bottom: 20px;
    opacity: 0.9;
}

.brand-col p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.8);
}

.brand-col i {
    color: var(--ub-blue);
    margin-top: 5px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.links-col ul li {
    margin-bottom: 10px;
}

.links-col a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.links-col a:hover {
    color: var(--ub-blue);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--ub-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}

/* --- AI Chatbot Sidebar --- */
.chat-sidebar {
    width: 400px;
    height: 100vh;
    background: var(--white);
    border-left: 1px solid rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0,0,0,0.03);
    z-index: 100;
    margin-right: -400px;
    transition: margin-right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.chat-sidebar.active {
    margin-right: 0;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--ub-purple), var(--ub-purple-dark));
    color: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-sparkle-icon {
    width: 28px;
    height: 28px;
    display: inline-block;
    vertical-align: middle;
}

.chatbot-avatar .ai-sparkle-icon {
    width: 32px;
    height: 32px;
}

.small-icon {
    width: 22px;
    height: 22px;
    background: rgba(255,255,255,0.2);
    padding: 8px;
    border-radius: 50%;
    box-sizing: content-box;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chatbot-header-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
}

.status-online {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-online::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #4CAF50;
    border-radius: 50%;
    display: inline-block;
}

.chatbot-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    padding: 5px;
}

.chatbot-close:hover {
    opacity: 1;
}

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

.chat-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

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

.chat-bubble.bot {
    background: var(--white);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
}

.chat-bubble.user {
    background: var(--ub-blue);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.chatbot-input {
    padding: 15px 20px;
    background: var(--white);
    border-top: 1px solid rgba(0,0,0,0.05);
}

#chatbotForm {
    display: flex;
    gap: 10px;
    background: var(--bg-light);
    padding: 5px;
    border-radius: 30px;
    border: 1px solid rgba(0,0,0,0.1);
    transition: var(--transition);
}

#chatbotForm:focus-within {
    border-color: var(--ub-blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 167, 224, 0.1);
}

#chatInput {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 15px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
}

#chatSubmit {
    background: var(--ub-purple);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

#chatSubmit:hover {
    background: var(--ub-purple-dark);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--text-light);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

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

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Quick Replies */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-reply-btn {
    background: rgba(0, 167, 224, 0.1);
    color: var(--ub-blue);
    border: 1px solid rgba(0, 167, 224, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-weight: 500;
}

.quick-reply-btn:hover {
    background: var(--ub-blue);
    color: var(--white);
}

.mobile-toggles {
    display: none;
    align-items: center;
    gap: 15px;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--ub-purple);
    cursor: pointer;
}

.mobile-ai-toggle {
    background: linear-gradient(135deg, var(--ub-purple), var(--ub-blue));
    color: var(--white);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-ai-toggle .ai-sparkle-icon {
    width: 18px;
    height: 18px;
}

/* --- Landing Page Specific Overrides --- */
.landing-header .brand-bar {
    border-bottom: 2px solid var(--ub-purple);
}
.landing-header .phone-link {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ub-purple);
    text-decoration: none;
    margin-right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Landing Hero */
.landing-hero {
    background-image: url('https://www.bridgeport.edu/files/images/slider/aerial.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    height: auto;
    min-height: 85vh;
    padding: 80px 0;
}
.landing-hero .hero-overlay {
    background: linear-gradient(135deg, rgba(89, 45, 130, 0.7) 0%, rgba(0, 167, 224, 0.4) 100%);
}
.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 2;
}
.hero-left {
    flex: 1;
    color: var(--white);
    max-width: 600px;
}
.value-props {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.vp-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.vp-item i {
    font-size: 2rem;
    color: var(--ub-blue);
}
.vp-item strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
}
.vp-item p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Glassmorphism Lead Form */
.hero-right {
    flex: 0 0 450px;
}
.lead-form-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
}
.lead-form-card h3 {
    color: var(--ub-purple);
    font-size: 1.8rem;
    margin-bottom: 10px;
}
.lead-form-card > p {
    color: var(--text-light);
    margin-bottom: 25px;
}
.lead-form .form-group {
    position: relative;
    margin-bottom: 25px;
}
.lead-form input, .lead-form select {
    width: 100%;
    padding: 15px 15px 15px 10px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition);
    outline: none;
}
.lead-form input:focus, .lead-form select:focus {
    border-color: var(--ub-purple);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(89, 45, 130, 0.1);
}
.lead-form label {
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ub-purple);
    background: var(--white);
    padding: 0 5px;
    pointer-events: none;
}
.lead-form input::placeholder {
    color: transparent;
}
.btn-full {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Scholarships Section */
.scholarships-section {
    padding: 80px 0;
    background: var(--white);
}
.scholarship-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card i.gold { color: #FFD700; }
.stat-card i.silver { color: #C0C0C0; }
.stat-card i.bronze { color: #CD7F32; }
.stat-card i.purple { color: var(--ub-purple); }
.disclaimer {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
}

/* Split Info Section */
.split-info-section {
    padding: 80px 0;
}
.split-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}
.split-row:last-child {
    margin-bottom: 0;
}
.split-row.reverse {
    flex-direction: row-reverse;
}
.split-content, .split-image {
    flex: 1;
}
.split-content h2 {
    color: var(--ub-purple);
    font-size: 2.2rem;
    margin-bottom: 20px;
}
.split-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.split-content ul {
    list-style: none;
    margin-bottom: 30px;
}
.split-content ul li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.split-content ul li i {
    color: var(--ub-blue);
}
.testimonial {
    background: var(--white);
    padding: 30px;
    border-left: 4px solid var(--ub-purple);
    border-radius: 0 12px 12px 0;
    box-shadow: var(--shadow-sm);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-main);
}
.testimonial footer {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 700;
    font-style: normal;
    color: var(--ub-purple);
}

/* --- Media Queries (Mobile Readiness) --- */
@media (max-width: 1100px) {
    .utility-bar { display: none; } /* Save vertical space on mobile */
    .header-actions { display: none; }
    
    .main-nav { 
        display: none; 
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 0;
        z-index: 900;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav > ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }
    
    .main-nav > ul > li {
        width: 100%;
        border-bottom: 1px solid #eaeaea;
    }
    
    .main-nav > ul > li > a {
        padding: 20px;
        justify-content: space-between;
    }
    
    /* Mobile Mega Menu Accordion */
    .mega-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        padding: 0 20px 20px 20px;
        flex-direction: column;
        gap: 20px;
        display: none; /* JS will toggle this */
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .has-dropdown:hover .mega-menu {
        display: none; /* Disable CSS hover on mobile */
    }
    
    .has-dropdown.active .mega-menu {
        display: flex;
    }
    
    .has-dropdown.active > a i {
        transform: rotate(180deg);
    }
    
    .mobile-toggles { display: flex; }
    .hero-title { font-size: 3.5rem; }
    .hero-title span { font-size: 2rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .programs-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-container { flex-direction: column; text-align: center; gap: 30px; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.4rem; }
    .hero-title span { font-size: 1.3rem; }
    .hero-cta { flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr; }
    .programs-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    
    .hero-stats-wrapper { position: relative; padding-top: 20px; background: transparent; width: 100%; margin-top: -40px; }
    .hero { height: auto; padding: 60px 0 80px; min-height: auto; flex-direction: column; justify-content: flex-start; align-items: stretch; }
    .hero-content { display: flex; flex-direction: column; justify-content: flex-start; flex: 1; align-items: center; text-align: center; padding-bottom: 20px; margin-top: 40px; }
    .programs-section { padding-top: 60px; }
    
    .social-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .alumni-content { flex-direction: column; gap: 30px !important; }
    .alumni-image, .alumni-info { width: 100%; }
    
    .chat-sidebar {
        position: fixed;
        right: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        margin-right: -100vw;
        z-index: 2000;
        max-width: 100vw;
    }
}

@media (max-width: 480px) {
    .hero-cta .btn { width: 100%; }
}
/* Landing Page Mobile Fixes */
@media (max-width: 768px) {
    .hero-split { flex-direction: column; gap: 40px; }
    .hero-right { flex: 0 0 auto; width: 100%; }
    .scholarship-grid { grid-template-columns: 1fr; }
    .split-row, .split-row.reverse { flex-direction: column; gap: 30px; }
    .split-image img { margin-top: 20px; }
    
    .landing-header .brand-container { flex-wrap: wrap; }
    .landing-header .header-actions { display: none; } /* Hide desktop actions to prevent overlap */
    .landing-hero { padding: 40px 0; }
    .lead-form-card { padding: 25px; }
}
