/* ============================================
   Kasturi College and Secondary School - PREMIUM GATEWAY
   ============================================ */

:root {
    --gw-bg: #f4faf6;
    --gw-bg-gradient: linear-gradient(160deg, #eef8f1 0%, #f9fcfa 45%, #eaf4ee 100%);
    --gw-panel-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.66) 100%);
    --gw-panel-border: rgba(255, 255, 255, 0.72);
    --gw-card-bg: #ffffff;
    --gw-card-border: rgba(4, 74, 38, 0.12);
    --gw-text-primary: #0b4e33;
    --gw-text-secondary: #355c49;
    --gw-text-muted: #5e7d6b;
    --gw-heading-shadow: rgba(11, 78, 51, 0.12);
    --gw-accent: #006837;
    --gw-accent-gradient: linear-gradient(135deg, #006837 0%, #11824b 100%);
}

.gateway-card {
    --card-accent: #0d8a49;
    --card-accent-strong: #076334;
    --card-accent-glow: rgba(13, 138, 73, 0.24);
    --card-border: rgba(13, 138, 73, 0.18);
    --card-image-position: center;
    --card-overlay: linear-gradient(96deg, rgba(248, 252, 249, 0.98) 0%, rgba(248, 252, 249, 0.95) 34%, rgba(248, 252, 249, 0.76) 52%, rgba(248, 252, 249, 0.28) 73%, rgba(248, 252, 249, 0.14) 100%);
    --card-sheen: radial-gradient(circle at top left, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0) 42%);
}

.gateway-card.card-secondary {
    --card-accent: #144f97;
    --card-accent-strong: #0c3565;
    --card-accent-glow: rgba(20, 79, 151, 0.22);
    --card-border: rgba(20, 79, 151, 0.16);
    --card-image-position: 68% center;
}

.gateway-card.card-secondary.gateway-card-priority {
    --card-accent: #007bff;
    --card-accent-strong: #064f9f;
    --card-accent-glow: rgba(0, 123, 255, 0.28);
    --card-border: rgba(0, 123, 255, 0.42);
    border: 2px solid var(--card-border);
    box-shadow: 0 28px 68px rgba(0, 123, 255, 0.18), 0 18px 46px rgba(8, 58, 34, 0.1);
}

.gateway-card.card-academy,
.gateway-card.card-college,
.gateway-card.card-management {
    --card-accent: #0f7857;
    --card-accent-strong: #0a5a41;
    --card-accent-glow: rgba(15, 120, 87, 0.22);
    --card-border: rgba(15, 120, 87, 0.16);
}

.gateway-card.card-academy {
    --card-image-position: 72% center;
}

.gateway-card.card-college {
    --card-image-position: 70% center;
}

.gateway-card.card-management {
    --card-image-position: 72% center;
}

/* ---- Body & Shell ---- */
.gateway-body {
    background: var(--gw-bg) !important;
    color: var(--gw-text-primary) !important;
    font-family: 'Quicksand', 'Outfit', sans-serif !important;
    min-height: 100vh;
}

html.fonts-pending .gateway-body,
html.fonts-pending .gateway-body * {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.gateway-body .fas,
.gateway-body .fab {
    display: inline-block;
    min-width: 1em;
    text-align: center;
    line-height: 1;
}

.gateway-shell {
    min-height: 100vh;
    background: var(--gw-bg-gradient);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gateway-shell::before {
    content: '';
    position: absolute;
    top: -28%;
    right: -16%;
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, rgba(0, 104, 55, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBlob1 20s ease-in-out infinite;
    z-index: 0;
}

.gateway-shell::after {
    content: '';
    position: absolute;
    bottom: -24%;
    left: -16%;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(20, 79, 151, 0.07) 0%, transparent 72%);
    border-radius: 50%;
    animation: floatBlob2 24s ease-in-out infinite;
    z-index: 0;
}

@keyframes floatBlob1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-42px, 30px) scale(1.08); }
}

@keyframes floatBlob2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(32px, -44px) scale(1.12); }
}

/* ---- Wrapper ---- */
.gateway-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 34px;
    padding: 72px 24px 48px;
    position: relative;
    z-index: 2;
}

.gateway-admission-hero {
    width: min(100%, 1240px);
    min-height: clamp(440px, 58vh, 620px);
    position: relative;
    display: grid;
    align-items: center;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 32px 78px rgba(8, 58, 34, 0.18);
    isolation: isolate;
}

.gateway-admission-media,
.gateway-admission-media img,
.gateway-admission-overlay {
    position: absolute;
    inset: 0;
}

.gateway-admission-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.06) contrast(1.02);
}

.gateway-admission-overlay {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(4, 27, 22, 0.88) 0%, rgba(5, 47, 38, 0.72) 45%, rgba(5, 47, 38, 0.28) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.42));
}

.gateway-admission-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: clamp(32px, 6vw, 72px);
    color: #fff;
}

.gateway-admission-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 102, 0, 0.96);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 14px 28px rgba(255, 102, 0, 0.28);
}

.gateway-admission-hero h1 {
    margin: 22px 0 16px;
    max-width: 13ch;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.55rem, 6vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: 0;
    color: #fff;
}

.gateway-admission-hero h2 {
    max-width: 620px;
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    line-height: 1.55;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.gateway-admission-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.gateway-primary-cta,
.gateway-fee-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
}

.gateway-primary-cta {
    padding: 14px 24px;
    background: #ffc107;
    color: #16210d !important;
    box-shadow: 0 18px 34px rgba(255, 193, 7, 0.32);
}

.gateway-primary-cta:hover {
    transform: translateY(-2px);
    filter: saturate(1.05);
}

.gateway-fee-link {
    padding: 12px 18px;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.54);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.gateway-fee-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gateway-selection-panel {
    width: min(100%, 1240px);
    padding: clamp(28px, 3.4vw, 40px);
    padding-bottom: min(72px, 8vw);
    min-height: 680px;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 32px;
    border-radius: 40px;
    background: var(--gw-panel-bg);
    border: 1px solid var(--gw-panel-border);
    box-shadow: 0 28px 70px rgba(10, 54, 28, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
}

.gateway-selection-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 32%),
        radial-gradient(circle at top right, rgba(17, 130, 75, 0.08) 0%, rgba(17, 130, 75, 0) 36%);
    pointer-events: none;
}

