:root {
    --primary-color: #0a2540; /* Deep Navy */
    --secondary-color: #00b4d8; /* Science Blue */
    --accent-color: #fca311; /* Gold/Amber */
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --header-height: 80px;
    --transition-speed: 0.3s;
}

/* Gutenberg Color Palette Classes */
.has-primary-color { color: var(--primary-color); }
.has-primary-background-color { background-color: var(--primary-color); }

.has-secondary-color { color: var(--secondary-color); }
.has-secondary-background-color { background-color: var(--secondary-color); }

.has-accent-color { color: var(--accent-color); }
.has-accent-background-color { background-color: var(--accent-color); }

.has-dark-text-color { color: var(--text-color); }
.has-dark-text-background-color { background-color: var(--text-color); }

.has-white-color { color: var(--white); }
.has-white-background-color { background-color: var(--white); }

/* Justified Text Block Style */
.is-style-justified {
    text-align: justify;
}

/* Base Styles */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    margin: 0;
    padding-top: var(--header-height); /* Offset for fixed header */
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

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

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

.section-padding {
    padding-top: 60px;
    padding-bottom: 60px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
}

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

.btn-primary:hover {
    background-color: #0096c7;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 15px;
}

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

/* Header & Navigation */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.brand-logos {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-placeholder {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    white-space: nowrap; /* Prevent wrapping */
    display: flex;
    align-items: center;
}

.sponsor-logos {
    display: flex;
    gap: 15px;
    border-left: 1px solid #ddd;
    padding-left: 20px;
}

.corp-logo {
    font-size: 0.8rem;
    color: #888;
    border: 1px dashed #ccc;
    padding: 5px 10px;
    white-space: nowrap;
}

.corp-logo-img {
    max-height: 40px; /* Adjust height to fit header */
    width: auto;
    object-fit: contain;
}


/* Menu */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-navigation ul li {
    position: relative;
    margin-left: 25px;
}

.main-navigation ul li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-color);
    padding: 10px 0;
    display: block;
}

.main-navigation ul li:hover > a {
    color: var(--secondary-color);
}

/* Dropdown */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    flex-direction: column;
    padding: 10px 0;
    border-top: 3px solid var(--secondary-color);
}

.main-navigation ul li:hover > ul {
    display: flex;
}

.main-navigation ul ul li {
    margin: 0;
}

.main-navigation ul ul li a {
    padding: 10px 20px;
    border-bottom: 1px solid #f0f0f0;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh; /* Changed from fixed height to min-height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-color: var(--primary-color);
    padding: 80px 0; /* Add padding for content overflow */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10,37,64,0.9) 0%, rgba(10,37,64,0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1000px; /* Increased max-width for 2 cols */
}

/* Hero Flex Layout (New) */
.hero-flex-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Responsive wrap */
}

.hero-col-logo {
    flex: 0 0 auto;
}

.host-uni-logo {
    max-width: 180px;
    max-height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
    background: rgba(255,255,255,0.1); /* Subtle backdrop */
    padding: 10px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.hero-col-text {
    flex: 1;
    text-align: left; /* Align text left in column */
}

/* Widget Text Styling Override */
.hero-widget h1, .hero-widget h2, .hero-widget h3 {
    color: var(--white);
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-widget p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Fallback styles if widget is empty */
.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

/* Animations */
.animate-fade-up {
    animation: fadeUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.bounce-in {
    animation: bounceIn 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

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

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

@keyframes bounceIn {
    0% { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
    20% { transform: scale3d(1.1, 1.1, 1.1); }
    40% { transform: scale3d(0.9, 0.9, 0.9); }
    60% { opacity: 1; transform: scale3d(1.03, 1.03, 1.03); }
    80% { transform: scale3d(0.97, 0.97, 0.97); }
    100% { opacity: 1; transform: scale3d(1, 1, 1); }
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    margin-bottom: 60px;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform var(--transition-speed);
}

.info-card:hover {
    transform: translateY(-10px);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.site-footer h3 {
    color: var(--white);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.footer-links li {
    list-style: none;
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
}

.footer-links a:hover {
    color: var(--white);
}

.site-info {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #888;
}

/* Responsive */
@media (max-width: 1200px) {
    .brand-logos {
        gap: 12px;
    }

    .sponsor-logos {
        gap: 10px;
        padding-left: 12px;
    }

    .main-navigation ul li {
        margin-left: 18px;
    }

    .main-navigation ul li a {
        font-size: 0.9rem;
    }
}

@media (max-width: 1100px) {
    .header-flex {
        gap: 16px;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
    }

    .hamburger {
        display: block;
        width: 30px;
        height: 3px;
        background: var(--primary-color);
        position: relative;
    }
    
    .hamburger::before, .hamburger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 3px;
        background: var(--primary-color);
        left: 0;
    }
    
    .hamburger::before { top: -8px; }
    .hamburger::after { top: 8px; }

    .main-navigation {
        margin-left: auto;
        position: relative;
    }

    .main-navigation > .nav-container {
        position: relative;
    }

    .main-navigation > .nav-container > ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 16px);
        right: 0;
        left: auto;
        width: min(320px, calc(100vw - 40px));
        max-height: calc(100vh - var(--header-height) - 24px);
        overflow-y: auto;
        background: var(--white);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-radius: 8px;
    }

    .main-navigation.toggled > .nav-container > ul {
        display: flex;
    }

    .main-navigation ul li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    
    .main-navigation ul li a {
        padding: 15px 20px;
    }

    .sponsor-logos {
        display: none; /* Hide extra logos on small screens if crowded */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-flex-layout {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-col-text {
        text-align: center;
    }

    /* Mobile submenu fixes */
    .main-navigation ul ul {
        display: none;
        position: static;
        box-shadow: none;
        border-top: none;
        background-color: #f9f9f9;
        padding-left: 0;
        min-width: auto;
        width: 100%;
        border-radius: 0;
    }

    .main-navigation ul ul li a {
        padding-left: 40px; /* Indent submenu items */
        border-bottom: 1px solid #eee;
    }

    .main-navigation ul li.toggled-on > ul {
        display: flex;
    }

    /* Submenu Link Indicator (Arrow) */
    .submenu-link {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
    }

    .submenu-link::after {
        content: '';
        display: block;
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        margin-left: 10px;
        transition: transform 0.3s ease;
    }

    /* Rotate arrow when open */
    .toggled-on > .submenu-link::after {
        transform: rotate(225deg); /* Flip upwards/reversed */
    }
}
