@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');
@import url('header-footer.css');
@import url('search.css');

* {
    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,
.section-header h3 a,
.event-item h4,
.nsf-logo,
.about-text-overlay,
.history-section h2,
.numbers-header h2,
.number-value,
.topics-covered h2,
.topic-item h3,
.resources-list-section h2,
.topics-covered-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,
.numbertext,
.caption-container,
.hero-description,
.institute-card p,
.nsf-logo-container p,
.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;
}

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

.pagination {
    margin-top: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
    white-space: nowrap;
}

.pagination button {
    margin: 0 6px;
    padding: 0;
    border: 2px solid #e0e0e0;
    background-color: #fff;
    color: #282828;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: 'Source Sans Pro', sans-serif;
}

.pagination button:hover {
    border-color: #0073e6;
    color: #0073e6;
}

.pagination button.active {
    background-color: #0073e6;
    border-color: #0073e6;
    color: #fff;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button:disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #e0e0e0;
    color: #282828;
}

.pagination button:focus-visible {
    outline: 3px solid rgba(0, 115, 230, 0.6);
    outline-offset: 3px;
}

.pagination-page {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.pagination-nav {
    min-width: 72px;
    height: 45px;
    padding: 0 14px;
    border-radius: 999px;
}

.pagination-ellipsis {
    margin: 0 6px;
    color: #282828;
    font-weight: 600;
    letter-spacing: 0.08em;
    font-family: 'Source Sans Pro', sans-serif;
}

@media (max-width: 992px) {
    .pagination-page {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .pagination-nav {
        min-width: 68px;
        height: 40px;
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .pagination {
        justify-content: center;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 4px;
    }

    .pagination::-webkit-scrollbar {
        display: none;
    }

    .pagination-page {
        width: 38px;
        height: 38px;
        margin: 0 4px;
    }

    .pagination-nav {
        min-width: 62px;
        height: 38px;
        margin: 0 4px;
        padding: 0 10px;
    }

    .pagination-ellipsis {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .pagination-page {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }

    .pagination-nav {
        min-width: 58px;
        height: 35px;
        padding: 0 9px;
        font-size: 0.85rem;
    }
}

.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 140px;
    background-color:#ffffff;
    text-align: center;
    white-space: normal;
    position: relative;
    z-index: 2;
    overflow: visible;
}

.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;
    align-items: flex-start;
    gap: 20px;
    max-width: none;
    width: max-content;
    margin: 0 auto;
    padding-bottom: 40px;
}

.resources-institute-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 30px;
    text-align: center;
}

.resources-baserow {
    padding-bottom: 80px;
}

.resources-institute-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 24px 0;
}

.resources-institute-item.divider {
    border-top: 1px solid #d6d6d6;
    margin-top: 4px;
    padding-top: 32px;
}

.resources-institute-logo {
    width: 140px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

.resources-institute-logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.resources-institute-content {
    flex: 1;
    text-align: center;
}

.resources-institute-content h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #282828;
}

.resources-institute-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #282828;
    margin: 0;
    text-align: left;
}

/* Resources page typography sizing */
body.resources-page .introduction p,
body.resources-page .topics-covered-resources-grid .resource-content p,
body.resources-page .resources-institute-content p {
    font-size: 16px;
}

.resources-institute-action {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-self: center;
}

.resources-institute-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    width: 142px;
    height: 104px;
    border-radius: 18px;
    clip-path: polygon(6% 0, 100% 0, 100% 88%, 94% 100%, 0 100%, 0 12%);
    background-color: #ffffff;
    border: 2px solid #218367;
    color: #218367;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    box-shadow: 0 10px 20px rgba(33, 131, 103, 0.15);
}

.resources-institute-button:hover {
    transform: translateY(-2px);
    background-color: #218367;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(33, 131, 103, 0.28);
}


@media (max-width: 900px) {
    .resources-institute-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .resources-institute-action {
        width: 100%;
    }

    .resources-institute-button {
        width: 100%;
        height: auto;
        min-height: 72px;
        clip-path: polygon(4% 0, 100% 0, 100% 92%, 96% 100%, 0 100%, 0 8%);
        text-align: center;
    }
}