/* ---- Header Section ---- */
.gateway-header {
    text-align: center;
    margin: 0 auto 52px;
    max-width: 760px;
    position: relative;
    z-index: 1;
}

.gateway-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 104, 55, 0.12);
    box-shadow: 0 12px 28px rgba(0, 77, 41, 0.06);
    color: var(--gw-accent);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 18px;
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.gateway-header h1 {
    font-family: 'Revue', 'Outfit', serif;
    font-size: clamp(2.2rem, 4.6vw, 4rem);
    font-weight: 900;
    color: var(--gw-text-primary);
    margin-bottom: 14px;
    letter-spacing: -1px;
    line-height: 1.04;
    text-shadow: 0 12px 30px var(--gw-heading-shadow);
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both 0.05s;
}

.gateway-header p {
    font-size: 1.08rem;
    color: var(--gw-text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both 0.1s;
}

/* ---- Grid ---- */
.gateway-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    width: 100%;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

/* ---- Card ---- */
.gateway-card {
    position: relative;
    min-height: 420px;
    border-radius: 32px;
    background: var(--gw-card-bg);
    border: 1px solid var(--gw-card-border);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: stretch;
    padding: clamp(24px, 3vw, 36px);
    transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.45s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.45s ease;
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
    box-shadow: 0 18px 46px rgba(8, 58, 34, 0.1);
    isolation: isolate;
}

.gateway-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--bg-image, none);
    background-position: var(--card-image-position);
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
    transform: scale(1.02);
    filter: saturate(1.07) contrast(0.98) brightness(0.96);
    transition: transform 0.45s ease, filter 0.45s ease;
}

.gateway-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--card-overlay), var(--card-sheen);
    z-index: 1;
    pointer-events: none;
}

.gateway-card > * {
    position: relative;
    z-index: 2;
}

.gateway-card:nth-child(1) { animation-delay: 0.15s; }
.gateway-card:nth-child(2) { animation-delay: 0.25s; }
.gateway-card:nth-child(3) { animation-delay: 0.35s; }
.gateway-card:nth-child(4) { animation-delay: 0.45s; }

.gateway-card:hover {
    transform: translateY(-10px);
    border-color: var(--card-border);
    box-shadow: 0 30px 62px var(--card-accent-glow), 0 18px 34px rgba(0, 52, 26, 0.12);
}

.gateway-card:hover::before {
    transform: scale(1.07);
    filter: saturate(1.12) contrast(1.02) brightness(1);
}

.gateway-card:focus-visible {
    outline: 3px solid rgba(0, 104, 55, 0.24);
    outline-offset: 5px;
}

/* ---- Card Content ---- */
.card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: min(100%, 64%);
    max-width: 460px;
    padding: 2px 0;
}

.card-topline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.card-logo-frame {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 94px;
    height: 94px;
    border-radius: 26px;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.card-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 84px;
    height: 84px;
}

.card-logo.card-logo-seal {
    width: 84px;
    height: 84px;
    padding: 4px;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
}

.card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.35s ease;
    filter: drop-shadow(0 8px 16px rgba(7, 48, 29, 0.14));
}

.card-logo.card-logo-seal img {
    object-fit: cover;
    border-radius: 50%;
    filter: none;
}

.gateway-card:hover .card-logo img {
    transform: scale(1.05);
}

.gateway-card.card-secondary .card-logo img {
    transform: scale(1.46);
    transform-origin: center;
}

.gateway-card.card-secondary:hover .card-logo img {
    transform: scale(1.54);
}

.card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: var(--card-accent);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(7, 48, 29, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gateway-card h2,
.gateway-card .font-revue,
.gateway-card .secondary-brand-title {
    color: var(--card-accent) !important;
}

.card-text {
    margin-bottom: 22px;
}

.card-title {
    font-family: 'Outfit', 'Quicksand', sans-serif;
    font-size: clamp(1.45rem, 1.9vw, 2rem);
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: 0;
    line-height: 1.14;
    text-wrap: balance;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.card-copy {
    font-size: 0.98rem;
    color: var(--gw-text-secondary);
    margin: 0;
    line-height: 1.58;
    text-wrap: pretty;
    max-width: 34ch;
}

.card-title-icon {
    display: inline-block;
    margin-right: 8px;
}

.card-bullets {
    list-style: none;
    display: grid;
    gap: 7px;
    padding: 0;
}

.card-bullets li {
    position: relative;
    padding-left: 18px;
}

.card-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--card-accent);
    transform: translateY(-50%);
}

.card-badge-urgent {
    background: #fff4c7;
    border-color: rgba(255, 193, 7, 0.65);
    color: #9a1b1b;
    animation: limitedSeatsPulse 1.8s ease-in-out infinite;
}

@keyframes limitedSeatsPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 24px rgba(255, 193, 7, 0.18); }
    50% { transform: scale(1.04); box-shadow: 0 14px 30px rgba(255, 102, 0, 0.28); }
}

