:root {
    --bg: #f4f8fb;
    --bg-alt: #ebf3fa;
    --surface: #ffffff;
    --surface-2: #f8fbff;
    --primary: #0f6d7a;
    --primary-dark: #0a4f58;
    --accent: #ff9f1a;
    --ink: #13253a;
    --muted: #4f6578;
    --border: #d8e6f4;
    --success: #2d8f50;
    --shadow: 0 16px 40px rgba(6, 34, 64, 0.09);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --container: min(1150px, 92vw);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Outfit", "Segoe UI", Tahoma, sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top right, #d9efff 0%, var(--bg) 32%, #f8fbff 100%);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

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

.container {
    width: var(--container);
    margin: 0 auto;
}

.section {
    position: relative;
    padding: 5.5rem 0;
}

.section-alt {
    background: linear-gradient(180deg, rgba(235, 243, 250, 0.6), rgba(235, 243, 250, 0.95));
}

.section-head {
    max-width: 760px;
    margin-bottom: 2.2rem;
}

.section-head h2 {
    margin: 0.35rem 0 0.8rem;
    font-family: "Sora", "Trebuchet MS", sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    line-height: 1.22;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.eyebrow {
    margin: 0;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.77rem;
}

.top-strip {
    background: linear-gradient(92deg, #0f6d7a, #1190a0);
    color: #f5fdff;
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.top-strip p {
    margin: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(216, 230, 244, 0.85);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 1.2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.brand-dot {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-family: "Sora", "Trebuchet MS", sans-serif;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #1a8ca1);
    box-shadow: 0 10px 20px rgba(15, 109, 122, 0.28);
}

.brand strong {
    display: block;
    font-family: "Sora", "Trebuchet MS", sans-serif;
    font-size: 1rem;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 0.04rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.site-nav > a {
    padding: 0.3rem 0.35rem;
    color: #1e3650;
    transition: color 0.25s ease;
}

.site-nav > a:hover {
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 44px;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--primary), #118297);
    color: #fff;
    font-weight: 600;
    font-size: 0.94rem;
    box-shadow: 0 8px 22px rgba(15, 109, 122, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(15, 109, 122, 0.3);
    filter: brightness(1.04);
}

.btn:active {
    transform: translateY(0);
}

.btn-outline {
    background: #fff;
    color: var(--primary);
    border-color: rgba(15, 109, 122, 0.35);
    box-shadow: none;
}

.menu-toggle {
    border: 0;
    background: transparent;
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    padding: 0.45rem;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 6px 0;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
    padding-top: 4.5rem;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.82fr;
    gap: 2.25rem;
    align-items: stretch;
}

.hero-content h1 {
    font-family: "Sora", "Trebuchet MS", sans-serif;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.15;
    margin: 0.7rem 0 1rem;
    max-width: 16ch;
}

.lead {
    margin: 0;
    font-size: 1.04rem;
    color: #30475e;
    max-width: 58ch;
}

.hero-actions {
    margin-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.stat-grid {
    margin-top: 1.7rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    gap: 0.75rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 0.9rem;
    box-shadow: var(--shadow);
}

.stat-card h3 {
    margin: 0;
    color: var(--primary-dark);
    font-family: "Sora", "Trebuchet MS", sans-serif;
    font-size: 1.26rem;
}

.stat-card p {
    margin: 0.12rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.hero-panel {
    background: linear-gradient(160deg, #fff 0%, #eef9fc 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    position: relative;
}

.hero-panel h2 {
    margin: 0 0 1rem;
    font-family: "Sora", "Trebuchet MS", sans-serif;
    font-size: 1.4rem;
}

.hero-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.9rem;
}

.hero-panel li {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 0.95rem;
}

.hero-panel strong {
    color: var(--primary-dark);
    font-family: "Sora", "Trebuchet MS", sans-serif;
    letter-spacing: 0.02em;
}

.hero-panel p {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.93rem;
}

.hero-blur {
    position: absolute;
    width: 560px;
    height: 560px;
    right: -180px;
    top: -210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 159, 26, 0.2), transparent 65%);
    pointer-events: none;
}

.about-grid,
.admission-grid,
.notice-grid,
.contact-grid,
.portal-grid {
    display: grid;
    gap: 1rem;
}

.about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-card,
.admission-card,
.notice-card,
.contact-card,
.contact-form,
.portal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    padding: 1.2rem;
}

.about-card h3,
.admission-card h3,
.notice-card h3,
.video-list h3,
.contact-card h3,
.contact-form h3,
.portal-card h3 {
    margin: 0 0 0.75rem;
    font-family: "Sora", "Trebuchet MS", sans-serif;
    font-size: 1.16rem;
}

.tick-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.tick-list li {
    display: flex;
    gap: 0.56rem;
    color: #20374e;
}

.tick-list li::before {
    content: "•";
    color: var(--accent);
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 0.14rem;
}

.course-group + .course-group {
    margin-top: 1.8rem;
}

.course-group h3 {
    margin: 0 0 0.8rem;
    font-size: 1.22rem;
    font-family: "Sora", "Trebuchet MS", sans-serif;
}

.card-grid,
.feature-grid,
.faculty-grid {
    display: grid;
    gap: 1rem;
}

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

.course-card,
.feature-card,
.infra-card,
.event-card,
.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    padding: 1rem;
}

.course-card .code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 30px;
    border-radius: 999px;
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(15, 109, 122, 0.12);
    color: var(--primary-dark);
    margin: 0;
    font-weight: 700;
}

.course-card .dur {
    margin-top: 0.6rem;
    color: var(--success);
    font-weight: 700;
    font-size: 0.88rem;
}

.course-card h4 {
    margin: 0.45rem 0 0.3rem;
    font-size: 1.03rem;
    line-height: 1.35;
}

.course-card p {
    margin: 0;
    color: var(--muted);
}

.course-card a {
    margin-top: 0.85rem;
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
}

.feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
    background: linear-gradient(165deg, #fff, #f4fbff);
}

.feature-card h3 {
    margin: 0;
    font-family: "Sora", "Trebuchet MS", sans-serif;
    font-size: 1.04rem;
}

.feature-card p {
    margin: 0.5rem 0 0;
    color: var(--muted);
}

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

.faculty-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faculty-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.faculty-info {
    padding: 0.9rem;
}

.faculty-info h3 {
    margin: 0;
    font-size: 1.1rem;
}

.faculty-info .role {
    margin: 0.25rem 0 0.55rem;
    color: var(--primary);
    font-weight: 600;
}

.faculty-info p {
    margin: 0.24rem 0;
    color: #2c4458;
    font-size: 0.93rem;
}

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

.infra-card h3 {
    margin: 0 0 0.5rem;
}

.infra-card p {
    margin: 0;
    color: var(--muted);
}

.notice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notice-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.notice-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-2);
}

.notice-list strong {
    display: block;
    line-height: 1.25;
}

.notice-list small {
    color: var(--muted);
}

.notice-list a {
    color: var(--primary-dark);
    font-weight: 700;
}

.mini-note {
    margin: 0.85rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.gallery-card {
    margin: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
}

.gallery-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.gallery-card:hover img {
    transform: scale(1.06);
}

.gallery-card figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.75rem;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(5, 20, 34, 0.8));
    font-weight: 600;
}

