:root {
    --iisc-blue: #0b2942;
    --iisc-blue-soft: #123a5d;
    --iisc-gold: #d7a64a;
    --iisc-surface: #f2f6fa;
    --iisc-border: #d6e1ea;
    --iisc-text: #1f2d3d;
}

body {
    color: var(--iisc-text);
    background: #fff;
}

.iisc-topbar {
    background: #082135;
    color: #d8e7f4;
    font-size: 13px;
}

.iisc-topbar-wrap {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.iisc-topbar-right {
    display: flex;
    gap: 14px;
}

.iisc-topbar a {
    color: #d8e7f4;
}

.iisc-navbar-wrap {
    background: var(--iisc-blue);
    transition: all 0.25s ease;
    z-index: 1050;
}

.iisc-navbar-wrap.is-sticky {
    position: sticky;
    top: 0;
    box-shadow: 0 10px 22px rgba(6, 25, 40, 0.2);
}

.iisc-navbar {
    min-height: 86px;
}

.iisc-brand img {
    max-height: 58px;
    width: auto;
}

.iisc-menu .nav-link {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 28px 14px;
}

.iisc-menu .nav-link.active,
.iisc-menu .nav-link:hover {
    color: var(--iisc-gold);
}

.iisc-dropdown .dropdown-menu {
    margin-top: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(6px);
    display: block;
    visibility: hidden;
    transition: all 0.2s ease;
}

.iisc-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.iisc-dropdown .dropdown-item {
    font-size: 14px;
    padding: 10px 16px;
}

.iisc-menu-toggle {
    border: 0;
    width: 44px;
    height: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.iisc-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 0 auto;
}

.iisc-mobile-panel {
    width: 300px;
}

.iisc-mobile-panel .offcanvas-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.iisc-mobile-panel .offcanvas-body a {
    padding: 10px 0;
    border-bottom: 1px solid var(--iisc-border);
    font-weight: 600;
    color: var(--iisc-blue);
}

.iisc-top-split {
    margin-top: 16px;
}

.iisc-hero-slide {
    position: relative;
    width: min(100%, var(--slide-width, 100%));
    margin: 0 auto;
    height: var(--slide-height, 560px);
    background-size: cover;
    background-position: center;
}

.iisc-hero-fallback {
    background: linear-gradient(135deg, #0b2942, #1e4f75);
}

.iisc-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(9, 34, 53, 0.84), rgba(9, 34, 53, 0.45));
}

.iisc-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    color: #fff;
    padding: 130px 48px 42px;
}

.iisc-hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #fff;
}

.iisc-hero-content p {
    font-size: 18px;
    margin-bottom: 24px;
}

.iisc-btn {
    display: inline-block;
    background: var(--iisc-gold);
    color: #0f2133;
    padding: 12px 22px;
    border-radius: 2px;
    font-weight: 700;
}

.iisc-main-grid {
    margin-top: 30px;
    margin-bottom: 40px;
}

.iisc-block {
    border: 1px solid var(--iisc-border);
    background: #fff;
}

.iisc-block-title {
    background: var(--iisc-blue);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 13px 16px;
}

.iisc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.iisc-list li {
    padding: 14px 16px;
    border-bottom: 1px solid var(--iisc-border);
}

.iisc-list li:last-child {
    border-bottom: 0;
}

.iisc-list .iisc-date {
    display: block;
    color: #5f7386;
    font-size: 12px;
    margin-bottom: 3px;
}

.iisc-ann-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #c9c9c9;
    border-bottom: 0;
    padding: 8px 10px;
    background: #ededed;
}

.iisc-ann-head h3 {
    margin: 0;
    color: #0f7f8f;
    font-size: 18px;
    line-height: 1;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
}

.iisc-ann-head a {
    color: #0f7f8f;
    font-size: 14px;
    line-height: 1;
    font-family: Georgia, "Times New Roman", serif;
}

.iisc-ann-wrap {
    height: var(--ticker-height, 560px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.iisc-announce-ticker {
    border: 1px solid #c9c9c9;
    background: #ededed;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow-y: auto;
}

.iisc-ann-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px;
}

.iisc-ann-date-card {
    min-width: 78px;
    border: 1px solid #18889a;
}

.iisc-ann-date-card span {
    display: block;
    background: #18889a;
    color: #fff;
    text-align: center;
    font-size: 16px;
    line-height: 1.1;
    padding: 4px 6px;
    font-family: Georgia, "Times New Roman", serif;
}

.iisc-ann-date-card strong {
    display: block;
    text-align: center;
    color: #18889a;
    font-size: 18px;
    line-height: 1.1;
    padding: 2px 6px 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
}

.iisc-ann-body a,
.iisc-ann-body span {
    color: #18889a;
    font-size: 14px;
    line-height: 1.35;
    font-family: Georgia, "Times New Roman", serif;
}

.iisc-new-badge {
    display: inline-block;
    background: #d62f2f;
    color: #fff;
    font-size: 11px;
    border-radius: 2px;
    padding: 2px 6px;
    margin-right: 8px;
}

.iisc-news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 16px;
}

