@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;700&family=Source+Sans+Pro:wght@300;400;600&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Source Sans Pro', sans-serif;
    background-color: #ffffff;
    color: #282828;
}

* {
    font-family: 'Source Sans Pro', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.hero-title,
.learn-more-btn,
.section-title,
.explore-resources-text h2,
.explore-resources-button,
.resource-icon-text,
.footer-section h3,
.section-header h3 a,
.event-item h4,
.nsf-logo,
.about-text-overlay,
.history-section h2,
.numbers-header h2,
.number-value,
.header-banner .header-title,
.topics-covered h2,
.topic-item h3,
.resources-list-section h2,
.types-of-resources h2,
.resource-content h3,
.news-and-updates h1,
.carousel-title,
.carousel-subtitle,
.slide-content h3,
.hdr-action-subtitle {
    font-family: 'IBM Plex Sans', sans-serif;
}

p,
.nav-links li a,
.dropdown-menu li a,
.numbertext,
.caption-container,
.hero-description,
.institute-card p,
.footer-section,
.footer-section p,
.nsf-logo-container p,
.footer-bottom,
.event-date,
.event-location,
.magazine-tagline,
.institute-page-hero p,
.institute-details p,
.institute-details ul li,
.history-section p,
.number-label,
.introduction p,
.topic-item ul li,
.resources-list-section li,
.resource-content p,
.news-and-updates p,
.slide-content p,
button,
input,
select,
textarea,
span,
div,
a,
label {
    font-family: 'Source Sans Pro', sans-serif;
}

.under-construction-banner {
    background: #fff4c2;
    color: #8a5a00;
    text-align: center;
    padding: 10px 20px;
    font-weight: 700;
    border-bottom: 1px solid #f0d778;
    letter-spacing: 0.5px;
}

.has-construction-banner {
    --banner-height: 44px;
}

.has-construction-banner .under-construction-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--banner-height);
    padding: 0 20px;
}

a {
    color: inherit;
    text-decoration: none;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
    display: grid;
    grid-template-columns: auto 1fr auto; 
    align-items: center;
    padding: 10px 40px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    gap: 20px;
}

.logo {
    flex-shrink: 0;
    justify-self: start;
}

.logo img {
    height: 60px;
}

.nav {
    justify-self: center; 
    white-space: nowrap;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.nav-links li a {
    color: #000000;
    font-weight: 700;
    padding: 10px 0;
    display: block;
    transition: color 0.2s ease, border-color 0.2s ease;
    border-bottom: 2px solid transparent;
}

.nav-links li a:hover {
    color: #0050c8;
    border-color: #0050c8;
}

.nav-links li a:focus-visible {
    outline: 2px solid #0050c8;
    outline-offset: 2px;
    border-color: #0050c8;
}

.dropdown {
    position: relative;
}

.dropdown > a:after {
    content: ' \25BE';
    font-size: 10px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 200px;
    border-radius: 5px;
}

.dropdown-menu li a {
    padding: 10px 20px;
    white-space: nowrap;
    font-weight: 400;
    color: inherit;
}

.dropdown-menu li a:hover {
    background-color: #f0f0f0;
    color: #007bff;
}

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

.search-container {
    display: flex;
    align-items: center;
    flex: 0 1 300px;
    background: #f5f5f5;
    border-radius: 20px;
    border: 1px solid #ddd;
    position: relative;
    padding: 0 10px;
    margin: 0 20px;
}

.search-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-icon-btn img {
    height: 20px;
    width: 20px;
}

.search-bar {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 5px;
    font-size: 14px;
    outline: none;
}

.search-bar::placeholder {
    color: #999;
}

.search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    min-width: 300px;
}

.search-results-list {
    padding: 10px 0;
}

.search-result-item {
    display: block;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    transition: background 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f9f9f9;
}

.search-result-title {
    font-weight: 600;
    color: #0066cc;
    margin-bottom: 4px;
    font-size: 14px;
}

.search-result-snippet {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    max-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    justify-self: end; 
}

.hero-section {
    position: relative;
    height: auto;
    color: white;
    padding: 80px;
    text-align: left;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start; 
    max-width: 1200px;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 0;
    line-height: 1.1;
    max-width: 45%;
    margin-left: 70px;
}