.gateway-card-priority .enter-btn {
    background: linear-gradient(135deg, #28a745 0%, #16803a 100%);
    box-shadow: 0 16px 30px rgba(40, 167, 69, 0.28);
}

.enter-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    min-height: 48px;
    padding: 14px 22px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(135deg, var(--card-accent) 0%, var(--card-accent-strong) 100%);
    box-shadow: 0 16px 30px var(--card-accent-glow);
    transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.enter-btn i {
    transition: transform 0.3s ease;
}

.gateway-card:hover .enter-btn {
    transform: translateX(4px);
    box-shadow: 0 20px 34px var(--card-accent-glow);
    filter: saturate(1.05);
}

.gateway-card:hover .enter-btn i {
    transform: translateX(4px);
}

/* ---- Logo (Light theme) ---- */
.gateway-body header {
    padding: 32px 0 0;
    width: 100%;
    position: relative;
    z-index: 5;
}

.gateway-body .logo-symbol {
    width: 48px;
    height: 48px;
    background: var(--gw-accent-gradient) !important;
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 10px 22px rgba(0, 104, 55, 0.22);
}

.gateway-body .brand-name {
    color: var(--gw-accent) !important;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: 1.5px;
    line-height: 0.9;
}

.gateway-body .brand-tagline {
    color: var(--gw-text-muted) !important;
    letter-spacing: 0.165em;
    font-size: 9px;
    font-weight: 700;
    margin-top: 2px;
}

/* ---- Footer (Light) ---- */
.gateway-footer {
    padding: 48px 0;
}

.gateway-footer-inner {
    display: grid;
    gap: 18px;
    justify-items: center;
}

.gateway-footer-meta {
    font-size: 14px;
    letter-spacing: 0.5px;
}

.gateway-footer-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.gateway-footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 18px;
    background: rgba(0, 104, 55, 0.05);
    border: 1px solid rgba(0, 104, 55, 0.08);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.gateway-footer-socials a:hover {
    transform: translateY(-2px);
    background: rgba(0, 104, 55, 0.1);
    border-color: rgba(0, 104, 55, 0.18);
}

.gateway-footer-admin {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2px;
}

.gateway-admin-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 12px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 104, 55, 0.96), rgba(17, 130, 75, 0.92));
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 14px 28px rgba(0, 104, 55, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.gateway-body footer .gateway-admin-link {
    color: #ffffff !important;
}

.gateway-admin-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(0, 104, 55, 0.24);
    filter: saturate(1.04);
}

.gateway-admin-link-result {
    background: linear-gradient(135deg, rgba(0, 115, 186, 0.96), rgba(0, 174, 239, 0.9));
}

.gateway-body footer .gateway-admin-link:hover {
    color: #ffffff !important;
}

.gateway-admin-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
}

.gateway-footer-copy {
    color: #cbd5e1;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gateway-body footer {
    background: #ffffff !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    backdrop-filter: none !important;
}

.gateway-body footer p {
    color: var(--gw-text-muted) !important;
}

.gateway-body footer a {
    color: var(--gw-text-muted) !important;
}

.gateway-body footer a:hover {
    color: var(--gw-accent) !important;
}

.gateway-trust-section {
    width: min(100%, 1240px);
    display: grid;
    gap: 24px;
    padding: clamp(30px, 4vw, 48px);
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(0, 104, 55, 0.1);
    box-shadow: 0 18px 44px rgba(8, 58, 34, 0.08);
}

.gateway-updates-trust-section {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    align-items: start;
}

.gateway-trust-main,
.gateway-updates-panel {
    display: grid;
    gap: 18px;
}

