:root {
    --brand-blue: #1e73be;
    --brand-blue-strong: #0f5ea5;
    --brand-cyan: #00b6c7;
    --brand-deep: #0f3f79;
    --brand-navy: #0b2c56;
    --brand-gold: #ecb131;
    --primary: var(--brand-blue);
    --primary-dark: #154f83;
    --surface: #ffffff;
    --surface-soft: #f4f8ff;
    --text: #1d2433;
    --text-soft: #5c657a;
    --border: #d8e3ff;
    --shadow: 0 18px 45px rgba(30, 115, 190, 0.18);
    --radius: 18px;
    --nav-height: 108px;
    --header-offset: calc(var(--nav-height) + 6px);
}

* {
    box-sizing: border-box;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-offset);
}

body {
    font-family: "Urbanist", sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

#home,
#about,
#news,
#events,
#contact {
    scroll-margin-top: var(--header-offset);
}

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

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.top-strip {
    background: linear-gradient(90deg, var(--brand-blue-strong) 0%, var(--brand-cyan) 100%);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.top-strip-grid {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.top-strip-social,
.top-strip-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.top-strip-social a,
.top-strip-info a {
    color: #fff;
    font-size: 0.84rem;
    line-height: 1;
    padding: 0.62rem 0.72rem;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.top-strip-social a {
    border-right: 1px solid rgba(255, 255, 255, 0.22);
    position: relative;
}

.top-strip-social a:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.top-strip-info a + a {
    border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.top-strip-info a:hover {
    background: rgba(0, 0, 0, 0.14);
}

.top-strip-social a:hover,
.top-strip-social a:focus-visible {
    transform: translateY(-2px) scale(1.08);
    z-index: 1;
}

.top-strip-social a.social-facebook:hover,
.top-strip-social a.social-facebook:focus-visible {
    background: #3b5998;
    box-shadow: 0 10px 18px rgba(59, 89, 152, 0.38);
}

.top-strip-social a.social-instagram:hover,
.top-strip-social a.social-instagram:focus-visible {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 45%, #8134af 75%, #515bd4 100%);
    box-shadow: 0 10px 18px rgba(221, 42, 123, 0.35);
}

.top-strip-social a.social-tiktok:hover,
.top-strip-social a.social-tiktok:focus-visible {
    background: #000;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.45);
}

.top-strip-social a.social-moodle:hover,
.top-strip-social a.social-moodle:focus-visible {
    background: #dd9933;
    box-shadow: 0 10px 18px rgba(221, 153, 51, 0.35);
}

.top-strip-social a.social-datasistemas:hover,
.top-strip-social a.social-datasistemas:focus-visible {
    background: linear-gradient(135deg, #2e7d32 0%, #1e88e5 100%);
    box-shadow: 0 10px 18px rgba(30, 136, 229, 0.35);
}

.navbar-wrap {
    position: sticky;
    top: 0;
    z-index: 29;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e6edff;
}

.navbar {
    min-height: var(--nav-height);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
}

.logo-img {
    height: 88px;
    width: auto;
    object-fit: contain;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.logo-title {
    font-weight: 800;
    color: var(--brand-deep);
    font-size: 1.75rem;
    line-height: 1.1;
    transition: color 0.25s ease;
}

.logo:hover .logo-img,
.logo:focus-visible .logo-img {
    transform: translateY(-2px) scale(1.06);
    filter: drop-shadow(0 10px 18px rgba(30, 115, 190, 0.32));
}

.logo:hover .logo-title,
.logo:focus-visible .logo-title {
    color: var(--primary-dark);
}

.main-nav {
    margin-left: auto;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.main-nav a {
    font-weight: 600;
    color: #2f3852;
    position: relative;
    padding-bottom: 0.2rem;
    transition: color 0.2s ease;
}

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

.main-nav a.is-active {
    color: var(--primary-dark);
}

.main-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.2rem;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
}

.btn {
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 26px rgba(30, 115, 190, 0.32);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-light {
    background: #e9f3ff;
    color: var(--brand-deep);
}

.hero {
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.24) 0 160px, transparent 161px),
        radial-gradient(circle at 85% 70%, rgba(255, 255, 255, 0.18) 0 180px, transparent 181px),
        linear-gradient(128deg, var(--brand-blue-strong) 0%, var(--brand-blue) 43%, var(--brand-deep) 78%, var(--brand-navy) 100%);
    color: #fff;
    overflow: hidden;
}

.page-hero {
    background:
        radial-gradient(circle at 14% 20%, rgba(255, 255, 255, 0.18) 0 160px, transparent 161px),
        linear-gradient(128deg, var(--brand-blue-strong) 0%, var(--brand-blue) 58%, var(--brand-deep) 100%);
    color: #fff;
}

.page-hero .container {
    padding: 3.2rem 0 3.5rem;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    line-height: 1.15;
}

.page-hero p {
    margin: 1rem 0 0;
    color: #e4edff;
    max-width: 700px;
}

.hero-grid {
    padding: 5.2rem 0 5.5rem;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 2rem;
    align-items: center;
}

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

.hero-kicker {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.hero-kicker-logo {
    display: block;
    width: min(230px, 58vw);
    height: auto;
    margin: 0;
}

.hero h1 {
    margin: 0;
    font-size: clamp(1.05rem, 1.9vw, 1.55rem);
    line-height: 1.45;
    text-align: justify;
    text-justify: inter-word;
}

.hero h1 span {
    color: #f7d37a;
}

.hero p {
    margin: 1.3rem 0 0;
    color: #e4edff;
    max-width: 560px;
}

.hero-students {
    margin-top: 1.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.35rem 0.9rem 0.35rem 0.35rem;
}

.hero-students img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.hero-media {
    position: relative;
    max-width: 520px;
    justify-self: end;
}

.hero-media img {
    border-radius: 26px;
    border: 8px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 24px 52px rgba(1, 20, 60, 0.35);
}

.float-card {
    position: absolute;
    background: #fff;
    color: #0e1f42;
    border-radius: 14px;
    box-shadow: 0 15px 30px rgba(0, 32, 101, 0.2);
    padding: 0.75rem 0.9rem;
    min-width: 148px;
}

.float-card strong {
    display: block;
    font-size: 1.2rem;
}

.float-card span {
    color: #5a6885;
    font-size: 0.86rem;
}

.students-card {
    left: -36px;
    bottom: 52px;
}

.courses-card {
    right: -30px;
    top: 48px;
}

.section {
    padding: 5rem 0;
}

.section-title {
    margin-bottom: 2rem;
}

.section-title span {
    display: inline-flex;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.section-title h2 {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.2;
}

.section-title.center {
    text-align: center;
}

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

.feature-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    padding: 1.35rem;
    box-shadow: 0 8px 20px rgba(27, 52, 104, 0.07);
}

.feature-card h3 {
    margin: 0 0 0.6rem;
    font-size: 1.1rem;
}

.feature-card p {
    margin: 0;
    color: var(--text-soft);
}

.institution-grid .flip-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    min-height: 220px;
    perspective: 1200px;
}

.institution-grid .flip-card:focus-visible {
    outline: 3px solid rgba(30, 115, 190, 0.38);
    outline-offset: 6px;
}

.institution-grid .flip-card-inner {
    position: relative;
    width: 100%;
    min-height: 220px;
    border-radius: var(--radius);
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.institution-grid .flip-card:hover .flip-card-inner,
.institution-grid .flip-card:focus-visible .flip-card-inner,
.institution-grid .flip-card.is-flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.institution-grid .flip-card-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
    padding: 1.3rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 12px 28px rgba(10, 35, 90, 0.2);
    backface-visibility: hidden;
    color: #fff;
}

.institution-grid .flip-card-face h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}

.institution-grid .flip-card-face p {
    margin: 0;
    color: #fff;
    line-height: 1.45;
}

.flip-card-hint {
    margin-top: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    opacity: 0.88;
    text-transform: uppercase;
}

.institution-grid .flip-card-back {
    transform: rotateY(180deg);
}

.institution-grid .flip-card:nth-child(1) .flip-card-front {
    background: #333a65;
}

.institution-grid .flip-card:nth-child(1) .flip-card-back {
    background: #252a4c;
}

.institution-grid .flip-card:nth-child(2) .flip-card-front {
    background: #626ce1;
}

.institution-grid .flip-card:nth-child(2) .flip-card-back {
    background: #3d47be;
}

.institution-grid .flip-card:nth-child(3) .flip-card-front {
    background: #00b6c7;
}

.institution-grid .flip-card:nth-child(3) .flip-card-back {
    background: #0a8e9b;
}

.institution-grid .flip-card:nth-child(4) .flip-card-front {
    background: #1f98df;
}

.institution-grid .flip-card:nth-child(4) .flip-card-back {
    background: #176ea2;
}

.horizon-block {
    margin-top: 0;
}

.horizon-intro {
    margin: 0 0 1rem;
    color: var(--text-soft);
    line-height: 1.55;
}

.horizon-accordion {
    display: grid;
    gap: 0.75rem;
}

.horizon-accordion-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(27, 52, 104, 0.07);
    overflow: hidden;
}

.horizon-accordion-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.horizon-accordion-item summary::-webkit-details-marker {
    display: none;
}

.horizon-accordion-item summary::after {
    content: '+';
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    background: #edf4ff;
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.horizon-accordion-item[open] summary::after {
    content: '-';
}

.horizon-accordion-item p {
    margin: 0;
    padding: 0 1.2rem 1rem;
    color: var(--text-soft);
    line-height: 1.6;
}

.horizon-values {
    margin-top: -0.4rem;
    color: var(--text);
}

.horizon-item-image {
    display: block;
    width: calc(100% - 2.4rem);
    margin: 0 1.2rem 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.horizon-symbols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    padding: 0 1.2rem 1.2rem;
}

.horizon-symbol-card {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.horizon-symbol-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    padding: 0.75rem;
}

.horizon-symbol-card figcaption {
    margin: 0;
    padding: 0.55rem 0.75rem 0.7rem;
    text-align: center;
    font-weight: 700;
    color: var(--text);
    border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
    .horizon-symbols {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .institution-grid .flip-card-inner {
        transition: none;
    }
}

.stats-section {
    background: var(--surface-soft);
}

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

.stat-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.35rem;
    text-align: center;
}

.stat-card h4 {
    margin: 0;
    color: var(--primary);
    font-size: clamp(1.3rem, 3vw, 1.85rem);
}

.stat-card p {
    margin: 0.45rem 0 0;
    color: var(--text-soft);
}

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

.content-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #e3ebff;
    box-shadow: 0 8px 20px rgba(10, 49, 129, 0.08);
    background: #fff;
}

.content-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.content-body {
    padding: 1rem 1rem 1.1rem;
}

.content-body small {
    color: var(--primary);
    font-weight: 700;
}

.content-body h3 {
    margin: 0.35rem 0 0.6rem;
    font-size: 1.2rem;
    line-height: 1.3;
}

.content-body p {
    margin: 0;
    color: var(--text-soft);
}

.content-body p + p {
    margin-top: 0.5rem;
}

.events-section {
    background: linear-gradient(180deg, #fff 0%, #f5f8ff 100%);
}

.section-actions {
    margin-top: 1.3rem;
}

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

.newsletter {
    background: var(--brand-deep);
    color: #fff;
}

.newsletter-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
}

.newsletter-grid h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.newsletter form {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    width: min(460px, 100%);
}

.newsletter input {
    flex: 1;
    min-width: 210px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 0.8rem 1rem;
    outline: 0;
}

.newsletter button {
    border: 0;
    border-radius: 999px;
    padding: 0.8rem 1rem;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.footer {
    background: #07162f;
    color: #d3def8;
    padding: 3.5rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 1.6rem;
}

.footer h3,
.footer h4 {
    color: #fff;
    margin-top: 0;
}

.footer-logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0.65rem;
    display: inline-block;
    padding: 0.45rem 0.75rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(230, 241, 255, 0.95));
    box-shadow: 0 10px 26px rgba(5, 22, 55, 0.45), 0 0 18px rgba(121, 180, 255, 0.32);
    filter: saturate(1.08) contrast(1.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-logo-img:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 30px rgba(5, 22, 55, 0.52), 0 0 24px rgba(121, 180, 255, 0.38);
}

.footer p {
    margin: 0.45rem 0;
}

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

.footer li + li {
    margin-top: 0.3rem;
}

.footer a {
    color: #d3def8;
}

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

.footer-admin-row {
    border-top: 1px solid rgba(211, 222, 248, 0.2);
    margin-top: 1.4rem;
    padding-top: 1rem;
    text-align: center;
}

.footer-admin-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(211, 222, 248, 0.45);
    color: #fff;
    font-weight: 700;
}

.empty-state {
    margin: 0;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    border: 1px dashed #bfd0ff;
    color: #486099;
    background: #f3f7ff;
}

.custom-page-copy {
    margin: 0;
    max-width: 860px;
    color: var(--text-soft);
    line-height: 1.8;
    font-size: 1.03rem;
}

.custom-page-layout {
    display: grid;
    gap: 1rem;
    max-width: 980px;
}

.custom-page-image {
    width: min(100%, 980px);
    border-radius: 16px;
    border: 1px solid #dce8ff;
    box-shadow: 0 14px 32px rgba(15, 57, 130, 0.12);
    object-fit: cover;
}

.custom-page-embed {
    border: 1px solid #d5e2ff;
    background: #f7faff;
    border-radius: 16px;
    padding: 0.65rem;
}

.custom-page-iframe,
.custom-page-embed iframe {
    width: 100%;
    min-height: 380px;
    border: 0;
    display: block;
    border-radius: 12px;
    background: #fff;
}

.custom-page-blocks-layout {
    gap: 1.2rem;
}

.page-ingresar .custom-page-layout,
.page-ingresar .custom-page-blocks-layout {
    width: min(100%, 1180px);
    max-width: none;
    margin: 0 auto;
}

.page-ingresar .custom-page-blocks-layout {
    justify-items: center;
}

.page-ingresar .custom-block.custom-block-embed {
    width: 100%;
    margin: 0 auto;
}

.page-ingresar .custom-page-embed {
    margin: 0 auto;
}

.page-ingresar .custom-page-iframe,
.page-ingresar .custom-page-embed iframe {
    min-height: 72vh;
}

.custom-block {
    border: 1px solid #dce7ff;
    border-radius: 16px;
    background: #fff;
    padding: 1.1rem;
    box-shadow: 0 10px 26px rgba(16, 49, 110, 0.08);
}

.custom-block-title {
    margin: 0;
    color: #162d5d;
}

.custom-block-kicker {
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.74rem;
    color: #4d66a3;
    font-weight: 700;
}

.custom-block-text {
    margin: 0;
    color: #405374;
    line-height: 1.75;
}

.custom-block-heading-center,
.custom-block-hero-center {
    text-align: center;
}

.custom-block-hero {
    display: grid;
    gap: 0.9rem;
    background: linear-gradient(140deg, #f7fbff, #ffffff);
}

.custom-block-hero-media img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #d7e5ff;
    object-fit: cover;
    box-shadow: 0 12px 26px rgba(19, 56, 124, 0.1);
}

.custom-block-hero-content {
    display: grid;
    gap: 0.65rem;
}

.custom-block-btn {
    justify-self: start;
}

.custom-block-hero-center .custom-block-btn {
    justify-self: center;
}

.custom-block-image {
    margin: 0;
}

.custom-block-image img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #d7e5ff;
}

.custom-block-image figcaption {
    margin-top: 0.6rem;
    color: #4f6083;
    font-size: 0.9rem;
    line-height: 1.5;
}

.custom-block-video {
    margin: 0;
}

.custom-block-video-media {
    width: 100%;
    display: block;
    border-radius: 12px;
    border: 1px solid #d7e5ff;
    background: #000;
    max-height: 620px;
}

.custom-block-video figcaption {
    margin-top: 0.6rem;
    color: #4f6083;
    font-size: 0.9rem;
    line-height: 1.5;
}

.custom-block-columns-grid {
    margin-top: 0.8rem;
    display: grid;
    gap: 0.75rem;
}

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

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

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

.custom-block-column {
    display: grid;
    gap: 0.7rem;
}

.custom-block-column .custom-block {
    margin: 0;
    box-shadow: none;
    border-color: #e2ebff;
    background: #fcfdff;
}

.custom-block-column-empty {
    margin: 0;
    padding: 0.7rem;
    border: 1px dashed #c8d8ff;
    border-radius: 10px;
    color: #4a6395;
    background: #f3f7ff;
    font-size: 0.88rem;
}

.custom-block-gallery-grid {
    margin-top: 0.8rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.custom-block-gallery-item {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #d7e5ff;
    background: #f8fbff;
}

.custom-block-gallery-item img {
    width: 100%;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.custom-block-quote {
    margin: 0;
    border-left: 4px solid #5b82da;
    background: #f6f9ff;
}

.custom-block-quote p {
    margin: 0;
    color: #30486e;
    line-height: 1.75;
}

.custom-block-quote cite {
    display: block;
    margin-top: 0.7rem;
    color: #4c6189;
    font-style: normal;
    font-weight: 600;
}

.custom-block-list-items {
    margin: 0.75rem 0 0;
    padding-left: 1.2rem;
    color: #3f5378;
    display: grid;
    gap: 0.4rem;
}

.custom-block-list-check {
    list-style: none;
    padding-left: 0;
}

.custom-block-list-check li {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.custom-block-list-check li::before {
    content: "✓";
    color: #0a8a53;
    font-weight: 700;
}

.custom-block-cta {
    background: linear-gradient(145deg, #0d5ff9 0%, #0a45b9 100%);
    color: #fff;
}

.custom-block-cta .custom-block-title,
.custom-block-cta .custom-block-text {
    color: #fff;
}

.custom-block-cta .custom-block-btn {
    margin-top: 0.8rem;
    background: #fff;
    color: #0f3f9b;
}

.custom-block-stats-grid {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
}

.custom-block-stat-item {
    border: 1px solid #d8e5ff;
    border-radius: 12px;
    background: #f7fbff;
    padding: 0.75rem;
}

.custom-block-stat-item strong {
    display: block;
    color: #1749ad;
    font-size: 1.25rem;
}

.custom-block-stat-item span {
    display: block;
    margin-top: 0.25rem;
    color: #46608f;
    font-size: 0.86rem;
}

.custom-block-code pre {
    margin: 0.72rem 0 0;
    border: 1px solid #d4e1ff;
    border-radius: 12px;
    background: #0f1c35;
    color: #ecf3ff;
    padding: 0.85rem;
    overflow: auto;
}

.custom-block-divider {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.custom-block-divider hr {
    border: 0;
    border-top: 1px solid #d8e4ff;
    margin: 0;
}

.custom-block-divider-space {
    height: 2.4rem;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
}

.custom-block-spacer {
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
}

.custom-block-spacer-sm {
    height: 1rem;
}

.custom-block-spacer-md {
    height: 2rem;
}

.custom-block-spacer-lg {
    height: 3rem;
}

.access-lock-card {
    max-width: 560px;
    margin: 0 auto;
    border: 1px solid #d9e4ff;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 10px 26px rgba(16, 42, 99, 0.08);
    padding: 1.4rem;
}

.access-lock-card h2 {
    margin: 0;
    font-size: 1.55rem;
}

.access-lock-card p {
    margin: 0.7rem 0 0;
    color: #4b5a7b;
}

.access-lock-card form {
    margin-top: 1rem;
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.access-lock-card input[type="password"] {
    flex: 1;
    min-width: 220px;
    border: 1px solid #c8d8ff;
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    font: inherit;
}

.access-lock-error {
    color: #a02944;
    font-weight: 700;
}

.nav-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid #cad8ff;
    background: #f5f8ff;
    border-radius: 10px;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle span {
    height: 2px;
    background: #274179;
    border-radius: 6px;
    display: block;
    transition: transform 0.22s ease, opacity 0.22s ease, background 0.22s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    background: #edf4ff;
    border-color: #a9c3ff;
    box-shadow: 0 10px 24px rgba(23, 65, 128, 0.16);
}

.nav-toggle.is-open {
    background: #1749ad;
    border-color: #1749ad;
}

.nav-toggle.is-open span {
    background: #fff;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.startup-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
}

.startup-modal[hidden] {
    display: none;
}

.startup-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 10, 30, 0.7);
}

.startup-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(580px, calc(100% - 2rem));
    margin: 7vh auto 0;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.32);
    padding: 1rem 1rem 1.4rem;
}

.startup-modal-dialog img {
    width: 100%;
    border-radius: 12px;
    max-height: 280px;
    object-fit: cover;
}

.startup-modal-dialog h3 {
    margin: 1rem 0 0.45rem;
    font-size: 1.6rem;
    line-height: 1.2;
}

.startup-modal-dialog p {
    margin: 0 0 1rem;
    color: #435170;
}

.startup-modal-actions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    font-size: 1.3rem;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .institution-grid .flip-card,
    .institution-grid .flip-card-inner {
        min-height: 205px;
    }

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

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

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

    .hero-media {
        justify-self: stretch;
        max-width: none;
    }

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

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

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

@media (max-width: 860px) {
    :root {
        --nav-height: 84px;
        --header-offset: calc(var(--nav-height) + 14px);
    }

    .container {
        width: min(1180px, calc(100% - 1.4rem));
    }

    .top-strip-grid {
        min-height: auto;
        padding: 0.45rem 0 0.65rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .top-strip-social,
    .top-strip-info {
        width: 100%;
        flex-wrap: nowrap;
        gap: 0.45rem;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 0.1rem;
    }

    .top-strip-social::-webkit-scrollbar,
    .top-strip-info::-webkit-scrollbar {
        display: none;
    }

    .top-strip-social a,
    .top-strip-info a {
        flex: 0 0 auto;
        padding: 0.55rem 0.78rem;
        border: 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.14);
        white-space: nowrap;
    }

    .top-strip-social a:first-child,
    .top-strip-info a + a {
        border-left: 0;
    }

    .navbar {
        position: relative;
        min-height: var(--nav-height);
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 0.75rem);
        right: 0;
        left: 0;
        margin: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.3rem;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid #e3ebff;
        border-radius: 18px;
        box-shadow: 0 24px 45px rgba(10, 38, 94, 0.16);
        padding: 0.85rem;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    }

    .main-nav a {
        width: 100%;
        padding: 0.82rem 0.95rem;
        border-radius: 14px;
        background: #f6f9ff;
    }

    .main-nav a:hover,
    .main-nav a:focus-visible {
        color: var(--primary-dark);
        background: #eaf2ff;
    }

    .main-nav a.is-active {
        color: #fff;
        background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-deep) 100%);
    }

    .main-nav a.is-active::after {
        display: none;
    }

    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .btn-light {
        display: none;
    }

    .logo-img {
        height: 66px;
    }

    .logo-title {
        font-size: 1.25rem;
        max-width: 220px;
    }

    .hero-grid {
        padding: 3.5rem 0 4rem;
        gap: 1.5rem;
    }

    .hero-content {
        padding: 1.15rem;
        border-radius: 24px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
        border: 1px solid rgba(255, 255, 255, 0.16);
        box-shadow: 0 20px 40px rgba(1, 20, 60, 0.18);
        backdrop-filter: blur(10px);
    }

    .hero h1 {
        font-size: clamp(1.12rem, 3.2vw, 1.45rem);
        line-height: 1.6;
        text-align: left;
        text-wrap: pretty;
    }

    .hero-media img {
        width: 100%;
        min-height: 250px;
        object-fit: cover;
        border-width: 6px;
    }

    .newsletter-grid {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .footer-grid > div {
        padding: 1rem 1.05rem;
        border: 1px solid rgba(211, 222, 248, 0.12);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.03);
    }

    .students-card,
    .courses-card {
        position: static;
        margin-top: 0.6rem;
        display: inline-block;
    }
}

