/* Color Variables */
:root {
    --primary-color: #1e3d59; /* Dark blue */
    --secondary-color: #ff6e40; /* Coral orange */
    --accent-color: #17c3b2; /* Turquoise */
    --background-color: #f5f5f5; /* Light gray */
    --text-color: #2c3e50; /* Dark gray blue */
    --text-light: #ffffff;
    --hover-color: #ffc13b; /* Warm yellow */
}

/* Basic styling will be added here */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    padding-top: 70px; /* Add padding to body to offset fixed header */
}

/* Top Navigation Bar */
.top-navigation-bar {
    background-color: var(--primary-color);
    padding: 0 30px;
    position: fixed; /* Fixed at the top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensure it's above other content */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 70px; /* Fixed height for the nav bar */
    box-sizing: border-box;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container .site-logo {
    height: 50px; /* Adjust logo size */
    width: auto;
    display: block;
}

.logo-text {
    color: var(--text-light);
    font-size: 1.2em;
    font-weight: 500;
    display: flex;
    flex-direction: column;
}

.logo-text span {
    display: block;
    line-height: 1.2;
}

.main-nav .main_navigation_list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.main-nav .main_navigation_list > li {
    position: relative;
    margin-left: 5px;
}

.main-nav .main_navigation_list li a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.main-nav .main_navigation_list > li > a:hover,
.main-nav .main_navigation_list > li > a.active {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

/* Dropdown styles */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-color);
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 8px 0;
    list-style: none;
}

.main_navigation_list li:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    padding: 8px 20px;
    font-size: 0.9em;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: var(--secondary-color);
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.8em;
    margin-left: 5px;
    display: inline-block;
    vertical-align: middle;
}

/* Main Content Area */
.main-content-area {
    padding: 20px 30px; /* Add padding around the main content */
    background-color: #ffffff; /* White background for content */
    margin: 0 auto; /* Center content if there's a max-width */
    max-width: 1200px; /* Optional: constrain content width */
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    border-radius: 8px;
    margin-top: 20px;
}

/* Section Styles */
section {
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0; /* Separator line between sections */
}

section:last-of-type {
    border-bottom: none;
}

.site_title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.section-title {
    color: var(--secondary-color);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

/* Updated Project Grid Styles */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 50px 25px; /* Increased vertical gap for larger project names */
    padding: 20px 0;
}