.gateway-updates-panel {
    padding: clamp(18px, 2.4vw, 26px);
    border-radius: 22px;
    background: linear-gradient(135deg, #f7fbf8 0%, #ffffff 100%);
    border: 1px solid rgba(0, 104, 55, 0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.gateway-updates-header h2 {
    margin: 8px 0 8px;
    color: var(--gw-text-primary);
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    line-height: 1.16;
}

.gateway-updates-header p {
    margin: 0;
    color: var(--gw-text-secondary);
    line-height: 1.65;
}

.gateway-updates-trust-section .gateway-affiliations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gateway-updates-trust-section .gateway-testimonials {
    grid-template-columns: 1fr;
}

.gateway-trust-header {
    max-width: 760px;
}

.gateway-trust-header h2 {
    margin: 0 0 10px;
    color: var(--gw-text-primary);
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    line-height: 1.12;
}

.gateway-trust-header p {
    max-width: 640px;
    color: var(--gw-text-secondary);
    line-height: 1.7;
}

.gateway-trust-grid,
.gateway-affiliations,
.gateway-testimonials {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.gateway-stat,
.gateway-affiliations span,
.gateway-testimonials figure {
    border-radius: 14px;
    border: 1px solid rgba(0, 104, 55, 0.1);
    background: #f7fbf8;
    padding: 18px;
}

.gateway-stat strong {
    display: block;
    color: #006837;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1;
}

.gateway-stat span,
.gateway-affiliations span {
    color: var(--gw-text-secondary);
    font-weight: 800;
}

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

.gateway-affiliations span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    text-align: center;
}

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

.gateway-testimonials figure {
    margin: 0;
}

.gateway-testimonials blockquote {
    margin: 0 0 12px;
    color: var(--gw-text-primary);
    font-weight: 700;
    line-height: 1.55;
}

.gateway-testimonials figcaption {
    color: var(--gw-text-muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.gateway-routine-section {
    width: min(100%, 1240px);
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(18px, 3vw, 34px);
    align-items: start;
    padding: clamp(26px, 4vw, 44px);
    border-radius: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f3fbf7 100%);
    border: 1px solid rgba(0, 104, 55, 0.12);
    box-shadow: 0 18px 44px rgba(8, 58, 34, 0.08);
}

.gateway-routine-copy h2 {
    margin: 0 0 10px;
    color: var(--gw-text-primary);
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    line-height: 1.12;
}

.gateway-routine-copy p {
    margin: 0;
    color: var(--gw-text-secondary);
    line-height: 1.7;
}

.gateway-routine-grid {
    display: grid;
    gap: 14px;
}

.gateway-routine-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(0, 104, 55, 0.12);
    box-shadow: 0 12px 28px rgba(8, 58, 34, 0.07);
}

.gateway-routine-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: #006837;
    box-shadow: 0 10px 22px rgba(0, 104, 55, 0.24);
}

.gateway-routine-body {
    min-width: 0;
}

.gateway-routine-body span {
    display: block;
    margin-bottom: 4px;
    color: #006837;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gateway-routine-body h3 {
    margin: 0;
    color: var(--gw-text-primary);
    font-size: 1.05rem;
    line-height: 1.25;
}

.gateway-routine-body p {
    margin: 6px 0 0;
    color: var(--gw-text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
}

.gateway-routine-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.gateway-routine-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
}

.gateway-routine-view {
    color: #006837;
    background: #effaf4;
    border: 1px solid rgba(0, 104, 55, 0.18);
}

.gateway-routine-download {
    color: #fff;
    background: #006837;
    box-shadow: 0 10px 20px rgba(0, 104, 55, 0.2);
}

.gateway-routine-save {
    color: #fff;
    background: #006837;
    box-shadow: 0 10px 20px rgba(0, 104, 55, 0.2);
}

.gateway-routine-whatsapp {
    color: #075e2e;
    background: #e8fff1;
    border: 1px solid rgba(7, 94, 46, 0.2);
}

.gateway-update-card-featured {
    background: #fff8e1;
    border-color: rgba(255, 193, 7, 0.34);
}

.gateway-update-card-featured .gateway-routine-icon {
    background: #ffb300;
    box-shadow: 0 10px 22px rgba(255, 179, 0, 0.22);
}

.gateway-updates-empty {
    display: grid;
    gap: 8px;
    padding: 22px;
    border-radius: 18px;
    color: var(--gw-text-secondary);
    background: #fff;
    border: 1px dashed rgba(0, 104, 55, 0.22);
}

.gateway-updates-empty i {
    color: #006837;
    font-size: 1.35rem;
}

.gateway-updates-empty strong {
    color: var(--gw-text-primary);
}

/* ---- Animation ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Compact Desktop Viewport ---- */
@media (min-width: 1180px) and (max-height: 980px) {
    .gateway-body header {
        padding: 14px 0 0;
    }

    .gateway-body .logo-symbol {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 19px;
    }

    .gateway-body .brand-name {
        font-size: 32px;
        line-height: 0.92;
    }

    .gateway-body .brand-tagline {
        font-size: 8px;
        letter-spacing: 0.15em;
    }

    .gateway-wrapper {
        justify-content: flex-start;
        padding: 14px 16px 12px;
    }

    .gateway-selection-panel {
        width: min(100%, 1250px);
        padding: 14px 18px 16px;
        border-radius: 28px;
    }

    .gateway-header {
        max-width: 680px;
        margin: 0 auto 12px;
    }

    .gateway-kicker {
        margin-bottom: 10px;
        padding: 6px 14px;
        font-size: 0.68rem;
        letter-spacing: 0.16em;
    }

    .gateway-header h1 {
        font-size: clamp(1.82rem, 2.7vw, 2.6rem);
        margin-bottom: 6px;
        line-height: 0.98;
    }

    .gateway-header p {
        font-size: 0.86rem;
        line-height: 1.28;
        max-width: 460px;
    }

    .gateway-grid {
        gap: 22px;
    }

    .gateway-card {
        min-height: 220px;
        padding: 18px 18px 16px;
        border-radius: 26px;
    }

    .card-content {
        width: min(100%, 56%);
        max-width: 320px;
    }

    .card-topline {
        gap: 9px;
        margin-bottom: 10px;
    }

    .card-logo-frame {
        width: 58px;
        height: 58px;
        border-radius: 16px;
    }

    .card-logo,
    .card-logo.card-logo-seal {
        width: 48px;
        height: 48px;
    }

    .gateway-card.card-secondary .card-logo img {
        transform: scale(1.34);
    }

    .gateway-card.card-secondary:hover .card-logo img {
        transform: scale(1.4);
    }

    .card-badge {
        min-height: 26px;
        padding: 5px 10px;
        font-size: 0.54rem;
        letter-spacing: 0.13em;
    }

    .card-text {
        margin-bottom: 10px;
    }

    .card-title {
        font-size: clamp(1.2rem, 1.45vw, 1.52rem);
        margin-bottom: 5px;
        line-height: 1.15;
    }

    .card-copy {
        font-size: 0.78rem;
        line-height: 1.38;
        max-width: 28ch;
    }

    .enter-btn {
        min-height: 34px;
        padding: 9px 14px;
        font-size: 0.62rem;
        letter-spacing: 0.11em;
        gap: 6px;
        box-shadow: 0 8px 16px var(--card-accent-glow);
    }

    .gateway-footer {
        padding: 18px 0 20px;
    }

    .gateway-footer-inner {
        gap: 12px;
    }

    .gateway-footer-meta,
    .gateway-footer-copy {
        font-size: 12px;
    }

    .gateway-admin-link {
        min-height: 46px;
        padding: 10px 17px;
        font-size: 11px;
    }
}

@media (min-width: 1180px) and (max-height: 920px) {
    .gateway-wrapper {
        padding: 10px 14px 10px;
    }

    .gateway-selection-panel {
        padding: 12px 16px 14px;
    }

    .gateway-header {
        margin-bottom: 10px;
    }

    .gateway-header h1 {
        font-size: clamp(1.65rem, 2.45vw, 2.28rem);
    }

    .gateway-header p {
        font-size: 0.8rem;
    }

    .gateway-grid {
        gap: 22px;
    }

    .gateway-card {
        min-height: 220px;
        padding: 18px 18px 16px;
    }

    .card-content {
        max-width: 320px;
    }

    .card-topline {
        margin-bottom: 8px;
    }

    .card-logo-frame {
        width: 52px;
        height: 52px;
    }

    .card-logo,
    .card-logo.card-logo-seal {
        width: 44px;
        height: 44px;
    }

    .card-badge {
        min-height: 24px;
        padding: 4px 9px;
        font-size: 0.5rem;
    }

    .card-title {
        font-size: clamp(1.08rem, 1.28vw, 1.38rem);
        line-height: 1.15;
    }

    .card-copy {
        font-size: 0.72rem;
        line-height: 1.34;
    }

    .enter-btn {
        min-height: 32px;
        padding: 8px 12px;
        font-size: 0.58rem;
    }

    .gateway-footer {
        padding: 14px 0 18px;
    }

    .gateway-footer-meta,
    .gateway-footer-copy {
        font-size: 11px;
    }
}

/* ---- Responsive ---- */
@media (max-width: 1180px) {
    .gateway-wrapper {
        padding: 80px 20px 52px;
    }

    .gateway-selection-panel {
        border-radius: 32px;
        padding: 26px;
    }

    .gateway-grid {
        gap: 22px;
    }

    .gateway-card {
        min-height: 380px;
        padding: 24px;
    }

    .card-content {
        width: min(100%, 58%);
    }

    .card-title {
        font-size: clamp(1.65rem, 2.3vw, 2.15rem);
    }
}

@media (max-width: 900px) {
    .gateway-updates-trust-section {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .gateway-updates-trust-section .gateway-updates-panel {
        order: 1;
    }

    .gateway-updates-trust-section .gateway-trust-main {
        order: 2;
    }

    .gateway-routine-section {
        grid-template-columns: 1fr;
    }

    .gateway-routine-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .gateway-routine-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .gateway-routine-actions a {
        flex: 1 1 140px;
    }

    .gateway-wrapper {
        padding: 72px 16px 42px;
    }

    .gateway-admission-hero {
        min-height: 500px;
        border-radius: 28px;
    }

    .gateway-admission-overlay {
        background: linear-gradient(180deg, rgba(4, 27, 22, 0.84) 0%, rgba(4, 27, 22, 0.62) 55%, rgba(4, 27, 22, 0.88) 100%);
    }

    .gateway-admission-content {
        align-self: end;
        padding: 28px;
    }

    .gateway-admission-hero h1 {
        max-width: 12ch;
    }

    .gateway-selection-panel {
        padding: 22px;
        border-radius: 28px;
    }

    .gateway-header {
        margin-bottom: 28px;
    }

    .gateway-header p {
        font-size: 1rem;
    }

    .gateway-grid {
        gap: 18px;
    }

    .gateway-card {
        min-height: 360px;
        padding: 22px;
        border-radius: 26px;
    }

    .card-content {
        width: min(100%, 62%);
    }

    .card-logo-frame {
        width: 84px;
        height: 84px;
        border-radius: 22px;
    }

    .card-logo {
        width: 72px;
        height: 72px;
    }

    .card-logo.card-logo-seal {
        width: 72px;
        height: 72px;
    }

    .card-badge {
        min-height: 34px;
        padding: 8px 14px;
        font-size: 0.68rem;
    }

    .card-copy {
        font-size: 0.94rem;
        line-height: 1.62;
    }
}

@media (max-width: 720px) {
    .gateway-wrapper {
        gap: 22px;
    }

    .gateway-admission-hero {
        min-height: 470px;
        border-radius: 24px;
    }

    .gateway-admission-content {
        padding: 24px 20px;
    }

    .gateway-admission-hero h1 {
        font-size: 2.35rem;
    }

    .gateway-admission-hero h2 {
        font-size: 1rem;
    }

    .gateway-admission-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .gateway-primary-cta,
    .gateway-fee-link {
        width: 100%;
        min-height: 48px;
    }

    .gateway-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .gateway-card {
        min-height: 246px;
        padding: 14px;
    }

    .card-content {
        width: 100%;
        max-width: none;
    }

    .card-topline {
        gap: 8px;
        margin-bottom: 12px;
    }

    .card-logo-frame {
        width: 58px;
        height: 58px;
        border-radius: 16px;
    }

    .card-logo,
    .card-logo.card-logo-seal {
        width: 48px;
        height: 48px;
    }

    .gateway-card.card-secondary .card-logo img {
        transform: scale(1.28);
    }

    .gateway-card.card-secondary:hover .card-logo img {
        transform: scale(1.34);
    }

    .card-badge {
        min-height: 26px;
        padding: 5px 9px;
        font-size: 0.54rem;
        letter-spacing: 0.11em;
    }

    .card-text {
        margin-bottom: 12px;
    }

    .card-title {
        font-size: 1.22rem;
        margin-bottom: 6px;
        line-height: 1.16;
    }

    .card-copy {
        font-size: 0.76rem;
        line-height: 1.38;
        max-width: none;
    }

    .enter-btn {
        min-height: 36px;
        padding: 9px 12px;
        font-size: 0.62rem;
        letter-spacing: 0.1em;
        gap: 6px;
    }

    .gateway-trust-grid,
    .gateway-affiliations,
    .gateway-testimonials {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .gateway-body header {
        padding: 20px 0 0;
    }

    .gateway-body .logo-symbol {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 12px;
    }

    .gateway-body .brand-name {
        font-size: 26px;
        letter-spacing: 0.5px;
    }

    .gateway-body .brand-tagline {
        font-size: 8px;
        letter-spacing: 0.12em;
        margin-top: 2px;
    }

    .gateway-wrapper {
        padding: 48px 12px 36px;
    }

    .gateway-admission-hero {
        min-height: 450px;
    }

    .gateway-admission-badge {
        font-size: 0.68rem;
        letter-spacing: 0.09em;
    }

    .gateway-admission-hero h1 {
        font-size: 2rem;
    }

    .gateway-selection-panel {
        padding: 16px 14px;
        border-radius: 22px;
    }

    .gateway-kicker {
        font-size: 0.68rem;
        letter-spacing: 0.14em;
        padding: 8px 14px;
        margin-bottom: 14px;
        max-width: 100%;
        text-align: center;
    }

    .gateway-header {
        margin-bottom: 22px;
    }

    .gateway-header h1 {
        font-size: 1.58rem;
        margin-bottom: 10px;
        max-width: 9ch;
        margin-left: auto;
        margin-right: auto;
        line-height: 0.96;
        text-wrap: balance;
    }

    .gateway-header p {
        font-size: 0.84rem;
        line-height: 1.38;
        max-width: 28ch;
        margin-left: auto;
        margin-right: auto;
    }

    .gateway-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .gateway-card {
        min-height: 222px;
        padding: 12px;
        border-radius: 22px;
    }

    .gateway-card::after {
        background:
            linear-gradient(180deg, rgba(248, 252, 249, 0.96) 0%, rgba(248, 252, 249, 0.92) 46%, rgba(248, 252, 249, 0.62) 76%, rgba(248, 252, 249, 0.2) 100%),
            radial-gradient(circle at top left, rgba(255, 255, 255, 0.68) 0%, rgba(255, 255, 255, 0) 42%);
    }

    .card-topline {
        gap: 7px;
        margin-bottom: 10px;
    }

    .card-logo-frame {
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }

    .card-logo {
        width: 40px;
        height: 40px;
    }

    .card-logo.card-logo-seal {
        width: 40px;
        height: 40px;
        padding: 3px;
    }

    .card-badge {
        min-height: 24px;
        padding: 4px 8px;
        font-size: 0.48rem;
        letter-spacing: 0.1em;
    }

    .card-text {
        margin-bottom: 10px;
    }

    .card-title {
        font-size: 1.05rem;
        margin-bottom: 5px;
    }

    .card-copy {
        font-size: 0.68rem;
        line-height: 1.34;
    }

    .card-bullets {
        gap: 4px;
    }

    .enter-btn {
        min-height: 32px;
        padding: 8px 10px;
        font-size: 0.56rem;
        letter-spacing: 0.08em;
        gap: 5px;
    }

    .gateway-footer {
        padding: 32px 0;
    }

    .gateway-footer-inner {
        gap: 16px;
    }

    .gateway-footer-meta {
        font-size: 13px;
        line-height: 1.7;
    }

    .gateway-footer-socials {
        gap: 18px;
    }

    .gateway-admin-link {
        display: none !important;
    }
}

@media (max-width: 420px) {
    .gateway-selection-panel {
        padding: 14px 12px;
    }

    .gateway-header h1 {
        font-size: 1.4rem;
    }

    .gateway-header p {
        font-size: 0.76rem;
    }

    .gateway-grid {
        gap: 8px;
    }

    .gateway-card {
        min-height: 206px;
        padding: 10px;
        border-radius: 18px;
    }

    .card-topline {
        gap: 6px;
        margin-bottom: 8px;
    }

    .card-logo-frame {
        width: 44px;
        height: 44px;
    }

    .card-logo,
    .card-logo.card-logo-seal {
        width: 34px;
        height: 34px;
    }

    .card-badge {
        font-size: 0.44rem;
        padding: 4px 7px;
    }

    .card-title {
        font-size: 0.94rem;
        line-height: 1.16;
    }

    .card-copy {
        font-size: 0.62rem;
        line-height: 1.32;
    }

    .enter-btn {
        min-height: 30px;
        padding: 7px 9px;
        font-size: 0.5rem;
    }
}

/* ---- Active/Touch States for Mobile ---- */
@media (hover: none) {
    .gateway-card:active {
        transform: scale(0.985);
    }

    .enter-btn {
        opacity: 1 !important;
        transform: none !important;
    }

    .card-content {
        transform: none !important;
    }
}

/* ---- Dark Mode ---- */
:root[data-theme='dark'] {
    --gw-bg: #0a0e17;
    --gw-bg-gradient: linear-gradient(160deg, #0a0e17 0%, #111827 50%, #0a0e17 100%);
    --gw-panel-bg: linear-gradient(180deg, rgba(17, 24, 39, 0.85) 0%, rgba(10, 14, 23, 0.9) 100%);
    --gw-panel-border: rgba(255, 255, 255, 0.08);
    --gw-card-bg: #111827;
    --gw-card-border: rgba(255, 255, 255, 0.08);
    --gw-text-primary: #f8fafc;
    --gw-text-secondary: #94a3b8;
    --gw-text-muted: #64748b;
    --gw-heading-shadow: rgba(0, 0, 0, 0.5);
}

:root[data-theme='dark'] .gateway-body {
    background: var(--gw-bg) !important;
    color: var(--gw-text-primary) !important;
}

:root[data-theme='dark'] .gateway-shell {
    background: var(--gw-bg-gradient);
}

:root[data-theme='dark'] .gateway-selection-panel {
    border-color: var(--gw-panel-border);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

:root[data-theme='dark'] .gateway-selection-panel::before {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 32%),
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0) 36%);
}

:root[data-theme='dark'] .gateway-kicker {
    background: rgba(17, 24, 39, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    color: #34d399;
}

:root[data-theme='dark'] .gateway-body .logo-symbol {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
    color: #ffffff;
}

:root[data-theme='dark'] .gateway-body .brand-name {
    color: #f8fafc !important;
}

:root[data-theme='dark'] .gateway-body .brand-tagline {
    color: #94a3b8 !important;
}

:root[data-theme='dark'] .gateway-card {
    border-color: var(--gw-card-border);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.3);
}

:root[data-theme='dark'] .gateway-card::before {
    filter: saturate(1.08) contrast(1) brightness(0.68);
}

:root[data-theme='dark'] .gateway-card::after {
    background:
        linear-gradient(96deg, rgba(10, 14, 23, 0.96) 0%, rgba(10, 14, 23, 0.9) 34%, rgba(10, 14, 23, 0.65) 54%, rgba(10, 14, 23, 0.25) 74%, rgba(10, 14, 23, 0.1) 100%),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 42%);
}

:root[data-theme='dark'] .gateway-card:hover {
    border-color: var(--card-accent) !important;
    box-shadow: 0 30px 62px var(--card-accent-glow), 0 18px 34px rgba(0, 0, 0, 0.45) !important;
}

:root[data-theme='dark'] .gateway-card:hover::before {
    filter: saturate(1.1) contrast(1.02) brightness(0.72);
}

:root[data-theme='dark'] .card-logo-frame {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

:root[data-theme='dark'] .card-badge {
    background: rgba(17, 24, 39, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--card-accent) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3) !important;
}

:root[data-theme='dark'] .card-badge-urgent {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #fca5a5 !important;
}

:root[data-theme='dark'] .card-title {
    text-shadow: none !important;
}

:root[data-theme='dark'] .card-copy {
    color: #94a3b8;
}

/* Wing-specific accents in dark mode */
:root[data-theme='dark'] .gateway-card.card-secondary {
    --card-accent: #10b981; /* Secondary School: Emerald Green */
    --card-accent-strong: #059669;
    --card-accent-glow: rgba(16, 185, 129, 0.2);
    --card-border: rgba(16, 185, 129, 0.25);
}

:root[data-theme='dark'] .gateway-card.card-academy {
    --card-accent: #38bdf8; /* Academy: Cyan */
    --card-accent-strong: #0284c7;
    --card-accent-glow: rgba(56, 189, 248, 0.2);
    --card-border: rgba(56, 189, 248, 0.25);
}

:root[data-theme='dark'] .gateway-card.card-college {
    --card-accent: #3b82f6; /* College: Royal Blue */
    --card-accent-strong: #1d4ed8;
    --card-accent-glow: rgba(59, 130, 246, 0.2);
    --card-border: rgba(59, 130, 246, 0.25);
}

:root[data-theme='dark'] .gateway-card.card-management {
    --card-accent: #f59e0b; /* Management: Amber Gold */
    --card-accent-strong: #d97706;
    --card-accent-glow: rgba(245, 158, 11, 0.2);
    --card-border: rgba(245, 158, 11, 0.25);
}

:root[data-theme='dark'] .enter-btn {
    background: linear-gradient(135deg, var(--card-accent) 0%, var(--card-accent-strong) 100%) !important;
    box-shadow: 0 16px 30px var(--card-accent-glow) !important;
    color: #ffffff !important;
    text-shadow: none !important;
}

:root[data-theme='dark'] .gateway-body footer {
    background: #0a0e17 !important;
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

:root[data-theme='dark'] .gateway-body footer p {
    color: var(--gw-text-muted) !important;
}

:root[data-theme='dark'] .gateway-body footer a {
    color: var(--gw-text-muted) !important;
}

:root[data-theme='dark'] .gateway-body footer a:hover {
    color: var(--card-accent, #10b981) !important;
}

:root[data-theme='dark'] .gateway-footer-socials a {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme='dark'] .gateway-footer-socials a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
}

:root[data-theme='dark'] .gateway-admin-link {
    background: linear-gradient(135deg, #10b981, #0c4a6e);
    color: #ffffff !important;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

:root[data-theme='dark'] .gateway-admin-link-icon {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.16);
}

/* ---- Trust / Why Kasturi section ---- */
:root[data-theme='dark'] .gateway-trust-section {
    background: #111827 !important;
    border-color: rgba(255, 255, 255, 0.07) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45) !important;
}

:root[data-theme='dark'] .gateway-updates-panel {
    background: linear-gradient(135deg, #111827 0%, #162235 100%) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

:root[data-theme='dark'] .gateway-trust-header h2,
:root[data-theme='dark'] .gateway-updates-header h2 {
    color: #f8fafc !important;
}

:root[data-theme='dark'] .gateway-trust-header p,
:root[data-theme='dark'] .gateway-updates-header p {
    color: #94a3b8 !important;
}

/* Stats, affiliations, testimonials inner items */
:root[data-theme='dark'] .gateway-stat,
:root[data-theme='dark'] .gateway-affiliations span,
:root[data-theme='dark'] .gateway-testimonials figure {
    background: #162235 !important;
    border-color: rgba(255, 255, 255, 0.07) !important;
}

:root[data-theme='dark'] .gateway-stat strong {
    color: #34d399 !important;
}

:root[data-theme='dark'] .gateway-stat span,
:root[data-theme='dark'] .gateway-affiliations span {
    color: #94a3b8 !important;
}

:root[data-theme='dark'] .gateway-testimonials blockquote {
    color: #f1f5f9 !important;
}

:root[data-theme='dark'] .gateway-testimonials figcaption {
    color: #64748b !important;
}

/* ---- Public Notices & Routines section ---- */
:root[data-theme='dark'] .gateway-routine-section {
    background: linear-gradient(135deg, #111827 0%, #162235 100%) !important;
    border-color: rgba(255, 255, 255, 0.07) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45) !important;
}

:root[data-theme='dark'] .gateway-routine-copy h2 {
    color: #f8fafc !important;
}

:root[data-theme='dark'] .gateway-routine-copy p {
    color: #94a3b8 !important;
}

:root[data-theme='dark'] .gateway-routine-card {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.07) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35) !important;
}

:root[data-theme='dark'] .gateway-routine-card:hover {
    border-color: rgba(16, 185, 129, 0.35) !important;
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.12) !important;
}

:root[data-theme='dark'] .gateway-routine-icon {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.28) !important;
}

:root[data-theme='dark'] .gateway-routine-body span {
    color: #34d399 !important;
}

:root[data-theme='dark'] .gateway-routine-body h3 {
    color: #f1f5f9 !important;
}

:root[data-theme='dark'] .gateway-routine-body p {
    color: #94a3b8 !important;
}

/* ---- Notice Popup Modal ---- */
.notice-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(8px);
}