.video-list {
    margin-top: 1.35rem;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(15, 109, 122, 0.3);
    padding: 0.42rem 0.8rem;
    color: var(--primary-dark);
    background: rgba(15, 109, 122, 0.08);
    font-weight: 600;
    font-size: 0.88rem;
}

.admission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admission-card ol {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.38rem;
}

.cta-row {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

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

.portal-card p {
    margin: 0;
    color: var(--muted);
}

.portal-btn {
    margin-top: 1.15rem;
}

.event-card .tag {
    margin: 0;
    font-size: 0.79rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.event-card h3 {
    margin: 0.35rem 0;
}

.event-card p {
    margin: 0;
    color: var(--muted);
}

.testimonial-card p {
    margin: 0;
    color: #2a4156;
}

.testimonial-card h3 {
    margin: 0.8rem 0 0;
    font-size: 1rem;
}

.testimonial-card small {
    color: var(--muted);
}

.contact-grid {
    grid-template-columns: 1fr 1fr;
}

.contact-card p {
    margin: 0 0 0.75rem;
    color: #294056;
}

.contact-card iframe {
    width: 100%;
    min-height: 260px;
    border: 0;
    border-radius: 12px;
    margin-top: 0.5rem;
}

.contact-form label {
    display: block;
    margin: 0.68rem 0 0.28rem;
    font-weight: 500;
    color: #233b52;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    min-height: 44px;
    padding: 0.62rem 0.76rem;
    font: inherit;
    color: var(--ink);
    background: #fff;
}

.contact-form textarea {
    min-height: 110px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: rgba(15, 109, 122, 0.7);
    outline: 3px solid rgba(15, 109, 122, 0.15);
}

.contact-form .btn {
    margin-top: 0.9rem;
    width: 100%;
}

.site-footer {
    background: #0f2237;
    color: #deecf8;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 1rem;
    padding: 2.6rem 0 1.8rem;
}

.site-footer h3,
.site-footer h4 {
    margin: 0 0 0.8rem;
    color: #fff;
    font-family: "Sora", "Trebuchet MS", sans-serif;
}

.site-footer p {
    margin: 0 0 0.55rem;
    color: #c4d8eb;
}

.site-footer a {
    display: block;
    margin: 0 0 0.45rem;
    color: #d5e6f6;
}

.site-footer a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(199, 220, 240, 0.2);
    text-align: center;
    padding: 0.95rem 1rem 1.2rem;
}

.footer-bottom p {
    margin: 0;
    color: #c4d8eb;
    font-size: 0.9rem;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.login-shell,
.portal-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at left top, #d8ebfb, #eef5fb 45%, #f6fbff 100%);
    padding: 1.4rem;
}

.login-card,
.portal-card-shell {
    width: min(860px, 94vw);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.login-brand {
    padding: 2.2rem;
    background: linear-gradient(148deg, #0f6d7a, #1f93a7);
    color: #e8fbff;
}

.login-brand h1 {
    margin: 0.2rem 0 0.6rem;
    font-family: "Sora", "Trebuchet MS", sans-serif;
}

.login-brand p {
    margin: 0;
    color: #d9f5ff;
}

.demo-box {
    margin-top: 1.1rem;
    padding: 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(10, 45, 51, 0.2);
}

.demo-box p {
    margin: 0.28rem 0;
    font-size: 0.9rem;
}

.login-form {
    padding: 2rem;
}

.login-form h2 {
    margin: 0;
    font-family: "Sora", "Trebuchet MS", sans-serif;
}

.login-form p {
    margin: 0.45rem 0 0.8rem;
    color: var(--muted);
}

.login-form label {
    display: block;
    margin: 0.7rem 0 0.25rem;
    font-weight: 500;
}

.login-form input {
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 0.6rem 0.75rem;
    font: inherit;
}

.login-form input:focus {
    border-color: rgba(15, 109, 122, 0.7);
    outline: 3px solid rgba(15, 109, 122, 0.15);
}

.alert {
    margin-top: 0.75rem;
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
}

.alert.error {
    background: rgba(181, 23, 43, 0.12);
    color: #971b2f;
    border: 1px solid rgba(181, 23, 43, 0.2);
}

.portal-shell .portal-card-shell {
    padding: 1.8rem;
}

.portal-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.portal-top h1 {
    margin: 0;
    font-family: "Sora", "Trebuchet MS", sans-serif;
    font-size: clamp(1.35rem, 2.5vw, 1.9rem);
}

.portal-top p {
    margin: 0.2rem 0 0;
    color: var(--muted);
}

.portal-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.portal-stats article {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.8rem;
    background: var(--surface-2);
}

.portal-stats h3 {
    margin: 0;
    font-family: "Sora", "Trebuchet MS", sans-serif;
}

.portal-stats p {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.portal-table-wrap {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
}

.portal-table th,
.portal-table td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.93rem;
}

.portal-table th {
    background: #f3f8fd;
    font-family: "Sora", "Trebuchet MS", sans-serif;
    font-size: 0.83rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #264463;
}

.portal-note {
    margin-top: 0.8rem;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 1080px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faculty-grid,
    .infra-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: inline-block;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 2px);
        right: 4vw;
        width: min(360px, 92vw);
        background: #fff;
        border-radius: 16px;
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
        padding: 0.95rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.38rem;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav > a {
        padding: 0.45rem 0.35rem;
    }

    .about-grid,
    .admission-grid,
    .notice-grid,
    .contact-grid,
    .card-grid {
        grid-template-columns: 1fr;
    }

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

    .login-grid {
        grid-template-columns: 1fr;
    }

    .login-brand,
    .login-form {
        padding: 1.4rem;
    }
}

@media (max-width: 620px) {
    .section {
        padding: 4.4rem 0;
    }

    .hero {
        padding-top: 3.8rem;
    }

    .hero-content h1 {
        max-width: 100%;
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .faculty-grid,
    .infra-grid,
    .gallery-grid,
    .portal-stats {
        grid-template-columns: 1fr;
    }
}
