* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Noto Sans Devanagari", "Mangal", Arial, Helvetica, sans-serif;
    color: #1f2933;
    background: #f6f8fb;
}

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

.top-banner {
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 10px 5.7% 10px 24%;
    background: #EfE2c4;
    position: relative;
}

.top-banner::after {
    display: none;
}

.banner-logo {
    position: absolute;
    left: 7%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 170px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
    color: #9a1b1b;
    font-weight: bold;
    font-size: 12px;
}

.banner-logo::after {
    content: "नोंदणी क्र. महा. / ८६०२ / १८ / सोलापुर एफ-११८३३)\A(N.C.T.E. Code No. APW 03824/123458 (M)";
    display: none;
    margin-top: 8px;
    color: #b45309;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: pre;
}

.portrait {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    object-position: center center;
    background: #EFE2C4;
    padding: 8px;
    box-shadow: none;
}

.banner-logo span {
    display: none;
}

.banner-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    text-align: center;
    min-height: 60px;
    padding: 8px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
    background: #EfE2c4;
    border-radius: 4px;
}

.banner-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    position: static;
    max-width: none;
    text-align: center;
    color: #b45309;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    order: 3;
    margin-top: 5px;
    width: 100%;
    white-space: nowrap;
}

.banner-row > strong:first-child {
    font-size: 0;
}

.banner-row > strong:first-child::before {
    content: "नोंदणी क्र. महा. / ८६०२ / १८ / सोलापुर एफ-११८३३";
    font-size: 13px;
}

.banner-content p {
    margin: 0 0 2px;
    color: #7c2d12;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.1;
}

.banner-content h1 {
    margin: 0;
    color: #102a43;
    font-size: clamp(28px, 2.45vw, 36px);
    font-weight: 800;
    line-height: 1.12;
    text-shadow: none;
    width: 100%;
    text-align: center;
    letter-spacing: 0;
    white-space: nowrap;
}

.banner-content h2 {
    margin: 2px 0 0;
    color: #8b1e3f;
    font-size: clamp(20px, 1.8vw, 26px);
    font-weight: 800;
    line-height: 1.16;
    width: 100%;
    text-align: center;
    letter-spacing: 0;
}

.banner-content .ncte-code {
    display: inline-block;
    position: static;
    max-width: none;
    margin-left: 0;
    color: #b45309;
    font-size: inherit;
    font-weight: 700;
    line-height: inherit;
    text-align: center;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    margin-top: 0;
    margin-left: 0;
    background: #171b34;
    box-shadow: 0 8px 22px rgba(16, 42, 67, 0.22);
}

.site-header::before {
    display: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    width: 100%;
    padding: 0;
    color: #ffffff;
    gap: 24px;
}

.header-inner::before {
    display: none;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-weight: bold;
    min-width: 0;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid #f9c74f;
    background: #ffffff;
}

.brand span {
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
    color: #ffffff;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 24px;
    padding: 0 5.7%;
}

