:root {
    --bg: #edf3fb;
    --bg-elevated: #ffffff;
    --panel: #ffffff;
    --panel-soft: #f5f9ff;
    --text: #17324d;
    --heading: #0e2540;
    --muted: #5f738f;
    --primary: #d1a03f;
    --secondary: #0f2f52;
    --accent: #0f766e;
    --success: #176b46;
    --border: #d3dff0;
    --border-strong: #b8cae3;
    --shadow: 0 14px 34px rgba(15, 47, 82, 0.08);
    --radius: 16px;
    --max: 1320px;
    --font-heading: "Sora", "Merriweather", Georgia, serif;
    --font-body: "Manrope", "Source Sans 3", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.55;
    color: var(--text);
    background:
        radial-gradient(circle at 100% 0%, rgba(15, 118, 110, 0.09), transparent 36%),
        radial-gradient(circle at 0% 16%, rgba(209, 160, 63, 0.11), transparent 30%),
        var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading);
    font-family: var(--font-heading);
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

.utility-strip {
    background: linear-gradient(95deg, #0b2b4b 0%, #154570 100%);
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.91rem;
}

.utility-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 0;
}

.utility-left,
.utility-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.utility-right a {
    color: #ffffff;
    font-weight: 600;
}

.institution-header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 80;
}

.masthead {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-logo {
    width: 62px;
    height: 62px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    overflow: hidden;
    flex-shrink: 0;
    background: #ffffff;
    display: grid;
    place-items: center;
    color: var(--heading);
    font-weight: 700;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: clamp(1.03rem, 2vw, 1.56rem);
    font-weight: 800;
    line-height: 1.18;
    color: var(--heading);
}

.brand-tag {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.9rem;
}

.masthead-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.22s ease, opacity 0.2s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.34);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--heading);
}

.btn-outline:hover {
    background: rgba(15, 118, 110, 0.08);
}

.main-nav {
    background: linear-gradient(90deg, #0f766e 0%, #0b5f58 45%, #0f2f52 100%);
    color: #ffffff;
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar {
    display: none;
}

.nav-inner a {
    padding: 11px 16px;
    font-weight: 700;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    color: #ffffff;
}

.nav-inner a:hover,
.nav-inner a.active {
    background: rgba(255, 255, 255, 0.18);
    border-bottom-color: var(--primary);
}

.menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: transparent;
    color: var(--heading);
}

.menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    margin: 4px auto;
}

.mobile-menu {
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
}

.mobile-menu.open {
    display: grid;
}

.mobile-menu a {
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 600;
}

.ticker-wrap {
    background: linear-gradient(90deg, #f4eddc 0%, #f6f3e8 100%);
    border-bottom: 1px solid #e5d7b4;
}

.ticker-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
}

.ticker-label {
    color: var(--accent);
    font-weight: 700;
    white-space: nowrap;
}

.ticker-view {
    width: 100%;
    color: var(--heading);
    font-weight: 600;
}

.ticker-marquee {
    width: 100%;
    color: inherit;
}