.hero-description-container {
    max-width: 50%;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.learn-more-btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
}

.learn-more-btn:hover {
    background-color: white;
    color: #0074E0;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><pattern id="circuit" patternUnits="userSpaceOnUse" width="40" height="40"><path d="M0 20h40M20 0v40M10 10h20M30 30h10M10 30h10" stroke="rgba(255,255,255,0.1)" stroke-width="1" fill="none"/></pattern></defs><rect width="100%" height="100%" fill="url(%23circuit)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.container {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.mySlides {
    display: none;
}

.cursor {
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 40%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
    background-color: rgba(0, 0, 0, 0.5);
    border-top-left-radius: 10px;
}

.caption-container {
    text-align: center;
    background-color: #222;
    padding: 10px 16px;
    color: white;
    font-size: 1.1em;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.row:after {
    content: "";
    display: table;
    clear: both;
}

.column {
    float: left;
    width: 16.66%;
    padding: 5px;
}

.demo {
    opacity: 0.6;
    transition: opacity 0.3s ease;
    border-radius: 5px;
}

.active, .demo:hover {
    opacity: 1;
}

 
.institutes-section {
    padding: 80px 40px;
    background-color:#ffffff;
    text-align: center;
    overflow-x: auto;
    white-space: normal;
    -webkit-overflow-scrolling: touch;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #282828;
    margin-bottom: 40px;
    white-space: normal;
}

.institutes-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
    max-width: none;
    width: max-content;
    margin: 0 auto;
}

.institute-card-link {
    display: block;
    flex-shrink: 0;
    width: 230px;
    height: 400px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.institute-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.institute-card {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 15px;
}

.institute-logo-area {
    width: 150px;
    height: 180px;
    border-radius: 50%;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #fff;
    flex-shrink: 0;
}

.institute-logo-placeholder {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 10px;
}

.institute-card h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #282828;
    margin: 0 0 12px 0;
    text-align: center;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.institute-card p {
    font-size: 0.85rem;
    color: #282828;
    line-height: 1.4;
    text-align: center;
    margin: 0;
}

.explore-resources-section {
    background-color: #F8F4FD;
    padding: 60px 80px;
    display: flex;
    justify-content: center;
}

.explore-resources-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.explore-resources-text {
    flex: 1;
    max-width: 50%;
    text-align: left;
}

.explore-resources-text h2 {
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #333;
}

.explore-resources-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    color: #282828;
}

.explore-resources-button {
    margin-top: 20px;
    display: inline-block;
    padding: 12px 30px;
    background-color: #9B63CE;
    border: 2px solid #9B63CE;
    border-radius: 25px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.explore-resources-button:hover {
    background-color: white;
    color: #9B63CE;
    border-color: #9B63CE;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.explore-resources-icons {
    flex: 1;
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.resource-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.resource-icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #5A8FCE;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.resource-icon-circle img {
    max-width: 60%;
    max-height: 60%;
    filter: invert(36%) sepia(87%) saturate(2250%) hue-rotate(200deg) brightness(96%) contrast(98%);
    transition: transform 0.3s ease;
}

.resource-icon-text {
    padding: 5px 15px;
    background-color: #C3DBFF;
    border-radius: 20px;
    color: #1A237E;
    font-weight: 500;
    font-size: 0.9rem;
}

.tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    color: #002D5C;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    pointer-events: none;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    max-width: 300px;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.resource-icon-item:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.footer {
    background-color: #0074E0;
    color: white;
    padding: 40px 80px 20px;
    margin-top: 0;
    font-size: 0.9em;
    line-height: 1.6;
}

.footer-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    max-width: 1200px;
    margin: 0 auto 30px;
    padding-left: 100px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section.about {
    margin-left: 100px;
}

.footer-section.links {
    margin-left: 80px;
}

.footer-section.institutes {
    margin-left: -100px; 
}

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-section p,
.footer-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ffffff;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
    text-decoration: underline;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
}

