* {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
        "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji",
        "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    max-width: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
        "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji",
        "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background-color: #f9f9f9;
    overflow-x: hidden; /* Hide horizontal overflow */
}
/* <!-- #072843 -->
     <!-- #4293a8 -->
      <!-- #17607d --> */
:root {
    /* Nav Bar color settings*/
    --nav-bg-color: #17607d; /* #273DB4; */
    --nav-text-color: #ffffff;
    --nav-hoover-text-color: #ffffff;
    --nav-hoover-bg-color: #4293a8;
    /* Nav Bar border settings*/
    --nav-border-color: var(--nav-bg-color);
    --nav-border-width: 0px;
    --nav-border-radius: 10px;
    /* Nav Bar Padding and Margin */
    --nav-padding: 10px;
    /* Nav Bar Font and text Settings*/
    --nav-font-size: 1rem;
    --nav-font-weight: 700;
    /* Hero Section color settings*/
    --hero-center-text-color: #ffffff;
    --hero-subcaption-text-color: #ffffff;
    --theme-border-color: var(--nav-bg-color);
    --theme-heading-color: #072843;
    --theme-text-color: #000000;
    /* Body and background color settings*/
    --body-bg-color: #f5f5f5;
}

/* Institution Logos Section */
.institution-logos {
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 2px solid var(--nav-bg-color);
}

.logo-container {
    display: flex;
    justify-content: flex-start; /* start from left for marquee effect */
    align-items: center;
    gap: 40px;
    width: 100%;
    margin: 0;
    padding: 0 20px;
    flex-wrap: nowrap; /* keep in one row for smooth scrolling */
    overflow: hidden;
    position: relative;
}

.logo-track {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    will-change: transform;
    animation: marquee 25s linear infinite;
}

.institution-logo {
    height: 80px;
    width: auto;
    max-width: 220px; /* prevent overly wide logos on big screens */
    object-fit: contain;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    opacity: 1;
    display: block;
}

/* Animation delays removed for simpler animation */

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}
/* remove per-logo animation delays; the track animates uniformly */

.institution-logo:hover {
    transform: scale(1.05);
}

/* Responsive design for institution logos */
@media (max-width: 768px) {
    .logo-container {
        gap: 20px;
        padding: 0 10px;
    }
    
    .institution-logo {
        height: 60px;
        max-width: 160px;
    }
}

@media (max-width: 480px) {
    .logo-container {
        gap: 15px;
        flex-direction: row;
        justify-content: space-around;
    }
    
    .institution-logo {
        height: 50px;
        max-width: 120px;
    }
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, max-content));
    grid-auto-rows: auto;
    justify-content: flex-end;
    align-items: center;
    padding: var(--nav-padding);
    margin: 0px;
    background-color: var(--nav-bg-color);
    width: auto;
}

.nav-grid a {
    color: var(--nav-text-color);
    background-color: inherit;
    font-size: var(--nav-font-size);
    font-weight: var(--nav-font-weight);
    text-align: center;
    text-decoration: none;
    padding: var(--nav-padding);
    display: block;
}

.nav-grid a:hover {
    color: var(--nav-hoover-text-color);
    background-color: var(--nav-hoover-bg-color);
}

.nav-grid > a:first-child {
    display: none; /* Show only the first navigation item */
}

.dropdown {
    position: relative;
    display: inline-block;
    width: inherit;
    text-align: center;
    font-size: var(--nav-font-size);
    font-weight: var(--nav-font-weight);
}

.dropdown-btn {
    color: var(--nav-text-color);
    background-color: var(--nav-bg-color);
    text-decoration: none; /* To remove the underline of anchors*/
    font-size: var(--nav-font-size);
    font-weight: var(--nav-font-weight);
    text-align: var(--nav-text-align);
    border-color: var(--nav-border-color);
    border-width: var(--nav-border-width);
    border-radius: var(--nav-border-radius);
    padding: var(--nav-padding);
}

.dropdown-btn:hover {
    color: var(--nav-hoover-text-color);
    background-color: var(--nav-hoover-bg-color);
    text-decoration: none; /* To remove the underline of anchors*/
    width: 100%;
    font-size: var(--nav-font-size);
    font-weight: var(--nav-font-weight);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--nav-text-color);
    min-width: max-content;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    right: 0;
    z-index: 1;
    border-radius: var(--nav-border-radius);
    font-size: var(--nav-font-size);
    font-weight: var(--nav-font-weight);
}

.dropdown-content a {
    color: var(--nav-bg-color);
    background-color: var(--nav-text-color);
    text-decoration: none;
    font-size: var(--nav-font-size);
    font-weight: var(--nav-font-weight);
    text-transform: var(--nav-text-transform);
    text-align: left;
    border-color: var(--nav-border-color);
    border-width: var(--nav-border-width);
    border-radius: var(--nav-border-radius);
    padding: var(--nav-padding);
    display: block;
}