.public-main {
    padding-bottom: 26px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.hero-fullwidth {
    position: relative;
    margin-top: 0;
    margin-bottom: 14px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hero-full-slider {
    width: 100%;
    min-height: clamp(340px, 68vh, 700px);
    position: relative;
    overflow: hidden;
    background: #1f2f4a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-size: cover;
    background-position: center;
}

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

.hero-nav {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 14px;
}

.hero-nav button {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(8, 20, 39, 0.42);
    color: #ffffff;
    cursor: pointer;
}

.hero-dots {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
}

.hero-dot.active {
    background: #ffffff;
}

.announce-marquee-wrap {
    margin-bottom: 4px;
}

.announce-marquee-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 10px;
}

.announce-label {
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

.announce-marquee {
    width: 100%;
    color: var(--heading);
    font-weight: 600;
    display: block;
    max-width: 100%;
}

.page-shell {
    padding-top: 14px;
    display: grid;
    gap: 14px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.panel:hover {
    border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
    box-shadow: 0 18px 34px rgba(15, 47, 82, 0.11);
    transform: translateY(-2px);
}

.page-banner {
    padding: 20px;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, var(--accent), var(--secondary));
}

.page-banner h1 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.page-banner p {
    margin: 8px 0 0;
    color: var(--muted);
}

.stats-strip {
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.stat-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.stat-card h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.56rem;
    color: var(--accent);
}

.stat-card p {
    margin: 5px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.teachers-marquee-section {
    padding: 16px;
    margin-top: 14px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.section-head h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.22rem;
}

.section-head a {
    color: var(--accent);
    font-weight: 700;
}

.teachers-marquee {
    width: 100%;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start;
    align-items: stretch;
    gap: 14px;
    overflow-x: hidden;
    overflow-y: hidden;
    padding: 2px 2px 8px;
    scroll-behavior: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    white-space: nowrap;
}

/* High-specificity fallback to prevent column layout on old/cached school themes */
.public-main .teachers-marquee,
main .teachers-marquee,
section .teachers-marquee {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 14px !important;
}

.teachers-marquee::-webkit-scrollbar {
    height: 0;
}

.teachers-marquee::-webkit-scrollbar-track {
    background: transparent;
}

.teachers-marquee::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 999px;
}

.teacher-marquee-card {
    flex: 0 0 210px;
    min-width: 210px;
    display: block;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    background: var(--panel-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teacher-marquee-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(15, 47, 82, 0.1);
}

.public-main .teacher-marquee-card,
main .teacher-marquee-card,
section .teacher-marquee-card {
    flex: 0 0 210px !important;
    min-width: 210px !important;
    display: block !important;
}

.teacher-marquee-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(27, 53, 93, 0.08);
    display: grid;
    place-items: center;
    color: var(--heading);
    font-weight: 700;
    margin-bottom: 8px;
}

.teacher-marquee-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-marquee-card h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
}

.teacher-marquee-card p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.news-section {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.news-card {
    padding: 16px;
}

.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.news-list li {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    background: var(--panel-soft);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.news-list li:hover {
    border-color: color-mix(in srgb, var(--accent) 32%, var(--border));
    transform: translateY(-1px);
}

.news-list h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.34;
    color: var(--heading);
}

.news-list p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.news-list time {
    font-size: 0.82rem;
    color: var(--muted);
    white-space: nowrap;
}

.about-section {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.about-main,
.about-cards {
    padding: 16px;
}

.about-main h2,
.about-cards h2 {
    margin: 0 0 10px;
    font-family: var(--font-heading);
}

.about-main p {
    margin: 0 0 12px;
    color: var(--muted);
}

.facility-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.facility-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    background: var(--panel-soft);
}

.facility-card h3 {
    margin: 0 0 5px;
    font-size: 1rem;
}

.facility-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.fee-payment-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 14px;
    margin-bottom: 14px;
}

.content-card {
    padding: 16px;
}

.content-card h2 {
    margin: 0 0 8px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.content-card p {
    margin: 0 0 10px;
    color: var(--muted);
}

.table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}

.table-wrap::-webkit-scrollbar {
    height: 8px;
}

.table-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.table-wrap::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 999px;
}

.table-scroll-note {
    margin: 8px 0 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.fee-payment-result {
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    background: var(--panel-soft);
    display: grid;
    gap: 8px;
}

.fee-payment-result .btn {
    width: 100%;
}

.fee-payment-status-line {
    margin: 0;
    color: var(--heading);
    font-weight: 600;
}

.fee-payment-status-line.success {
    color: var(--success);
}

.fee-payment-status-line.error {
    color: #b42318;
}

.fee-payment-qr-image {
    width: min(220px, 100%);
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    padding: 8px;
}

.fee-workspace {
    margin-top: 14px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.fee-student-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel-soft);
    padding: 12px;
}

.fee-student-card h3 {
    margin: 0 0 8px;
    color: var(--heading);
}

.fee-student-card p {
    margin: 3px 0;
}

.guardian-options,
.student-options {
    display: grid;
    gap: 8px;
}

.guardian-option,
.student-option {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    background: #ffffff;
    cursor: pointer;
}

.guardian-option span,
.student-option span {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.guardian-option input[type="radio"],
.student-option input[type="radio"] {
    margin: 0;
    accent-color: var(--accent);
}

.fee-dues-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.fee-dues-table th,
.fee-dues-table td {
    border-bottom: 1px solid var(--border);
    padding: 10px;
    vertical-align: middle;
}

.fee-dues-table th {
    background: var(--panel-soft);
    color: var(--heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.fee-dues-table .due-select {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.fee-dues-summary {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    background: rgba(27, 53, 93, 0.05);
}

.fee-dues-summary p {
    margin: 4px 0;
    color: var(--heading);
}

.fee-inline-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--muted);
}

.fee-loader-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    animation: feePulse 1s ease-in-out infinite;
}

@keyframes feePulse {
    0% { transform: scale(0.75); opacity: 0.45; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.75); opacity: 0.45; }
}