.nsf-logo-container {
    display: flex;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

.nsf-logo-container img {
    height: 90px;
}

.nsf-logo-container p {
    font-size: 0.9em;
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.page-main-content {
    padding: 40px 0;
    background-color: #fff;
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: left;
}

.institute-page-hero {
    padding-bottom: 20px;
}

.institute-page-hero h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    text-align: left;
}

.institute-page-hero p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #282828;
    text-align: left;
}

.institute-details h2 {
    margin-bottom: 15px;
}

.institute-details p {
    margin-bottom: 15px;
}

.institute-details ul {
    list-style-type: disc;
    margin-left: 20px;
    color: #282828;
    margin-bottom: 15px;
}

.institute-details ul li {
    margin-bottom: 8px;
}

.related-institutes-section {
    padding: 40px 0;
    margin-top: 50px;
    background-color: transparent;
    border-top: none;
    text-align: center;
    overflow-x: auto;
    white-space: normal;
    -webkit-overflow-scrolling: touch;
}

.related-institutes-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
    white-space: normal;
    padding: 0 20px;
    box-sizing: border-box;
}

.related-institutes-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
    padding: 0 20px 20px 20px;
    box-sizing: border-box;
    width: fit-content;
    min-width: 100%;
    margin: 0;
}

.hdr-action-section {
    background-color: #ffffff;
    padding: 50px 40px;
    margin-top: 0;
}

.hdr-action-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hdr-action-title {
    font-size: 3rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 10px;
    text-align: center;
}

.hdr-action-subtitle {
    font-size: 1.3rem;
    color: #000000;
    margin-bottom: 28px;
    text-align: center;
}

.hdr-action-content {
    display: flex;
    gap: 36px;
    align-items: flex-start;
    justify-content: flex-start;
}

.section-header {
    margin-bottom: 30px;
}

.hdr-action-section .news-section .section-header {
    margin-bottom: 18px;
}

.section-header h3 a {
    color: inherit;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.section-header h3 a:hover {
    color: #007bff;
}

.arrow {
    color: inherit;
    font-size: 1.5rem;
    font-weight: normal;
    display: inline-block;
    transition: transform 0.25s ease;
}

.section-header h3 a:hover .arrow {
    transform: translateX(6px);
}

.events-section {
    flex: 0 1 305px;
    max-width: 305px;
}

.events-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-right: 10px;
}

.event-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.event-item {
    border-radius: 20px;
    background: #FFF;
    box-shadow: none;
    
    display: flex;
    width: 100%;
    height: auto;
    padding: 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.event-item:hover {
    box-shadow: none;
    
}

.event-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.event-date {
    font-size: 1rem;
    color: #666;
    margin: 0 0 10px 0;
    font-style: italic;
}

.event-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #9D55CE;
    margin: 0;
}

