* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #2e3192;
    --secondary-color: #1e2575;
    --accent-color: #ff8c00;
    --accent-green: #006b3f;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --gold: #ffa500;
    --shadow-sm: 0 8px 24px rgba(20, 30, 74, 0.08);
    --shadow-md: 0 16px 40px rgba(20, 30, 74, 0.14);
    --radius-sm: 8px;
    --radius-md: 15px;
    --motion-fast: 180ms;
    --motion-base: 320ms;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

body.is-ready > nav,
body.is-ready > main,
body.is-ready > section,
body.is-ready > footer {
    animation: none;
}

body.is-ready > section:nth-of-type(2),
body.is-ready > main {
    animation-delay: 80ms;
}

@keyframes page-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Reveal-on-Scroll animations (requires JS for full effect) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--motion-base) ease, transform var(--motion-base) ease;
}

/* Base class added to body when script.js is ready */
body:not(.is-ready) .reveal-on-scroll {
    opacity: 1;
    transform: none;
}

.reveal-on-scroll.is-revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-bottom: 3px solid var(--accent-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 65px;
    width: 65px;
    object-fit: contain;
    background: var(--white);
    padding: 4px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
    border: 3px solid var(--gold);
}

.logo-text h2 {
    font-size: 1.4rem;
    margin-bottom: 2px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo-text p {
    font-size: 0.7rem;
    opacity: 0.95;
    margin: 0;
    font-weight: 400;
    line-height: 1.3;
    max-width: 280px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem; /* tighter gap */
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease, transform var(--motion-fast) ease;
    padding: 0.35rem 0.8rem; /* reduced padding for better fit */
    border-radius: 6px;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 80%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

.login-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--gold)) !important;
    color: var(--white) !important;
    padding: 0.6rem 1.8rem !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 10px rgba(255, 140, 0, 0.4);
}

.logout-form {
    display: inline;
}

.logout-form .login-btn {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 140, 0, 0.5);
}

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-green) 100%);
    color: var(--white);
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), var(--gold));
    color: var(--white);
    padding: 1.2rem 3rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.6);
}

.features {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.feature-icon {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--accent-green));
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(46, 49, 146, 0.2);
    border-color: var(--accent-color);
}

.feature-card i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2.75rem 1rem;
    text-align: center;
    border-bottom: 4px solid var(--accent-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.about-content,
.admission-content,
.contact-content,
.gallery-content {
    padding: 4rem 0;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 2rem;
    position: relative;
    padding-bottom: 10px;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--gold));
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.values-list {
    list-style: none;
    margin-top: 1rem;
}

.values-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.values-list i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.admission-content .container {
    display: grid;
    grid-template-columns: minmax(0, 920px);
    justify-content: center;
    gap: 1.25rem;
}

.nav-links a:active,
.cta-btn:active,
.submit-btn:active,
.step-button:active {
    transform: translateY(0) scale(0.98);
}

.page-header p {
    max-width: 720px;
    margin: 0.65rem auto 0;
    color: rgba(255,255,255,0.88);
    font-size: 1.05rem;
}

.admission-info {
    overflow: hidden;
    border: 1px solid #dce1e8;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 3px 14px rgba(0,0,0,0.06);
}

.admission-info summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    cursor: pointer;
    list-style: none;
}

.admission-info summary::-webkit-details-marker {
    display: none;
}

.requirements-summary-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: #eef0ff;
    color: var(--primary-color);
}

.requirements-summary-copy {
    display: grid;
    gap: 0.25rem;
}

.requirements-summary-copy strong {
    color: var(--text-dark);
    font-size: 1.05rem;
}

.requirements-summary-copy small {
    color: #5f6368;
    line-height: 1.45;
}