.notice-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.update-viewer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.28s ease;
    backdrop-filter: blur(8px);
}

.update-viewer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.notice-modal {
    background: var(--gw-card-bg);
    max-width: 850px;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--gw-card-border);
}

.update-viewer-modal {
    background: var(--gw-card-bg);
    max-width: 920px;
    width: 100%;
    max-height: calc(100vh - 40px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--gw-card-border);
}

.update-viewer-header {
    padding: 20px 24px 12px;
    text-align: center;
}

.update-viewer-header h2 {
    margin: 8px 42px 0;
    color: var(--gw-text-primary);
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
    line-height: 1.2;
}

.update-viewer-image {
    min-height: 0;
    display: grid;
    place-items: center;
    padding: 0 18px 18px;
    background: #f7fbf8;
}

.zoomable-image-frame {
    overflow: hidden;
    touch-action: none;
    user-select: none;
    cursor: zoom-in;
}

.zoomable-image-frame.is-zoomed {
    cursor: grab;
}

.zoomable-image-frame.is-dragging {
    cursor: grabbing;
}

.zoomable-image-frame img {
    transform-origin: 0 0;
    will-change: transform;
}

.update-viewer-image img {
    max-width: 100%;
    max-height: min(68vh, 720px);
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(0,0,0,.12);
}