.institute-card {
    display: flex;
    flex-shrink: 0;
    width: 230px;
    height: auto;
    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: visible;
    flex-direction: column;
    align-items: stretch;
    position: relative;
}

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

.institute-card-link {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 15px 8px;
    text-decoration: none;
    color: inherit;
    height: 300px;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.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;
}

.institute-card-toggle {
    width: 100%;
    border: none;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    cursor: default;
    border-radius: 0 0 15px 15px;
}

.institute-card-toggle-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.institute-card-details {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 16px;
    background: #fff;
    border-radius: 0 0 15px 15px;
    margin-top: -12px;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    text-align: center;
    z-index: 20;
    box-shadow: 0 8px 12px -10px rgba(0, 0, 0, 0.18);
}

.institute-card:hover .institute-card-details {
    max-height: 420px;
    opacity: 1;
    padding: 22px 16px 16px;
}

.institute-card-details p {
    font-size: 1rem;
    line-height: 1.5;
}

.institute-card:hover .institute-card-toggle-icon {
    transform: rotate(180deg);
}

.explore-resources-section {
    background: radial-gradient(circle at center, #9D55CE 0%, #8244AC 100%);
    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: #fff;
}

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

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

.explore-resources-button:hover {
    background-color: #9B63CE;
    color: #fff;
    border-color: #fff;
    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;
    padding-top: 24px;
}

.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: none;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.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: 0;
    background-color: transparent;
    border-radius: 0;
    color: #fff;
    font-weight: 500;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.05rem;
}

.tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 12px);
    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;
}

.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: #282828;
    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: #282828;
    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: #282828;
    margin-bottom: 10px;
    text-align: center;
}

.hdr-action-subtitle {
    font-size: 1.3rem;
    color: #282828;
    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: 12px;
    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: 8px;
}

.event-link:hover .event-item h4,
.event-link:focus-visible .event-item h4 {
    color: #0074E0;
    text-decoration: none;
}

.event-link:hover .event-date,
.event-link:focus-visible .event-date {
    color: #282828;
}

.event-link:hover .event-location,
.event-link:focus-visible .event-location {
    color: #0074E0;
}

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

.event-date {
    font-size: 1rem;
    color: #282828;
    margin: 0 0 6px 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 > .home-news-grid {
    margin-top: -8px;
}
.news-section .section-header {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.home-news-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.home-news-grid .news-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.home-news-grid .news-image-wrapper {
    flex: 0 0 200px;
    aspect-ratio: 4 / 3;
    height: auto;
    background: #f3f5f7;
}

.home-news-grid .news-image {
    object-fit: cover;
    height: 100%;
    width: 100%;
    display: block;
}

.home-news-grid .news-image-overlay {
    display: none;
}

.home-news-grid .news-title {
}

.home-news-grid .news-description {
}

@media (max-width: 1366px) {
    .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) {
    .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;
        padding-top: 20px;
    }
    .resource-icon-item { flex: 0 1 45%; max-width: 180px; }
    .resource-icon-circle { width: 80px; height: 80px; }
    .resource-icon-text { font-size: 0.95rem; }
    .explore-resources-text h2 {
        font-size: 2rem;
    }
    .institutes-section {
        padding: 30px 0;
        overflow-x: hidden;
        overflow-y: visible;
    }
    .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 {
        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;
    }

}

.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: #282828;
    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: #282828;
    margin: 0;
}

.number-label {
    font-size: 1rem;
    color: #282828;
    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 {
        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;
}

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

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

.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: #282828;
    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: #282828;
    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: #282828;
    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: #282828;
    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: #282828;
    margin-bottom: 10px;
}

.resources-list-section li::before {
    content: "•"; 
    color: #282828;
    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) {
    .introduction {
        margin: 20px auto;
    }
}

.about-page {
}

.about-page a {
    text-decoration: underline;
}

.about-page a:hover {
    color: #0074E0;
    text-decoration: underline;
}

.about-page p {
    font-size: 16px;
}

.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: #282828;
    margin-bottom: 20px;
    font-weight: 700;
}

.history-section p {
    margin-bottom: 20px;
}

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: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

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

.content-wrapper p {
    line-height: 1.6;
    color: #282828;
}