.main-nav a,
.dropdown-toggle {
    position: relative;
    padding: 21px 0 20px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.main-nav a::after,
.dropdown-toggle::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 16px;
    height: 3px;
    background: #f9c74f;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus,
.dropdown-toggle:hover,
.dropdown-toggle:focus {
    color: #f9c74f;
}

.main-nav a:hover::after,
.main-nav a:focus::after,
.nav-dropdown:hover .dropdown-toggle::after,
.nav-dropdown:focus-within .dropdown-toggle::after {
    transform: scaleX(1);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 20;
    display: none;
    min-width: 190px;
    padding: 8px 0;
    background: #EFE2C4;
    border-top: 3px solid #b45309;
    box-shadow: 0 12px 24px rgba(8, 23, 34, 0.28);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: #102a43;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
    background: #b45309;
    color: #ffffff;
}

.menu-button {
    display: none;
    border: 0;
    background: #f9c74f;
    color: #102a43;
    width: 40px;
    height: 38px;
    border-radius: 4px;
    font-size:50px;
    cursor: pointer;
}

.hero-slider {
    position: relative;
    aspect-ratio: 1440 / 416;
    min-height: 240px;
    max-height: 520px;
    overflow: hidden;
    background: #eef4f8;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
   
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.tagline,
.section-title span,
.contact-section span {
    display: inline-block;
    color: #b83232;
    font-weight: bold;
    letter-spacing: 0;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 10px;
}

.hero h2 {
    margin: 0;
    max-width: 760px;
    font-size: 48px;
    line-height: 1.08;
    color: #ffffff;
}

.hero p {
    max-width: 650px;
    color: #eef4f8;
    font-size: 18px;
    line-height: 1.7;
}

.hero-text {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.primary-btn,
.secondary-btn,
.course-card a,
.contact-section button {
    display: inline-block;
    border: 0;
    border-radius: 4px;
    padding: 13px 22px;
    font-weight: bold;
    cursor: pointer;
}

.primary-btn,
.contact-section button {
    background: #c81e1e;
    color: #ffffff;
}

.secondary-btn,
.course-card a {
    background: #102a43;
    color: #ffffff;
}

.hero-dots {
    position: absolute;
    left: 7%;
    bottom: 28px;
    z-index: 2;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 32px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.hero-dots button.active {
    background: #f9c74f;
}

.section {
    padding: 64px 7%;
    background: #f4ecd8;
}

.soft-section {
    background: #efe2c4;
}

.section-title {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-title h2,
.contact-section h2 {
    margin: 0;
    color: #102a43;
    font-size: 34px;
}

.page-section {
    min-height: 100vh;
}

.page-text {
    max-width: 850px;
    margin: 0 0 26px;
    color: #52606d;
    font-size: 20px;
    line-height: 1.8;
}

.back-link {
    display: inline-block;
    border-radius: 4px;
    padding: 13px 22px;
    background: #102a43;
    color: #ffffff;
    font-weight: 800;
}

.finance-page .section-title,
.library-page .section-title {
    max-width: none;
    text-align: center;
}

.finance-grid,
.library-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 980px;
    margin: 34px auto 28px;
}

.library-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1180px;
}

.finance-card,
.library-card {
    display: block;
    min-height: 230px;
    padding: 34px;
    border: 1px solid #d9c89f;
    border-radius: 8px;
    background: #fbf6e8;
    box-shadow: 0 12px 28px rgba(16, 42, 67, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.library-card {
    overflow: hidden;
    padding: 0;
}

.library-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.library-card-content {
    padding: 28px;
}

.finance-card:hover,
.finance-card:focus,
.library-card:hover,
.library-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(16, 42, 67, 0.14);
}

.finance-card span,
.library-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: #EFE2C4;
    color: #b45309;
    font-size: 20px;
    font-weight: 900;
}

.finance-card h3,
.library-card h3 {
    margin: 0 0 12px;
    color: #102a43;
    font-size: 30px;
    line-height: 1.15;
}

.finance-card p,
.library-card p {
    margin: 0;
    color: #52606d;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.7;
}

.library-card span {
    margin-bottom: 18px;
}

.library-card h3 {
    font-size: 26px;
}

.simple-page-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    min-height: 64px;
    padding: 0 7%;
    background: #171b34;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(16, 42, 67, 0.18);
}

.simple-page-header a {
    padding: 22px 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
}

.simple-page-header a:hover,
.simple-page-header a:focus {
    color: #f9c74f;
}

.contact-page {
    background: #f4ecd8;
}

.contact-hero {
    min-height: 330px;
    display: flex;
    align-items: center;
    padding: 72px 7%;
    background: #EFE2C4;
}

.contact-hero > div {
    max-width: 860px;
}

.contact-hero span,
.form-title span,
.contact-info-card span {
    display: inline-block;
    margin-bottom: 10px;
    color: #b83232;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-hero h1 {
    margin: 0;
    color: #102a43;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.05;
}

.contact-hero p {
    max-width: 720px;
    margin: 18px 0 0;
    color: #52606d;
    font-size: 20px;
    line-height: 1.7;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 30px;
    padding: 56px 7%;
}

.contact-info-panel {
    display: grid;
    gap: 18px;
}

.contact-info-card,
.contact-form-panel {
    background: #fbf6e8;
    border: 1px solid #d9c89f;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(16, 42, 67, 0.08);
}

.contact-info-card {
    padding: 24px;
}

.contact-info-card h2,
.form-title h2 {
    margin: 0 0 10px;
    color: #102a43;
    font-size: 26px;
}

.contact-info-card p {
    margin: 0;
    color: #52606d;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.7;
}

.form-status {
    margin: 0 0 14px;
    color: #0f766e;
    font-size: 15px;
    font-weight: 800;
}

.contact-form-panel {
    padding: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-form-panel select {
    width: 100%;
    border: 1px solid #bcccdc;
    border-radius: 4px;
    padding: 14px;
    font-family: inherit;
    font-size: 15px;
    background: #ffffff;
}

.contact-form-panel button {
    border: 0;
    border-radius: 4px;
    padding: 15px 22px;
    background: #c81e1e;
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.contact-map-section {
    padding: 0 7% 64px;
}

.contact-map-section iframe {
    width: 100%;
    height: 360px;
    display: block;
    border: 0;
    border-radius: 8px;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
}

.two-column p {
    font-size: 17px;
    line-height: 1.8;
    color: #52606d;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.stats div,
.course-card {
    background: #fbf6e8;
    border: 1px solid #d9c89f;
    border-radius: 8px;
    padding: 22px;
}

.stats strong {
    display: block;
    color: #c81e1e;
    font-size: 30px;
}

.stats span {
    color: #52606d;
}

.course-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: 0 10px 24px rgba(16, 42, 67, 0.08);
}

.course-card h3 {
    margin-top: 0;
    color: #102a43;
}

.course-card p {
    color: #52606d;
    line-height: 1.7;
}

.facility-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 34px 28px;
    max-width: 1180px;
    margin: 0 auto;
}

.facility-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column: span 2;
    gap: 34px 28px;
}

.facility-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    text-align: center;
}

.facility-icon {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #d5e2df;
    color: #102a43;
    font-size: 32px;
    font-weight: 900;
}

.facility-icon img {
    width: 82px;
    height: 82px;
    display: block;
    object-fit: contain;
}

.facility-item h3 {
    margin: 0;
    color: #204566;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

#facilities .section-title {
    max-width: none;
    text-align: center;
    margin: 0 auto 34px;
}

#facilities .section-title span {
    font-size: 10px;
}