.plan-lock-banner {
    background: #f8efdb;
    border-bottom: 1px solid #ead5ad;
    color: #5c3f09;
    font-weight: 600;
    font-size: 0.92rem;
}

.plan-lock-banner .container {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.plan-lock-inline {
    margin: 0 0 10px;
    border: 1px solid #ead5ad;
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 10px;
    background: #f8efdb;
    color: #5c3f09;
    font-size: 0.92rem;
}

.fee-payment-label {
    margin: 0;
    color: var(--accent);
    font-weight: 700;
}

.fee-payment-request {
    margin: 0;
    color: var(--heading);
    font-weight: 600;
}

.fee-payment-steps {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.fee-payment-note {
    margin-top: 10px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 10px;
    background: rgba(138, 31, 59, 0.08);
}

.fee-payment-note p {
    margin: 6px 0 0;
}

.bullet-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.principal-box {
    margin-top: 12px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 10px;
    background: rgba(138, 31, 59, 0.08);
}

.faculty-panel {
    padding: 16px;
    margin-bottom: 14px;
}

.faculty-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.faculty-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    background: var(--panel-soft);
}

.faculty-photo {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    margin: 0 auto 8px;
    overflow: hidden;
    background: rgba(27, 53, 93, 0.08);
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--heading);
}

.faculty-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faculty-card h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--heading);
}

.faculty-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.designation {
    color: var(--accent);
    font-weight: 700;
}

.form-grid {
    display: grid;
    gap: 12px;
}

.grid-2.form-grid {
    grid-template-columns: 1fr 1fr;
}

.form-grid label {
    display: grid;
    gap: 6px;
    font-weight: 600;
    color: var(--heading);
}

.field,
textarea,
select {
    width: 100%;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 10px 12px;
    background: #ffffff;
    color: #152440;
}

.field::placeholder,
textarea::placeholder {
    color: #6d7a90;
}

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

.field:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(15, 118, 110, 0.22);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.08);
}

.form-status {
    display: none;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 0.93rem;
}

.form-status.success {
    display: block;
    background: rgba(21, 128, 61, 0.13);
    color: #166534;
    border-color: rgba(21, 128, 61, 0.42);
}

.form-status.error {
    display: block;
    background: rgba(220, 38, 38, 0.13);
    color: #b91c1c;
    border-color: rgba(220, 38, 38, 0.42);
}

.login-panel {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 14px;
    padding: 16px;
    margin-bottom: 10px;
}

.login-info,
.login-form-box {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    background: var(--panel-soft);
}

.login-info h2 {
    margin: 0 0 8px;
    font-family: var(--font-heading);
}

.portal-roles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.portal-role {
    border: 1px solid var(--border-strong);
    background: #ffffff;
    color: var(--heading);
    border-radius: 10px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 9px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.portal-role i {
    color: var(--accent);
    font-size: 0.95rem;
}

.portal-role:hover {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border-strong));
    transform: translateY(-1px);
}

.portal-role.active {
    background: linear-gradient(120deg, rgba(15, 118, 110, 0.14), rgba(15, 47, 82, 0.14));
    border-color: color-mix(in srgb, var(--accent) 62%, var(--border-strong));
    color: var(--heading);
}

.portal-role-meta {
    border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--border));
    border-radius: 10px;
    background: rgba(15, 118, 110, 0.06);
    padding: 10px 12px;
    margin-bottom: 12px;
}

.portal-role-meta h3 {
    margin: 0;
    font-size: 1rem;
}

.portal-role-meta p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.role-student-only {
    display: none !important;
}

.login-form-box[data-role="student"] .role-student-only {
    display: grid !important;
}

.student-account-picker {
    border: 1px dashed color-mix(in srgb, var(--secondary) 34%, var(--border));
    border-radius: 10px;
    padding: 10px;
    gap: 8px;
    background: rgba(15, 47, 82, 0.05);
}

.student-account-picker h4 {
    margin: 0;
    font-size: 0.95rem;
}

.student-account-picker p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--muted);
}

.student-account-list {
    display: grid;
    gap: 7px;
}

.student-account-item {
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 7px 8px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    background: #ffffff;
}

.student-account-item input[type="radio"] {
    margin-top: 2px;
    accent-color: var(--accent);
}

.student-account-item span {
    font-size: 0.9rem;
    color: var(--heading);
    overflow-wrap: anywhere;
}

.text-link {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.95rem;
}

.site-footer {
    background: var(--secondary);
    color: #ffffff;
    margin-top: 18px;
    padding: 24px 0 10px;
}