.notice-modal-backdrop.active .notice-modal {
    transform: scale(1) translateY(0);
}

.notice-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #1a2235;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.notice-close:hover {
    transform: rotate(90deg);
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.notice-image-container {
    width: 100%;
    line-height: 0;
    background: #f7fbf8;
}

.notice-image-container img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.notice-content {
    padding: 24px;
    text-align: center;
}

.notice-content h2 {
    margin: 0 0 10px;
    font-size: 1.5rem;
    color: var(--gw-text-primary);
}

.notice-content p {
    margin: 0;
    color: var(--gw-text-secondary);
    line-height: 1.6;
}

.notice-actions {
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 20px 22px;
    justify-content: center;
}

.notice-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.88rem;
    text-decoration: none;
}

.notice-actions a:nth-child(1) {
    color: #006837;
    background: #effaf4;
    border: 1px solid rgba(0, 104, 55, 0.18);
}

.notice-actions a:nth-child(2) {
    color: #fff;
    background: #006837;
    box-shadow: 0 10px 20px rgba(0, 104, 55, 0.2);
}

.notice-actions a:nth-child(3) {
    color: #075e2e;
    background: #e8fff1;
    border: 1px solid rgba(7, 94, 46, 0.2);
}

@media (max-width: 540px) {
    .notice-actions a {
        flex: 1 1 100%;
    }
}