.location-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.news-section {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.news-section > div {
    display: flex;
    gap: 18px;
    justify-content: flex-start;
    margin-top: -8px; 
}
.news-section .section-header {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 1024px) {
    .hdr-action-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .events-section {
        max-width: none;
    }
    
    .hdr-action-title {
        font-size: 2.5rem;
    }
    
    .hdr-action-subtitle {
        font-size: 1.1rem;
    }
    
    .section-header h3 {
        font-size: 1.8rem;
    }
    
    .news-image {
        height: 200px;
    }

    .news-card {
        width: 100%;
    }

    .events-container {
        width: 100%;
    }

    .event-item {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 20px;
        grid-template-columns: auto 1fr auto; 
        gap: 10px;
    }

    .logo {
        flex-shrink: 0;
    }

    .logo img {
        height: 50px;
    }

    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #ddd;
        padding: 20px;
        width: 100%;
        z-index: 999;
        justify-self: stretch;
    }

    .nav.active {
        display: block;
    }

    
    .search-container {
        flex: 0 0 auto;
        width: 40px;
        background: transparent;
        border: none;
        padding: 0;
        margin: 0;
        margin-left: auto;
    }

    .search-bar {
        display: none;
    }

    .search-results {
        display: none !important;
    }

    .header-actions {
        gap: 5px;
        display: flex !important;
        z-index: 1001;
        justify-self: end;
    }

    
    .hamburger {
        display: flex !important;
    }

    .nav-links {
        flex-direction: column;
        gap: 15px;
        padding: 0;
    }

    .nav-links li a {
        padding: 10px 0;
        color: #000000;
        border-bottom: 2px solid transparent;
    }

    .dropdown-menu {
        display: none;
        position: static;
        box-shadow: none;
        margin-top: 10px;
        padding-left: 20px;
        background: #f9f9f9;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .hero-section {
        padding: 60px 20px;
    }
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .hero-title, .hero-description-container {
        max-width: 100%;
        margin-left: 0;
    }
    .explore-resources-section {
        padding: 40px 30px;
    }
    .explore-resources-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .explore-resources-text {
        max-width: 100%;
    }
    .explore-resources-icons {
        justify-content: center;
        gap: 16px 20px;
        flex-wrap: wrap;              
    }
    .resource-icon-item { flex: 0 1 45%; max-width: 180px; }
    .resource-icon-circle { width: 80px; height: 80px; }
    .resource-icon-text { font-size: 0.85rem; }
    .explore-resources-text h2 {
        font-size: 2rem;
    }
    .footer {
        padding: 30px 20px;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-left: 0;
    }
    .footer-section {
        margin-bottom: 20px;
        min-width: unset;
        margin-left: 0 !important;
    }
    .institutes-section {
        padding: 30px 0;
        overflow-x: hidden;
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .institutes-grid {
        padding: 0 15px 15px 15px;
        gap: 15px;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .institute-card-link {
        width: 200px;
    }
    .institute-card h3 {
        font-size: 1.4rem;
    }
    .institute-card p {
        font-size: 0.85rem;
    }
    .container {
        margin: 20px auto;
    }
    .prev, .next {
        padding: 12px;
        font-size: 18px;
        margin-top: -30px;
    }
    .numbertext {
        font-size: 10px;
        padding: 6px 10px;
    }
    .caption-container {
        padding: 8px 10px;
        font-size: 0.9em;
    }
    .column {
        padding: 3px;
    }
    .related-institutes-section {
        padding: 30px 0;
    }
    .related-institutes-section h2 {
        padding: 0 15px;
    }
    .related-institutes-grid {
        padding: 0 15px 15px 15px;
        gap: 15px;
        justify-content: flex-start;
    }
    .related-institutes-grid .institute-card-link {
        width: 180px;
    }

    .hdr-action-content {
        flex-direction: column;
        gap: 30px;
    }

    .news-section,
    .events-section {
        max-width: 100%;
        flex: none;
    }

    .news-section > div {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .news-card {
        width: 100% !important;
        height: auto;
        max-width: 100%;
    }

    .news-image {
        height: 200px;
    }

    .hdr-magazine {
        height: 200px;
    }

    .news-overlay {
        opacity: 0;
        pointer-events: none;
    }

    .news-image-wrapper:hover .news-overlay {
        opacity: 0;
    }

    .events-container {
        width: 100% !important;
        flex-direction: column;
        gap: 20px;
    }

    .event-item {
        width: 100% !important;
        height: auto;
    }

    .section-header h3 {
        font-size: 1.5rem;
    }

    .news-title {
        font-size: 1.1rem;
    }

    .news-description {
        font-size: 0.9rem;
    }

    .event-item h4 {
        font-size: 1rem;
    }

    .event-date {
        font-size: 0.85rem;
    }

    .search-results {
        min-width: 100%;
    }
}

.numbers-section {
    padding: 30px 40px;
    padding-bottom: 80px;
    padding-top: 20px;
    background-color: #ffffff;
    text-align: center;
}

.numbers-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 50px;
}

.numbers-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.number-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 200px;
}

.number-icon {
    width: 80px;
    height: 80px;
}

.number-value {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.number-label {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

@media (max-width: 768px) {
    .numbers-grid {
        flex-wrap: wrap;
        gap: 40px 20px;
    }

    .number-item {
        max-width: 45%;
    }
}

@media (max-width: 480px) {
    .number-item {
        max-width: 100%;
    }

    .institute-card-link {
        width: 180px;
    }
    .institutes-grid {
        padding: 0 10px 10px 10px;
        gap: 10px;
    }
    .institute-logo-area {
        width: 70px;
        height: 70px;
    }
    .prev, .next {
        padding: 10px;
        font-size: 16px;
        margin-top: -25px;
    }
    .caption-container {
        font-size: 0.8em;
    }
    .related-institutes-grid .institute-card-link {
        width: 180px;
    }
    .related-institutes-grid {
        padding: 0 10px 10px 10px;
        gap: 10px;
    }

    .news-card {
        width: 100%;
        height: auto;
    }

    .event-item {
        width: 100%;
        height: auto;
    }

    .news-date {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .news-title {
        font-size: 1rem;
    }

    .news-description {
        font-size: 0.85rem;
    }

    .event-item h4 {
        font-size: 0.95rem;
    }

    .event-date {
        font-size: 0.8rem;
    }

    .event-location {
        font-size: 0.8rem;
    }
}

main {
    padding-bottom: 50px;
}

.header-banner {
    position: relative;
    width: 100%;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.header-banner .background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.header-title-box {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 20px 60px;
    border-radius: 10px;
    width: 800px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 1;
    backdrop-filter: blur(5px);
}

.header-banner .header-title {
    font-size: 3rem;
    color: #333;
    font-weight: 700;
    margin: 0; 
    text-align: center;
}

.introduction {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.introduction h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}

.introduction p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #282828;
}

.introduction p a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.topics-covered {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.topics-covered h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 40px;
}

.topics-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.topic-item {
    padding: 0;
    flex: 1 1 200px;
    max-width: 250px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.topic-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000;
    margin-top: 0;
    margin-bottom: 15px;
}

.topic-item ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.topic-item ul li {
    font-size: 1rem;
    color: #000000;
    line-height: 1.5;
    margin-bottom: 8px;
}

@media (max-width: 1200px) {
    .topics-container {
        gap: 20px;
    }
    .topic-item {
        flex: 1 1 200px;
    }
}

@media (max-width: 768px) {
    .topics-covered h2 {
        font-size: 2rem;
    }
    .topics-container {
        flex-direction: column;
        align-items: center;
    }
    .topic-item {
        max-width: 100%;
    }
}

.resources-list-section {
    background-color: #f5f5f500;
    padding: 50px 0;
}

.resources-list-section .list-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.resources-list-section .list-column {
    flex: 1;
    min-width: 0;
}

.resources-list-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
}

.resources-list-section ul {
    list-style-type: none; 
    padding: 0;
    margin: 0;
    line-height: 1.6;
}

.resources-list-section li {
    font-size: 1.1rem;
    color: #000000;
    margin-bottom: 10px;
}

.resources-list-section li::before {
    content: "•"; 
    color: #000000;
    font-weight: bold;
    display: inline-block;
    width: 1em; 
    margin-left: -1em;
}

@media (max-width: 768px) {
    .resources-list-section .list-container {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .header-banner {
        height: 150px;
    }

    .header-title-box {
        padding: 15px 40px;
    }

    .header-banner .header-title {
        font-size: 2rem;
    }

    .introduction {
        margin: 20px auto;
    }
}

.about-page {
}

.gradient-banner {
    position: relative;
    width: 100%;
    height: 250px; 
    overflow: hidden;
}

.gradient-banner img {
    width: 100%;
    display: block;
    height: 100%;
    object-fit: cover; 
}

.about-text-overlay {
    position: absolute;
    top: 50%;
    left: 290px;
    transform: translateY(-50%); 
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    text-align: left; 
    white-space: nowrap;
}

.history-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    line-height: 1.6;
    color: #282828;
}

.history-section h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.history-section p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

svg {
    color: #ffffff;
    display: block;
    margin: 0 auto;
    max-width: 1000px;
}
path {
    fill: currentColor;
    stroke: #000;
    stroke-width: 1;
}

a {
    transition: color 1s;
}

a:hover {
    color: #0074E0;
    transition: color 0s;
}

.about-us-section {
    padding: 2rem;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-wrapper {
    text-align: center;
}

.content-wrapper h2 {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 1rem;
}

.content-wrapper p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #000000;
}

.image-with-text-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.image-container {
    flex: 1;
    max-width: 50%;
}

.image-container img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

.description-content {
    flex: 1;
    max-width: 50%;
}

.description-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #000000;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .image-with-text-wrapper {
        flex-direction: column;
    }

    .image-container,
    .description-content {
        max-width: 100%;
    }
    
    .content-wrapper h2 {
        font-size: 2rem;
    }
    
    .content-wrapper p {
        font-size: 1rem;
    }
    
    .description-content p {
        font-size: 0.95rem;
    }
}

.svg-tooltip {
    position: fixed;
    display: none;
    padding: 10px;
    background-color: #333;
    color: #fff;
    border-radius: 5px;
    font-size: 14px;
    pointer-events: none;
    z-index: 1000;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .gradient-banner {
        height: 150px; 
    }
    .about-text-overlay {
        font-size: 2.5rem;
    }
    .history-section {
        margin: 30px auto;
        padding: 0 15px;
    }
    .history-section h2 {
        font-size: 2rem;
    }
    .history-section p {
        font-size: 1rem;
    }
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px; 
    margin-bottom: 20px; 
}

.jump-to-resources {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #007bff;
    border-radius: 25px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.jump-to-resources:hover {
    background-color: #007bff;
    color: white;
}

.history-section svg path {
    fill: #ffffff;
    transition: fill 0.2s ease;
    cursor: default;
}

.history-section svg path:hover {
    fill: #ffffff; 
}

.history-section svg path[data-id="CO"]:hover,
.history-section svg path[data-id="WA"]:hover,
.history-section svg path[data-id="IL"]:hover,
.history-section svg path[data-id="OH"]:hover,
.history-section svg path[data-id="MD"]:hover {
    fill: #4678ff;
    stroke: #2f5fd1;
    cursor: pointer;
}

.types-of-resources {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.types-of-resources h2 {
    font-size: 2.5rem;
    font-weight: bold;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.resource-item {
    display: flex;
    align-items: stretch;
    gap: 60px;
    margin-bottom: 10px;
    padding: 40px;
    min-height: 400px;
}

.resource-content {
    flex: 1;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.resource-content h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000000;
}

.resource-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #000000;
    text-align: justify;
}

.resource-image {
    flex: 1;
    max-width: 500px;
    display: flex;
    align-items: center;
}

.resource-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .types-of-resources {
        padding: 40px 15px;
    }

    .types-of-resources h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .resource-item {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 50px;
    }

    .resource-content {
        max-width: 100%;
    }

    .resource-content h3 {
        font-size: 1.5rem;
        text-align: center;
    }

    .resource-content p {
        font-size: 1rem;
        text-align: left;
    }

    .resource-image {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .types-of-resources h2 {
        font-size: 1.8rem;
    }

    .resource-content h3 {
        font-size: 1.3rem;
    }

    .resource-content p {
        font-size: 0.95rem;
    }
}

.how-to-start {
    padding: 10px 20px;
    text-align: center;
}

.how-to-start .content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.how-to-start h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
    font-family: 'IBM Plex Sans', sans-serif;
}

.news-and-updates {
    line-height: 1.6;
    color: #000000;
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
}

.introduction {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.introduction h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
    font-family: 'IBM Plex Sans', sans-serif;
}

.introduction p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #282828;
    font-family: 'Source Sans Pro', sans-serif;
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.jump-to-publications {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #007bff;
    border-radius: 25px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.jump-to-publications:hover {
    background-color: #007bff;
    color: white;
}

.publications-topics {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.publications-topics h2 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 40px;
}

.publications-topics .topics-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.publications-topics .topic-item {
    padding: 0;
    flex: 1 1 200px;
    max-width: 300px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.publications-topics .topic-item h3 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    margin-top: 0;
    margin-bottom: 15px;
}

.publications-topics .topic-item p {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    color: #000000;
    line-height: 1.5;
    margin-bottom: 20px;
}

.publications-topics .topic-item img {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-top: auto;
}

@media (max-width: 1200px) {
    .publications-topics .topics-container {
        gap: 20px;
    }
    .publications-topics .topic-item {
        flex: 1 1 200px;
    }
}

@media (max-width: 768px) {
    .publications-topics h2 {
        font-size: 2rem;
    }
    .publications-topics .topics-container {
        flex-direction: column;
        align-items: center;
    }
    .publications-topics .topic-item {
        max-width: 100%;
        align-items: flex-start;
    }
}

.news-and-updates h1 {
    font-size: 2.5em;
    color: #000000;
    margin-bottom: 10px;
}

.news-and-updates h1 strong {
    font-weight: 700;
}

.news-and-updates p {
    font-size: 1.1em;
    color: #000000;
    text-align: justify;
}

.news-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: 305px;
    height: auto;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid #e0e0e0;
}

.news-card:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.06);
}