.site-footer .brand-name,
.site-footer .brand-tag {
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 16px;
}

.footer-block h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: #f9dc9f;
}

.footer-block a,
.footer-block p {
    display: block;
    margin: 0 0 6px;
    color: rgba(255, 255, 255, 0.92);
}

.footer-meta {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    margin-top: 16px;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
}

.floating-actions {
    position: fixed;
    right: 14px;
    bottom: 14px;
    display: grid;
    gap: 8px;
    z-index: 120;
}

.floating-link {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26);
}

.floating-link.wa {
    background: #1fa855;
}

.floating-link.call {
    background: #2d66de;
}

.fade-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

html.js-enabled .fade-up {
    opacity: 0;
    transform: translateY(14px);
}

html.js-enabled .fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 1180px) {
    /* reserved */
}

@media (max-width: 1040px) {
    .news-section,
    .about-section,
    .content-grid,
    .fee-payment-grid,
    .login-panel,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }

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

    /* reserved */
}

@media (max-width: 860px) {
    .nav-inner,
    .masthead-actions .btn {
        display: none;
    }

    .menu-btn {
        display: inline-block;
    }

    .hero-full-slider {
        min-height: 420px;
    }

    .utility-inner {
        justify-content: center;
    }

    .brand-tag {
        max-width: 55vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .teachers-marquee {
        gap: 12px;
    }

    .utility-inner,
    .utility-left,
    .utility-right {
        justify-content: center;
    }

    .fee-lookup-form .btn,
    #feePaymentSubmit {
        width: 100%;
    }

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

@media (max-width: 620px) {
    .container {
        width: min(var(--max), calc(100% - 20px));
    }

    .grid-2.form-grid,
    .stats-strip,
    .faculty-grid,
    .facility-grid {
        grid-template-columns: 1fr;
    }

    .hero-full-slider {
        min-height: 360px;
    }

    .hero-nav {
        padding: 0 8px;
    }

    .hero-nav button {
        width: 38px;
        height: 38px;
    }

    .hero-dots {
        bottom: 10px;
    }

    .announce-marquee-inner {
        padding: 7px 8px;
    }

    .announce-label,
    .ticker-label {
        display: none;
    }

    .teacher-marquee-card {
        flex-basis: 176px;
    }

    .floating-actions {
        right: 10px;
        bottom: 10px;
    }

    .panel {
        padding: 12px;
    }

    .login-form-box {
        overflow: hidden;
    }

    .table-wrap {
        border: 1px solid var(--border);
        border-radius: 10px;
        background: #ffffff;
    }

    .fee-dues-table {
        min-width: 520px;
    }

}

/* ==========================================================================
   PREMIUM UX/UI & MICRO-ANIMATION ENHANCEMENTS FOR PRODUCTION
   ========================================================================== */

/* 1. Sleek Background Glows */
body {
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.16) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

/* 2. Glassmorphic Institution Header */
.institution-header {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.institution-header:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6) !important;
}

/* 3. Micro-Animations for Navigation Links */
.nav-inner a {
    position: relative;
    overflow: hidden;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-inner a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-inner a:hover::after,
.nav-inner a.active::after {
    width: 100%;
}

.nav-inner a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.18) !important;
}

/* 4. Elegant Interactive Card Hover & Shadows */
.panel {
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.panel:hover {
    transform: translateY(-5px) scale(1.008) !important;
    box-shadow: 0 20px 38px rgba(15, 47, 82, 0.14) !important;
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border)) !important;
}

/* 5. Sleek Form Elements Glow */
.field, select, textarea {
    border: 1px solid var(--border-strong) !important;
    border-radius: 10px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.field:focus, select:focus, textarea:focus {
    outline: none !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.15) !important;
    transform: scale(1.005);
}

/* 6. Dynamic Left-Border Accents on Lists & Columns */
.news-list li {
    position: relative;
    border-left: 4px solid transparent !important;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.news-list li:hover {
    border-left-color: var(--accent) !important;
    background: #ffffff !important;
    padding-left: 14px !important;
}

/* 7. Hover Scaling for Buttons with Sleek Transition */
.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:hover {
    box-shadow: 0 12px 26px rgba(15, 118, 110, 0.45) !important;
    transform: translateY(-2px) scale(1.02) !important;
}

/* 8. Notice Board / Announcements Ticker Polish */
.announce-marquee-inner {
    border-left: 5px solid var(--accent) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
}

.announce-label {
    background: var(--accent);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