:root[data-theme='dark'] .gateway-card.card-academy .card-logo img,
:root[data-theme='dark'] .gateway-card.card-secondary .card-logo img {
    filter: brightness(0) invert(1) drop-shadow(0 4px 10px rgba(255,255,255,0.15)) !important;
}

/* ==========================================================================
   LIFE AT KASTURI - IMAGE SLIDER & GALLERY SECTION
   ========================================================================== */

.gateway-landing-gallery-section {
    width: min(100%, 1240px);
    padding: clamp(28px, 3.4vw, 40px);
    border-radius: 40px;
    background: var(--gw-panel-bg);
    border: 1px solid var(--gw-panel-border);
    box-shadow: 0 28px 70px rgba(10, 54, 28, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.gateway-gallery-title {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    line-height: 1.15;
    margin: 12px 0 0;
    color: var(--gw-text-primary);
}

.gateway-gallery-container {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 20px;
    margin-top: 24px;
}

.gateway-gallery-main-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 480px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    background: #000;
}

.gateway-gallery-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.gateway-gallery-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: slideFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideFadeIn {
    from { opacity: 0; transform: scale(1.03); }
    to { opacity: 1; transform: scale(1); }
}

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

.gallery-slide-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s infinite;
    z-index: 1;
}

@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.gateway-gallery-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 2;
}