.news-image {
    width: 100%;
    height: 320px; 
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.news-image-wrapper {
    position: relative;
    overflow: hidden;
}

.news-overlay {
    display: none;
}

.news-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.3px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 12px;
    font-family: 'IBM Plex Sans', sans-serif;
    z-index: 1;
}

.news-card.news-card-linked:hover .news-image-overlay {
    opacity: 1;
}

.news-card.news-card-linked:hover .news-image {
    transform: scale(1.05);
    filter: brightness(0.8);
}

.news-card.news-card-linked .news-date {
    transition: all 0.3s ease;
    z-index: 2;
}

.news-card.news-card-linked:hover .news-date {
    background: linear-gradient(135deg, #9D55CE, #B277F2);
    transform: scale(1.05);
}

.read-more-link {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
}

.read-more-link:hover {
    background-color: white;
    color: #333;
}

.news-date {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 0.8rem; 
    color: #FFFFFF !important;
    background: linear-gradient(135deg, #9D55CE, #9D55CE); 
    padding: 6px 12px; 
    border-radius: 0 0 20px 0;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
    z-index: 2;
}

.news-card:hover .news-date {
    background: linear-gradient(135deg, #9D55CE, #B277F2);
    transform: scale(1.05);
}

.news-content {
    padding: 18px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    flex-grow: 1;
}

.news-title {
    font-size: 1.25rem;
    margin: 0 0 8px 0;
    text-align: left;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.3s ease;
    min-height: 54px;
    color: #282828;
}

.news-card:hover .news-title {
    color: #0059b3;
}

.news-description {
    font-size: 0.94rem;
    color: #282828;
    text-align: left !important;
    line-height: 1.6;
    transition: color 0.3s ease;
    margin: 0;
}

.news-card:hover .news-description {
    color: #333;
}

.hdr-magazine {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    width: 100%;
    height: 200px;
}

.magazine-content {
    padding: 20px;
}

.nsf-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: white;
    color: #4ECDC4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    margin: 0 auto 15px;
}

.magazine-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.magazine-tagline {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.9;
    margin: 0;
}

.footer a,
.footer a:visited {
  color: #ffffff;
  text-decoration: none;
}

.footer a:hover,
.footer a:focus {
  color: #e6f0ff;
  text-decoration: underline;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #007bff;
    transition: 0.3s ease-in-out;
    border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-8px, 8px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-8px, -8px);
}

@media (max-width: 768px) {
    
    .hamburger {
        display: flex !important;
    }
}

html, body { overflow-x: hidden; }

.header {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.nav {
  flex: 1 1 auto;
  min-width: 0;                
}
.nav-links { justify-content: center; }

.search-container { order: 2; }
.header-actions   { order: 3; }

.search-container {
  margin-left: auto;           
  margin-right: 8px;           
}

.search-container {
  display: flex;
  align-items: center;
  flex: 0 1 clamp(200px, 28vw, 380px);  
  min-width: 0;                          
  overflow: hidden;                      
}

.search-bar {
  flex: 1 1 auto;
  min-width: 0;                          
  width: 100%;
}

.search-results {
  width: 100%;
  max-width: 100%;
  left: 0;
  right: auto;
  min-width: 0;                           
}

.header-actions .hamburger { flex-shrink: 0; }

@media (max-width: 768px) {
  .nav { display: none; }                 
  .search-container {
    flex: 0 1 65%;
    min-width: 0;
    margin-left: auto;                    
    margin-right: 8px;
  }
}

.search-container {
  position: relative;   
  overflow: hidden;     
}

.search-bar {
  position: relative;
  z-index: 2;           
  pointer-events: auto; 
  display: block;       
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 8px;
  font-size: 14px;
}

.search-icon-btn {
  position: relative;
  z-index: 3;           
  flex-shrink: 0;
  padding: 6px;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;             
  z-index: 1;           
  max-width: 100%;
}

@media (max-width: 768px) {
  .search-bar { display: block; }
}

.search-container {
  flex: 0 1 250px;      
  max-width: 260px;     
  min-width: 160px;     
  margin-left: 10px;
  overflow: hidden;
}

.search-bar {
  width: 100%;
  min-width: 0;
  flex: 1;
}

@media (max-width: 1100px) {
  .search-container { max-width: 220px; }
}

@media (max-width: 900px) {
  .search-container { max-width: 190px; }
}

@media (max-width: 768px) {
  .search-container {
    flex: 0 1 60%;
    max-width: 180px;
    min-width: 120px;
  }
}

.header {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.nav {
  flex: 1 1 auto;
  min-width: 0;
}
.nav-links { justify-content: center; }

.search-container { order: 2; }
.header-actions  { order: 3; }

.search-container {
  margin-left: auto;            
  margin-right: 8px;            
}

.header-actions { flex: 0 0 auto; }
.header-actions .hamburger { flex-shrink: 0; }

.search-container {
  display: flex;
  align-items: center;
  flex: 0 1 220px;              
  max-width: 240px;             
  min-width: 160px;             
  overflow: hidden;             
}

.search-bar {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  position: relative;
  z-index: 2;                   
}

.search-icon-btn { position: relative; z-index: 3; }

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;                     
  max-width: 100%;
  z-index: 1;                   
}

@media (max-width: 1100px) {
  .search-container { flex-basis: 200px; max-width: 210px; }
}
@media (max-width: 900px) {
  .search-container { flex-basis: 180px; max-width: 190px; }
}

@media (max-width: 600px) {
  .institutes-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    text-align: center;
  }

  .section-title {
    text-align: center;
    width: 100%;
    margin-bottom: 25px;
  }

  .institutes-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center !important;  
    gap: 18px;
    width: 100%;
  }

  .institute-card-link {
    margin: 0 auto;       
    width: 200px;         
    height: 420px;
  }

  .institute-card {
    padding: 18px 14px;
  }

  .institute-logo-area {
    width: 170px;
    height: 200px;
  }
}