.image-with-text-wrapper {
    display: flow-root;
}

.image-container {
    float: left;
    width: min(48%, 420px);
    margin: 0 2rem 1rem 0;
}

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

.description-content {
    max-width: none;
}

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

@media (max-width: 768px) {
    .image-container,
    .description-content {
        float: none;
        width: 100%;
        max-width: 100%;
    }

    .image-container {
        margin: 0 0 1.5rem;
    }
    
    .content-wrapper h2 {
        font-size: 2rem;
    }
    
}

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

@media (max-width: 1024px) {
    .gradient-banner {
        height: 150px; 
    }
    .about-text-overlay {
        font-size: 2.5rem;
    }
    .introduction,
    .topics-covered,
    .topics-covered-resources,
    .publications-topics,
    .resources-list-section .list-container,
    .how-to-start .content-wrapper,
    .publications-how-to-start .content-wrapper,
    .resources-baserow .content-wrapper,
    .publications-resources-baserow .content-wrapper {
        max-width: 820px;
        margin-left: auto;
        margin-right: auto;
    }
    .introduction {
        text-align: center;
    }
    .introduction p {
        margin-left: auto;
        margin-right: auto;
    }
    .history-section {
        margin: 30px auto;
        padding: 0 15px;
    }
    .history-section h2 {
        font-size: 2rem;
    }

    .history-section svg path {
        pointer-events: none;
    }

    .history-section svg a {
        pointer-events: none;
    }

    .history-section svg a.state-link {
        pointer-events: auto;
    }

    .history-section svg path[data-id="CO"],
    .history-section svg path[data-id="WA"],
    .history-section svg path[data-id="IL"],
    .history-section svg path[data-id="OH"],
    .history-section svg path[data-id="MD"] {
        fill: #5f84ff;
        stroke: #2f5fd1;
        filter: drop-shadow(0 0 4px rgba(95, 132, 255, 0.6));
        pointer-events: auto;
    }

    .introduction p,
    .topic-item ul li,
    .resource-content p,
    .resources-list-section li,
    .publications-topics .topic-item p,
    .news-and-updates 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;
}

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

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

.topics-covered-resources-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.topics-covered-resources-grid .resource-item {
    margin: 0;
    padding: 20px;
    min-height: 0;
    gap: 20px;
    flex-direction: column;
    border-radius: 12px;
    background-color: #fff;
}

.topics-covered-resources-grid .resource-content,
.topics-covered-resources-grid .resource-image {
    max-width: 100%;
}

.topics-covered-resources-grid .resource-content h3,
.topics-covered-resources-grid .resource-content p {
    text-align: left;
}

.topics-covered-resources-grid .resource-content h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.topics-covered-resources-grid .resource-content p {
    font-size: 1rem;
    line-height: 1.6;
}

.topics-covered-resources-grid .resource-image img {
    height: 220px;
    object-fit: cover;
}

.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: #282828;
}

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

.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) {
    .topics-covered-resources {
        padding: 40px 15px;
    }

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

    .topics-covered-resources-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

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

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

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

    .resources-institute-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 18px;
        padding: 22px 18px;
    }

    .resources-institute-logo {
        justify-content: center;
        margin: 0 auto;
    }

    .resources-institute-logo img {
        margin: 0 auto;
    }

    .resources-institute-content {
        text-align: center;
    }

    .resources-institute-content p {
        text-align: center;
    }

    .resources-institute-action {
        width: 100%;
    }

    .resources-institute-button {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 72px;
        clip-path: none;
        border-radius: 16px;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: center;
        justify-content: center;
        line-height: 1.4;
    }
}

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

    .resources-institute-item {
        padding: 18px 14px;
    }

    .resources-institute-logo img {
        max-width: min(180px, 70vw);
        height: auto;
    }

    .resources-institute-button {
        padding: 12px 16px;
        min-height: 68px;
        font-size: 0.95rem;
    }

    .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: #282828;
    margin-bottom: 20px;
    font-family: 'IBM Plex Sans', sans-serif;
}

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

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

.introduction h2 {
    font-size: 2rem;
    color: #282828;
    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;
}

.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: #282828;
    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: #282828;
    margin-top: 0;
    margin-bottom: 15px;
}

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

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