.requirements-summary-action {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.requirements-summary-action i {
    margin-left: 0.35rem;
    transition: transform 0.2s ease;
}

.requirements-action-open {
    display: none;
}

.admission-info[open] .requirements-action-closed {
    display: none;
}

.admission-info[open] .requirements-action-open {
    display: inline;
}

.admission-info[open] .requirements-summary-action i {
    transform: rotate(180deg);
}

.requirements-details {
    padding: 0 1.25rem 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.requirements-details h2 {
    margin: 1.5rem 0 0;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.requirements-list {
    list-style: none;
    margin-top: 1.5rem;
}

.requirements-list li {
    padding: 1rem;
    background: var(--light-bg);
    margin-bottom: 0.5rem;
    border-radius: 5px;
}

.requirements-list i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.admission-form,
.contact-form {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 5px solid var(--primary-color);
}

.admission-form h2,
.contact-form h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 49, 146, 0.1);
}

.application-progress {
    margin: 0 0 2rem;
    scroll-margin-top: 110px;
}

.application-progress-bar {
    height: 6px;
    overflow: hidden;
    background: #e5e7eb;
    border-radius: 3px;
}

.application-progress-bar span {
    display: block;
    width: 20%;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.25s ease;
}

.application-progress > p {
    margin: 0.65rem 0 1rem;
    color: #5f6368;
    font-size: 0.9rem;
    font-weight: 600;
}

.application-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.application-steps li {
    color: #6b7280;
    font-size: 0.78rem;
    text-align: center;
}

.application-steps li span {
    display: grid;
    width: 30px;
    height: 30px;
    margin: 0 auto 0.4rem;
    place-items: center;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background: var(--white);
    font-weight: 700;
}

.application-steps li.is-active,
.application-steps li.is-complete {
    color: var(--primary-color);
    font-weight: 700;
}

.application-steps li.is-active span,
.application-steps li.is-complete span {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

.application-step[hidden] {
    display: none;
}

.application-step-heading {
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.application-step-heading p {
    margin: 0 0 0.25rem;
    color: var(--accent-color);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.application-step-heading h3 {
    margin: 0 0 0.35rem;
    color: var(--primary-color);
    font-size: 1.35rem;
}

.application-step-heading span {
    color: #5f6368;
    line-height: 1.5;
}

.application-step-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    min-height: 52px;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.step-button {
    min-height: 48px;
    padding: 0.8rem 1.25rem;
    border: 0;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.step-button-primary {
    margin-left: auto;
    background: var(--primary-color);
    color: var(--white);
}

.step-button-secondary {
    background: #e5e7eb;
    color: var(--text-dark);
}

.form-group input.is-invalid {
    border-color: #b42318;
}

.form-group input.is-valid {
    border-color: #16803c;
}

.password-requirements {
    list-style: none;
    margin: 0.65rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
    color: #5f6368;
    font-size: 0.9rem;
}

.password-requirements li::before {
    content: "\2022";
    display: inline-block;
    width: 1.2rem;
    font-weight: 700;
}

.password-requirements li.is-valid {
    color: #166534;
}

.password-requirements li.is-valid::before {
    content: "\2713";
}

.password-requirements li.is-missing {
    color: #991b1b;
}

.password-requirements li.is-missing::before {
    content: "\00d7";
}

.field-validation-message {
    display: block;
    min-height: 1.25rem;
    margin-top: 0.5rem;
}

.field-validation-message.is-valid {
    color: #166534;
}

.field-validation-message.is-invalid {
    color: #991b1b;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-green));
    color: var(--white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 4px 12px rgba(46, 49, 146, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:disabled {
    background: #9ca3af;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    opacity: 0.75;
}

.submit-btn.is-loading,
.login-btn.is-loading {
    pointer-events: none;
    opacity: 0.78;
}

img.is-loaded {
    animation: image-ready var(--motion-base) ease both;
}

@keyframes image-ready {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

.submit-btn:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 49, 146, 0.6);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
    padding: 2.5rem;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 5px solid var(--accent-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(46, 49, 146, 0.15);
}

.info-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 700;
    font-size: 1.4rem;
}

.info-card p {
    color: var(--text-dark);
    font-size: 1.05rem;
}

.info-card a {
    color: inherit;
    text-decoration: none;
}

.info-card a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
    align-items: start;
    gap: 2rem;
}

.contact-main .map-section,
.contact-main .contact-form {
    margin: 0;
}

.contact-main .contact-form {
    padding: 2rem;
}

.gallery-empty-state {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
    gap: 2.5rem;
    max-width: 820px;
    margin: 0 auto;
    padding: 2.5rem 0;
}

.gallery-empty-state img {
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.gallery-empty-state h2 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-size: 2rem;
}

.gallery-empty-state p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.7;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    border: 3px solid transparent;
}

.gallery-item:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 10px 30px rgba(46, 49, 146, 0.3);
    border-color: var(--accent-color);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(46, 49, 146, 0.95), rgba(46, 49, 146, 0.85));
    color: var(--white);
    padding: 1.2rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 3px solid var(--accent-color);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.placeholder-img {
    background: var(--light-bg);
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.placeholder-img i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Showcase Section */
.showcase {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
}

.showcase h2 {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    font-weight: 800;
    position: relative;
}

.showcase h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--gold));
    border-radius: 2px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.showcase-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    height: 350px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.showcase-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(46, 49, 146, 0.3);
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.showcase-item:hover img {
    transform: scale(1.1);
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(46, 49, 146, 0.95), transparent);
    color: var(--white);
    padding: 2.5rem;
    transform: translateY(70%);
    transition: transform 0.4s ease;
}

.showcase-item:hover .showcase-overlay {
    transform: translateY(0);
}

.showcase-overlay h3 {
    font-size: 1.6rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.showcase-overlay p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.95;
}

.login-page footer {
    margin-top: 0;
}

.login-section {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e8eaf6 100%);
    padding: 3rem 2rem;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 960px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(46, 49, 146, 0.2);
}

.register-wrapper {
    max-width: 1040px;
}

.login-brand {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 60%, var(--accent-green) 100%);
    color: var(--white);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.login-brand-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    background: var(--white);
    padding: 6px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.login-brand h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.login-brand > p {
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.login-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.login-features i {
    color: var(--accent-color);
    font-size: 1rem;
}

.login-box {
    background: var(--white);
    padding: 3rem;
    width: 100%;
}

.login-box-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-box-header i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.login-box h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.login-box-header p {
    color: var(--text-light);
    margin-bottom: 0;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.alert i {
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon > i:first-child {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
    pointer-events: none;
    z-index: 1;
}

.input-with-icon input {
    padding-left: 2.75rem;
    padding-right: 2.75rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.login-form .submit-btn.login-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
}

.checkbox input[type="checkbox"] {
    width: auto;
    accent-color: var(--primary-color);
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.login-footer p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.login-footer a:hover {
    color: var(--accent-color);
}

footer {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 4px solid var(--accent-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.2rem;
    color: var(--gold);
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    font-size: 1.2rem;
    border: 2px solid transparent;
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-5px) scale(1.1);
    border-color: var(--gold);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Map Section */
.map-section {
    margin: 3rem 0;
}

.map-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.map-container iframe {
    display: block;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

@media (max-width: 1120px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        flex-direction: column;
        background: var(--primary-color);
        width: 100%;
        max-width: 300px;
        height: 100dvh;
        padding: 6.5rem 2rem 2rem;
        gap: 1rem;
        transition: left 0.3s ease-in-out;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
        overflow-y: auto;
        z-index: 1000;
    }
    
    .nav-links.active {
        left: 0;
    }

    .nav-links::before {
        content: 'Menu';
        position: absolute;
        top: 2rem;
        left: 2rem;
        color: rgba(255,255,255,0.72);
        font-size: 0.8rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 5px;
        transition: background 0.3s;
    }
    
    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .navbar .container {
        flex-wrap: wrap;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero {
        padding: 5rem 1rem;
    }
    
    .admission-content .container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-main {
        grid-template-columns: 1fr;
    }
    
    .logo {
        flex-wrap: nowrap;
    }
    
    .features .container {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .login-wrapper {
        grid-template-columns: 1fr;
    }

    .login-brand {
        padding: 2rem;
        text-align: center;
        align-items: center;
    }

    .login-brand h2 {
        font-size: 1.6rem;
    }

    .login-features {
        align-items: flex-start;
        text-align: left;
    }

    .login-box {
        padding: 2rem 1.5rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .map-container iframe {
        height: 300px;
    }

    .gallery-empty-state {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .gallery-empty-state img {
        margin: 0 auto;
    }
}

/* Careers */
.careers-content {
    padding: 4.5rem 0;
    background: var(--white);
}

.careers-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
}

.careers-intro-copy h2,
.career-section-heading h2,
.career-application h2 {
    color: var(--primary-color);
    font-size: clamp(2rem, 4vw, 2.65rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.careers-intro-copy p,
.career-section-heading p,
.career-application p {
    color: var(--text-light);
    font-size: 1.08rem;
    line-height: 1.8;
}

.careers-intro-panel {
    padding: 2rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-green));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.careers-intro-panel i {
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.careers-intro-panel p {
    color: rgba(255,255,255,0.88);
    line-height: 1.7;
}

.career-section {
    margin-bottom: 5rem;
}

.career-section-heading {
    max-width: 700px;
    margin-bottom: 2rem;
}

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

.career-benefit-card,
.career-opening-card {
    padding: 2rem;
    border: 1px solid #e8ebf0;
    border-radius: var(--radius-sm);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease, border-color var(--motion-fast) ease;
}

.career-benefit-card:hover,
.career-opening-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 140, 0, 0.55);
    box-shadow: var(--shadow-md);
}

.career-benefit-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    margin-bottom: 1.25rem;
    border-radius: var(--radius-sm);
    background: #eef6ef;
    color: var(--accent-green);
    font-size: 1.35rem;
}

.career-benefit-card h3,
.career-empty-state h3 {
    color: var(--primary-color);
    margin-bottom: 0.65rem;
}

.career-benefit-card p,
.career-empty-state p {
    color: var(--text-light);
    line-height: 1.7;
}

.career-empty-state {
    padding: 3.5rem 2rem;
    border: 1px dashed #cfd4dc;
    border-radius: var(--radius-md);
    background: var(--light-bg);
    text-align: center;
}

.career-empty-state i {
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--white);
    color: var(--accent-color);
    box-shadow: var(--shadow-sm);
    font-size: 1.8rem;
}

.career-application {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
    padding: 3rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #f3f4ff, #eef8f2);
    border-left: 5px solid var(--accent-color);
}

.career-application .cta-btn {
    white-space: nowrap;
}

@media (max-width: 820px) {
    .careers-intro,
    .career-application {
        grid-template-columns: 1fr;
    }

    .career-benefits-grid {
        grid-template-columns: 1fr;
    }

    .career-application {
        padding: 2rem;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* --- EDITORIAL GALLERY CARDS (2026-06-22) --- */
.gallery-content {
    position: relative;
    margin-bottom: 0;
    padding: clamp(4rem, 7vw, 7rem) 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 10%, rgba(255, 140, 0, 0.12), transparent 24rem),
        radial-gradient(circle at 92% 90%, rgba(46, 49, 146, 0.1), transparent 28rem),
        linear-gradient(180deg, #f7f8fc 0%, #ffffff 48%, #f3f5fb 100%);
}

.gallery-content::before,
.gallery-content::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(46, 49, 146, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.gallery-content::before {
    top: 2rem;
    left: -190px;
}

.gallery-content::after {
    right: -190px;
    bottom: 1rem;
}

.gallery-content .container {
    position: relative;
    z-index: 1;
    max-width: 1320px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 140px;
    gap: clamp(1rem, 2vw, 1.5rem);
    counter-reset: gallery-card;
}

.gallery-item {
    position: relative;
    grid-column: span 3;
    grid-row: span 2;
    min-width: 0;
    overflow: visible;
    border: 0;
    border-radius: 22px;
    box-shadow: none;
    counter-increment: gallery-card;
    transition: none;
}

.gallery-item:nth-child(-n + 2) {
    grid-column: span 6;
    grid-row: span 3;
}

.gallery-item:hover {
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.gallery-card {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 22px;
    background: #171b4f;
    box-shadow: 0 18px 45px rgba(28, 34, 88, 0.14);
    cursor: zoom-in;
    outline: none;
    isolation: isolate;
    transition:
        transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 360ms ease,
        border-color 240ms ease;
}

.gallery-card::before {
    content: '0' counter(gallery-card);
    position: absolute;
    z-index: 4;
    top: 1rem;
    left: 1rem;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(12, 17, 58, 0.58);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    backdrop-filter: blur(10px);
    transition: color 240ms ease, background-color 240ms ease, transform 300ms ease;
}

.gallery-img-container {
    position: absolute;
    z-index: -2;
    inset: 0;
    overflow: hidden;
}

.gallery-img-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 14, 48, 0.02) 24%, rgba(10, 14, 48, 0.28) 52%, rgba(10, 14, 48, 0.96) 100%),
        linear-gradient(110deg, rgba(22, 26, 78, 0.16), transparent 50%);
    transition: background 360ms ease;
}

.gallery-img-container img,
.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), filter 420ms ease;
}

.gallery-info {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    gap: 0.28rem;
    padding: 1.35rem 4rem 1.35rem 1.35rem;
    color: #fff;
    text-align: left;
    transform: translateY(0);
    transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-info h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.2rem, 1.65vw, 1.55rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.02em;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.34);
}

.gallery-item:nth-child(-n + 2) .gallery-info {
    padding: 2rem 5rem 2rem 2rem;
}

.gallery-item:nth-child(-n + 2) .gallery-info h3 {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.gallery-info > span {
    order: -1;
    width: fit-content;
    color: #ffd38a;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    line-height: 1.3;
    text-transform: uppercase;
}

.gallery-info::after {
    content: '\2197';
    position: absolute;
    right: 1.25rem;
    bottom: 1.35rem;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.1rem;
    transition: color 220ms ease, background-color 220ms ease, transform 320ms ease;
    backdrop-filter: blur(8px);
}

.gallery-card:hover,
.gallery-card:focus-visible {
    border-color: rgba(255, 166, 51, 0.9);
    box-shadow: 0 28px 70px rgba(28, 34, 88, 0.26), 0 0 0 1px rgba(255, 140, 0, 0.18);
    transform: translateY(-9px);
}

.gallery-card:hover::before,
.gallery-card:focus-visible::before {
    background: var(--accent-color);
    color: #161a4c;
    transform: rotate(-8deg) scale(1.06);
}

.gallery-card:hover .gallery-img-container img,
.gallery-card:focus-visible .gallery-img-container img {
    filter: saturate(1.09) contrast(1.04);
    transform: scale(1.085);
}

.gallery-card:hover .gallery-img-container::after,
.gallery-card:focus-visible .gallery-img-container::after {
    background:
        linear-gradient(180deg, rgba(10, 14, 48, 0.02) 18%, rgba(10, 14, 48, 0.2) 48%, rgba(10, 14, 48, 0.98) 100%),
        linear-gradient(110deg, rgba(22, 26, 78, 0.08), transparent 50%);
}

.gallery-card:hover .gallery-info,
.gallery-card:focus-visible .gallery-info {
    transform: translateY(-4px);
}

.gallery-card:hover .gallery-info::after,
.gallery-card:focus-visible .gallery-info::after {
    background: var(--accent-color);
    color: #171b4f;
    transform: rotate(45deg) scale(1.08);
}

@media (max-width: 1020px) {
    .gallery-grid {
        grid-auto-rows: 150px;
    }

    .gallery-item,
    .gallery-item:nth-child(-n + 2) {
        grid-column: span 6;
        grid-row: span 2;
    }
}

@media (max-width: 620px) {
    .gallery-content {
        padding: 3.5rem 0;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 1rem;
    }

    .gallery-item,
    .gallery-item:nth-child(-n + 2) {
        grid-column: auto;
        grid-row: auto;
        height: 330px;
    }

    .gallery-item:first-child {
        height: 390px;
    }

    .gallery-item:nth-child(-n + 2) .gallery-info,
    .gallery-info {
        padding: 1.4rem 4rem 1.4rem 1.4rem;
    }

    .gallery-item:nth-child(-n + 2) .gallery-info h3 {
        font-size: 1.55rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-card,
    .gallery-card::before,
    .gallery-img-container img,
    .gallery-info,
    .gallery-info::after {
        transition: none !important;
    }

    .gallery-card:hover,
    .gallery-card:focus-visible,
    .gallery-card:hover .gallery-img-container img,
    .gallery-card:focus-visible .gallery-img-container img {
        transform: none !important;
    }
}

/* --- IMMERSIVE CAMPUS MEDIA & AUTH REFINEMENTS (2026-06-22) --- */
body.is-ready > nav,
body.is-ready > main,
body.is-ready > section,
body.is-ready > footer {
    animation: page-enter 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero {
    isolation: isolate;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #171b4f;
}

.hero::before {
    display: none;
}

.hero-slides,
.hero-slide,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-slides {
    z-index: -3;
}

.hero-slide {
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 1s ease, transform 7s ease;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1.09);
}

.hero-shade {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(12, 17, 58, 0.9) 0%, rgba(27, 31, 92, 0.73) 48%, rgba(22, 25, 72, 0.6) 100%),
        linear-gradient(0deg, rgba(8, 11, 39, 0.52), transparent 54%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 2rem));
    padding: 5rem 1rem 7rem;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin-bottom: 1rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(10, 14, 50, 0.44);
    color: #ffd38a;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.hero-content h1 {
    max-width: 1120px;
    margin-inline: auto;
    color: #fff;
    text-shadow: 0 5px 22px rgba(0, 0, 0, 0.34);
}

.hero-content > p:not(.hero-kicker) {
    max-width: 780px;
    margin-inline: auto;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.hero-carousel-controls {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 1.65rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(10, 14, 50, 0.56);
    transform: translateX(-50%);
    backdrop-filter: blur(10px);
}

.hero-dot,
.hero-pause {
    border: 0;
    color: #fff;
    cursor: pointer;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    transition: width 240ms ease, background-color 240ms ease, transform 240ms ease;
}

.hero-dot:hover,
.hero-dot.is-active {
    width: 28px;
    background: var(--accent-color);
}

.hero-pause {
    display: grid;
    width: 30px;
    height: 30px;
    margin-left: 0.2rem;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    transition: background-color 180ms ease, transform 180ms ease;
}

.hero-pause:hover {
    background: var(--accent-color);
    transform: scale(1.07);
}

.login-brand-logo {
    align-self: center;
}

.login-form .input-with-icon > i:first-child {
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    transition: color 180ms ease, transform 180ms ease;
}

.login-form .input-with-icon input {
    width: 100%;
    padding-left: 3rem;
    padding-right: 3.25rem;
}

.login-form .input-with-icon:focus-within > i:first-child {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.08);
}

.login-form .toggle-password {
    top: 50%;
    right: 0.65rem;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border-radius: 50%;
    transform: translateY(-50%);
}

.login-form .toggle-password:hover {
    background: #eef0ff;
}

.gallery-item:nth-child(2),
.features-grid > *:nth-child(2),
.programs-grid > *:nth-child(2) {
    transition-delay: 80ms;
}

.gallery-item:nth-child(3),
.features-grid > *:nth-child(3),
.programs-grid > *:nth-child(3) {
    transition-delay: 160ms;
}

.gallery-item:nth-child(5) {
    transition-delay: 80ms;
}

.gallery-item:nth-child(6) {
    transition-delay: 160ms;
}

.gallery-card {
    cursor: zoom-in;
    outline: none;
}

.gallery-card:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 5px;
}

.gallery-img-container {
    overflow: hidden;
}

.gallery-img-container img {
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), filter 400ms ease;
}

.gallery-card:hover .gallery-img-container img,
.gallery-card:focus-visible .gallery-img-container img {
    transform: scale(1.075);
    filter: saturate(1.08) contrast(1.03);
}

body.gallery-lightbox-open {
    overflow: hidden;
}

.gallery-lightbox {
    position: fixed;
    z-index: 3000;
    inset: 0;
    display: grid;
    padding: clamp(1rem, 4vw, 3rem);
    place-items: center;
    background: rgba(7, 10, 34, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 260ms ease, visibility 260ms ease;
    backdrop-filter: blur(12px);
}

.gallery-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.gallery-lightbox-dialog {
    position: relative;
    display: grid;
    width: min(1120px, 100%);
    max-height: 90vh;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    transform: translateY(20px) scale(0.98);
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-lightbox.is-open .gallery-lightbox-dialog {
    transform: none;
}

.gallery-lightbox figure {
    overflow: hidden;
    border-radius: 14px;
    background: #111633;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.gallery-lightbox figure img {
    display: block;
    width: 100%;
    max-height: 76vh;
    object-fit: contain;
}

.gallery-lightbox figcaption {
    padding: 0.9rem 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-align: center;
}

.gallery-lightbox button {
    display: grid;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    place-items: center;
    background: rgba(16, 21, 63, 0.72);
    cursor: pointer;
    transition: background-color 180ms ease, transform 180ms ease;
}

.gallery-lightbox button:hover {
    background: var(--accent-color);
    transform: scale(1.06);
}

.gallery-lightbox-nav {
    width: 48px;
    height: 48px;
    margin: 0 0.75rem;
    border-radius: 50%;
}

.gallery-lightbox-close {
    position: absolute;
    z-index: 2;
    top: -1rem;
    right: -1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

@media (max-width: 760px) {
    .hero {
        min-height: 600px;
    }

    .hero-content {
        padding: 4rem 0.25rem 7rem;
    }

    .hero-slide img {
        object-position: 60% center;
    }

    .login-brand {
        align-items: stretch;
    }

    .login-brand-logo {
        align-self: center;
    }

    .gallery-lightbox {
        padding: 1rem;
    }

    .gallery-lightbox-dialog {
        display: block;
    }

    .gallery-lightbox-nav {
        position: absolute;
        z-index: 2;
        top: 50%;
        margin: 0;
    }

    .gallery-lightbox-prev {
        left: 0.5rem;
    }

    .gallery-lightbox-next {
        right: 0.5rem;
    }

    .gallery-lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.is-ready > nav,
    body.is-ready > main,
    body.is-ready > section,
    body.is-ready > footer,
    .hero-slide,
    .gallery-img-container img,
    .gallery-lightbox,
    .gallery-lightbox-dialog {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 45px;
        width: 45px;
    }

    .logo-text h2 {
        font-size: 1rem;
    }

    .logo-text p {
        font-size: 0.6rem;
        max-width: 200px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cta-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .admission-form,
    .contact-form {
        padding: 1.5rem;
    }

    .admission-info summary {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .requirements-summary-action {
        grid-column: 2;
        white-space: normal;
    }

    .application-steps li {
        font-size: 0;
    }

    .application-steps li span {
        margin-bottom: 0;
        font-size: 0.8rem;
    }

    .application-step-actions {
        align-items: stretch;
    }

    .step-button,
    .application-step-actions .submit-btn {
        flex: 1;
        padding-inline: 0.8rem;
    }
}


/* Programs Section */
.programs-section {
    padding: 5rem 0;
    background: var(--white);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.program-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--accent-green));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.program-card:hover::before {
    transform: scaleX(1);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(46, 49, 146, 0.2);
    border-color: var(--accent-color);
}

.program-icon {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.program-card h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.program-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.learn-more:hover {
    gap: 1rem;
    color: var(--primary-color);
}

.learn-more i {
    transition: transform 0.3s ease;
}

.learn-more:hover i {
    transform: translateX(5px);
}

/* Stats Section */
.stats-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--gold) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.cta-content p {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn.primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.cta-btn.primary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--white);
    border: 3px solid var(--white);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.cta-btn.secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .programs-grid,
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .programs-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
    }
}


/* About Page Styles */
.about-intro {
    text-align: left;
    max-width: 900px;
    margin: 0 auto 4rem;
    padding: 0;
}

.about-intro h2 {
    color: var(--primary-color);
    font-size: 2.15rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.about-intro .lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Timeline Section */
.history-section {
    margin-bottom: 4rem;
}

.history-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.15rem;
    margin-bottom: 2rem;
    font-weight: 800;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    flex: 0 0 120px;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.timeline-year::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--primary-color);
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item:nth-child(odd) .timeline-year::after {
    right: -60px;
    left: auto;
}

.timeline-item:nth-child(even) .timeline-year::after {
    left: -60px;
}

.timeline-content {
    flex: 1;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 0 3rem;
    border-left: 4px solid var(--primary-color);
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.timeline-content p {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Leadership Section */
.leadership-section {
    margin-bottom: 4rem;
}

.leadership-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.15rem;
    margin-bottom: 2rem;
    font-weight: 800;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.leader-card {
    background: var(--white);
    padding: 1.6rem;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(20, 30, 74, 0.08);
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid #e8ebf0;
    border-top: 4px solid var(--accent-color);
    display: flex;
    flex-direction: column;
}

.leader-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(20, 30, 74, 0.12);
    border-color: rgba(247, 147, 30, 0.5);
}

.leader-card-header {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.leader-image {
    width: 72px;
    height: 72px;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 8px 18px rgba(46, 49, 146, 0.16);
    flex-shrink: 0;
}

.leader-card h3 {
    color: var(--primary-color);
    font-size: 1.32rem;
    line-height: 1.25;
    margin: 0 0 0.35rem;
    font-weight: 700;
}

.leader-title {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.leader-bio {
    color: var(--text-dark);
    line-height: 1.62;
    margin: 0 0 1.2rem;
    font-size: 0.98rem;
}

.leader-credentials {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding-top: 1rem;
    border-top: 1px solid #eef0f3;
    margin-top: auto;
}

.leader-credentials h4 {
    color: var(--primary-color);
    font-size: 0.82rem;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.leader-credentials span {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.45;
}

.leader-credentials i {
    color: var(--accent-green);
    margin-top: 0.18rem;
}

.leader-credentials ul {
    list-style: disc;
    margin: 0.1rem 0 0 1.25rem;
    padding: 0;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.55;
}

.leader-credentials li + li {
    margin-top: 0.35rem;
}

@media (max-width: 1080px) {
    .leadership-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mission Vision Values */
.mission-vision-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.mvv-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 5px solid var(--primary-color);
}

.mvv-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.mvv-card h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.mvv-card p {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1.05rem;
}

.mvv-card .values-list {
    list-style: none;
    padding: 0;
}

.mvv-card .values-list li {
    padding: 0.8rem 0;
    color: var(--text-dark);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mvv-card .values-list i {
    color: var(--accent-green);
    font-size: 1.2rem;
}

/* Accreditation Section */
.accreditation-section {
    padding: 3.5rem 0;
    background: var(--light-bg);
}

.accreditation-section h2 {
    color: var(--primary-color);
    font-size: 2.15rem;
    margin-bottom: 2rem;
    font-weight: 800;
    text-align: center;
}

.accreditation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 1120px;
    margin: 0 auto;
}

.accreditation-card {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 1rem;
    align-items: start;
    min-height: 132px;
    padding: 1.25rem;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid #e8ebf0;
    box-shadow: 0 10px 24px rgba(20, 30, 74, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-align: left;
}

.accreditation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(20, 30, 74, 0.11);
    border-color: rgba(247, 147, 30, 0.5);
}

.accreditation-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef6ef;
    color: var(--primary-color);
    font-size: 1.55rem;
}

.accreditation-card h4 {
    color: var(--primary-color);
    font-size: 1.08rem;
    line-height: 1.3;
    margin: 0 0 0.45rem;
    font-weight: 700;
}

.accreditation-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

.partners-section {
    padding: 4.5rem 0 1rem;
}

.partners-section h2 {
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 2.15rem;
    text-align: center;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.partner-card {
    display: flex;
    min-width: 0;
    min-height: 220px;
    padding: 1.5rem 1rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #e8ebf0;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 10px 24px rgba(20, 30, 74, 0.07);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.partner-card:hover {
    transform: translateY(-3px);
    border-color: rgba(247, 147, 30, 0.5);
    box-shadow: 0 16px 32px rgba(20, 30, 74, 0.11);
}

.partner-card img {
    width: 100%;
    height: 112px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.partner-card h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.45;
}

@media (max-width: 1080px) {
    .partners-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .partners-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

@media (max-width: 1080px) {
    .accreditation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row !important;
    }
    
    .timeline-year {
        flex: 0 0 60px;
        font-size: 1.5rem;
    }
    
    .timeline-year::after,
    .timeline-item:nth-child(odd) .timeline-year::after,
    .timeline-item:nth-child(even) .timeline-year::after {
        left: 30px !important;
        right: auto !important;
    }
    
    .timeline-content {
        margin: 0 0 0 2rem;
    }
    
    .leadership-grid {
        grid-template-columns: 1fr;
    }

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

    .mission-vision-values {
        grid-template-columns: 1fr;
    }
}

/* Client-ready refinement layer */
:root {
    --primary-color: #292d7a;
    --secondary-color: #1f235f;
    --accent-color: #f59e0b;
    --accent-strong: #b45309;
    --accent-green: #176b52;
    --text-dark: #202533;
    --text-light: #596174;
    --light-bg: #f5f7fb;
    --surface: #ffffff;
    --surface-muted: #f5f7fb;
    --border-color: #e1e5ec;
    --shadow-sm: 0 6px 18px rgba(31, 35, 95, 0.08);
    --shadow-md: 0 12px 30px rgba(31, 35, 95, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --motion-fast: 160ms;
    --motion-base: 240ms;
}

body {
    background: var(--surface);
    color: var(--text-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid #1d4ed8;
    outline-offset: 3px;
}

.navbar {
    background: var(--primary-color);
    box-shadow: 0 2px 12px rgba(20, 24, 74, 0.16);
}

.page-header,
.login-brand {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.section-header h2,
.showcase h2 {
    background: none;
    color: var(--primary-color);
    -webkit-text-fill-color: currentColor;
}

.feature-icon,
.feature-card i,
.info-card i {
    background: none;
    color: var(--primary-color);
    -webkit-text-fill-color: currentColor;
}

.feature-card::before {
    background: var(--accent-color);
}

.page-header,
.login-brand {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.section-header h2,
.showcase h2 {
    background: none;
    color: var(--primary-color);
    -webkit-text-fill-color: currentColor;
}

.feature-icon,
.feature-card i,
.info-card i {
    background: none;
    color: var(--primary-color);
    -webkit-text-fill-color: currentColor;
}

.feature-card::before {
    background: var(--accent-color);
}

.navbar .container {
    flex-wrap: nowrap;
}

.logo,
.nav-links,
.nav-links li {
    min-width: 0;
}

.logo {
    gap: 0.75rem;
}

.logo:hover {
    transform: none;
}

.login-btn,
.cta-btn,
.submit-btn,
.step-button {
    min-height: 46px;
    border-radius: var(--radius-sm) !important;
    letter-spacing: 0.02em;
    text-transform: none;
    transition: background-color var(--motion-fast) ease, color var(--motion-fast) ease,
        border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease,
        transform var(--motion-fast) ease;
}

.login-btn,
.cta-btn,
.submit-btn {
    background: var(--accent-color) !important;
    color: #231904 !important;
    box-shadow: none;
}

.login-btn:hover,
.cta-btn:hover,
.submit-btn:not(:disabled):hover {
    background: #e58d00 !important;
    color: #1c1403 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(180, 83, 9, 0.2);
}

.cta-btn.secondary {
    background: transparent !important;
    color: var(--white) !important;
    border-color: rgba(255, 255, 255, 0.8);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--white) !important;
}

.feature-card,
.program-card,
.info-card,
.leader-card,
.mvv-card,
.accreditation-card,
.partner-card,
.career-benefit-card,
.career-opening-card,
.contact-form,
.admission-form,
.login-wrapper {
    border-radius: var(--radius-md);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.feature-card,
.program-card,
.info-card,
.leader-card,
.mvv-card,
.accreditation-card,
.partner-card,
.career-benefit-card,
.career-opening-card {
    transition: transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease,
        border-color var(--motion-fast) ease;
}

.feature-card:hover,
.program-card:hover,
.info-card:hover,
.leader-card:hover,
.mvv-card:hover,
.accreditation-card:hover,
.partner-card:hover,
.career-benefit-card:hover,
.career-opening-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.section-header h2,
.showcase h2,
.about-intro h2,
.history-section h2,
.leadership-section h2,
.accreditation-section h2,
.partners-section h2,
.career-section-heading h2,
.career-application h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.2;
}

.page-header {
    padding: 2.25rem 1rem;
    box-shadow: none;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-shadow: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.88);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 998;
    border: 0;
    background: rgba(13, 17, 48, 0.58);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--motion-base) ease, visibility var(--motion-base) ease;
}

body.menu-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1120px) {
    .menu-toggle {
        position: relative;
        z-index: 1002;
        display: inline-grid;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        place-items: center;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.24);
        border-radius: var(--radius-sm);
        color: var(--white);
    }

    .nav-links {
        left: 0;
        width: min(320px, calc(100vw - 56px));
        max-width: none;
        padding: 5.5rem 1.25rem 2rem;
        gap: 0.35rem;
        background: var(--primary-color);
        transform: translateX(-105%);
        transition: transform var(--motion-base) cubic-bezier(0.22, 1, 0.36, 1);
        box-shadow: 12px 0 30px rgba(13, 17, 48, 0.25);
        z-index: 1001;
    }

    .nav-links.active {
        left: 0;
        transform: translateX(0);
    }

    .nav-links a {
        min-height: 46px;
        display: flex;
        align-items: center;
        padding: 0.7rem 1rem;
    }

    .nav-links .login-btn {
        justify-content: center;
        margin-top: 0.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        text-align: left;
    }
}

@media (max-width: 760px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .login-section {
        align-items: flex-start;
        min-height: auto;
        padding: 1.5rem 1rem 2.5rem;
    }

    .login-wrapper {
        overflow: visible;
    }

    .login-brand {
        min-height: 0;
        padding: 1.25rem 1.5rem;
        text-align: left;
        align-items: flex-start;
    }

    .login-brand-logo {
        width: 56px;
        height: 56px;
        margin-bottom: 0.75rem;
    }

    .login-brand h2 {
        margin-bottom: 0.35rem;
        font-size: 1.35rem;
    }

    .login-brand > p {
        margin-bottom: 0;
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .login-features {
        display: none;
    }

    .login-box {
        padding: 1.75rem 1.25rem;
    }

    .login-box-header {
        margin-bottom: 1.5rem;
    }

    .login-box-header i {
        display: none;
    }

    .login-box h2 {
        font-size: 1.65rem;
    }

    .checkbox {
        min-height: 44px;
    }

    .checkbox input[type="checkbox"] {
        width: 20px;
        height: 20px;
        flex: 0 0 20px;
    }

    .contact-info {
        gap: 0.85rem;
    }

    .info-card {
        min-height: 0;
        padding: 1.25rem;
    }

    .info-card i {
        margin-bottom: 0.6rem;
        font-size: 2rem;
    }

    .about-content,
    .admission-content,
    .contact-content,
    .gallery-content,
    .careers-content {
        padding: 2.5rem 0;
    }

    .career-section,
    .careers-intro {
        margin-bottom: 3rem;
    }

    .partner-card {
        min-height: 180px;
    }
}

@media (max-width: 360px) {
    .navbar {
        padding: 0.55rem 0;
    }

    .navbar .container {
        gap: 0.5rem;
    }

    .logo {
        flex: 1 1 auto;
        gap: 0.55rem;
    }

    .logo-img {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
    }

    .logo-text p {
        display: none;
    }

    .logo-text h2 {
        margin: 0;
        font-size: 1rem;
    }

    .hero {
        min-height: 520px;
        padding-inline: 0.75rem;
    }
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.programs-heading {
    margin-bottom: 36px;
}

.programs-cta {
    margin-top: 40px;
    text-align: center;
}

.contact-links li {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
}

@media (max-width: 520px) {
    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .cta-btn {
        width: 100%;
    }
}

/* --- REFINED UI POLISH (2026-06-22) --- */

.login-section {
    background: var(--surface-muted);
}

.login-wrapper, .register-wrapper {
    box-shadow: 0 30px 70px rgba(31, 35, 95, 0.15);
    border: 1px solid var(--border-color);
}

.login-brand {
    background: var(--primary-gradient) !important;
    position: relative;
    overflow: hidden;
}

.login-brand::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.login-box {
    background: var(--surface);
}

.login-box-header h2 {
    color: var(--primary-color);
}

.login-box-header i {
    color: var(--accent-color);
}

.login-submit {
    width: 100%;
    margin-top: 1rem;
}

.login-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

:root {
    --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --surface: #ffffff;
    --surface-muted: #f9fafb;
    --border-color: #e5e7eb;
}

/* Page Header Refinement */
.page-header {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/gallery/engineers.png') center/cover no-repeat;
    opacity: 0.15;
    mix-blend-mode: overlay;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Form Styling Refinement */
.admission-form, .contact-form, .career-application {
    background: var(--surface);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.1);
    background: var(--white);
}

.submit-btn {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(46, 49, 146, 0.2);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 49, 146, 0.3);
    background: var(--primary-color);
}

/* Admission Specific Refinements */
.admission-info {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--surface-muted);
    margin-bottom: 30px;
}

.admission-info summary {
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-sm);
}

.requirements-summary-icon {
    color: var(--accent-color);
}

.application-progress-bar span {
    background: var(--accent-color);
}

.application-steps li.is-active span {
    background: var(--accent-color);
}

.application-steps li.is-complete span {
    background: var(--primary-color);
}

/* Contact Specific Refinements */
.info-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.info-card i {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 4px solid var(--white);
}

/* Careers Page Refinements */
.career-benefit-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.career-benefit-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.career-benefit-icon {
    background: var(--surface-muted);
    color: var(--accent-green);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.career-empty-state {
    background: var(--surface-muted);
    border: 2px dashed var(--border-color);
    padding: 60px;
    border-radius: var(--radius-md);
}

.career-empty-state i {
    color: var(--text-light);
    opacity: 0.5;
}

/* Mobile Adjustments for Refined UI */
@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 40px;
    }
    .page-header h1 {
        font-size: 2.2rem;
    }
    .admission-form, .contact-form {
        padding: 25px;
    }
}

/* Smooth Entrance for Page Sections */
section, main > .container > section, .admission-form, .contact-form {
    margin-bottom: 2rem;
}

/* Enhancing list readability in forms */
.requirements-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.requirements-list li:last-child {
    border-bottom: none;
}

/* Custom Checkbox refinement */
.checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--surface-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.checkbox:hover {
    background: #f0f2f5;
}

.checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* --- Functional Area Polishing (Admissions) --- */

.step-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.step-button-primary {
    background: var(--accent-color);
    color: var(--white);
}

.step-button-primary:hover {
    background: var(--gold);
    transform: translateX(3px);
}

.step-button-secondary {
    background: var(--surface-muted);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.step-button-secondary:hover {
    background: var(--border-color);
    transform: translateX(-3px);
}

.application-step-heading {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.application-step-heading h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.application-step-heading span {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Success/Error states for forms */
.form-group input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-group input:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
}

/* Responsive refinements for the new UI */
@media (max-width: 992px) {
    .leadership-grid, .career-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .leadership-grid, .career-benefits-grid, .mvv-grid {
        grid-template-columns: 1fr;
    }

    .application-steps {
        display: none; /* Hide step labels on small mobile if they overlap */
    }

    .application-progress-bar {
        margin-bottom: 10px;
    }

    .contact-main {
        flex-direction: column;
    }
}

/* Ensure motion is disabled if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .hero, .cta-btn, .card, .program-card, .info-card, .career-benefit-card {
        transition: none !important;
        animation: none !important;
    }
}