.gateway-gallery-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: clamp(20px, 4vw, 40px);
    color: #ffffff;
    z-index: 3;
}

.gateway-gallery-badge-wing {
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.gateway-gallery-badge-category {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.03em;
}

.gateway-gallery-slide-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    margin: 8px 0 6px;
    line-height: 1.25;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 32ch;
}

.gateway-gallery-slide-subtitle {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    color: rgba(255, 255, 255, 0.76);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.gateway-gallery-zoom-btn {
    background: #ffffff;
    color: #1a2235 !important;
    border: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 13px;
    padding: 10px 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

.gateway-gallery-zoom-btn:hover {
    transform: translateY(-2px);
    background: #eef2f6;
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.25);
}

.gateway-gallery-more-link {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50px;
    transition: all 0.25s ease;
}

.gateway-gallery-more-link:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

/* Slider Controls */
.gateway-slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 4;
}

.gateway-slider-nav-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #1a2235;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.gateway-slider-nav-btn.prev-btn { left: 16px; }
.gateway-slider-nav-btn.next-btn { right: 16px; }

/* Sidebar Thumbnails */
.gateway-gallery-thumbs-container {
    height: 480px;
    overflow-y: auto;
    scrollbar-width: none;
}

.gateway-gallery-thumbs-container::-webkit-scrollbar {
    display: none;
}

.gateway-gallery-thumbs-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gateway-gallery-thumb {
    width: 100%;
    height: 86px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    background: #000;
    transition: all 0.25s ease;
}

.gateway-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: opacity 0.25s ease;
}

.gateway-gallery-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
}

.gateway-gallery-thumb:hover img {
    opacity: 0.85;
}

.gateway-gallery-thumb.active {
    border-color: var(--gw-accent, #006837);
    box-shadow: 0 4px 15px rgba(0, 104, 55, 0.35);
    transform: scale(0.96);
}

.gateway-gallery-thumb.active img {
    opacity: 1;
}

/* Responsive Overrides */
@media (max-width: 900px) {
    .gateway-gallery-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .gateway-gallery-main-wrapper {
        height: 380px;
    }
    
    .gateway-gallery-thumbs-container {
        height: auto;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
    }
    
    .gateway-gallery-thumbs-wrapper {
        flex-direction: row;
        gap: 10px;
    }
    
    .gateway-gallery-thumb {
        width: 110px;
        height: 72px;
        flex-shrink: 0;
    }
}

@media (max-width: 540px) {
    .gateway-landing-gallery-section {
        padding: 20px 16px;
        border-radius: 24px;
    }
    
    .gateway-gallery-main-wrapper {
        height: 320px;
        border-radius: 16px;
    }
    
    .gateway-gallery-slide-content {
        padding: 16px;
    }
    
    .gateway-slider-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
    
    .gateway-slider-nav-btn.prev-btn { left: 8px; }
    .gateway-slider-nav-btn.next-btn { right: 8px; }
    
    .gateway-gallery-zoom-btn,
    .gateway-gallery-more-link {
        padding: 8px 14px;
        font-size: 11px;
    }
}

/* Dark Mode Overrides */
:root[data-theme='dark'] .gateway-landing-gallery-section {
    border-color: var(--gw-panel-border);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

:root[data-theme='dark'] .gateway-gallery-thumb.active {
    border-color: var(--gw-accent, #006837);
    box-shadow: 0 4px 15px rgba(34, 163, 102, 0.25);
}

:root[data-theme='dark'] .gateway-gallery-zoom-btn {
    background: #1e293b;
    color: #f8fafc !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

:root[data-theme='dark'] .gateway-gallery-zoom-btn:hover {
    background: #334155;
}