.dropdown:hover .dropdown-content {
    display: block;
    width: inherit;
    min-width: max-content;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    margin: 0px;
    padding: 0px;
    align-content: center;
    background-image: linear-gradient(
            to bottom,
            rgba(23, 96, 125, 0.95),
            rgba(23, 96, 125, 0.75),
            rgba(23, 96, 125, 0.55),
            rgba(23, 96, 125, 0.95)
        ),
        url("images/background.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 50vh;
    grid-gap: 2vh;
}

.hero-nobg {
    display: grid;
    grid-template-columns: 1fr;
    margin: 0px;
    padding: 0px;
    align-content: center;
    align-items: center;
    justify-items: center;
    justify-content: center;
    background-color: var(--body-bg-color);
    width: 100%;
    height: 50vh;
    grid-gap: 2vh;
    border-color: #17607d;
    border-bottom: 2px solid #17607d;
}

.hero-grid-iith {
    display: grid;
    grid-template-columns: 1fr;
    margin: 0px;
    padding: 0px;
    align-content: center;
    background-image: linear-gradient(
            to bottom,
            rgba(23, 96, 125, 0.95),
            rgba(23, 96, 125, 0.75),
            rgba(23, 96, 125, 0.55),
            rgba(23, 96, 125, 0.95)
        ),
        url("images/EE-Dept-Crop.jpeg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 50vh;
    grid-gap: 2vh;
}

.hero-title {
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--hero-center-text-color);
    text-align: center;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--nav-bg-color);
    text-align: center;
    align-self: center;
    min-height: 50px;
    align-content: center;
}

.hero-subcaption {
    font-size: 2rem;
    font-weight: 400;
    color: var(--hero-subcaption-text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Added text shadow */
    text-align: center;
}

.hero-button-grid {
    display: grid;
    grid-gap: 5vw;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1vw));
    justify-self: center;
    justify-items: center;
    justify-content: center;
    margin: 5px;
}

.hero-button {
    border-radius: 12px;
    border: none;
    background: linear-gradient(
        135deg,
        #0f485e,
        #17607d
    ); /* Gradient background */
    color: var(--nav-text-color);
    font-size: 1.25rem;
    padding: 12px 24px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-button:hover {
    background: linear-gradient(
        135deg,
        #ffffff,
        #ffffff
    ); /* Inverted gradient background */
    color: var(--nav-bg-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.hero-button a {
    text-decoration: none;
    color: inherit;
    font-size: inherit;
}

.oc-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    margin-left: 10vw;
    margin-right: 10vw;
    padding: 0px;
    align-items: start;
    justify-items: center;
    background-color: #f9f9f9;
    width: 80vw;
}
.oc-grid-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto;
    gap: 20px;
    margin-left: 10vw;
    margin-right: 10vw;
    padding: 0px;
    align-items: start;
    justify-items: start;
    background-color: #f9f9f9;
    width: 80vw;
}

.oc-grid-content {
    width: 100%;
    padding: 0px;
    margin: 0;
    justify-self: left;
    align-self: start;
}

.oc-map-container {
    flex: 1 1 35%;
    min-width: 300px;
    position: sticky;
    top: 20px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.oc-grid-content h1,
.tc-grid-content h1 {
    font-size: 2rem;
    color: var(--theme-heading-color);
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 0px;
    padding-right: 0px;
    margin-top: 0px;
    text-align: left;
}

.oc-grid-content h2,
.tc-grid-content h2 {
    font-size: 1.5rem;
    color: var(--theme-heading-color);
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 0px;
    padding-right: 0px;
    margin-top: 0px;
    text-align: left;
}

.oc-grid-content h3,
.tc-grid-content h3 {
    font-size: 1.25rem;
    color: #000000;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 0px;
    padding-right: 0px;
    margin-top: 0px;
    text-align: left;
    text-decoration: underline;
}

.oc-grid-content p,
.tc-grid-content p {
    font-size: 1.2rem;
    color: var(--theme-text-color);
    padding: 0;
    margin-bottom: 10px;
    padding-bottom: 10px;
    line-height: 1.5em;
    text-align: justify;
}

.oc-grid-content ul,
.oc-grid-content ol {
    font-size: 1.2rem;
    color: var(--theme-text-color);
    padding: 0;
    padding-bottom: 5px;
    padding-left: 2em;
    line-height: 1.5em;
    text-align: left;
}

.symposium-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
    margin: 20px 0;
}

.symposium-item {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.symposium-item h3 {
    /* color: rgba(0, 150, 136, 0.95);
    border-bottom: 2px solid rgba(0, 150, 136, 0.95); */
    color: rgba(23, 96, 125, 0.95);
    border-bottom: 2px solid rgba(23, 96, 125, 0.95);
    padding-bottom: 10px;
    margin-top: 0;
}

.symposium-item ul {
    padding-left: 20px;
}

.symposium-item li {
    margin-bottom: 5px;
    line-height: 1.4;
}

.tc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    grid-template-rows: auto;
    margin-left: 10vw;
    margin-right: 10vw;
    padding: 0px;
    align-items: start;
    justify-items: center;
    background-color: #f9f9f9;
    width: 80vw;
    grid-gap: 2vw;
}

.tc-grid-content {
    width: 100%;
    padding: 0px;
    margin: 0;
    justify-self: left; /* How the container should be arranged */
    align-self: start;
}

.table-container {
    width: 100%; /* Ensure the container spans the full width */
    overflow-x: auto; /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile devices */
}

.table-format {
    margin: 0; /* margin: 0 auto; centers the table within the container */
    margin-bottom: 20px;
    border-collapse: collapse;
    table-layout: auto;
}

.tables-format {
    margin: 0 auto; /* margin: 0 auto; centers the table within the container */
    margin-bottom: 20px;
    border-collapse: collapse;
    table-layout: auto;
}

.table-format th,
.tables-format th {
    padding: 12px 15px;
    border: 1px solid #ddd;
    font-size: 1.2em;
    color: var(--theme-text-color);
    background-color: var(--nav-bg-color);
    color: #ffffff;
}

.table-format td,
.tables-format td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    font-size: 1.2em;
    color: var(--theme-text-color);
}