.project-item {
    aspect-ratio: 1;
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: visible; /* Changed from hidden to show the name below */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative; /* For absolute positioning of the name */
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.project-item:hover .project-info {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.project-item:hover .project-name {
    color: var(--secondary-color);
}

.project-info {
    position: absolute;
    bottom: -35px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 8px 15px;
}

.project-name {
    font-size: 1.1em;
    font-weight: 500;
    color: var(--primary-color);
    text-align: center;
    transition: all 0.3s ease;
}

.project-acronym {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.project-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.project-item:hover .project-thumbnail {
    opacity: 0.9;
}

/* Sponsors List Styles */
.sponsors-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 50px;
    padding: 40px 0;
}

.sponsor-image {
    height: 140px;
    width: 260px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.sponsor-image:hover {
    transform: scale(1.1);
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 25px 30px; /* Match content area padding */
    margin-top: 30px; /* Space above footer */
}

footer .contact-info p {
    margin: 5px 0;
    font-size: 0.9em;
}

/* Contact Section Styles */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.contact-person {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex: 1;
}

.contact-person:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.contact-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.contact-person h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.3em;
}

.contact-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.role {
    color: var(--text-color);
    font-size: 0.95em;
    font-weight: 500;
    margin: 0;
}

.email {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.9em;
}

.email:hover {
    color: var(--accent-color);
}

.department-info {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
}

.building-image {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.building-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.building-image img:hover {
    transform: scale(1.02);
}

.department-info p {
    font-size: 1.2em;
    color: var(--primary-color);
    line-height: 1.6;
}

/* Contact Photo Styles */
.contact-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.contact-photo:hover {
    transform: scale(1.05);
}

/* Banner Styles */
.banner-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow: hidden;
}

.banner-item {
    max-width: 45%;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

.modal-content {
    position: relative;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    background-color: transparent;
}

.modal-image-container {
    width: 100%;
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modalImage {
    max-width: 100%;
    /* Breaks scroll on desktop */
    /* max-height: 100%; */
    display: block;
    object-fit: contain;
    cursor: zoom-in;
    margin: auto;
}

.close-modal {
    position: fixed;
    right: 25px;
    top: 15px;
    font-size: 35px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1200;
}

.close-modal:hover {
    color: var(--secondary-color);
}

/* Jury Grid Styles */
.jury-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.jury-member {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.jury-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.jury-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.jury-member:hover .jury-photo {
    transform: scale(1.05);
}

.jury-name-container {
    text-align: center;
    margin: 10px 0;
}

.jury-name {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.jury-affiliation {
    font-size: 0.9em;
    color: var(--secondary-color);
    font-style: italic;
}

.jury-bio {
    color: var(--text-color);
    font-size: 0.9em;
    line-height: 1.5;
    text-align: justify;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 10px;
    margin-top: 10px;
    user-select: none;
}

.jury-bio::-webkit-scrollbar {
    width: 6px;
}

.jury-bio::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.jury-bio::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* Media queries for jury section */
@media (max-width: 768px) {
    .jury-grid {
        grid-template-columns: 1fr;
    }

    .jury-bio {
        max-height: 0;
        margin-top: 0;
        padding: 0 10px;
        background-color: #f8f8f8;
        border-radius: 8px;
        opacity: 0;
        overflow: hidden;
        transition: all 0.3s ease-in-out;
    }

    .jury-member.bio-visible .jury-bio {
        max-height: 1000px;
        margin-top: 15px;
        padding: 10px;
        opacity: 1;
    }

    .jury-member {
        transition: all 0.3s ease-in-out;
    }

    .jury-member.bio-visible {
        padding-bottom: 30px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    }

    .jury-photo {
        cursor: pointer;
    }
}

/* Awards Section Styles */
.awards-container {
    padding: 20px;
    text-align: center;
}

.award-item {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.award-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.award-title {
    color: var(--primary-color);
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
}

.award-winner {
    color: var(--secondary-color);
    font-size: 1.2em;
    font-style: italic;
    margin-top: 10px;
}

.winners-pending {
    color: var(--text-color);
    font-style: italic;
    opacity: 0.8;
}

/* Utility Classes */
.no-padding {
    padding: 0 !important;
}

.text-center {
    text-align: center !important;
}

.body-frozen {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* PDF Icon Styles */
.pdf-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="%23ff6e40" d="M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm250.2-143.7c-12.2-12-47-8.7-64.4-6.5-17.2-10.5-28.7-25-36.8-46.3 3.9-16.1 10.1-40.6 5.4-56-4.2-26.2-37.8-23.6-42.6-5.9-4.4 16.1-.4 38.5 7 67.1-10 23.9-24.9 56-35.4 74.4-20 10.3-47 26.2-51 46.2-3.3 15.8 26 55.2 76.1-31.2 22.4-7.4 46.8-16.5 68.4-20.1 18.9 10.2 41 17 55.8 17 25.5 0 28-28.2 17.5-38.7zm-198.1 77.8c5.1-13.7 24.5-29.5 30.4-35-19 30.3-30.4 35.7-30.4 35zm81.6-190.6c7.4 0 6.7 32.1 1.8 40.8-4.4-13.9-4.3-40.8-1.8-40.8zm-24.4 136.6c9.7-16.9 18-37 24.7-54.7 8.3 15.1 18.9 27.2 30.1 35.5-20.8 4.3-38.9 13.1-54.8 19.2zm131.6-5s-5 6-37.3-7.8c35.1-2.6 40.9 5.4 37.3 7.8z"/></svg>') center/contain no-repeat;
}

.pdf-icon:hover {
    opacity: 1;
}

.project-acronym {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 992px) { /* Adjust breakpoint for nav changes */
    .top-navigation-bar {
        padding: 0 15px;
    }
    
    .main-nav .main_navigation_list > li {
        margin-left: 2px;
    }
    
    .main-nav .main_navigation_list li a {
        padding: 8px 10px;
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    .banner-container {
        flex-wrap: wrap;
    }
    
    .banner-item {
        max-width: 100%;
    }

    body {
        padding-top: 0; /* Remove padding when nav is not fixed or changes layout */
    }
    
    .top-navigation-bar {
        flex-direction: column;
        position: static;
        height: auto;
        padding: 15px;
    }
    
    .logo-container {
        margin-bottom: 15px; /* Space between logo and nav */
    }
    .logo-container .site-logo {
      height: 40px;
    }

    .main-nav .main_navigation_list {
        flex-direction: column;
        width: 100%;
    }
    
    .main-nav .main_navigation_list > li {
        width: 100%;
        margin: 0;
    }
    
    .dropdown-menu {
        position: static;
        background-color: rgba(255,255,255,0.1);
        box-shadow: none;
        width: 100%;
    }
    
    .main-nav .main_navigation_list li a {
        text-align: center;
        padding: 12px;
    }

    .main-content-area {
        padding: 20px 15px; /* Adjust padding for smaller screens */
    }

    .project-grid {
        grid-template-columns: 1fr; /* Single column for projects */
    }

    .sponsors-list {
        flex-direction: column; /* Stack sponsors vertically */
        align-items: center;
    }

    .sponsor-item {
        width: 80%; /* Wider sponsor items on small screens */
        margin-bottom: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr; /* Single column for contact section */
    }
}

