:root {
    --primary-color: #002366;
    /* Deep Royal Blue */
    --secondary-color: #DAA520;
    /* Gold/Amber */
    --text-color: #333333;
    --light-bg: #F5F5F5;
    --white: #FFFFFF;
    --font-heading: 'Open Sans', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #b8860b;
    transform: translateY(-2px);
}

.main-header-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 0;
}

/* Top Bar Branding */
.top-bar {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 2px solid var(--secondary-color);
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.mipr-logo-top {
    height: 80px;
    width: auto;
}

.brand-details {
    display: flex;
    flex-direction: column;
}

.conference-full-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
}

.conference-location-dates {
    font-size: 0.95rem;
    color: #555;
    margin-top: 5px;
}

.society-logo-top {
    height: 65px;
    width: auto;
    object-fit: contain;
}

.mu-logo-zoom {
    height: 75px;
    /* Specifically larger for MU logo */
    width: auto;
    object-fit: cover;
    /* Change to cover or scale if needed, but height increase is safest */
    transform: scale(1.2);
    /* Slight zoom */
}

.ieee-logo-top {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Vertical Divider */
.divider {
    width: 1px;
    height: 40px;
    background-color: #ddd;
    margin: 0 10px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 80vh;
    overflow: hidden;
    background: #000;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    /* Ensure image centering */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Static Content Overlay for Carousel */
.hero-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    /* No gradient overlay */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through to potential interactions, though button needs auto */
}

.hero-content-overlay .hero-content {
    pointer-events: auto;
    /* Re-enable clicks for buttons/text */
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h2 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-details {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    text-transform: uppercase;
}

.hero-content .intro-text {
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    text-transform: uppercase;
}

/* Section General */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
}

/* Important Dates */
#dates {
    background-color: var(--light-bg);
}

.dates-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.date-card {
    background: var(--white);
    padding: 20px;
    border-left: 5px solid var(--secondary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: calc(33.333% - 40px);
    min-width: 250px;
    transition: transform 0.3s ease;
}

.date-card:hover {
    transform: translateY(-5px);
}

.date-card h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.date-card p {
    font-size: 1.1rem;
    color: #555;
}

/* About Section */
#about {
    text-align: center;
}

#about p {
    text-align: left;
    margin-bottom: 20px;
    line-height: 1.8;
}


/* Topics Grid */
#topics {
    background-color: var(--primary-color);
    color: var(--white);
}

#topics .section-title {
    color: var(--white);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.topic-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
}

.topic-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.topic-item h4 {
    color: var(--secondary-color);
    font-size: 1.3rem;
}

/* Committee */
.committee-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    text-align: center;
}

.committee-member {
    flex: 0 1 250px;
}

.committee-member img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
    object-position: top;
    margin-bottom: 15px;

    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.committee-member h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.committee-member p {
    color: #666;
    font-style: italic;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    margin-bottom: 20px;
}

.footer-links a {
    margin: 0 10px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
}

/* Responsive */
/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Navigation */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--white);
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1001;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
        /* Ensure it's flex when active */
        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 10px;
        font-size: 1.1rem;
    }

    .nav-links .btn {
        margin-top: 10px;
    }

    /* Hero */
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 15px 60px;
        /* Account for fixed header */
    }

    .hero-content .intro-text {
        font-size: 1.5rem;
        /* Smaller font on mobile */
        margin-bottom: 10px;
    }

    .hero-content h2 {
        font-size: 1.2rem;
        /* Smaller font for subtitle */
    }

    .hero-details {
        font-size: 1rem;
        /* Smaller font for details */
        display: flex;
        flex-direction: column;
        gap: 5px;
        border-radius: 15px;
    }

    /* General Layout */
    .section-title {
        font-size: 2rem;
    }

    .date-card {
        width: 100%;
    }

    /* Topics */
    .topics-grid {
        grid-template-columns: 1fr;
    }

    /* Committee */
    .committee-names {
        grid-template-columns: 1fr;
    }

    .committee-member {
        flex: 1 1 100%;
    }

    nav>.btn {
        display: none;
    }

    /* Top Bar Mobile */
    .top-bar {
        padding: 8px 0;
    }

    .top-bar-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .top-bar-left {
        flex-direction: row;
        /* Side-by-side logo and name */
        justify-content: center;
        align-items: center;
        gap: 12px;
        text-align: left;
    }

    .top-bar-left a {
        display: block;
        width: auto;
    }

    .mipr-logo-top {
        height: 45px;
        /* Smaller logo */
    }

    .conference-full-name {
        font-size: 0.95rem;
        margin: 0;
    }

    .short-name {
        display: block;
        font-size: 1.1rem;
        /* Slightly smaller */
    }

    .conference-location-dates {
        font-size: 0.75rem;
        /* Smaller text */
        margin-top: 0px;
    }

    .top-bar-right {
        justify-content: center;
        width: 100%;
        gap: 15px;
        margin-top: -5px;
        /* Move closer to top part */
    }

    /* Mobile Logo Adjustments */
    .society-logo-top {
        height: 40px;
    }

    .mu-logo-zoom {
        height: 40px;
        /* Smaller for mobile */
        transform: scale(1.0);
        /* Remove zoom on mobile if needed */
    }

    .ieee-logo-top {
        height: 30px;
    }

    .society-logo-top {
        height: 28px;
    }

    .ieee-logo-top {
        height: 20px;
    }

    .divider {
        display: none;
    }
}

@media (max-width: 1024px) {
    .full-name {
        display: none;
    }

    .short-name {
        display: block;
    }
}

@media (min-width: 1025px) {
    .short-name {
        display: none;
    }

    .full-name {
        display: block;
    }
}

/* Tablet / Desktop Small */
@media (min-width: 769px) and (max-width: 1024px) {
    .top-bar {
        padding: 10px 0;
    }

    .conference-full-name {
        font-size: 1.1rem;
    }

    .mipr-logo-top {
        height: 55px;
    }

    .top-bar-right {
        gap: 12px;
    }

    .society-logo-top {
        height: 35px;
    }

    .ieee-logo-top {
        height: 25px;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }

    .mobile-only {
        display: none;
    }
}

/* Sponsors */
#sponsors {
    background-color: var(--white);
    text-align: center;
}

.sponsors-group {
    margin-bottom: 40px;
}

.sponsors-group h3 {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sponsor-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.sponsor-logos img {
    height: 120px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.sponsor-logos img:hover {
    transform: scale(1.05);
}




/* Dropdown container */
.nav-links li.dropdown {
    position: relative;
}

/* Dropdown menu */
.nav-links .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    padding: 0;
    margin: 0;
    list-style: none;
    z-index: 999;
}

/* Dropdown items */
.nav-links .dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    color: #333;
    white-space: nowrap;
}

.nav-links .dropdown-menu li a:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

/* Show dropdown on hover */
.nav-links li.dropdown:hover .dropdown-menu {
    display: block;
}