.table-format tr:nth-child(even),
.tables-format tr:nth-child(even) {
    background-color: #f2f2f2;
}

.table-format tr:hover,
.tables-format tr:hover {
    background-color: #ddd;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    margin-top: auto; /* Push the footer to the bottom */
    padding: 0px;
    align-items: center;
    justify-items: center;
    background-color: var(--nav-bg-color);
    width: 100%;
}

.footer-content {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
    margin: 0;
    justify-self: center; /* How the container should be arranged */
    align-self: center;
    text-align: center;
    font-size: 1.2em;
    color: var(--nav-text-color);
    line-height: 1.5em;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1; /* Allow the main content to take up remaining space */
}

.centered-div {
    display: flex;
    justify-content: center;
    align-items: center;
    /* height: 100vh;  */
}

.committee-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: start;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    width: 85%; /* Increased from 60% to 85% */
}

.committee-grid-content {
    width: 80%; /* Ensures the table uses all available space within the grid */
    max-width: none; /* Removes the 800px max-width limitation */
    padding: 0;
    margin: 0 auto;
}

/* Maintain your existing table styling for headers, etc. */
.committee-grid-content table {
    width: 90%;
    margin: 0 auto;
    border-collapse: collapse;
    table-layout: fixed; /* Ensures consistent column sizing */
    border: 2px solid var(--nav-bg-color, #3366cc);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Main header styling - ensuring background color and white text */
.committee-grid-content th {
    padding: 12px 10px;
    border-bottom: 2px solid #204080;
    font-size: 1.2em;
    color: #ffffff; /* Explicit white text */
    background-color: var(
        --nav-bg-color,
        #3366cc
    ) !important; /* Using !important to prevent overrides */
    text-align: left;
    text-decoration: none;
    font-weight: bold;
}

.committee-grid-content td {
    padding: 12px 10px;
    border-bottom: 1px solid #ddd;
    font-size: 1.1em;
    color: var(--theme-text-color, #333);
}

/* Set column widths */
.committee-grid-content th:nth-child(1),
.committee-grid-content td:nth-child(1) {
    width: 25%;
}

.committee-grid-content th:nth-child(2),
.committee-grid-content td:nth-child(2) {
    width: 25%;
}

.committee-grid-content th:nth-child(3),
.committee-grid-content td:nth-child(3) {
    width: 20%;
}

.committee-grid-content th:nth-child(4),
.committee-grid-content td:nth-child(4) {
    width: 30%;
}

/* Apply alternating column backgrounds to data cells only */
.committee-grid-content td:nth-child(1) {
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.03);
}

.committee-grid-content td:nth-child(3) {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Add alternating row colors (for data rows only) */
.committee-grid-content tr:nth-child(even) td {
    background-color: #f2f2f2;
}

/* Row hover effect */
.committee-grid-content tr:hover td {
    background-color: #e8f0ff;
}

/* Style email links */
.committee-grid-content a {
    color: var(--nav-bg-color, #0066cc);
    text-decoration: none;
    transition: color 0.2s;
}

.committee-grid-content a:hover {
    text-decoration: underline;
    color: #004499;
}

.page-title {
    text-align: center;
    font-size: 2em;
    font-weight: 700;
    color: var(--nav-bg-color, #2c3e50);
    margin: 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--nav-bg-color, #3a5a78);
}

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    width: 90%;
    margin: 0 auto;
    padding: 20px;
}

.tracks-grid-content {
    width: 100%;
    padding: 0px;
    margin: 0 2px;
    justify-self: left; /* How the container should be arranged */
    align-self: start;
    border-color: var(--nav-bg-color);
    border-width: 1px;
    border-left: 5px solid var(--nav-bg-color);
    border-radius: 10px;
    border-style: solid;
    min-height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tracks-grid-content:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.tracks-grid-content table {
    margin: 0; /* margin: 0 auto; centers the table within the container */
    border-collapse: collapse;
}

.tracks-grid-content th {
    padding: 8px 5px;
    border: none;
    font-size: 1.2em;
    color: var(--nav-bg-color);
    background-color: inherit;
    text-decoration: underline;
    text-align: left;
}

.tracks-grid-content td {
    padding: 5px 20px;
    border: none;
    font-size: 1.2em;
    color: var(--theme-text-color);
    background-color: inherit;
}

.pdf-download {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-align: center;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 20px;
}
.pdf-download a {
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 600px) {
    body {
        padding-top: 65px; /* Adjust this value to match the height of the navigation bar */
    }

    .nav-grid {
        width: 100%;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        justify-items: flex-end;
        position: fixed; /* Makes the menu sticky */
        top: 0; /* Sticks the menu to the top of the viewport */
        right: 0;
        z-index: 1000; /* Ensures it stays above other elements */
        background-color: var(
            --nav-bg-color
        ); /* Keeps the background color consistent */
        padding: var(--nav-padding); /* Adds padding for better appearance */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: Adds a shadow for better visibility */
        height: 45px;
    }

    .nav-grid a,
    .dropdown-btn {
        display: none; /* Hide all navigation items */
        text-align: end;
        justify-self: end;
        width: 100%;
    }

    .nav-grid a:first-child {
        display: block; /* Show only the first navigation item */
    }

    .nav-grid:hover a,
    .nav-grid:hover .dropdown-btn {
        display: block; /* Show all navigation items and dropdown button on hover */
        text-align: end;
    }

    .dropdown:hover .dropdown-content {
        display: block; /* Ensure dropdown content is displayed on hover */
        right: 20px;
    }

    .hero-grid,
    .hero-grid-iith {
        height: 80vh; /* Adjust height for smaller screens */
    }

    .tracks-grid,
    .committee-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(125px, 80vw));
        grid-template-rows: auto;
        grid-gap: 10px;
    }

    .table-format td,
    .table-format th,
    .tables-format td,
    .tables-format th {
        word-wrap: break-word; /* Break long words */
        overflow-wrap: break-word; /* Ensure text wraps within the cell */
        white-space: normal; /* Allow text to wrap to the next line */
    }
    .committee-grid {
        width: 95%;
        padding: 10px;
    }

    .committee-grid-content {
        max-width: 100%;
    }

    .committee-grid-content table {
        font-size: 1em;
        min-width: 600px; /* ensure columns don't collapse; scroll enabled via .table-container */
    }
}

/* Dates Slider Styles */
.dates-slider-container {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dates-list {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
    font-size: 1.2rem;
    color: var(--theme-text-color);
    line-height: 1.5em;
}

.dates-list li {
    margin-bottom: 8px;
    padding: 5px 0;
}

/* Custom scrollbar for dates slider */
.dates-slider-container::-webkit-scrollbar {
    width: 8px;
}

.dates-slider-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dates-slider-container::-webkit-scrollbar-thumb {
    background: var(--nav-bg-color);
    border-radius: 4px;
}

.dates-slider-container::-webkit-scrollbar-thumb:hover {
    background: var(--nav-hoover-bg-color);
}

/* Updates Slider Styles */
.updates-slider-container {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.updates-content {
    font-size: 1.2rem;
    color: var(--theme-text-color);
    line-height: 1.5em;
    margin: 0;
    padding: 0;
}

/* Custom scrollbar for updates slider */
.updates-slider-container::-webkit-scrollbar {
    width: 8px;
}

.updates-slider-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.updates-slider-container::-webkit-scrollbar-thumb {
    background: var(--nav-bg-color);
    border-radius: 4px;
}

.updates-slider-container::-webkit-scrollbar-thumb:hover {
    background: var(--nav-hoover-bg-color);
}