#facilities .section-title h2 {
    font-size: clamp(42px, 4.6vw, 64px);
    line-height: 1.08;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.gallery-card {
    margin: 0;
    overflow: hidden;
    background: #fbf6e8;
    border: 1px solid #d9c89f;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(16, 42, 67, 0.08);
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.gallery-card:hover img,
.gallery-card:focus-within img {
    transform: scale(1.04);
}

.gallery-card figcaption {
    padding: 14px 16px 16px;
    color: #102a43;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    background: #fbf6e8;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    background: rgba(8, 23, 34, 0.9);
}

.image-lightbox.show {
    display: flex;
}

.image-lightbox img {
    max-width: min(1100px, 94vw);
    max-height: 78vh;
    display: block;
    border-radius: 8px;
    object-fit: contain;
    background: #EFE2C4;
}

.image-lightbox p {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #EFE2C4;
    color: #102a43;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.contact-section {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 36px;
    align-items: start;
    padding: 64px 7%;
    background: #204566;
    color: #ffffff;
}

.contact-section h2 {
    color: #f9c74f;
}

.contact-section p {
    color: #d9e2ec;
    line-height: 1.7;
}

form {
    display: grid;
    gap: 14px;
}

input,
textarea {
    width: 100%;
    border: 1px solid #bcccdc;
    border-radius: 4px;
    padding: 14px;
    font-family: inherit;
    font-size: 15px;
}

.site-footer {
    margin-top: 22px;
    background: #081722;
    color: #d9e2ec;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 44px;
    padding: 48px 7% 36px;
}

.footer-grid h3 {
    margin: 0 0 34px;
    color: #ffffff;
    font-size: 20px;
    text-transform: uppercase;
}

.footer-grid p {
    margin: 0 0 18px;
    color: #bcccdc;
    line-height: 1.7;
    font-weight: 700;
}

.footer-grid a {
    display: block;
    width: 100%;
    padding: 0 0 10px;
    margin-bottom: 10px;
    border-bottom: 1px dotted rgba(217, 226, 236, 0.5);
    color: #d9e2ec;
    font-weight: 700;
}

.footer-grid a:hover {
    color: #f9c74f;
}

.footer-address p {
    position: relative;
    padding-left: 30px;
}

.footer-icon {
    position: absolute;
    left: 0;
    top: 0;
    color: #ffffff;
    font-size: 18px;
}

.footer-map {
    width: 100%;
    height: 200px;
    display: block;
    border: 0;
}

.footer-bottom {
    padding: 16px 7%;
    text-align: center;
    border-top: 1px solid rgba(217, 226, 236, 0.16);
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom > p {
    margin-bottom: 8px;
}

@media (max-width: 900px) {
    .top-banner {
        align-items: center;
        justify-content: flex-start;
        padding: 10px 12px;
        gap: 12px;
    }

    .banner-logo {
        position: static;
        transform: none;
        width: 88px;
        min-height: 88px;
        margin: 0;
    }

    .banner-logo::after {
        display: none;
    }

    .banner-content {
        min-height: 58px;
        padding: 8px 10px;
        text-align: center;
        align-items: center;
        gap: 4px;
    }

    .portrait {
        width: 86px;
        height: 86px;
    }

    .banner-row {
        max-width: none;
        text-align: center;
        font-size: 11px;
        gap: 12px;
        white-space: nowrap;
    }

    .banner-content .ncte-code {
        display: inline-block;
        margin: 0;
        font-size: inherit;
    }

    .banner-content h1 {
        font-size: clamp(18px, 5vw, 28px);
        line-height: 1.2;
        white-space: normal;
    }

    .banner-content h2 {
        font-size: clamp(15px, 4vw, 21px);
        line-height: 1.18;
    }

    .banner-content .ncte-code {
        max-width: none;
        font-size: inherit;
    }

    .menu-button {
        display: block;
        flex-shrink: 0;
        position: relative;
        z-index: 2;
        font-size: 26px;
    }

    .site-header {
        width: 100%;
        margin-left: 0;
    }

    .site-header::before {
        display: none;
    }

    .header-inner {
        min-height: 64px;
        padding: 0 16px;
        justify-content: space-between;
    }

    .header-inner::before {
        display: none;
    }

    .brand {
        min-width: 0;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .brand span {
        max-width: 52vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .main-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 64px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 16px 14px;
        background: #171b34;
    }

    .main-nav a,
    .dropdown-toggle {
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        width: 100%;
        font-size: 15px;
    }

    .main-nav a::after,
    .dropdown-toggle::after {
        display: none;
    }

    .main-nav.show {
        display: flex;
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        display: block;
        min-width: 0;
        padding: 0 0 8px;
        background: #EFE2C4;
        border-top: 0;
        box-shadow: none;
    }

    .dropdown-menu a {
        padding: 11px 18px;
        font-size: 14px;
        text-align: center;
    }

    .two-column,
    .contact-section,
    .contact-layout,
    .form-grid,
    .finance-grid,
    .library-grid {
        grid-template-columns: 1fr;
    }

    .simple-page-header {
        justify-content: flex-start;
        gap: 18px;
        overflow-x: auto;
        padding: 0 16px;
    }

    .simple-page-header a {
        flex: 0 0 auto;
        font-size: 14px;
    }

    .contact-hero {
        min-height: 0;
        padding: 48px 7%;
    }

    .contact-hero h1 {
        font-size: clamp(34px, 9vw, 46px);
    }

    .contact-hero p {
        font-size: 18px;
    }

    .contact-form-panel {
        padding: 22px;
    }

    .hero-slider {
        min-height: 160px;
    }

    .hero-slide {
        padding: 0;
    }

    .hero h2 {
        font-size: 34px;
    }

    .stats,
    .facility-columns,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .facility-column {
        grid-template-columns: repeat(2, 1fr);
        grid-column: auto;
    }

    .facility-item {
        gap: 12px;
    }

    .facility-icon {
        width: 104px;
        height: 104px;
        font-size: 26px;
    }

    .facility-icon img {
        width: 58px;
        height: 58px;
    }

    .facility-item h3 {
        font-size: 19px;
    }

    #facilities .section-title h2 {
        font-size: clamp(34px, 8vw, 46px);
    }

    .course-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