/* Publications page: keep topic icons compact and centered */
body.publications-page .publications-topics .topic-item img {
    width: 160px;
    height: 160px;
    max-width: none;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: 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: center;
        text-align: center;
    }

    body.publications-page .publications-topics .topic-item img {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .introduction,
    .topics-covered,
    .topics-covered-resources,
    .publications-topics,
    .resources-list-section .list-container,
    .how-to-start .content-wrapper,
    .publications-how-to-start .content-wrapper,
    .resources-baserow .content-wrapper,
    .publications-resources-baserow .content-wrapper {
        max-width: 640px;
    }
}

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

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

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

.publications-baserow-embed-wrapper {
    max-width: 1200px;
    margin: 20px auto 0;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.publications-resources-baserow {
    margin-top: 60px;
    margin-bottom: 48px;
}

.publications-baserow-embed-wrapper iframe {
    width: 100%;
    height: 620px;
    border: 0;
    display: block;
}

.publications-guide-embed-wrapper {
    max-width: 1200px;
    margin: 20px auto 0;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.publications-guide-embed-wrapper iframe {
    width: 100%;
    height: 530px;
    border: 0;
    display: block;
}

.publications-guide-fallback {
    margin-top: 12px;
    font-size: 0.95rem;
    text-align: center;
}

.publications-guide-fallback a {
    color: #0074E0;
    text-decoration: underline;
}

.publications-guide-heading-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.publications-guide-heading-row h2 {
    margin: 0;
}

.publications-guide-download-btn {
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid #0074E0;
    border-radius: 25px;
    color: #0074E0;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.publications-guide-download-btn:hover,
.publications-guide-download-btn:focus-visible {
    background-color: #0074E0;
    color: #fff;
}

.publications-baserow-actions {
    margin-top: 16px;
}

.publications-heading-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.publications-heading-row h2 {
    margin: 0;
}

.publications-open-new-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border: 1px solid #0074E0;
    border-radius: 25px;
    color: #0074E0;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.publications-open-new-tab:hover,
.publications-open-new-tab:focus-visible {
    background-color: #0074E0;
    color: #fff;
}

.publications-open-new-tab:hover .arrow,
.publications-open-new-tab:focus-visible .arrow {
    transform: translateX(6px);
}

@media (max-width: 768px) {
    .publications-baserow-embed-wrapper iframe {
        height: 500px;
    }

    .publications-guide-embed-wrapper iframe {
        height: 460px;
    }

    .publications-heading-row {
        gap: 10px;
    }

    .publications-guide-heading-row {
        gap: 10px;
    }
}

.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: #282828;
}

.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: #0074E0;
}

.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: #282828;
}

.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;
}

html, body { overflow-x: hidden; }

@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: 12px;
    width: 100%;
    padding: 0 4px 8px;
  }

  .institute-card {
    margin: 0;
    width: 100%;
    max-width: 600px;
    height: auto;
  }

  .institute-card-link {
    padding: 18px 16px;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 18px;
    height: auto;
  }

  .institute-logo-area {
    width: 96px;
    height: 96px;
    margin-bottom: 0;
  }

  .institute-card h3 {
    font-size: 1.1rem;
    min-height: 0;
    text-align: left;
  }

  .institute-card-details {
    text-align: left;
    display: none;
  }

  .institute-card-toggle {
    display: none;
  }

  .home-news-grid {
    flex-direction: column;
    gap: 14px;
  }

  .home-news-grid .news-image-wrapper {
    flex-basis: 140px;
    aspect-ratio: 4 / 3;
    height: auto;
    background: #f3f5f7;
  }

  .home-news-grid .news-card {
    flex-direction: row;
  }

  .home-news-grid .news-content {
    padding: 14px 14px 16px;
  }

  .home-news-grid .news-title {
    font-size: 1.05rem;
  }
}

@media (min-width: 601px) {
  .home-news-grid {
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
  }

  .home-news-grid .news-card {
    flex-direction: column;
    width: 305px;
    max-width: 305px;
  }
}

@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 {
    width: 170px;
  }

  .institute-card-link {
    height: 260px;
  }
}

*:focus,
*:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

a,
button,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}