@media (max-width: 1024px) and (min-width: 601px) {
  .institutes-section {
    padding: 40px 20px;
    overflow-x: hidden;
  }

  .institutes-grid {
    flex-wrap: nowrap;
    gap: 12px;
    justify-content: center;
    width: 100%;
  }

  .institute-card-link {
    width: 170px;
    height: 320px;
  }
}

.header {
  position: fixed;        
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;          
  background-color: #ffffff;
}

body {
  padding-top: 80px;      /* match the fixed header height to remove extra gap before banners */
}

.has-construction-banner .header {
  top: var(--banner-height);
}

body.has-construction-banner {
  padding-top: calc(80px + var(--banner-height));
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 70px;            
    left: 0;
    right: 0;
    background-color: #fff;
    width: 100%;
    z-index: 1999;
    max-height: 80vh;
    overflow-y: auto;
  }

  body.has-construction-banner .nav {
    top: calc(70px + var(--banner-height));
  }
}

/* Search results page */
.search-page {
  padding-top: 40px;
}

.search-results-page {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px 80px;
}

.search-results-page-header h1 {
  font-size: 32px;
  margin-bottom: 6px;
  color: #0f1d40;
}

.search-page-subtitle {
  color: #4b5563;
  margin-bottom: 24px;
  font-size: 16px;
}

.search-results-page-message {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  color: #4b5563;
  font-size: 15px;
}

.search-results-page-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-result-item-page {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.search-result-item-page .search-result-title {
  color: #0f1d40;
  font-size: 18px;
  margin-bottom: 8px;
}

.search-result-item-page .search-result-snippet {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .search-results-page {
    margin: 40px auto 60px;
  }

  .search-results-page-header h1 {
    font-size: 26px;
  }
}