.iisc-news-card {
    border: 1px solid var(--iisc-border);
    background: var(--iisc-surface);
}

.iisc-news-thumb {
    display: block;
    height: 150px;
    overflow: hidden;
    background: #d9e6f2;
}

.iisc-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iisc-news-thumb-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--iisc-blue);
    font-weight: 700;
}

.iisc-news-body {
    padding: 12px;
}

.iisc-news-body h4 {
    font-size: 16px;
    line-height: 1.4;
    margin: 6px 0 0;
}

.iisc-menu-thumbnails {
    margin-top: 18px;
    margin-bottom: 26px;
}

.iisc-menu-thumb-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.iisc-menu-thumb-card {
    position: relative;
    display: block;
    height: 224px;
    border: 1px solid #d7d7d7;
    overflow: hidden;
    background: var(--thumb-bg, #0b2942);
}

.iisc-menu-thumb-image,
.iisc-menu-thumb-image img {
    display: block;
    width: 100%;
    height: 100%;
}

.iisc-menu-thumb-image img {
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 0.35s ease;
}

.iisc-menu-thumb-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3, 9, 18, 0.86) 0%, rgba(3, 9, 18, 0.58) 18%, rgba(3, 9, 18, 0.18) 48%, rgba(3, 9, 18, 0) 72%);
    pointer-events: none;
}

.iisc-menu-thumb-title {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 6px;
    z-index: 1;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 40px;
    line-height: 1.04;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.iisc-menu-thumb-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 24px;
    background: linear-gradient(135deg, rgba(4, 30, 52, 0.7), rgba(4, 110, 145, 0.55));
}

.iisc-menu-thumb-card:hover img {
    transform: scale(1.07);
}

.iisc-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.iisc-link-list li a {
    display: block;
    border-bottom: 1px solid var(--iisc-border);
    padding: 11px 16px;
    color: var(--iisc-blue-soft);
    font-weight: 600;
}

.iisc-cards-section {
    margin: 0 auto 55px;
}

.iisc-section-head {
    margin-bottom: 18px;
}

.iisc-section-head h2 {
    color: var(--iisc-blue);
    font-size: 32px;
    margin: 0;
}

.iisc-info-card {
    border: 1px solid var(--iisc-border);
    background: #fff;
    height: 100%;
}

.iisc-info-card-thumb {
    height: 190px;
    background: #d9e6f2;
    display: grid;
    place-items: center;
}

.iisc-info-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iisc-info-card-body {
    padding: 16px;
}

.iisc-info-card-body h3 {
    font-size: 21px;
    color: var(--iisc-blue);
}

.iisc-info-card-body a {
    color: var(--iisc-blue-soft);
    font-weight: 700;
}

.iisc-footer {
    background: #061b2c;
    color: #d4e1ec;
    padding: 48px 0 18px;
}

.iisc-footer h5 {
    color: #fff;
    margin-bottom: 14px;
}

.iisc-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.iisc-footer a {
    color: #d4e1ec;
}

.iisc-footer-bottom {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.iisc-social {
    display: flex;
    gap: 10px;
}

.iisc-social a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 991px) {
    .iisc-topbar {
        display: none;
    }

    .iisc-navbar {
        min-height: 72px;
    }

    .iisc-menu {
        display: none;
    }

    .iisc-hero-content {
        padding: 105px 22px 28px;
        max-width: 100%;
    }

    .iisc-hero-content h1 {
        font-size: 34px;
    }

    .iisc-news-grid {
        grid-template-columns: 1fr;
    }

    .iisc-menu-thumb-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .iisc-menu-thumb-card {
        height: 190px;
    }

    .iisc-menu-thumb-title {
        font-size: 34px;
    }

    .iisc-ann-head h3,
    .iisc-ann-head a {
        font-size: 16px;
    }

    .iisc-ann-body a,
    .iisc-ann-body span {
        font-size: 14px;
    }

    .iisc-ann-date-card span {
        font-size: 14px;
    }

    .iisc-ann-date-card strong {
        font-size: 16px;
    }

}

@media (max-width: 575px) {
    .iisc-hero-content {
        padding: 85px 16px 22px;
    }

    .iisc-hero-content h1 {
        font-size: 28px;
    }

    .iisc-section-head h2 {
        font-size: 26px;
    }

    .iisc-ann-item {
        gap: 10px;
    }

    .iisc-menu-thumb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .iisc-menu-thumb-card {
        height: 160px;
    }

    .iisc-menu-thumb-title {
        font-size: 30px;
    }

    .iisc-ann-date-card {
        min-width: 70px;
    }

    .iisc-ann-head h3,
    .iisc-ann-head a {
        font-size: 14px;
    }

    .iisc-ann-body a,
    .iisc-ann-body span {
        font-size: 13px;
    }

    .iisc-ann-date-card span {
        font-size: 13px;
    }

    .iisc-ann-date-card strong {
        font-size: 14px;
    }

    .iisc-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