@media (max-width: 620px) {
    .institution-grid .flip-card,
    .institution-grid .flip-card-inner {
        min-height: 215px;
    }

    .top-strip-social,
    .top-strip-info {
        gap: 0.4rem;
    }

    .top-strip-social a,
    .top-strip-info a {
        padding: 0.48rem 0.72rem;
        font-size: 0.78rem;
    }

    .card-grid,
    .feature-grid,
    .stats-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    :root {
        --nav-height: 74px;
        --header-offset: calc(var(--nav-height) + 10px);
    }

    .container {
        width: min(1180px, calc(100% - 1rem));
    }

    .section {
        padding: 3.1rem 0;
    }

    .section-title {
        margin-bottom: 1.4rem;
    }

    .hero-grid {
        padding: 2.5rem 0 3rem;
        gap: 1.2rem;
    }

    .hero-content {
        padding: 1rem;
        border-radius: 18px;
    }

    .hero-kicker {
        margin-bottom: 0.95rem;
    }

    .hero-kicker-logo {
        width: min(190px, 62vw);
    }

    .hero h1 {
        font-size: clamp(1.04rem, 4.6vw, 1.22rem);
        line-height: 1.55;
    }

    .hero-media img {
        min-height: 210px;
        border-width: 5px;
        border-radius: 18px;
    }

    .content-card {
        border-radius: 20px;
    }

    .content-card img {
        aspect-ratio: 16 / 11;
    }

    .content-body {
        padding: 0.95rem;
    }

    .feature-card,
    .access-lock-card {
        padding: 1.1rem;
    }

    .footer {
        padding: 2.75rem 0;
    }

    .footer-grid > div {
        padding: 0.95rem;
    }

    .startup-modal {
        padding: 0.75rem;
        overflow-y: auto;
    }

    .startup-modal-dialog {
        width: 100%;
        max-height: calc(100dvh - 1.5rem);
        margin: 1.25rem auto;
        overflow: auto;
        padding: 0.85rem 0.85rem 1rem;
    }

    .startup-modal-dialog img {
        max-height: 200px;
    }

    .startup-modal-dialog h3 {
        font-size: 1.3rem;
    }

    .modal-close {
        top: 12px;
        right: 12px;
    }

    .custom-page-iframe,
    .custom-page-embed iframe {
        min-height: 260px;
    }

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

    .custom-block-columns-2,
    .custom-block-columns-3,
    .custom-block-columns-4 {
        grid-template-columns: 1fr;
    }

    .custom-block {
        padding: 0.9rem;
    }
}
