/* Premium landing page styles for Al Quran PathShala */

:root {
    --bg: #0a1628;
    --surface: rgba(255, 255, 255, 0.08);
    --surface-strong: rgba(255, 255, 255, 0.12);
    --text: #ffffff;
    --muted: #c4d4e8;
    --accent: #16a085;
    --accent-gold: #f1c40f;
    --accent-dark: #0e6251;
    --accent-soft: rgba(22, 160, 133, 0.16);
    --border: rgba(255, 255, 255, 0.12);
    --shadow: 0 32px 80px rgba(0, 0, 0, 0.32);
    --site-header-offset: 104px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--site-header-offset) + 1rem);
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, rgba(241, 196, 15, 0.12), transparent 30%),
                radial-gradient(circle at 20% 35%, rgba(22, 160, 133, 0.16), transparent 34%),
                linear-gradient(180deg, #071923 0%, #03120f 100%);
    color: var(--text);
    caret-color: var(--accent-gold);
    overflow-x: hidden;
}

body:not(.admin-page) {
    padding-top: var(--site-header-offset);
}

body.nav-open {
    overflow: hidden;
}

body.nav-open .site-header {
    background: rgba(255, 255, 255, 0.98);
}

section[id],
main[id] {
    scroll-margin-top: calc(var(--site-header-offset) + 1rem);
}

img {
    max-width: 100%;
    display: block;
}

button,
.btn,
input,
select,
textarea {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
}

.container {
    width: min(1150px, calc(100% - clamp(1rem, 4vw, 2rem)));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(22px);
    background: #ffffff;
    border-bottom: none;
    padding: 0 1rem;
    box-shadow: none;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(0.7rem, 1.5vw, 1rem) 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--text);
    min-width: 0;
    flex: 1 1 auto;
}

.brand-logo {
    width: clamp(54px, 6vw, 72px);
    height: clamp(54px, 6vw, 72px);
    object-fit: contain;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(241, 196, 15, 0.16));
    border: none;
    filter: drop-shadow(0 8px 14px rgba(22, 160, 133, 0.32)) saturate(1.35) contrast(1.12);
    padding: 0.35rem;
    transform-style: preserve-3d;
    animation: logo-float 3.8s ease-in-out infinite, logo-glow 2.8s ease-in-out infinite;
}

.brand-text {
    display: grid;
    line-height: 1.1;
    gap: 0.12rem;
    min-width: 0;
}

.brand-name {
    font-weight: 800;
    font-size: clamp(0.82rem, 1.1vw, 1.05rem);
    letter-spacing: 0.04em;
    color: var(--accent-gold);
}

.brand-text small {
    color: #666666;
    font-size: clamp(0.62rem, 0.9vw, 0.82rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(0.7rem, 1.4vw, 1.5rem);
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

.mobile-nav-cta {
    display: none;
}

.site-nav a,
.nav-dropdown-toggle {
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 0.3rem 0.2rem;
    transition: color 0.2s ease, text-shadow 0.2s ease, transform 0.2s ease;
    font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(22, 160, 133, 0.3);
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.dropdown-caret {
    width: 0.42rem;
    height: 0.42rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.9rem);
    left: 50%;
    min-width: 178px;
    display: grid;
    gap: 1.1rem;
    padding: 1.05rem 1.15rem;
    border-radius: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    visibility: hidden;
}

.nav-dropdown-menu::before {
    display: none;
}

.nav-dropdown-menu a {
    position: relative;
    z-index: 1;
    padding: 0;
    border-radius: 0;
    color: #00614f;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
    color: #0a0f1a;
    background: transparent;
    text-shadow: none;
    transform: translateX(3px);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
    visibility: visible;
}

.nav-dropdown:hover .dropdown-caret,
.nav-dropdown:focus-within .dropdown-caret,
.nav-dropdown.open .dropdown-caret {
    transform: rotate(225deg) translate(-2px, -1px);
}

.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--accent-gold);
    margin: 5.5px 0;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero-section {
    position: relative;
    --hero-parallax-y: 0px;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    padding: 0 0 2rem;
}

.hero-slider {
    position: relative;
    min-height: clamp(520px, 78svh, 860px);
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-slide:nth-child(1),
.hero-slide:nth-child(3) {
    background-position: center top;
}

.hero-slide:nth-child(2),
.hero-slide:nth-child(4) {
    background-position: center center;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.platform-rail {
    position: absolute;
    right: clamp(1rem, 3vw, 2.5rem);
    top: 32%;
    z-index: 3;
    display: grid;
    gap: 0.5rem;
    transform: translateY(-50%);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.platform-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    border: 1px solid rgba(241, 196, 15, 0.22);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(3, 18, 15, 0.58);
    color: #f8eeb8;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 24px rgba(0, 0, 0, 0.24);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.platform-icon {
    width: auto;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 0.5rem;
    padding: 0 0.8rem;
}

.platform-icon span {
    display: inline;
    color: #f8eeb8;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.platform-icon:hover,
.platform-icon:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(241, 196, 15, 0.72);
    background:
        linear-gradient(145deg, rgba(241, 196, 15, 0.18), rgba(22, 160, 133, 0.12)),
        rgba(3, 18, 15, 0.7);
    color: #ffffff;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34), 0 0 22px rgba(241, 196, 15, 0.18);
}

.platform-icon svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.platform-youtube {
    color: #ffd55c;
}

.platform-youtube .icon-cut {
    fill: #06251f;
}

.platform-zoom {
    color: #a8e8dc;
}

.platform-meet {
    color: #9ee5bd;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.52) 40%, rgba(0, 0, 0, 0.86) 100%);
    mix-blend-mode: multiply;
}

.hero-copy {
    position: relative;
    padding: clamp(2rem, 5vw, 3.5rem) 0;
    max-width: 720px;
    z-index: 1;
    color: var(--text);
}

.hero-copy .hero-tag,
.hero-copy h1,
.hero-copy .hero-prayer,
.hero-copy p,
.hero-copy .hero-actions .btn,
.hero-copy .hero-actions .notification-wrap {
    opacity: 0;
}

.hero-copy .hero-tag {
    transform: translateY(-10px);
}

.hero-copy h1 {
    transform: translateX(-40px);
}

.hero-copy .hero-prayer {
    transform: scale(0.92);
}

.hero-copy p,
.hero-copy .hero-actions .btn,
.hero-copy .hero-actions .notification-wrap {
    transform: translateY(28px);
}

.hero-copy.animate .hero-tag {
    animation: fadeUp 1s ease-out 0.15s forwards;
}

.hero-copy.animate h1 {
    animation: slideInLeft 1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s forwards;
}

.hero-copy.animate .hero-prayer {
    animation: scaleFade 1s ease-out 0.35s forwards;
}

.hero-copy.animate p {
    animation: fadeUp 1s ease-out 0.55s forwards;
}

.hero-copy.animate .hero-actions .btn {
    animation: fadeUp 1s ease-out 0.7s forwards;
}

.hero-copy.animate .hero-actions .notification-wrap {
    animation: fadeUp 1s ease-out 1s forwards;
}

.hero-copy.animate .notification-wrap .btn {
    animation: none;
    opacity: 1;
    transform: none;
}

.hero-copy.animate .hero-actions .btn:nth-child(1) {
    animation-delay: 0.7s;
}

.hero-copy.animate .hero-actions .btn:nth-child(2) {
    animation-delay: 0.85s;
}

.hero-copy.animate .hero-actions .btn:nth-child(3) {
    animation-delay: 1s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleFade {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-tag {
    display: inline-flex;
    margin-bottom: 1.2rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(22, 160, 133, 0.18);
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(2.35rem, 5vw, 5rem);
    line-height: 1.02;
    letter-spacing: 0;
    max-width: 100ch;
}

.hero-copy h1 span,
.hero-tag strong {
    color: #f1c40f;
}

.hero-prayer {
    margin: 1rem 0 0.75rem;
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 1.05;
    font-weight: 700;
    color: #f1c40f;
    letter-spacing: 0.04em;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    direction: rtl;
    unicode-bidi: embed;
    max-width: 100ch;
    text-align: center;
}

.hero-course-line {
    font-size: clamp(1.5rem, 3vw, 3rem);
    direction: ltr;
    unicode-bidi: normal;
    text-align: left;
}

.hero-copy p {
    margin: 1.5rem 0 2.5rem;
    max-width: 44rem;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.notification-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notification-wrap .btn-tertiary {
    border-color: rgba(241, 196, 15, 0.55);
    background:
        linear-gradient(135deg, rgba(3, 42, 36, 0.94), rgba(4, 93, 77, 0.9)),
        radial-gradient(circle at top left, rgba(241, 196, 15, 0.22), transparent 48%);
    color: var(--accent-gold);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 28px rgba(0, 0, 0, 0.24);
}

.notification-wrap .btn-tertiary::before {
    content: "";
    width: 0.52rem;
    height: 0.52rem;
    margin-right: 0.2rem;
    border-radius: 50%;
    background: var(--accent-gold);
    box-shadow: 0 0 0 5px rgba(241, 196, 15, 0.12), 0 0 18px rgba(241, 196, 15, 0.7);
    animation: notification-dot 1.8s ease-in-out infinite;
}

.notification-wrap .btn-tertiary:hover,
.notification-wrap .btn-tertiary:focus-visible {
    border-color: rgba(241, 196, 15, 0.86);
    background:
        linear-gradient(135deg, rgba(4, 58, 48, 0.98), rgba(8, 126, 104, 0.94)),
        radial-gradient(circle at top left, rgba(241, 196, 15, 0.3), transparent 50%);
    color: #fff7c8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 16px 34px rgba(0, 0, 0, 0.3), 0 0 24px rgba(241, 196, 15, 0.18);
}

.notification-wrap:hover .course-popup,
.notification-wrap:focus-within .course-popup,
.notification-wrap.is-open .course-popup {
    border-color: rgba(241, 196, 15, 0.92);
    background:
        linear-gradient(135deg, rgba(3, 43, 37, 0.98), rgba(5, 108, 89, 0.98)),
        radial-gradient(circle at top left, rgba(241, 196, 15, 0.24), transparent 48%);
    color: #fff9d6;
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.44), 0 0 34px rgba(241, 196, 15, 0.32), 0 0 22px rgba(22, 160, 133, 0.28);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
    visibility: visible;
}

.notification-wrap:hover .course-popup::after,
.notification-wrap:focus-within .course-popup::after,
.notification-wrap.is-open .course-popup::after {
    border-color: rgba(241, 196, 15, 0.92);
    box-shadow: -7px -7px 14px rgba(241, 196, 15, 0.22);
}

.course-popup {
    position: absolute;
    left: calc(100% + 1rem);
    top: -8%;
    width: max-content;
    max-width: 185px;
    transform: translateY(-50%) translateX(-8px);
    padding: 0.48rem 0.72rem 0.48rem 2.05rem;
    border-radius: 999px;
    border: 1px solid rgba(241, 196, 15, 0.58);
    background:
        linear-gradient(135deg, rgba(2, 35, 31, 0.98), rgba(4, 86, 72, 0.96)),
        radial-gradient(circle at 18% 18%, rgba(241, 196, 15, 0.3), transparent 38%);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), 0 0 24px rgba(241, 196, 15, 0.18);
    color: #fff4ba;
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0;
    text-align: left;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(16px);
    animation: course-popup-glow 2s ease-in-out infinite;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    visibility: hidden;
}

.notification-wrap button {
    font-family: inherit;
}

.course-popup::before {
    content: "i";
    position: absolute;
    left: 0.52rem;
    top: 50%;
    width: 1.32rem;
    height: 1.32rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(241, 196, 15, 0.65);
    background: rgba(241, 196, 15, 0.16);
    color: var(--accent-gold);
    font-family: Georgia, serif;
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: inset 0 0 14px rgba(241, 196, 15, 0.12);
}

.course-popup::after {
    content: "";
    position: absolute;
    right: calc(100% - 10px);
    top: 50%;
    width: 28px;
    height: 22px;
    transform: translateY(-50%);
    border-left: 3px solid rgba(241, 196, 15, 0.78);
    border-top: 3px solid rgba(241, 196, 15, 0.78);
    border-radius: 22px 0 0 0;
    background: transparent;
    box-shadow: -7px -7px 14px rgba(241, 196, 15, 0.18);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: min(160px, 100%);
    padding: 0.95rem 1.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.btn::before {
    content: "";
    position: absolute;
    inset: -40% -28%;
    z-index: -1;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.48) 46%, transparent 62%);
    opacity: 0;
    transform: translateX(-48%) rotate(8deg);
    transition: opacity 0.22s ease, transform 0.62s ease;
    pointer-events: none;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-3px);
}

.btn:hover::before,
.btn:focus-visible::before {
    opacity: 1;
    transform: translateX(42%) rotate(8deg);
}

.btn-primary {
    background: linear-gradient(135deg, #f1c40f 0%, #e8b708 100%);
    color: #0a0f1a;
    box-shadow: 0 14px 30px rgba(241, 196, 15, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    border-color: rgba(255, 235, 138, 0.85);
    background:
        linear-gradient(135deg, #fff1a8 0%, #f1c40f 42%, #c99608 100%);
    color: #071923;
    box-shadow: 0 20px 44px rgba(241, 196, 15, 0.42), 0 0 0 1px rgba(255, 235, 138, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.btn-secondary {
    background: rgba(22, 160, 133, 0.12);
    color: var(--text);
    border-color: rgba(22, 160, 133, 0.22);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    border-color: rgba(255, 235, 138, 0.85);
    background:
        linear-gradient(135deg, #fff1a8 0%, #f1c40f 42%, #c99608 100%);
    color: #071923;
    box-shadow: 0 20px 44px rgba(241, 196, 15, 0.42), 0 0 0 1px rgba(255, 235, 138, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.btn-tertiary {
    background: transparent;
    color: var(--accent-gold);
    border-color: rgba(241, 196, 15, 0.34);
    border: 1px solid rgba(241, 196, 15, 0.34);
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

@keyframes course-popup-glow {
    0%,
    100% {
        border-color: rgba(241, 196, 15, 0.52);
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), 0 0 20px rgba(241, 196, 15, 0.18);
        filter: brightness(1);
    }
    50% {
        border-color: rgba(241, 196, 15, 0.92);
        box-shadow: 0 22px 52px rgba(0, 0, 0, 0.42), 0 0 34px rgba(241, 196, 15, 0.34), 0 0 18px rgba(22, 160, 133, 0.24);
        filter: brightness(1.12);
    }
}

@keyframes notification-dot {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(0.74);
        opacity: 0.65;
    }
}

.hero-controls {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    z-index: 1;
    padding: 0 1rem;
}

.slider-arrow {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(22, 160, 133, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    cursor: pointer;
    font-size: 1.4rem;
    display: grid;
    place-items: center;
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.slider-arrow:hover,
.slider-arrow:focus-visible {
    background: rgba(22, 160, 133, 0.18);
    border-color: rgba(22, 160, 133, 0.28);
    transform: translateY(-2px);
}

.slider-dots {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
    width: 100%;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.slider-dot.active {
    background: #f1c40f;
    transform: scale(1.25);
    box-shadow: 0 0 0 4px rgba(241, 196, 15, 0.18), 0 0 18px rgba(241, 196, 15, 0.44);
}

.hero-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(0.85rem, 2vw, 1.25rem);
    margin-top: 2.5rem;
    flex-wrap: wrap;
    padding: 0 1rem 2rem;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.15rem;
    flex: 1;
    min-width: 0;
    width: 100%;
}

.stats-card {
    flex: 1 1 220px;
    min-width: 0;
    min-height: 190px;
    padding: 1.8rem 1.55rem;
    background:
        linear-gradient(135deg, rgba(8, 54, 43, 0.94), rgba(4, 29, 27, 0.96)),
        radial-gradient(circle at top left, rgba(241, 196, 15, 0.26), transparent 48%);
    border: 1px solid rgba(241, 196, 15, 0.28);
    border-radius: 24px;
    color: var(--text);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34), 0 0 24px rgba(22, 160, 133, 0.14);
    backdrop-filter: blur(10px);
    animation: stats-card-glow 3s ease-in-out infinite;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.stats-card:hover,
.stats-card:focus-within {
    transform: translateY(-6px);
    border-color: rgba(241, 196, 15, 0.72);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42), 0 0 34px rgba(241, 196, 15, 0.28), 0 0 24px rgba(22, 160, 133, 0.24);
}

.stat-label {
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #f5d86b;
    overflow-wrap: anywhere;
}

.stats-card strong {
    display: block;
    margin-top: 0.85rem;
    font-size: clamp(2rem, 3vw, 2.55rem);
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 0 18px rgba(241, 196, 15, 0.18);
    overflow-wrap: anywhere;
}

.stats-card p {
    margin: 1rem 0 0;
    color: #d8efe8;
    font-size: 0.95rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.about-section {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 7rem) 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(241, 196, 15, 0.13), transparent 28%),
        radial-gradient(circle at 88% 78%, rgba(22, 160, 133, 0.18), transparent 32%),
        linear-gradient(180deg, rgba(3, 18, 15, 0.98), rgba(7, 25, 35, 0.96));
}

.about-pattern {
    position: absolute;
    width: 220px;
    height: 220px;
    opacity: 0.08;
    pointer-events: none;
    background:
        linear-gradient(45deg, transparent 46%, rgba(241, 196, 15, 0.9) 47%, rgba(241, 196, 15, 0.9) 53%, transparent 54%),
        linear-gradient(-45deg, transparent 46%, rgba(241, 196, 15, 0.9) 47%, rgba(241, 196, 15, 0.9) 53%, transparent 54%);
    border: 1px solid rgba(241, 196, 15, 0.28);
    border-radius: 32px;
    transform: rotate(45deg);
}

.about-pattern-one {
    top: 10%;
    left: -70px;
}

.about-pattern-two {
    right: -80px;
    bottom: 8%;
    width: 260px;
    height: 260px;
}

.about-section-head {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100% - 1rem));
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: clamp(1.6rem, 4vw, 3rem);
    text-align: center;
}

.about-section-head .section-kicker {
    justify-content: center;
    margin-bottom: 0.65rem;
}

.about-section-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.25rem, 6vw, 5rem);
    line-height: 1;
    overflow-wrap: anywhere;
    text-shadow: 0 0 28px rgba(241, 196, 15, 0.16);
}

.about-section-head p {
    margin: 1rem auto 0;
    max-width: 560px;
    color: var(--muted);
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    line-height: 1.7;
}

.about-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: stretch;
}

.about-media {
    position: relative;
    flex: 1 1 420px;
    min-width: 0;
    display: grid;
    gap: 1rem;
    padding: 0.65rem;
    border: 1px solid rgba(241, 196, 15, 0.24);
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(22, 160, 133, 0.08)),
        rgba(255, 255, 255, 0.05);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.4), 0 0 34px rgba(22, 160, 133, 0.12);
    backdrop-filter: blur(18px);
    animation: about-image-float 5s ease-in-out infinite;
}

.about-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
}

.about-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    border-radius: 26px;
    filter: saturate(1.08) contrast(1.04);
    transition: transform 0.45s ease, filter 0.45s ease;
}

.about-media:hover img {
    transform: scale(1.035);
    filter: saturate(1.18) contrast(1.08) brightness(1.04);
}

.about-media-badge {
    position: absolute;
    left: 1.5rem;
    bottom: 1.5rem;
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(241, 196, 15, 0.3);
    border-radius: 18px;
    background: rgba(3, 18, 15, 0.78);
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(14px);
}

.about-media-badge strong {
    color: var(--accent-gold);
    font-size: 1.2rem;
    line-height: 1;
}

.about-media-badge span {
    color: var(--muted);
    font-size: 0.84rem;
}

.founder-video-card {
    display: grid;
    gap: 1rem;
    padding: clamp(1rem, 2vw, 1.25rem);
    border: 1px solid rgba(241, 196, 15, 0.24);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(8, 54, 43, 0.88), rgba(4, 29, 27, 0.94)),
        radial-gradient(circle at top left, rgba(241, 196, 15, 0.14), transparent 44%);
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.28), 0 0 26px rgba(22, 160, 133, 0.12);
}

.founder-video-card .founder-video-copy {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.founder-video-card .founder-video-copy h3 {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.1;
}

.founder-video-card .founder-video-copy p {
    margin: 0.7rem 0 0;
    color: #d8efe8;
    font-size: 0.94rem;
    line-height: 1.65;
}

.about-content {
    flex: 1 1 460px;
    min-width: 0;
    align-self: stretch;
    display: grid;
    align-content: center;
    padding: clamp(1.4rem, 3vw, 2.3rem);
    border: 1px solid rgba(241, 196, 15, 0.2);
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(8, 54, 43, 0.76), rgba(4, 29, 27, 0.88)),
        radial-gradient(circle at top left, rgba(241, 196, 15, 0.12), transparent 42%);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.section-kicker {
    display: inline-flex;
    margin-bottom: 1rem;
    color: var(--accent-gold);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.about-arabic-title {
    margin: 0 0 0.9rem;
    color: var(--accent-gold);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1.15;
    text-align: right;
    overflow-wrap: anywhere;
    text-shadow: 0 0 24px rgba(241, 196, 15, 0.18);
}

.about-content h3 {
    margin: 0;
    max-width: 12ch;
    font-size: clamp(2rem, 4.5vw, 4rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.about-content p {
    margin: 1.25rem 0 1.4rem;
    color: #d8efe8;
    font-size: 1.02rem;
    line-height: 1.85;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 64px;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(241, 196, 15, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.about-feature:hover {
    transform: translateY(-4px);
    border-color: rgba(241, 196, 15, 0.5);
    background: rgba(241, 196, 15, 0.1);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.26), 0 0 22px rgba(241, 196, 15, 0.12);
}

.about-feature span {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), #e8b708);
    color: #061411;
    font-weight: 900;
}

.about-feature strong {
    font-size: 0.92rem;
    line-height: 1.35;
    min-width: 0;
    overflow-wrap: anywhere;
}

.about-cta {
    width: fit-content;
}

.faq-section {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 7rem) 0;
    background:
        radial-gradient(circle at 18% 16%, rgba(241, 196, 15, 0.14), transparent 28%),
        radial-gradient(circle at 82% 82%, rgba(22, 160, 133, 0.16), transparent 32%),
        linear-gradient(180deg, rgba(7, 25, 35, 0.96), rgba(3, 18, 15, 0.98));
}

.faq-section-intro {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto clamp(1.5rem, 3.5vw, 2.7rem);
    text-align: center;
}

.faq-section-intro .section-kicker {
    justify-content: center;
}

.faq-section-intro h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.25rem, 5vw, 4.25rem);
    line-height: 1.04;
    text-shadow: 0 0 30px rgba(241, 196, 15, 0.16);
}

.faq-section-intro p {
    max-width: 720px;
    margin: 1rem auto 0;
    color: #d8efe8;
    font-size: clamp(0.98rem, 1.5vw, 1.1rem);
    line-height: 1.75;
}

.testimonials-section {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 7rem) 0;
    background:
        radial-gradient(circle at 15% 18%, rgba(241, 196, 15, 0.12), transparent 30%),
        radial-gradient(circle at 90% 70%, rgba(22, 160, 133, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(3, 18, 15, 0.98), rgba(7, 25, 35, 0.96));
}

.testimonials-pattern {
    position: absolute;
    inset: 1.5rem;
    --pattern-parallax-y: 0px;
    opacity: 0.05;
    pointer-events: none;
    background-image:
        linear-gradient(45deg, rgba(241, 196, 15, 0.9) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(241, 196, 15, 0.9) 25%, transparent 25%);
    background-size: 90px 90px;
}

.testimonials-inner {
    position: relative;
    z-index: 1;
}

.testimonials-head {
    max-width: 820px;
    margin: 0 auto clamp(1.6rem, 4vw, 3rem);
    text-align: center;
}

.testimonials-head .section-kicker {
    justify-content: center;
}

.testimonials-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 5.5vw, 4.6rem);
    line-height: 1.05;
    text-shadow: 0 0 28px rgba(241, 196, 15, 0.14);
    overflow-wrap: anywhere;
}

.testimonials-head p {
    margin: 1rem auto 0;
    max-width: 720px;
    color: #d8efe8;
    font-size: 1.02rem;
    line-height: 1.8;
}

.testimonial-carousel {
    position: relative;
    overflow: hidden;
    padding: 0.4rem 3.4rem;
}

.testimonial-carousel::before,
.testimonial-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: min(90px, 16vw);
    pointer-events: none;
}

.testimonial-carousel::before {
    left: 0;
    background: linear-gradient(90deg, rgba(3, 18, 15, 0.98), transparent);
}

.testimonial-carousel::after {
    right: 0;
    background: linear-gradient(270deg, rgba(3, 18, 15, 0.98), transparent);
}

.testimonial-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 50%;
    padding: 0.5rem 0.2rem 1rem;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.testimonial-track::-webkit-scrollbar {
    display: none;
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(241, 196, 15, 0.42);
    border-radius: 50%;
    background:
        linear-gradient(135deg, rgba(8, 54, 43, 0.92), rgba(4, 29, 27, 0.96)),
        rgba(255, 255, 255, 0.08);
    color: var(--accent-gold);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), 0 0 20px rgba(241, 196, 15, 0.14);
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-50%);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-nav:hover,
.testimonial-nav:focus-visible {
    border-color: rgba(241, 196, 15, 0.78);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.42), 0 0 30px rgba(241, 196, 15, 0.26);
    transform: translateY(-50%) scale(1.06);
}

.testimonial-prev {
    left: 0.35rem;
}

.testimonial-next {
    right: 0.35rem;
}

.testimonial-card {
    flex: 0 0 clamp(250px, 28vw, 340px);
    min-width: 0;
    scroll-snap-align: center;
    overflow: hidden;
    border: 1px solid rgba(241, 196, 15, 0.26);
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(8, 54, 43, 0.82), rgba(4, 29, 27, 0.94)),
        radial-gradient(circle at top left, rgba(241, 196, 15, 0.13), transparent 42%);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34), 0 0 26px rgba(241, 196, 15, 0.1);
    backdrop-filter: blur(14px);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(241, 196, 15, 0.58);
    box-shadow: 0 34px 82px rgba(0, 0, 0, 0.42), 0 0 34px rgba(241, 196, 15, 0.18);
}

.testimonial-shot {
    height: 380px;
    overflow: hidden;
    background: #ffffff;
}

.testimonial-zoom-trigger {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: #ffffff;
    cursor: zoom-in;
}

.testimonial-shot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    transition: transform 260ms ease, filter 260ms ease;
}

.testimonial-zoom-trigger:hover img,
.testimonial-zoom-trigger:focus-visible img {
    filter: brightness(0.92);
    transform: scale(1.035);
}

.testimonial-zoom-trigger:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: -3px;
}

.testimonial-zoom-trigger span {
    position: absolute;
    right: 0.8rem;
    bottom: 0.8rem;
    z-index: 2;
    padding: 0.42rem 0.65rem;
    border: 1px solid rgba(241, 196, 15, 0.55);
    border-radius: 999px;
    background: rgba(3, 18, 15, 0.82);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 220ms ease, transform 220ms ease;
}

.testimonial-zoom-trigger:hover span,
.testimonial-zoom-trigger:focus-visible span {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-info {
    display: grid;
    gap: 0.55rem;
    padding: 1rem;
}

.testimonial-info span {
    color: var(--accent-gold);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}

.testimonial-info h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.2rem;
}

.testimonial-info p {
    margin: 0;
    color: #d8efe8;
    font-size: 0.9rem;
    line-height: 1.55;
}

.testimonial-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: clamp(0.65rem, 2.5vw, 1.5rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.testimonial-lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.testimonial-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(3, 18, 15, 0.82);
    backdrop-filter: blur(10px);
    cursor: zoom-out;
}

.testimonial-lightbox-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: fit-content;
    max-width: min(96vw, 980px);
    max-height: 94dvh;
    padding: clamp(0.55rem, 1.6vw, 0.9rem);
    border: 1px solid rgba(241, 196, 15, 0.34);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(8, 54, 43, 0.82), rgba(4, 29, 27, 0.95)),
        rgba(3, 18, 15, 0.94);
    box-shadow: 0 36px 110px rgba(0, 0, 0, 0.52), 0 0 34px rgba(241, 196, 15, 0.14);
    transform: scale(0.96);
    transition: transform 220ms ease;
}

.testimonial-lightbox.open .testimonial-lightbox-dialog {
    transform: scale(1);
}

.testimonial-lightbox-dialog img {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(96vw - 2rem);
    max-height: calc(94dvh - 2rem);
    object-fit: contain;
    border-radius: 16px;
    background: #ffffff;
}

.testimonial-lightbox-close {
    position: fixed;
    top: max(0.65rem, env(safe-area-inset-top));
    right: max(0.65rem, env(safe-area-inset-right));
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(241, 196, 15, 0.48);
    border-radius: 50%;
    background: rgba(3, 18, 15, 0.96);
    color: #ffffff;
    cursor: pointer;
    font-size: 1.55rem;
    line-height: 1;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.36);
}

.teachers-section {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 7rem) 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(241, 196, 15, 0.12), transparent 30%),
        radial-gradient(circle at 84% 66%, rgba(22, 160, 133, 0.2), transparent 34%),
        linear-gradient(180deg, rgba(7, 25, 35, 0.96), rgba(3, 18, 15, 0.98));
}

.teachers-pattern {
    position: absolute;
    inset: 2rem;
    opacity: 0.05;
    pointer-events: none;
    background-image:
        linear-gradient(45deg, rgba(241, 196, 15, 0.9) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(241, 196, 15, 0.9) 25%, transparent 25%);
    background-size: 96px 96px;
}

.teachers-section-head {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto clamp(1.6rem, 4vw, 3rem);
    text-align: center;
}

.teachers-section-head .section-kicker {
    justify-content: center;
}

.teachers-section-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 5.4vw, 4.4rem);
    line-height: 1.05;
    text-shadow: 0 0 28px rgba(241, 196, 15, 0.14);
}

.teachers-section-head p {
    margin: 1rem auto 0;
    max-width: 700px;
    color: #d8efe8;
    font-size: 1.02rem;
    line-height: 1.8;
}

.teachers-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.teacher-card {
    min-width: 0;
    border: 1px solid rgba(241, 196, 15, 0.22);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(8, 54, 43, 0.82), rgba(4, 29, 27, 0.94)),
        radial-gradient(circle at top left, rgba(241, 196, 15, 0.13), transparent 42%);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32), 0 0 26px rgba(241, 196, 15, 0.1);
    backdrop-filter: blur(14px);
}

.teacher-card-featured {
    grid-column: span 2;
    grid-row: span 2;
    display: grid;
    grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
    overflow: hidden;
}

.teacher-photo {
    min-height: 100%;
    background: rgba(255, 255, 255, 0.06);
}

.teacher-photo img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    object-position: center top;
}

.teacher-content {
    display: grid;
    align-content: center;
    gap: 0.85rem;
    padding: clamp(1.1rem, 3vw, 1.8rem);
}

.teacher-badge {
    display: inline-flex;
    width: fit-content;
    padding: 0.48rem 0.72rem;
    border: 1px solid rgba(241, 196, 15, 0.28);
    border-radius: 999px;
    background: rgba(241, 196, 15, 0.14);
    color: var(--accent-gold);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.teacher-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.45rem, 3vw, 2.55rem);
    line-height: 1.08;
}

.teacher-role {
    margin: 0;
    color: var(--accent-gold);
    font-weight: 800;
}

.teacher-content p {
    margin: 0;
    color: #d8efe8;
    line-height: 1.75;
}

.teacher-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.25rem;
}

.teacher-stats span {
    padding: 0.48rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
}

.teacher-card-profile {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(150px, 0.55fr) minmax(0, 1.45fr);
    overflow: hidden;
}

.teacher-small-photo {
    min-height: 100%;
    background: rgba(255, 255, 255, 0.06);
}

.teacher-small-photo img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    object-position: center top;
}

.teacher-small-content {
    display: grid;
    align-content: center;
    gap: 0.65rem;
    padding: 1.1rem;
}

.teacher-small-content h3 {
    font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.teacher-small-content p {
    margin: 0;
    color: #d8efe8;
    font-size: 0.92rem;
    line-height: 1.65;
}

.teacher-card-empty,
.teacher-card-pending {
    display: grid;
    align-content: end;
    min-height: 250px;
    padding: 1.1rem;
    overflow: hidden;
    position: relative;
}

.teacher-card-empty::before,
.teacher-card-pending::before {
    content: "";
    position: absolute;
    inset: 1rem;
    border: 1px dashed rgba(241, 196, 15, 0.28);
    border-radius: 18px;
    pointer-events: none;
}

.teacher-card-pending {
    background:
        linear-gradient(135deg, rgba(12, 74, 60, 0.86), rgba(4, 29, 27, 0.94)),
        radial-gradient(circle at top right, rgba(22, 160, 133, 0.16), transparent 44%);
}

.teacher-card-pending::before {
    border-style: solid;
    border-color: rgba(22, 160, 133, 0.32);
}

.teacher-card-empty h3,
.teacher-card-pending h3 {
    font-size: 1.25rem;
}

.teacher-card-empty p,
.teacher-card-pending p {
    margin: 0.45rem 0 0;
    color: var(--muted);
    line-height: 1.6;
}

/* Clean teacher cards, designed for later admin-driven content. */
.teachers-section {
    background:
        radial-gradient(circle at 16% 20%, rgba(241, 196, 15, 0.13), transparent 30%),
        radial-gradient(circle at 86% 70%, rgba(22, 160, 133, 0.18), transparent 35%),
        linear-gradient(180deg, rgba(7, 25, 35, 0.98), rgba(3, 18, 15, 0.98));
    color: #ffffff;
}

.teachers-pattern {
    display: block;
}

.teachers-section-head {
    max-width: 780px;
}

.teachers-section-head h2 {
    color: #ffffff;
    text-shadow: 0 0 28px rgba(241, 196, 15, 0.14);
}

.teachers-section-head p {
    color: #d8efe8;
}

.teachers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.6rem);
    align-items: stretch;
}

.teacher-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-height: 100%;
    padding: 1rem 1rem 1.15rem;
    border: 1px solid rgba(241, 196, 15, 0.24);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(8, 54, 43, 0.92) 0%, rgba(4, 29, 27, 0.98) 100%),
        radial-gradient(circle at top left, rgba(241, 196, 15, 0.12), transparent 42%);
    box-shadow: 0 26px 68px rgba(0, 0, 0, 0.34), 0 0 24px rgba(241, 196, 15, 0.08);
    backdrop-filter: blur(14px);
    overflow: hidden;
    outline: 0;
    transform: translateY(0);
    transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.teacher-card::before {
    content: "";
    position: absolute;
    inset: -40% -22%;
    background:
        linear-gradient(115deg, transparent 26%, rgba(241, 196, 15, 0.18) 43%, transparent 58%),
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.12), transparent 36%);
    opacity: 0;
    transform: translateX(-28%) rotate(8deg);
    transition: opacity 260ms ease, transform 680ms ease;
    pointer-events: none;
}

.teacher-card:hover,
.teacher-card:focus-visible,
.teacher-card.is-spotlight {
    border-color: rgba(241, 196, 15, 0.68);
    box-shadow: 0 34px 82px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(241, 196, 15, 0.18), 0 0 36px rgba(241, 196, 15, 0.22);
    transform: translateY(-7px);
}

.teacher-card:hover::before,
.teacher-card:focus-visible::before,
.teacher-card.is-spotlight::before {
    opacity: 1;
    transform: translateX(26%) rotate(8deg);
}

.teacher-image-card {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid rgba(241, 196, 15, 0.28);
    border-radius: 18px;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 58%, transparent 59%),
        linear-gradient(135deg, rgba(241, 196, 15, 0.18), rgba(255, 255, 255, 0.92));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.teacher-image-card::after {
    content: "";
    position: absolute;
    inset: 0.45rem;
    border: 1px solid rgba(241, 196, 15, 0.74);
    border-radius: 50%;
    pointer-events: none;
    animation: teacher-ring-pulse 4.5s ease-in-out infinite;
}

.teacher-image-card img {
    position: relative;
    z-index: 1;
    width: 86%;
    height: 86%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    filter: saturate(0.96) contrast(1.02);
    transform: scale(1);
    transition: filter 260ms ease, transform 360ms ease;
}

.teacher-card:hover .teacher-image-card img,
.teacher-card:focus-visible .teacher-image-card img,
.teacher-card.is-spotlight .teacher-image-card img {
    filter: saturate(1.08) contrast(1.06);
    transform: scale(1.045);
}

.teacher-image-card .teacher-badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 2;
}

.teacher-badge {
    padding: 0.42rem 0.72rem;
    border: 0;
    background: #f0c96f;
    color: #081c17;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.teacher-role {
    margin: 0.35rem 0 0;
    color: var(--accent-gold);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.teacher-card h3 {
    color: #ffffff;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.2;
}

.teacher-card p {
    margin: 0;
    color: #d8efe8;
    font-size: 0.95rem;
    line-height: 1.6;
}

.teacher-points {
    display: grid;
    gap: 0.4rem;
    margin: auto 0 0;
    padding: 0.25rem 0 0;
    list-style: none;
}

.teacher-points li {
    position: relative;
    padding-left: 1.1rem;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.35;
}

.teacher-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    border: 1px solid var(--accent-gold);
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.35);
}

.teacher-card-soon {
    justify-content: flex-start;
}

.teacher-soon-image {
    background:
        radial-gradient(circle, rgba(241, 196, 15, 0.18) 0 58%, transparent 59%),
        linear-gradient(135deg, rgba(8, 54, 43, 0.86), rgba(4, 29, 27, 0.96));
}

.teacher-soon-image::before {
    content: "+";
    color: rgba(241, 196, 15, 0.62);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 200;
}

.why-section {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 7rem) 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 15% 18%, rgba(241, 196, 15, 0.13), transparent 30%),
        radial-gradient(circle at 92% 72%, rgba(22, 160, 133, 0.2), transparent 34%),
        linear-gradient(180deg, rgba(3, 18, 15, 0.98), rgba(7, 25, 35, 0.96));
}

.why-pattern {
    position: absolute;
    inset: 1.5rem;
    opacity: 0.045;
    pointer-events: none;
    background-image:
        linear-gradient(30deg, rgba(241, 196, 15, 0.92) 12%, transparent 12.5%, transparent 87%, rgba(241, 196, 15, 0.92) 87.5%, rgba(241, 196, 15, 0.92)),
        linear-gradient(150deg, rgba(241, 196, 15, 0.92) 12%, transparent 12.5%, transparent 87%, rgba(241, 196, 15, 0.92) 87.5%, rgba(241, 196, 15, 0.92));
    background-size: 92px 152px;
}

.why-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.3fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.why-section-head {
    position: relative;
    z-index: 1;
    max-width: 840px;
    margin: 0 auto clamp(1.6rem, 4vw, 3rem);
    text-align: center;
}

.why-section-head .section-kicker {
    justify-content: center;
}

.why-section-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.25rem, 5vw, 4.25rem);
    line-height: 1.04;
    text-shadow: 0 0 30px rgba(241, 196, 15, 0.16);
}

.why-section-head p {
    max-width: 740px;
    margin: 1rem auto 0;
    color: #d8efe8;
    font-size: clamp(0.98rem, 1.5vw, 1.1rem);
    line-height: 1.75;
    text-align: center;
    text-align-last: center;
}

.why-copy {
    position: sticky;
    top: 5.5rem;
    display: grid;
    gap: 1rem;
}

.why-copy h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.55rem, 3vw, 2.45rem);
    line-height: 1.12;
    text-shadow: 0 0 28px rgba(241, 196, 15, 0.14);
}

.why-subheading {
    color: var(--accent-gold);
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1.5;
    text-transform: uppercase;
}

.why-copy p {
    margin: 0;
    color: #d8efe8;
    font-size: 1rem;
    line-height: 1.75;
    text-align: justify;
    text-align-last: left;
}

.why-stat-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    padding: 0.85rem;
    border: 1px solid rgba(241, 196, 15, 0.26);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(8, 54, 43, 0.76), rgba(4, 29, 27, 0.92)),
        radial-gradient(circle at top left, rgba(241, 196, 15, 0.13), transparent 42%);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px);
}

.why-stat-panel div {
    min-width: 0;
    padding: 0.75rem 0.5rem;
    border-radius: 17px;
    border: 1px solid rgba(241, 196, 15, 0.12);
    background: rgba(255, 255, 255, 0.045);
    text-align: center;
}

.why-stat-panel strong,
.why-stat-panel span {
    display: block;
}

.why-stat-panel strong {
    color: var(--accent-gold);
    font-size: clamp(1.3rem, 3vw, 2rem);
    line-height: 1;
}

.why-stat-panel span {
    margin-top: 0.35rem;
    color: #d8efe8;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.9rem, 2vw, 1.25rem);
}

.why-card {
    position: relative;
    display: grid;
    gap: 0.75rem;
    min-height: 100%;
    padding: clamp(1rem, 2.2vw, 1.35rem);
    overflow: hidden;
    border: 1px solid rgba(241, 196, 15, 0.2);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
        rgba(3, 18, 15, 0.6);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(14px);
    outline: 0;
    transform: translateY(0);
    transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.why-card::before {
    content: "";
    position: absolute;
    inset: -45% -20%;
    background:
        linear-gradient(115deg, transparent 28%, rgba(241, 196, 15, 0.16) 44%, transparent 59%),
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.1), transparent 35%);
    opacity: 0;
    transform: translateX(-30%) rotate(8deg);
    transition: opacity 260ms ease, transform 680ms ease;
    pointer-events: none;
}

.why-card:hover,
.why-card:focus-visible,
.why-card.is-spotlight {
    border-color: rgba(241, 196, 15, 0.62);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.34), 0 0 32px rgba(241, 196, 15, 0.18);
    transform: translateY(-6px);
}

.why-card:hover::before,
.why-card:focus-visible::before,
.why-card.is-spotlight::before {
    opacity: 1;
    transform: translateX(26%) rotate(8deg);
}

.why-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(241, 196, 15, 0.52);
    border-radius: 15px;
    background:
        linear-gradient(135deg, rgba(241, 196, 15, 0.22), rgba(22, 160, 133, 0.14)),
        rgba(3, 18, 15, 0.74);
    color: var(--accent-gold);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    box-shadow: 0 0 18px rgba(241, 196, 15, 0.12);
}

.why-card h3,
.why-card p {
    position: relative;
    z-index: 1;
}

.why-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.22;
}

.why-card p {
    margin: 0;
    color: #d8efe8;
    font-size: 0.93rem;
    line-height: 1.65;
    text-align: justify;
    text-align-last: left;
}

@keyframes teacher-ring-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(241, 196, 15, 0.18);
    }

    50% {
        box-shadow: 0 0 0 0.42rem rgba(241, 196, 15, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .teacher-card,
    .teacher-card::before,
    .teacher-image-card img {
        transition: none;
    }

    .teacher-image-card::after {
        animation: none;
    }

    .why-card,
    .why-card::before {
        transition: none;
    }
}

.faq-pattern {
    position: absolute;
    inset: 2rem;
    --pattern-parallax-y: 0px;
    opacity: 0.05;
    pointer-events: none;
    background-image:
        linear-gradient(30deg, rgba(241, 196, 15, 0.9) 12%, transparent 12.5%, transparent 87%, rgba(241, 196, 15, 0.9) 87.5%, rgba(241, 196, 15, 0.9)),
        linear-gradient(150deg, rgba(241, 196, 15, 0.9) 12%, transparent 12.5%, transparent 87%, rgba(241, 196, 15, 0.9) 87.5%, rgba(241, 196, 15, 0.9));
    background-size: 84px 140px;
}

.faq-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.35fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: flex-start;
}

.faq-side {
    min-width: 0;
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 5.5rem;
}

.faq-head {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(241, 196, 15, 0.2);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(8, 54, 43, 0.78), rgba(4, 29, 27, 0.9)),
        radial-gradient(circle at top left, rgba(241, 196, 15, 0.13), transparent 44%);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.faq-head h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.55rem, 2.8vw, 2.4rem);
    line-height: 1.12;
}

.faq-head p {
    margin: 1rem 0 0;
    color: #d8efe8;
    font-size: 1rem;
    line-height: 1.75;
}

.faq-feature-card {
    display: grid;
    gap: 0.65rem;
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(241, 196, 15, 0.34);
    border-radius: 22px;
    background: transparent;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.3), 0 0 28px rgba(241, 196, 15, 0.12);
    backdrop-filter: blur(16px);
    animation: faq-card-rise 0.7s ease-out both;
}

.faq-feature-option {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 0.48rem;
    min-height: 42px;
    padding: 0.58rem 0.65rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(241, 196, 15, 0.12);
    color: #ffffff;
    opacity: 0;
    transform: translateY(12px);
    animation: faq-option-rise 0.55s ease-out forwards;
}

.faq-feature-option div {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.faq-feature-option:nth-child(1) {
    animation-delay: 0.2s;
}

.faq-feature-option:nth-child(2) {
    animation-delay: 0.4s;
}

.faq-feature-option:nth-child(3) {
    animation-delay: 0.6s;
}

.faq-feature-option:nth-child(4) {
    animation-delay: 0.8s;
}

.faq-feature-option span {
    flex: 0 0 auto;
    color: var(--accent-gold);
    font-size: 1rem;
    line-height: 1;
    text-shadow: 0 0 12px rgba(241, 196, 15, 0.42);
    animation: faq-star-pulse 1.9s ease-in-out infinite;
}

.faq-feature-option strong {
    min-width: 0;
    font-size: 0.88rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.faq-feature-option i {
    position: relative;
    display: block;
    width: 100%;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(241, 196, 15, 0.14);
}

.faq-feature-option i::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 72%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(241, 196, 15, 0.35), rgba(241, 196, 15, 0.95), rgba(22, 160, 133, 0.5));
    box-shadow: 0 0 14px rgba(241, 196, 15, 0.42);
    transform: translateX(-110%);
    animation: faq-loading-bar 2.4s ease-in-out infinite;
}

.faq-list {
    min-width: 0;
    display: grid;
    gap: 0.85rem;
}

.faq-item {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(241, 196, 15, 0.2);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
        rgba(3, 18, 15, 0.56);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.faq-item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-gold), rgba(22, 160, 133, 0.75));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.faq-item.open {
    border-color: rgba(241, 196, 15, 0.5);
    background:
        linear-gradient(135deg, rgba(8, 54, 43, 0.72), rgba(4, 29, 27, 0.88)),
        rgba(255, 255, 255, 0.06);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32), 0 0 24px rgba(241, 196, 15, 0.1);
}

.faq-item:hover,
.faq-item.open {
    transform: translateY(-2px);
}

.faq-item.open::before {
    opacity: 1;
}

.faq-question {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 0;
    background: transparent;
    color: #ffffff;
    padding: 1rem 1.1rem;
    cursor: pointer;
    text-align: left;
    font-weight: 850;
}

.faq-question span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.faq-toggle-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(241, 196, 15, 0.72);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(241, 196, 15, 0.16), rgba(22, 160, 133, 0.12)),
        rgba(3, 18, 15, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 18px rgba(241, 196, 15, 0.14);
    transform: rotate(45deg);
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-toggle-icon::before {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
    transform: rotate(0deg) translate(-1px, -1px);
    transition: transform 0.25s ease;
}

.faq-item.open .faq-toggle-icon {
    background:
        linear-gradient(135deg, rgba(241, 196, 15, 0.28), rgba(22, 160, 133, 0.16)),
        rgba(3, 18, 15, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 24px rgba(241, 196, 15, 0.26);
    transform: rotate(225deg);
}

.faq-item.open .faq-toggle-icon::before {
    transform: rotate(0deg) translate(-1px, -1px);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
}

.faq-answer p {
    margin: 0;
    padding: 0 1.1rem 1rem;
    color: #d8efe8;
    line-height: 1.75;
}

.contact-section {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 7rem) 0;
    background:
        radial-gradient(circle at 16% 20%, rgba(241, 196, 15, 0.13), transparent 30%),
        radial-gradient(circle at 86% 72%, rgba(22, 160, 133, 0.18), transparent 35%),
        linear-gradient(180deg, rgba(3, 18, 15, 0.98), rgba(7, 25, 35, 0.96));
}

.contact-pattern {
    position: absolute;
    inset: 1.5rem;
    opacity: 0.045;
    pointer-events: none;
    background-image:
        linear-gradient(30deg, rgba(241, 196, 15, 0.9) 12%, transparent 12.5%, transparent 87%, rgba(241, 196, 15, 0.9) 87.5%, rgba(241, 196, 15, 0.9)),
        linear-gradient(150deg, rgba(241, 196, 15, 0.9) 12%, transparent 12.5%, transparent 87%, rgba(241, 196, 15, 0.9) 87.5%, rgba(241, 196, 15, 0.9));
    background-size: 92px 152px;
}

.contact-section-head {
    position: relative;
    z-index: 1;
    max-width: 840px;
    margin: 0 auto clamp(1.6rem, 4vw, 3rem);
    text-align: center;
}

.contact-section-head .section-kicker {
    justify-content: center;
}

.contact-section-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.25rem, 5vw, 4.25rem);
    line-height: 1.04;
    text-shadow: 0 0 30px rgba(241, 196, 15, 0.16);
}

.contact-section-head p {
    max-width: 720px;
    margin: 1rem auto 0;
    color: #d8efe8;
    font-size: clamp(0.98rem, 1.5vw, 1.1rem);
    line-height: 1.75;
    text-align: center;
    text-align-last: center;
}

.contact-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.76fr);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: stretch;
}

.contact-info-card,
.contact-action-card {
    border: 1px solid rgba(241, 196, 15, 0.24);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(8, 54, 43, 0.92), rgba(4, 29, 27, 0.98)),
        radial-gradient(circle at top left, rgba(241, 196, 15, 0.12), transparent 42%);
    box-shadow: 0 26px 68px rgba(0, 0, 0, 0.34), 0 0 24px rgba(241, 196, 15, 0.08);
    backdrop-filter: blur(14px);
}

.contact-info-card {
    display: grid;
    gap: 1rem;
    padding: clamp(1.2rem, 3vw, 2rem);
}

.contact-info-card h3,
.contact-action-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.6rem, 3vw, 2.7rem);
    line-height: 1.08;
}

.contact-info-card p,
.contact-action-card p {
    margin: 0;
    color: #d8efe8;
    line-height: 1.75;
}

.contact-methods {
    display: grid;
    gap: 0.8rem;
}

.contact-methods a {
    display: grid;
    gap: 0.28rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(241, 196, 15, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.contact-methods a:hover,
.contact-methods a:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(241, 196, 15, 0.58);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24), 0 0 24px rgba(241, 196, 15, 0.12);
}

.contact-methods span,
.contact-badge {
    color: var(--accent-gold);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-methods strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: clamp(0.98rem, 2vw, 1.2rem);
}

.contact-action-card {
    display: grid;
    align-content: center;
    gap: 1rem;
    padding: clamp(1.2rem, 3vw, 2rem);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.about-content p,
.founder-video-copy p,
.founder-video-card .founder-video-copy p,
.teacher-card p,
.teacher-content p,
.teacher-small-content p,
.testimonial-info p,
.faq-head p,
.faq-answer p,
.featured-content p,
.blog-card p,
.post-content p {
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
}

.about-section-head p,
.teachers-section-head p,
.testimonials-head p,
.why-section-head p,
.faq-section-intro p,
.contact-section-head p,
.blog-hero p,
.post-not-found p {
    text-align: center;
    text-align-last: center;
}

@keyframes faq-card-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes faq-option-rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes faq-star-pulse {
    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(241, 196, 15, 0.3));
    }
    50% {
        transform: scale(1.16);
        filter: drop-shadow(0 0 12px rgba(241, 196, 15, 0.72));
    }
}

@keyframes faq-loading-bar {
    0% {
        transform: translateX(-110%);
    }
    55%,
    100% {
        transform: translateX(145%);
    }
}

.founder-video-copy {
    padding: clamp(1.2rem, 3vw, 2rem);
    border: 1px solid rgba(241, 196, 15, 0.18);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
}

.founder-video-copy h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
}

.founder-video-copy p {
    margin: 1rem 0 0;
    color: #d8efe8;
    font-size: 1.02rem;
    line-height: 1.75;
}

.founder-video-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(241, 196, 15, 0.34);
    border-radius: 28px;
    background: rgba(3, 18, 15, 0.7);
    box-shadow: 0 32px 82px rgba(0, 0, 0, 0.42), 0 0 34px rgba(241, 196, 15, 0.16), 0 0 24px rgba(22, 160, 133, 0.14);
}

.founder-video-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
    z-index: 1;
}

.founder-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

@keyframes about-image-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.registration-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: clamp(0.65rem, 2.5vw, 2rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    overflow-y: auto;
}

body.registration-open .site-header,
body.registration-open .whatsapp-float,
body:has(.registration-modal:target) .site-header,
body:has(.registration-modal:target) .whatsapp-float {
    opacity: 0;
    pointer-events: none;
}

.registration-modal.open,
.registration-modal:target {
    opacity: 1;
    pointer-events: auto;
}

.registration-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 10, 9, 0.74);
    backdrop-filter: blur(14px);
    cursor: default;
}

.registration-dialog {
    position: relative;
    width: min(920px, calc(100vw - clamp(1rem, 4vw, 3rem)));
    max-height: min(92dvh, 860px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(1rem, 2.5vw, 2rem);
    border: 1px solid rgba(241, 196, 15, 0.28);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(5, 31, 27, 0.9), rgba(8, 24, 37, 0.88)),
        radial-gradient(circle at top left, rgba(241, 196, 15, 0.16), transparent 42%);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5), 0 0 36px rgba(22, 160, 133, 0.14);
    backdrop-filter: blur(24px);
    transform: translateY(22px) scale(0.98);
    transition: transform 0.25s ease;
}

.registration-modal.open .registration-dialog,
.registration-modal:target .registration-dialog {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(241, 196, 15, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
    font-size: 1.7rem;
    line-height: 1;
    text-decoration: none;
}

.demo-popup {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: clamp(0.8rem, 3vw, 1.5rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

.demo-popup.open {
    opacity: 1;
    pointer-events: auto;
}

.demo-popup-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(2, 10, 9, 0.72);
    backdrop-filter: blur(12px);
}

.demo-popup-card {
    position: relative;
    z-index: 1;
    width: min(92vw, 430px);
    display: grid;
    gap: 0.85rem;
    padding: clamp(1.2rem, 4vw, 1.75rem);
    border: 1px solid rgba(241, 196, 15, 0.34);
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, rgba(241, 196, 15, 0.18), transparent 42%),
        linear-gradient(135deg, rgba(5, 45, 38, 0.96), rgba(3, 18, 15, 0.98));
    box-shadow: 0 34px 95px rgba(0, 0, 0, 0.52), 0 0 38px rgba(241, 196, 15, 0.16);
    color: #ffffff;
    text-align: center;
    transform: translateY(18px) scale(0.96);
    transition: transform 0.24s ease;
}

.demo-popup.open .demo-popup-card {
    transform: translateY(0) scale(1);
}

.demo-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(241, 196, 15, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
    font-size: 1.55rem;
    line-height: 1;
}

.demo-popup-kicker {
    justify-self: center;
    width: fit-content;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(241, 196, 15, 0.26);
    border-radius: 999px;
    color: var(--accent-gold);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.demo-popup h2 {
    margin: 0;
    padding: 0 1.6rem;
    font-size: clamp(1.45rem, 6vw, 2rem);
    line-height: 1.15;
}

.demo-popup p {
    margin: 0;
    color: #d8efe8;
    line-height: 1.65;
}

.demo-popup-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    margin-top: 0.35rem;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f9f73, #087b5f);
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 18px 38px rgba(5, 120, 88, 0.3);
}

.demo-popup-whatsapp svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    flex: 0 0 auto;
}

.registration-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-right: 3rem;
    margin-bottom: 1.5rem;
}

.registration-head h2 {
    margin: 0.75rem 0 0;
    font-size: clamp(1.65rem, 4vw, 2.6rem);
    line-height: 1.08;
    max-width: 16ch;
}

.whatsapp-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.2rem;
    padding: 0.78rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #25d366, #0d8f49);
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 14px 32px rgba(37, 211, 102, 0.24);
    white-space: nowrap;
}

.whatsapp-contact svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.registration-form {
    display: grid;
    gap: 1.15rem;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.registration-form fieldset {
    margin: 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: clamp(0.85rem, 2vw, 1.15rem);
    border: 1px solid rgba(241, 196, 15, 0.18);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
}

.registration-form legend {
    padding: 0 0.45rem;
    color: var(--accent-gold);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.75rem, 2vw, 0.95rem);
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.registration-form label {
    position: relative;
    display: grid;
    gap: 0.45rem;
    color: #d8efe8;
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.registration-form input,
.registration-form select,
.registration-form textarea {
    display: block;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    border: 1px solid rgba(241, 196, 15, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.78rem 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.registration-form select {
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    white-space: nowrap;
    padding-right: 2.6rem;
    text-overflow: ellipsis;
    background-image:
        linear-gradient(45deg, transparent 50%, #d8efe8 50%),
        linear-gradient(135deg, #d8efe8 50%, transparent 50%);
    background-position:
        calc(100% - 1.05rem) 50%,
        calc(100% - 0.75rem) 50%;
    background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
    background-repeat: no-repeat;
}

.registration-form textarea {
    resize: vertical;
}

.registration-form select option {
    color: #071923;
}

.registration-native-select {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.registration-select {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.registration-select-toggle {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    padding: 0.78rem 2.6rem 0.78rem 0.9rem;
    border: 1px solid rgba(241, 196, 15, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.registration-select-toggle::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid #d8efe8;
    border-bottom: 2px solid #d8efe8;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.registration-select-toggle.is-placeholder {
    color: rgba(255, 255, 255, 0.82);
}

.registration-select-toggle:focus-visible,
.registration-select.open .registration-select-toggle {
    border-color: rgba(241, 196, 15, 0.75);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 0 4px rgba(241, 196, 15, 0.12);
    outline: none;
}

.registration-select-menu {
    position: absolute;
    z-index: 40;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    display: none;
    width: 100%;
    max-width: 100%;
    max-height: min(52vh, 260px);
    overflow-y: auto;
    padding: 0.35rem;
    border: 1px solid rgba(241, 196, 15, 0.34);
    border-radius: 14px;
    background: #10261f;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.registration-select.open .registration-select-menu {
    display: grid;
    gap: 0.2rem;
}

.registration-select-option {
    width: 100%;
    padding: 0.72rem 0.8rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    white-space: normal;
    overflow-wrap: anywhere;
}

.registration-select-option:hover,
.registration-select-option:focus-visible,
.registration-select-option[aria-selected="true"] {
    background: rgba(241, 196, 15, 0.16);
    color: var(--accent-gold);
    outline: none;
}

.registration-form input:focus,
.registration-form select:focus,
.registration-form textarea:focus {
    border-color: rgba(241, 196, 15, 0.75);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 0 4px rgba(241, 196, 15, 0.12);
}

.form-wide {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
}

.form-wide select {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.form-submit {
    justify-self: end;
    border: 0;
    cursor: pointer;
}

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

    .teacher-card {
        padding: 0.9rem;
    }

    .about-inner {
        flex-direction: column;
    }

    .about-media,
    .about-content {
        flex-basis: auto;
        width: 100%;
    }

    .about-media {
        min-height: 0;
    }

    .about-media img {
        aspect-ratio: 16 / 10;
    }

    .about-content h3 {
        max-width: 100%;
    }

    .featured-post,
    .post-layout {
        grid-template-columns: 1fr;
    }

    .featured-post {
        margin-top: -1rem;
    }

    .post-sidebar {
        order: 2;
    }

    .registration-dialog {
        width: min(100%, 720px);
    }

    .registration-head {
        display: grid;
        padding-right: 3rem;
    }

    .registration-head h2 {
        max-width: 100%;
    }

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

    .form-submit {
        justify-self: stretch;
    }

    .faq-inner {
        grid-template-columns: 1fr;
    }

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

    .why-inner {
        grid-template-columns: 1fr;
    }

    .why-copy {
        position: static;
    }

    .faq-side,
    .faq-head,
    .faq-list {
        width: 100%;
        flex-basis: auto;
    }

    .faq-side {
        position: static;
    }

    .faq-feature-card {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .teachers-section {
        padding: 3rem 0;
    }

    .why-section {
        padding: 3rem 0;
    }

    .why-section-head h2 {
        font-size: clamp(1.7rem, 8.8vw, 2.65rem);
    }

    .why-section-head p,
    .why-copy p,
    .why-card p {
        font-size: 0.92rem;
        line-height: 1.65;
    }

    .why-copy h3 {
        font-size: clamp(1.45rem, 7vw, 2.2rem);
    }

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

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

    .teachers-section-head h2 {
        font-size: clamp(1.7rem, 8.8vw, 2.65rem);
    }

    .teachers-section-head p {
        font-size: 0.92rem;
        line-height: 1.65;
    }

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

    .teacher-image-card {
        aspect-ratio: 4 / 3;
    }

    .teacher-image-card img {
        width: 78%;
        height: 90%;
    }

    .about-section {
        padding: 3.2rem 0;
    }

    .about-section-head {
        margin-bottom: 1.4rem;
    }

    .about-section-head h2 {
        font-size: clamp(1.75rem, 11vw, 3.1rem);
    }

    .about-media {
        min-height: auto;
        padding: 0.45rem;
        border-radius: 22px;
    }

    .about-media img {
        aspect-ratio: 4 / 3;
        border-radius: 18px;
    }

    .about-image-wrap {
        border-radius: 18px;
    }

    .about-media-badge {
        left: 1rem;
        bottom: 1rem;
        padding: 0.7rem 0.8rem;
    }

    .about-content {
        padding: 1.1rem;
        border-radius: 22px;
    }

    .section-kicker {
        font-size: 0.68rem;
        letter-spacing: 0.1em;
    }

    .about-arabic-title {
        text-align: center;
        font-size: clamp(1.9rem, 10vw, 2.8rem);
    }

    .about-content h3 {
        font-size: clamp(1.45rem, 7.5vw, 2.35rem);
    }

    .about-content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .about-feature {
        min-height: 58px;
        border-radius: 16px;
    }

    .about-cta {
        width: 100%;
    }

    .faq-section {
        padding: 3rem 0;
    }

    .contact-section {
        padding: 3rem 0;
    }

    .testimonials-section {
        padding: 3rem 0;
    }

    .testimonials-head h2 {
        font-size: clamp(1.65rem, 8.8vw, 2.55rem);
    }

    .testimonials-head p {
        font-size: 0.92rem;
        line-height: 1.65;
    }

    .testimonial-carousel {
        width: 100%;
        margin-inline: 0;
        padding: 0.2rem 0 4.2rem;
    }

    .testimonial-track {
        gap: 0.85rem;
        padding: 0.4rem 0 0.8rem;
        scroll-padding-inline: 0;
    }

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        display: none;
    }

    .testimonial-nav {
        top: auto;
        bottom: 0.6rem;
        width: 42px;
        height: 42px;
        font-size: 1.55rem;
        transform: none;
    }

    .testimonial-nav:hover,
    .testimonial-nav:focus-visible {
        transform: scale(1.06);
    }

    .testimonial-prev {
        left: calc(50% - 3.1rem);
    }

    .testimonial-next {
        right: calc(50% - 3.1rem);
    }

    .testimonial-card {
        flex-basis: 100%;
        border-radius: 22px;
    }

    .testimonial-shot {
        height: clamp(320px, 92vw, 440px);
    }

    .testimonial-lightbox {
        padding: 0.55rem;
    }

    .testimonial-lightbox-dialog {
        max-width: calc(100vw - 1.1rem);
        max-height: calc(100dvh - 1.1rem);
        padding: 0.45rem;
        border-radius: 18px;
    }

    .testimonial-lightbox-dialog img {
        max-width: calc(100vw - 2rem);
        max-height: calc(100dvh - 2rem);
        border-radius: 12px;
    }

    .testimonial-lightbox-close {
        width: 38px;
        height: 38px;
        font-size: 1.35rem;
    }

    .faq-head {
        border-radius: 22px;
        padding: 1.1rem;
    }

    .faq-feature-card {
        border-radius: 20px;
        padding: 0.85rem;
    }

    .faq-feature-option {
        min-height: 40px;
        padding: 0.55rem 0.6rem;
    }

    .faq-section-intro h2 {
        font-size: clamp(1.65rem, 8vw, 2.55rem);
    }

    .contact-section-head h2 {
        font-size: clamp(1.65rem, 8vw, 2.55rem);
    }

    .faq-section-intro p,
    .contact-section-head p,
    .faq-head p {
        font-size: 0.92rem;
        line-height: 1.65;
    }

    .faq-head h3 {
        font-size: clamp(1.45rem, 7vw, 2.2rem);
    }

    .faq-question {
        padding: 0.9rem;
        font-size: 0.92rem;
    }

    .faq-answer p {
        padding: 0 0.9rem 0.9rem;
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .contact-info-card,
    .contact-action-card {
        border-radius: 22px;
        padding: 1.1rem;
    }

    .contact-actions,
    .contact-actions .btn {
        width: 100%;
    }

    .founder-video-card,
    .founder-video-frame {
        border-radius: 20px;
    }

    .founder-video-card .founder-video-copy h3 {
        font-size: clamp(1.75rem, 8vw, 2.45rem);
    }

    .founder-video-card .founder-video-copy p {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .blog-hero {
        padding: 3rem 0 2rem;
    }

    .blog-hero h1,
    .post-hero h1,
    .post-not-found h1 {
        font-size: clamp(1.85rem, 9vw, 2.65rem);
    }

    .blog-hero p {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .featured-media {
        min-height: 220px;
        border-radius: 18px;
    }

    .featured-content,
    .blog-card,
    .post-content,
    .post-sidebar {
        border-radius: 18px;
    }

    .post-hero {
        min-height: 360px;
    }

    .post-layout {
        margin-top: -1rem;
    }

    .post-content p {
        font-size: 0.98rem;
        line-height: 1.75;
    }

    .registration-modal {
        align-items: stretch;
        justify-items: stretch;
        padding: 0;
    }

    .registration-dialog {
        width: 100%;
        max-height: 100dvh;
        min-height: 100dvh;
        border-width: 0;
        border-radius: 0;
        padding: 0.85rem;
    }

    .registration-head {
        position: sticky;
        top: -0.85rem;
        z-index: 2;
        margin: -0.85rem -0.85rem 0.85rem;
        padding: 0.9rem 3.1rem 0.85rem 0.85rem;
        border-bottom: 1px solid rgba(241, 196, 15, 0.16);
        background: rgba(5, 31, 27, 0.96);
        backdrop-filter: blur(18px);
    }

    .registration-head .hero-tag {
        margin-bottom: 0;
        padding: 0.48rem 0.65rem;
        font-size: 0.64rem;
    }

    .registration-head h2 {
        margin-top: 0.55rem;
        font-size: clamp(1.25rem, 6vw, 1.65rem);
        line-height: 1.12;
    }

    .modal-close {
        position: sticky;
        top: 0.65rem;
        float: right;
        z-index: 4;
        width: 38px;
        height: 38px;
        margin: -0.1rem 0 0.25rem 0.5rem;
    }

    .whatsapp-contact {
        width: 100%;
        justify-content: center;
        padding: 0.72rem 0.9rem;
        font-size: 0.9rem;
    }

    .registration-form {
        gap: 0.75rem;
    }

    .registration-form fieldset {
        padding: 0.78rem;
        border-radius: 16px;
    }

    .registration-form legend {
        max-width: 100%;
        font-size: 0.68rem;
        letter-spacing: 0.04em;
        white-space: normal;
    }

    .registration-form label {
        gap: 0.35rem;
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .registration-form input,
    .registration-form select,
    .registration-form textarea {
        min-height: 42px;
        border-radius: 12px;
        padding: 0.66rem 0.72rem;
        font-size: 16px;
    }

    .form-status {
        padding: 0.75rem 0.8rem;
        font-size: 0.86rem;
    }

    .form-submit {
        width: 100%;
        margin-top: 0.15rem;
    }
}

.form-status {
    display: none;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    font-weight: 800;
}

.form-status.show {
    display: block;
}

.form-status.success {
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.32);
    color: #bbffd6;
}

.form-status.error {
    background: rgba(255, 102, 112, 0.15);
    border: 1px solid rgba(255, 102, 112, 0.36);
    color: #ffe8ec;
}

.admin-page {
    min-height: 100vh;
}

.admin-login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    width: min(100% - 2rem, 520px);
    margin: 0 auto;
    padding: 2rem 0;
}

.admin-login-card {
    position: relative;
    width: 100%;
    display: grid;
    gap: 1rem;
    padding: clamp(1.2rem, 4vw, 2rem);
    border: 1px solid rgba(241, 196, 15, 0.24);
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(241, 196, 15, 0.16), transparent 42%),
        linear-gradient(135deg, rgba(5, 45, 38, 0.9), rgba(3, 18, 15, 0.96));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.admin-login-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(241, 196, 15, 0.48);
    border-radius: 50%;
    background: rgba(4, 38, 33, 0.86);
    color: #fff8cf;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.admin-login-close:hover,
.admin-login-close:focus-visible {
    border-color: rgba(241, 196, 15, 0.86);
    background: var(--accent-gold);
    color: #061f1a;
    transform: translateY(-1px);
}

.admin-login-close:focus-visible {
    outline: 3px solid rgba(241, 196, 15, 0.25);
    outline-offset: 2px;
}

.admin-login-card img {
    width: 74px;
    height: 74px;
    object-fit: contain;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.35rem;
}

.admin-login-logo {
    justify-self: center;
}

.admin-login-card h1 {
    margin: 0;
    font-size: clamp(2rem, 7vw, 3rem);
}

.admin-login-card label {
    display: grid;
    gap: 0.45rem;
    color: #d8efe8;
    font-weight: 800;
}

.admin-login-card input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(241, 196, 15, 0.24);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 0.8rem 0.9rem;
}

.admin-password-field {
    position: relative;
    display: block;
}

.admin-password-field input {
    padding-right: 3.15rem;
}

.admin-password-toggle {
    position: absolute;
    right: 0.55rem;
    top: 50%;
    display: inline-grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid rgba(241, 196, 15, 0.2);
    border-radius: 50%;
    background: rgba(0, 78, 64, 0.85);
    color: var(--accent-gold);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.admin-password-toggle:hover,
.admin-password-toggle:focus-visible,
.admin-password-toggle[aria-pressed="true"] {
    border-color: rgba(241, 196, 15, 0.55);
    background: var(--accent-gold);
    color: #061f1a;
}

.admin-password-toggle:focus-visible {
    outline: 3px solid rgba(241, 196, 15, 0.28);
    outline-offset: 2px;
}

.admin-password-toggle svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: currentColor;
}

.admin-shell {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0;
}

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

.admin-header h1 {
    margin: 0.75rem 0 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.admin-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

.admin-table-wrap {
    overflow-x: auto;
    padding: clamp(1rem, 2vw, 1.3rem);
    border: 1px solid rgba(241, 196, 15, 0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow);
}

.admin-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--accent-gold);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-table small {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
}

.admin-note-row td {
    color: #d8efe8;
    background: rgba(22, 160, 133, 0.08);
}

.admin-empty {
    margin: 0;
    padding: 1.2rem;
    color: var(--muted);
}

.admin-alert {
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    font-weight: 800;
}

.admin-alert-success {
    border: 1px solid rgba(22, 160, 133, 0.34);
    background: rgba(22, 160, 133, 0.14);
    color: #d8efe8;
}

.admin-alert-error {
    border: 1px solid rgba(255, 102, 112, 0.34);
    background: rgba(255, 102, 112, 0.14);
    color: #ffe3e6;
}

.admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.4rem;
}

.admin-summary-card {
    display: grid;
    align-content: space-between;
    min-width: 0;
    min-height: 118px;
    padding: 1rem;
    border: 1px solid rgba(241, 196, 15, 0.22);
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(241, 196, 15, 0.12), transparent 42%),
        rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    color: inherit;
    text-decoration: none;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.admin-summary-card:hover,
.admin-summary-card:focus-visible {
    border-color: rgba(241, 196, 15, 0.55);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28), 0 0 0 3px rgba(241, 196, 15, 0.1);
    transform: translateY(-2px);
    outline: none;
}

.admin-summary-grid span {
    display: block;
    color: #d8efe8;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.25;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.admin-summary-grid strong {
    display: block;
    margin-top: 0.45rem;
    color: var(--accent-gold);
    font-size: 2rem;
    line-height: 1;
}

.admin-panel-card {
    margin-bottom: 1.4rem;
    padding: clamp(1rem, 2vw, 1.3rem);
    border: 1px solid rgba(241, 196, 15, 0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.admin-panel-card,
.admin-table-wrap {
    scroll-margin-top: 1.2rem;
}

.admin-section-title {
    margin-bottom: 1rem;
}

.admin-section-title h2 {
    margin: 0.65rem 0 0;
    color: #ffffff;
    font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.admin-section-title p {
    margin: 0.5rem 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.admin-gallery-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.admin-gallery-form label {
    display: grid;
    gap: 0.45rem;
    color: #d8efe8;
    font-weight: 800;
}

.admin-gallery-form input,
.admin-gallery-form textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(241, 196, 15, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 0.8rem 0.9rem;
}

.admin-gallery-form input[type="file"] {
    padding: 0.65rem;
}

@media (max-width: 1100px) {
    .admin-shell {
        width: min(100% - 1.5rem, 1200px);
    }

    .admin-header {
        align-items: flex-start;
    }

    .admin-header-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(150px, 1fr));
        width: min(100%, 560px);
        margin-left: auto;
    }

    .admin-header-actions .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
    }

    .admin-summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
        gap: 0.75rem;
    }

    .admin-summary-card {
        min-height: 112px;
        padding: 0.9rem 0.75rem;
    }

    .admin-summary-grid span {
        font-size: 0.68rem;
        letter-spacing: 0.025em;
    }

    .admin-summary-grid strong {
        font-size: 1.75rem;
    }
}

.admin-form-wide {
    grid-column: 1 / -1;
}

.admin-gallery-form .btn {
    align-self: end;
}

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

.admin-gallery-item {
    overflow: hidden;
    border: 1px solid rgba(241, 196, 15, 0.2);
    border-radius: 18px;
    background: rgba(3, 18, 15, 0.5);
}

.admin-gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #ffffff;
}

.admin-gallery-item div {
    display: grid;
    gap: 0.45rem;
    padding: 0.85rem;
}

.admin-gallery-item span {
    color: var(--accent-gold);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-gallery-item h3,
.admin-gallery-item p {
    margin: 0;
}

.admin-gallery-item h3 {
    color: #ffffff;
    font-size: 1rem;
}

.admin-gallery-item p {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.admin-delete-button {
    width: fit-content;
    border: 1px solid rgba(255, 102, 112, 0.38);
    border-radius: 999px;
    background: rgba(255, 102, 112, 0.12);
    color: #ffe3e6;
    cursor: pointer;
    font-weight: 900;
    padding: 0.46rem 0.75rem;
}

.admin-item-actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.55rem !important;
    padding: 0 !important;
}

.admin-item-actions form {
    margin: 0;
}

.admin-edit-button {
    width: fit-content;
    border: 1px solid rgba(241, 196, 15, 0.46);
    border-radius: 999px;
    background: rgba(241, 196, 15, 0.12);
    color: #fff4ba;
    cursor: pointer;
    font-weight: 900;
    padding: 0.46rem 0.75rem;
}

.admin-edit-form,
.admin-ebook-edit-form {
    display: grid;
    gap: 0.7rem;
    padding: 0.8rem !important;
    border-top: 1px solid rgba(241, 196, 15, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

.admin-edit-form[hidden],
.admin-ebook-edit-form[hidden] {
    display: none;
}

.admin-edit-form label,
.admin-ebook-edit-form label {
    display: grid;
    gap: 0.32rem;
    color: #d8efe8;
    font-size: 0.78rem;
    font-weight: 800;
}

.admin-edit-form small,
.admin-ebook-edit-form small {
    color: var(--muted);
    font-size: 0.7rem;
}

.admin-edit-form select,
.admin-edit-form input,
.admin-edit-form textarea,
.admin-ebook-edit-form input,
.admin-ebook-edit-form textarea {
    width: 100%;
    min-width: 0;
    padding: 0.62rem 0.7rem;
    border: 1px solid rgba(241, 196, 15, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.admin-edit-form .btn,
.admin-ebook-edit-form .btn {
    width: 100%;
}

.blog-page {
    min-height: 100vh;
    padding-bottom: 4rem;
}

.blog-hero {
    padding: clamp(4rem, 9vw, 7rem) 0 clamp(2rem, 5vw, 4rem);
    background:
        linear-gradient(90deg, rgba(3, 18, 15, 0.48), rgba(3, 18, 15, 0.18)),
        linear-gradient(180deg, rgba(3, 18, 15, 0.06), rgba(3, 18, 15, 0.5)),
        radial-gradient(circle at 20% 20%, rgba(241, 196, 15, 0.18), transparent 32%),
        radial-gradient(circle at 80% 40%, rgba(22, 160, 133, 0.22), transparent 34%),
        url("../images/blog-mosque-hero.png");
    background-position: center;
    background-size: cover;
}

.blog-hero-inner {
    display: grid;
    gap: 1rem;
    max-width: 820px;
}

.blog-hero h1,
.post-not-found h1 {
    margin: 0;
    font-size: clamp(2.2rem, 6vw, 5rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.blog-hero p,
.post-not-found p {
    margin: 0;
    max-width: 680px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.featured-post {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1rem, 3vw, 2rem);
    align-items: stretch;
    margin-top: -2rem;
}

.featured-media,
.featured-content {
    flex: 1 1 320px;
    min-width: 0;
}

.featured-media,
.blog-card-media {
    min-height: 320px;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(241, 196, 15, 0.22);
    box-shadow: var(--shadow);
}

.featured-content,
.blog-card,
.post-sidebar,
.post-content {
    border: 1px solid rgba(241, 196, 15, 0.2);
    background:
        linear-gradient(135deg, rgba(8, 54, 43, 0.82), rgba(4, 29, 27, 0.92)),
        radial-gradient(circle at top left, rgba(241, 196, 15, 0.12), transparent 42%);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.featured-content {
    display: grid;
    align-content: center;
    gap: 1rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: 24px;
}

.featured-content h2,
.section-head h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.featured-content p,
.blog-card p {
    margin: 0;
    color: #d8efe8;
    line-height: 1.7;
}

.post-category {
    display: inline-flex;
    width: fit-content;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(241, 196, 15, 0.16);
    color: var(--accent-gold);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.blog-grid-section {
    padding-top: clamp(2.5rem, 6vw, 4rem);
}

.section-head {
    margin-bottom: 1.2rem;
}

.blog-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.15rem;
}

.blog-card {
    flex: 1 1 260px;
    min-width: 0;
    overflow: hidden;
    border-radius: 22px;
}

.blog-card-media {
    position: relative;
    display: block;
    min-height: 210px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-decoration: none;
}

.blog-card-media .post-category {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    background: rgba(3, 18, 15, 0.78);
}

.blog-card-body {
    display: grid;
    gap: 0.75rem;
    padding: 1.15rem;
}

.blog-card h3 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.blog-card h3 a,
.read-link,
.post-sidebar a {
    color: #ffffff;
    text-decoration: none;
}

.read-link {
    color: var(--accent-gold);
    font-weight: 900;
}

.post-hero {
    position: relative;
    min-height: 460px;
    display: grid;
    align-items: end;
    background-size: cover;
    background-position: center;
}

.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(3, 18, 15, 0.94));
}

.post-hero-content {
    position: relative;
    z-index: 1;
    padding-bottom: clamp(2rem, 5vw, 4rem);
}

.post-hero h1 {
    max-width: 850px;
    margin: 1rem 0;
    font-size: clamp(2.15rem, 6vw, 5rem);
    line-height: 1.04;
    overflow-wrap: anywhere;
}

.post-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}

.post-content {
    flex: 1 1 560px;
    min-width: 0;
}

.post-content {
    padding: clamp(1.25rem, 3vw, 2.25rem);
    border-radius: 24px;
}

.post-content p {
    margin: 0 0 1.2rem;
    color: #e7f7f2;
    font-size: 1.08rem;
    line-height: 1.9;
}

.post-content p:last-child {
    margin-bottom: 0;
}

.post-content a {
    color: var(--accent-gold);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.post-content a:hover,
.post-content a:focus-visible {
    color: #ffffff;
}

.courses-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 12%, rgba(241, 196, 15, 0.12), transparent 30%),
        radial-gradient(circle at 82% 68%, rgba(22, 160, 133, 0.18), transparent 34%),
        linear-gradient(180deg, #071923 0%, #03120f 100%);
}

.courses-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
}

.courses-pattern {
    position: absolute;
    inset: 1.5rem;
    opacity: 0.045;
    pointer-events: none;
    background-image:
        linear-gradient(45deg, rgba(241, 196, 15, 0.9) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(241, 196, 15, 0.9) 25%, transparent 25%);
    background-size: 92px 92px;
}

.courses-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.courses-hero-copy {
    display: grid;
    gap: 1rem;
}

.courses-hero-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.35rem, 5vw, 4.7rem);
    line-height: 1.02;
    text-shadow: 0 0 30px rgba(241, 196, 15, 0.14);
}

.courses-hero-copy p {
    max-width: 680px;
    margin: 0;
    color: #d8efe8;
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    line-height: 1.8;
}

.duaa-frame {
    position: relative;
    width: min(100%, 460px);
    justify-self: center;
    padding: clamp(1.05rem, 2.6vw, 1.55rem);
    border: 1px solid rgba(255, 216, 74, 0.72);
    border-radius: 36px;
    background:
        linear-gradient(145deg, rgba(255, 236, 137, 0.34), rgba(138, 93, 7, 0.24) 38%, rgba(255, 216, 74, 0.2)),
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.18), transparent 32%),
        rgba(4, 38, 31, 0.72);
    box-shadow:
        0 36px 92px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 0 42px rgba(241, 196, 15, 0.18);
    backdrop-filter: blur(16px);
}

.duaa-frame::before,
.duaa-frame::after {
    content: "";
    position: absolute;
    inset: 0.7rem;
    border: 2px solid rgba(255, 218, 82, 0.68);
    border-radius: 28px;
    pointer-events: none;
}

.duaa-frame::after {
    inset: 1.18rem;
    border: 1px solid rgba(133, 91, 8, 0.38);
    border-radius: 22px;
    background:
        linear-gradient(90deg, transparent 0 8%, rgba(241, 196, 15, 0.22) 8% 8.4%, transparent 8.4% 91.6%, rgba(241, 196, 15, 0.22) 91.6% 92%, transparent 92%),
        linear-gradient(0deg, transparent 0 8%, rgba(241, 196, 15, 0.18) 8% 8.4%, transparent 8.4% 91.6%, rgba(241, 196, 15, 0.18) 91.6% 92%, transparent 92%);
    opacity: 1;
}

.duaa-frame-corner {
    position: absolute;
    z-index: 2;
    width: 82px;
    height: 82px;
    border-color: #f1c40f;
    filter: drop-shadow(0 0 10px rgba(241, 196, 15, 0.34));
    pointer-events: none;
}

.duaa-frame-corner-one {
    top: 0.58rem;
    left: 0.58rem;
    border-top: 3px solid;
    border-left: 3px solid;
    border-radius: 30px 0 0 0;
}

.duaa-frame-corner-two {
    top: 0.58rem;
    right: 0.58rem;
    border-top: 3px solid;
    border-right: 3px solid;
    border-radius: 0 30px 0 0;
}

.duaa-frame-corner-three {
    bottom: 0.58rem;
    left: 0.58rem;
    border-bottom: 3px solid;
    border-left: 3px solid;
    border-radius: 0 0 0 30px;
}

.duaa-frame-corner-four {
    right: 0.58rem;
    bottom: 0.58rem;
    border-right: 3px solid;
    border-bottom: 3px solid;
    border-radius: 0 0 30px 0;
}

.duaa-frame-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.8rem;
    min-height: 430px;
    align-content: center;
    padding: clamp(2rem, 5vw, 3rem) clamp(1.15rem, 4vw, 2.2rem);
    border: 1px solid rgba(133, 91, 8, 0.18);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 5%, rgba(241, 196, 15, 0.24), transparent 34%),
        linear-gradient(180deg, rgba(255, 252, 238, 0.98), rgba(246, 236, 203, 0.96));
    color: #071923;
    text-align: center;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.7),
        inset 0 0 38px rgba(137, 91, 9, 0.1);
}

.duaa-frame-label {
    color: #0e6251;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.duaa-arabic {
    margin: 0;
    color: #071923;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.15rem, 6vw, 4rem);
    line-height: 1.45;
}

.duaa-translation,
.duaa-note {
    margin: 0;
    color: #31514a;
    line-height: 1.7;
}

.duaa-translation {
    font-weight: 800;
}

.duaa-divider {
    width: min(170px, 70%);
    height: 1px;
    margin: 0.3rem auto;
    background: linear-gradient(90deg, transparent, rgba(14, 98, 81, 0.62), transparent);
}

.courses-list-section {
    padding: clamp(3rem, 7vw, 6rem) 0;
}

.courses-section-head {
    max-width: 820px;
    margin: 0 auto clamp(1.6rem, 4vw, 3rem);
    text-align: center;
}

.courses-section-head .section-kicker {
    justify-content: center;
}

.courses-section-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
}

.courses-section-head p {
    max-width: 720px;
    margin: 1rem auto 0;
    color: #d8efe8;
    line-height: 1.75;
    text-align: center;
    text-align-last: center;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.4rem);
    align-items: stretch;
}

.course-card {
    position: relative;
    display: grid;
    gap: 0.85rem;
    grid-template-rows: auto auto auto auto 1fr auto;
    min-height: 100%;
    overflow: hidden;
    padding: clamp(1rem, 2.2vw, 1.35rem);
    border: 1px solid rgba(241, 196, 15, 0.24);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(8, 54, 43, 0.92), rgba(4, 29, 27, 0.98)),
        radial-gradient(circle at top left, rgba(241, 196, 15, 0.12), transparent 42%);
    box-shadow: 0 26px 68px rgba(0, 0, 0, 0.34), 0 0 24px rgba(241, 196, 15, 0.08);
}

.course-number {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(241, 196, 15, 0.52);
    border-radius: 15px;
    color: var(--accent-gold);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    background: rgba(3, 18, 15, 0.64);
}

.course-tags {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.course-tags span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.36rem 0.5rem;
    border: 1px solid rgba(241, 196, 15, 0.34);
    border-radius: 999px;
    background: rgba(241, 196, 15, 0.1);
    color: var(--accent-gold);
    font-size: clamp(0.58rem, 0.85vw, 0.68rem);
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.course-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.2;
}

.course-card h3 small {
    display: block;
    margin-top: 0.28rem;
    color: var(--accent-gold);
    font-size: 0.72em;
    font-weight: 800;
    line-height: 1.3;
}

.course-card p {
    margin: 0;
    color: #d8efe8;
    line-height: 1.7;
    text-align: justify;
    text-align-last: left;
}

.course-list-block {
    display: grid;
    gap: 0.5rem;
    padding-top: 0.2rem;
}

.course-list-block strong {
    color: var(--accent-gold);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.course-card ul {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.course-card li {
    position: relative;
    padding-left: 1.1rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

.course-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.42rem;
    height: 0.42rem;
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.35);
}

.course-card .btn {
    align-self: end;
    width: fit-content;
}

.gallery-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 12%, rgba(241, 196, 15, 0.12), transparent 30%),
        radial-gradient(circle at 86% 72%, rgba(22, 160, 133, 0.18), transparent 34%),
        linear-gradient(180deg, #071923 0%, #03120f 100%);
}

.gallery-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.gallery-pattern {
    position: absolute;
    inset: 1.5rem;
    opacity: 0.045;
    pointer-events: none;
    background-image:
        linear-gradient(30deg, rgba(241, 196, 15, 0.9) 12%, transparent 12.5%, transparent 87%, rgba(241, 196, 15, 0.9) 87.5%, rgba(241, 196, 15, 0.9)),
        linear-gradient(150deg, rgba(241, 196, 15, 0.9) 12%, transparent 12.5%, transparent 87%, rgba(241, 196, 15, 0.9) 87.5%, rgba(241, 196, 15, 0.9));
    background-size: 92px 152px;
}

.gallery-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.gallery-hero-copy {
    display: grid;
    gap: 1rem;
}

.gallery-hero-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.35rem, 5vw, 4.7rem);
    line-height: 1.02;
    text-shadow: 0 0 30px rgba(241, 196, 15, 0.14);
}

.gallery-hero-copy p {
    max-width: 760px;
    margin: 0;
    color: #d8efe8;
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    line-height: 1.8;
}

.gallery-hero-visual {
    position: relative;
    min-height: clamp(360px, 44vw, 560px);
    overflow: hidden;
    border: 1px solid rgba(241, 196, 15, 0.28);
    border-radius: 30px;
    background: rgba(4, 29, 27, 0.96);
    box-shadow: 0 28px 78px rgba(0, 0, 0, 0.36), 0 0 28px rgba(241, 196, 15, 0.1);
}

.gallery-hero-visual img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04);
}

.gallery-hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 18%, rgba(3, 18, 15, 0.22) 48%, rgba(3, 18, 15, 0.92) 100%),
        radial-gradient(circle at top left, rgba(241, 196, 15, 0.18), transparent 42%);
    pointer-events: none;
}

.gallery-visual-overlay {
    position: absolute;
    left: clamp(1rem, 3vw, 1.55rem);
    right: clamp(1rem, 3vw, 1.55rem);
    bottom: clamp(1rem, 3vw, 1.55rem);
    z-index: 1;
    display: grid;
    gap: 0.55rem;
    padding: clamp(1rem, 2.5vw, 1.35rem);
    border: 1px solid rgba(241, 196, 15, 0.24);
    border-radius: 20px;
    background: rgba(3, 34, 29, 0.82);
    backdrop-filter: blur(16px);
}

.gallery-visual-overlay span {
    color: var(--accent-gold);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gallery-visual-overlay strong {
    color: #ffffff;
    font-size: clamp(1.35rem, 2.8vw, 2.15rem);
    line-height: 1.1;
}

.gallery-visual-overlay p {
    margin: 0;
    color: #d8efe8;
    line-height: 1.6;
}

.gallery-board {
    padding: clamp(3rem, 7vw, 6rem) 0;
}

.gallery-section-head {
    max-width: 820px;
    margin: 0 auto clamp(1.6rem, 4vw, 3rem);
    text-align: center;
}

.gallery-section-head .section-kicker {
    justify-content: center;
}

.gallery-section-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
}

.gallery-section-head p {
    max-width: 720px;
    margin: 1rem auto 0;
    color: #d8efe8;
    line-height: 1.75;
    text-align: center;
    text-align-last: center;
}

.gallery-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: clamp(1.3rem, 3vw, 2rem);
    padding: 0.85rem;
    border: 1px solid rgba(241, 196, 15, 0.2);
    border-radius: 18px;
    background: rgba(4, 29, 27, 0.86);
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    min-width: 0;
}

.gallery-filter {
    min-height: 38px;
    padding: 0.62rem 0.82rem;
    border: 1px solid rgba(241, 196, 15, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #d8efe8;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.gallery-filter:hover,
.gallery-filter:focus-visible,
.gallery-filter.is-active {
    border-color: rgba(241, 196, 15, 0.72);
    background: var(--accent-gold);
    color: #062c25;
}

.gallery-results {
    margin: 0;
    color: #d8efe8;
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
}

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

.gallery-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(241, 196, 15, 0.22);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(8, 54, 43, 0.9), rgba(4, 29, 27, 0.98)),
        radial-gradient(circle at top left, rgba(241, 196, 15, 0.12), transparent 42%);
    box-shadow: 0 26px 68px rgba(0, 0, 0, 0.34), 0 0 24px rgba(241, 196, 15, 0.08);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card[hidden] {
    display: none;
}

.gallery-card:hover {
    transform: translateY(-6px);
    border-color: rgba(241, 196, 15, 0.58);
    box-shadow: 0 34px 82px rgba(0, 0, 0, 0.42), 0 0 34px rgba(241, 196, 15, 0.18);
}

.gallery-placeholder {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 230px;
    background:
        radial-gradient(circle at 50% 45%, rgba(241, 196, 15, 0.22), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(22, 160, 133, 0.12));
}

.gallery-image {
    aspect-ratio: 3 / 4;
    max-height: 430px;
    overflow: hidden;
    background: #ffffff;
}

.gallery-image-trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.gallery-image-trigger:focus-visible {
    outline: 3px solid rgba(241, 196, 15, 0.82);
    outline-offset: -6px;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.32s ease, filter 0.32s ease;
}

.gallery-card:hover .gallery-image img {
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.055);
}

.gallery-placeholder::before,
.gallery-placeholder::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(241, 196, 15, 0.28);
    pointer-events: none;
}

.gallery-placeholder::before {
    inset: 1rem;
    border-radius: 20px;
}

.gallery-placeholder::after {
    width: 46%;
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow: 0 0 28px rgba(241, 196, 15, 0.12);
}

.gallery-placeholder span {
    position: relative;
    z-index: 1;
    color: rgba(241, 196, 15, 0.72);
    font-size: clamp(2.7rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1;
}

.gallery-card-body {
    display: grid;
    gap: 0.6rem;
    flex: 1;
    align-content: start;
    padding: 1rem;
}

.gallery-category {
    color: var(--accent-gold);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.gallery-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1.25;
}

.gallery-card p {
    margin: 0;
    color: #d8efe8;
    font-size: 0.92rem;
    line-height: 1.65;
    text-align: justify;
    text-align-last: left;
}

.gallery-empty {
    margin: 1rem auto 0;
    color: #d8efe8;
    font-weight: 800;
    text-align: center;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: clamp(0.65rem, 2.5vw, 1.5rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.gallery-lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(3, 18, 15, 0.84);
    backdrop-filter: blur(10px);
    cursor: zoom-out;
}

.gallery-lightbox-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: fit-content;
    max-width: min(96vw, 1080px);
    max-height: 94dvh;
    padding: clamp(0.55rem, 1.6vw, 0.9rem);
    border: 1px solid rgba(241, 196, 15, 0.34);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(8, 54, 43, 0.82), rgba(4, 29, 27, 0.95)),
        rgba(3, 18, 15, 0.94);
    box-shadow: 0 36px 110px rgba(0, 0, 0, 0.52), 0 0 34px rgba(241, 196, 15, 0.14);
    transform: scale(0.96);
    transition: transform 220ms ease;
}

.gallery-lightbox.open .gallery-lightbox-dialog {
    transform: scale(1);
}

.gallery-lightbox-dialog img {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(96vw - 2rem);
    max-height: calc(94dvh - 2rem);
    object-fit: contain;
    border-radius: 16px;
    background: #ffffff;
}

.gallery-lightbox-caption {
    display: grid;
    gap: 0.35rem;
    width: 100%;
    max-width: calc(96vw - 2rem);
    padding: 0.85rem 0.2rem 0.1rem;
}

.gallery-lightbox-caption strong {
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.25;
}

.gallery-lightbox-caption p {
    margin: 0;
    color: #d8efe8;
    font-size: 0.88rem;
    line-height: 1.55;
}

.gallery-lightbox-caption span {
    color: var(--accent-gold);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gallery-lightbox-nav {
    position: fixed;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(241, 196, 15, 0.48);
    border-radius: 50%;
    background: rgba(3, 18, 15, 0.96);
    color: #ffffff;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-50%);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.36);
}

.gallery-lightbox-prev {
    left: max(0.65rem, env(safe-area-inset-left));
}

.gallery-lightbox-next {
    right: max(0.65rem, env(safe-area-inset-right));
}

.gallery-lightbox-close {
    position: fixed;
    top: max(0.65rem, env(safe-area-inset-top));
    right: max(0.65rem, env(safe-area-inset-right));
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(241, 196, 15, 0.48);
    border-radius: 50%;
    background: rgba(3, 18, 15, 0.96);
    color: #ffffff;
    cursor: pointer;
    font-size: 1.55rem;
    line-height: 1;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.36);
}

.notifications-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 12%, rgba(241, 196, 15, 0.12), transparent 30%),
        radial-gradient(circle at 86% 72%, rgba(22, 160, 133, 0.18), transparent 34%),
        linear-gradient(180deg, #071923 0%, #03120f 100%);
}

.notifications-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.notifications-pattern {
    position: absolute;
    inset: 1.5rem;
    opacity: 0.045;
    pointer-events: none;
    background-image:
        linear-gradient(30deg, rgba(241, 196, 15, 0.9) 12%, transparent 12.5%, transparent 87%, rgba(241, 196, 15, 0.9) 87.5%, rgba(241, 196, 15, 0.9)),
        linear-gradient(150deg, rgba(241, 196, 15, 0.9) 12%, transparent 12.5%, transparent 87%, rgba(241, 196, 15, 0.9) 87.5%, rgba(241, 196, 15, 0.9));
    background-size: 92px 152px;
}

.notifications-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.notifications-hero-copy {
    display: grid;
    gap: 1rem;
}

.notifications-hero-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.35rem, 5vw, 4.7rem);
    line-height: 1.02;
    text-shadow: 0 0 30px rgba(241, 196, 15, 0.14);
}

.notifications-hero-copy p {
    max-width: 760px;
    margin: 0;
    color: #d8efe8;
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    line-height: 1.8;
}

.notifications-summary-card,
.notification-empty-state,
.course-notice-card {
    border: 1px solid rgba(241, 196, 15, 0.24);
    background:
        linear-gradient(135deg, rgba(8, 54, 43, 0.82), rgba(4, 29, 27, 0.96)),
        radial-gradient(circle at top left, rgba(241, 196, 15, 0.15), transparent 42%);
    box-shadow: 0 28px 78px rgba(0, 0, 0, 0.36), 0 0 28px rgba(241, 196, 15, 0.1);
}

.notifications-summary-card {
    display: grid;
    gap: 0.75rem;
    padding: clamp(1.1rem, 2.5vw, 1.6rem);
    border-radius: 28px;
}

.notifications-summary-card span {
    color: var(--accent-gold);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.notifications-summary-card strong {
    color: #ffffff;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    line-height: 1.1;
}

.notifications-summary-card p {
    margin: 0;
    color: #d8efe8;
    line-height: 1.7;
}

.notifications-board {
    padding: clamp(3rem, 7vw, 6rem) 0;
}

.notifications-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.4rem);
}

.course-notice-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
    border-radius: 24px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.course-notice-card:hover {
    transform: translateY(-6px);
    border-color: rgba(241, 196, 15, 0.58);
    box-shadow: 0 34px 82px rgba(0, 0, 0, 0.42), 0 0 34px rgba(241, 196, 15, 0.18);
}

.course-notice-flyer {
    min-height: 290px;
    background: #ffffff;
    overflow: hidden;
}

.course-notice-flyer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease, filter 0.32s ease;
}

.course-notice-card:hover .course-notice-flyer img {
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.045);
}

.course-notice-body {
    display: grid;
    align-content: center;
    gap: 0.8rem;
    padding: clamp(1rem, 2vw, 1.35rem);
}

.course-notice-body h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.15;
}

.course-notice-body p {
    margin: 0;
    color: #d8efe8;
    line-height: 1.7;
    text-align: justify;
    text-align-last: left;
}

.course-notice-body .btn {
    width: fit-content;
}

.notification-empty-state {
    display: grid;
    grid-template-columns: minmax(220px, 0.4fr) minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
    padding: clamp(1rem, 3vw, 2rem);
    border-radius: 28px;
}

.notification-empty-flyer {
    position: relative;
    min-height: 350px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0.65rem;
    overflow: hidden;
    border: 1px solid rgba(241, 196, 15, 0.35);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 38%, rgba(241, 196, 15, 0.22), transparent 30%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(230, 246, 240, 0.9));
    color: #073c33;
}

.notification-empty-flyer::before,
.notification-empty-flyer::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(7, 60, 51, 0.16);
    pointer-events: none;
}

.notification-empty-flyer::before {
    inset: 1rem;
    border-radius: 20px;
}

.notification-empty-flyer::after {
    width: 62%;
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow: 0 0 0 34px rgba(241, 196, 15, 0.08);
}

.notification-empty-flyer span,
.notification-empty-flyer strong,
.notification-empty-flyer small {
    position: relative;
    z-index: 1;
}

.notification-empty-flyer span {
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(241, 196, 15, 0.3);
    color: #073c33;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.notification-empty-flyer strong {
    max-width: 12rem;
    color: #073c33;
    font-size: clamp(2rem, 5vw, 3.3rem);
    line-height: 0.98;
    text-align: center;
}

.notification-empty-flyer small {
    color: rgba(7, 60, 51, 0.72);
    font-weight: 800;
}

.notification-empty-copy {
    display: grid;
    gap: 0.9rem;
}

.notification-empty-copy h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.7rem, 4vw, 3rem);
    line-height: 1.08;
}

.notification-empty-copy p {
    margin: 0;
    color: #d8efe8;
    line-height: 1.75;
    text-align: justify;
    text-align-last: left;
}

.notification-empty-copy .btn {
    width: fit-content;
}

.ebook-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 12%, rgba(241, 196, 15, 0.12), transparent 30%),
        radial-gradient(circle at 86% 72%, rgba(22, 160, 133, 0.18), transparent 34%),
        linear-gradient(180deg, #071923 0%, #03120f 100%);
}

.ebook-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.ebook-pattern {
    position: absolute;
    inset: 1.5rem;
    opacity: 0.045;
    pointer-events: none;
    background-image:
        linear-gradient(45deg, rgba(241, 196, 15, 0.9) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(241, 196, 15, 0.9) 25%, transparent 25%);
    background-size: 92px 92px;
}

.ebook-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.ebook-hero-copy {
    display: grid;
    gap: 1rem;
}

.ebook-hero-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.35rem, 5vw, 4.7rem);
    line-height: 1.02;
    text-shadow: 0 0 30px rgba(241, 196, 15, 0.14);
}

.ebook-hero-copy p {
    max-width: 760px;
    margin: 0;
    color: #d8efe8;
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    line-height: 1.8;
}

.ebook-feature-card {
    display: grid;
    gap: 0.75rem;
    padding: clamp(1.1rem, 2.5vw, 1.6rem);
    border: 1px solid rgba(241, 196, 15, 0.28);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(8, 54, 43, 0.82), rgba(4, 29, 27, 0.96)),
        radial-gradient(circle at top left, rgba(241, 196, 15, 0.15), transparent 42%);
    box-shadow: 0 28px 78px rgba(0, 0, 0, 0.36), 0 0 28px rgba(241, 196, 15, 0.1);
}

.ebook-feature-card span {
    color: var(--accent-gold);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ebook-feature-card strong {
    color: #ffffff;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    line-height: 1.1;
}

.ebook-feature-card p {
    margin: 0;
    color: #d8efe8;
    line-height: 1.7;
}

.ebook-board {
    padding: clamp(3rem, 7vw, 6rem) 0;
}

.ebook-section-head {
    max-width: 820px;
    margin: 0 auto clamp(1.6rem, 4vw, 3rem);
    text-align: center;
}

.ebook-section-head .section-kicker {
    justify-content: center;
}

.ebook-section-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
}

.ebook-section-head p {
    max-width: 720px;
    margin: 1rem auto 0;
    color: #d8efe8;
    line-height: 1.75;
    text-align: center;
    text-align-last: center;
}

.ebook-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.48fr);
    grid-template-areas:
        "search filter"
        "results results";
    gap: 0.85rem;
    align-items: end;
    margin-bottom: clamp(1.3rem, 3vw, 2rem);
    padding: 1rem;
    border: 1px solid rgba(241, 196, 15, 0.2);
    border-radius: 18px;
    background: rgba(4, 29, 27, 0.86);
}

.ebook-search,
.ebook-filter {
    display: grid;
    min-width: 0;
    gap: 0.45rem;
    color: var(--accent-gold);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ebook-search {
    grid-area: search;
}

.ebook-filter {
    grid-area: filter;
}

.ebook-search input,
.ebook-filter select {
    min-width: 0;
    width: 100%;
    min-height: 46px;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(241, 196, 15, 0.24);
    border-radius: 10px;
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.ebook-filter option {
    background: #062c25;
    color: #ffffff;
}

.ebook-search input:focus,
.ebook-filter select:focus {
    border-color: rgba(241, 196, 15, 0.72);
    box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.12);
}

.ebook-results {
    grid-area: results;
    margin: 0;
    color: #d8efe8;
    font-size: 0.84rem;
    font-weight: 800;
    text-align: left;
}

.ebook-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.4rem);
}

.ebook-card[hidden] {
    display: none;
}

.ebook-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(241, 196, 15, 0.22);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(8, 54, 43, 0.9), rgba(4, 29, 27, 0.98)),
        radial-gradient(circle at top left, rgba(241, 196, 15, 0.12), transparent 42%);
    box-shadow: 0 26px 68px rgba(0, 0, 0, 0.34), 0 0 24px rgba(241, 196, 15, 0.08);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ebook-card:hover {
    transform: translateY(-6px);
    border-color: rgba(241, 196, 15, 0.58);
    box-shadow: 0 34px 82px rgba(0, 0, 0, 0.42), 0 0 34px rgba(241, 196, 15, 0.18);
}

.ebook-cover {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 3 / 4;
    margin: 1rem 1rem 0;
    overflow: hidden;
    border: 1px solid rgba(241, 196, 15, 0.3);
    border-radius: 20px;
    background: #082f28;
}

.ebook-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 35%, rgba(3, 18, 15, 0.42) 100%);
    pointer-events: none;
}

.ebook-cover::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 14px;
    background: linear-gradient(180deg, #0e6251, #07372d);
    box-shadow: 8px 0 18px rgba(0, 0, 0, 0.18);
}

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

.ebook-cover span {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(241, 196, 15, 0.58);
    border-radius: 50%;
    background: rgba(4, 29, 27, 0.86);
    color: var(--accent-gold);
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.ebook-card-body {
    display: grid;
    gap: 0.6rem;
    flex: 1;
    padding: 1rem;
}

.ebook-category {
    color: var(--accent-gold);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ebook-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1.25;
}

.ebook-date {
    color: rgba(216, 239, 232, 0.78);
    font-size: 0.78rem;
    font-weight: 700;
}

.ebook-card p {
    margin: 0;
    color: #d8efe8;
    font-size: 0.92rem;
    line-height: 1.65;
    text-align: justify;
    text-align-last: left;
}

.ebook-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-self: end;
    justify-self: start;
    margin-top: 0.25rem;
}

.ebook-actions .btn {
    min-height: 2.45rem;
    padding: 0.72rem 0.95rem;
    font-size: 0.82rem;
    line-height: 1;
}

.ebook-open-button {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.ebook-download-button {
    background: var(--accent-gold);
    color: #062c25;
}

.ebook-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: clamp(1.4rem, 3vw, 2.2rem);
}

.ebook-load-more[hidden] {
    display: none;
}

.ebook-empty {
    margin: 1rem auto 0;
    color: #d8efe8;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 900px) {
    .ebook-toolbar {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "search"
            "filter"
            "results";
        align-items: stretch;
    }
}

.post-sidebar {
    flex: 1 1 280px;
    min-width: 0;
    align-self: start;
    display: grid;
    gap: 0.8rem;
    padding: 1.1rem;
    border-radius: 22px;
}

.back-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.45rem;
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.back-link::before {
    content: "‹";
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(241, 196, 15, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    font-size: 1.2rem;
    line-height: 1;
}

.post-sidebar h2 {
    margin: 0;
    color: var(--accent-gold);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.post-sidebar a {
    display: grid;
    gap: 0.3rem;
    padding: 0.8rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.post-sidebar span {
    color: var(--accent-gold);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.post-not-found {
    padding: clamp(5rem, 12vw, 8rem) 0;
}

@keyframes stats-card-glow {
    0%,
    100% {
        border-color: rgba(241, 196, 15, 0.26);
        filter: brightness(1);
    }
    50% {
        border-color: rgba(241, 196, 15, 0.52);
        filter: brightness(1.08);
    }
}

@media (max-width: 1080px) {
    .courses-hero-inner {
        grid-template-columns: 1fr;
    }

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

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

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

    .courses-hero-copy {
        text-align: center;
        justify-items: center;
    }

    .gallery-hero-copy {
        text-align: center;
        justify-items: center;
    }

    .notifications-hero-copy {
        text-align: center;
        justify-items: center;
    }

    .ebook-hero-copy {
        text-align: center;
        justify-items: center;
    }

    .courses-hero-copy p {
        text-align: center;
        text-align-last: center;
    }

    .gallery-hero-copy p {
        text-align: center;
        text-align-last: center;
    }

    .gallery-hero-visual {
        width: min(100%, 720px);
        justify-self: center;
    }

    .notifications-hero-copy p {
        text-align: center;
        text-align-last: center;
    }

    .ebook-hero-copy p {
        text-align: center;
        text-align-last: center;
    }

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

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

    .notifications-grid,
    .course-notice-card,
    .notification-empty-state {
        grid-template-columns: 1fr;
    }

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

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

    .site-nav {
        display: none;
    }

    .site-nav.open,
    body.nav-open .site-nav {
        display: grid;
        position: fixed;
        top: var(--site-header-offset);
        left: 0;
        right: 0;
        bottom: 0;
        align-content: start;
        gap: 0.7rem;
        width: 100vw;
        min-height: calc(100dvh - var(--site-header-offset));
        max-height: none;
        overflow-y: auto;
        padding: clamp(1rem, 4vw, 1.4rem) clamp(1rem, 5vw, 1.4rem) calc(1.5rem + env(safe-area-inset-bottom));
        background:
            radial-gradient(circle at top left, rgba(241, 196, 15, 0.16), transparent 34%),
            radial-gradient(circle at bottom right, rgba(22, 160, 133, 0.2), transparent 36%),
            linear-gradient(180deg, rgba(5, 25, 31, 0.98), rgba(3, 18, 15, 0.99));
        border-top: 1px solid rgba(241, 196, 15, 0.18);
        align-items: stretch;
        text-align: center;
        backdrop-filter: blur(24px);
        z-index: 990;
        white-space: normal;
    }

    .site-nav.open a,
    .site-nav.open .nav-dropdown-toggle,
    body.nav-open .site-nav a,
    body.nav-open .site-nav .nav-dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: min(100%, 360px);
        min-height: 48px;
        margin: 0 auto;
        padding: 0.8rem 1rem;
        border: 1px solid rgba(241, 196, 15, 0.16);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.055);
        color: var(--accent-gold);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .site-nav.open .nav-dropdown,
    body.nav-open .site-nav .nav-dropdown {
        width: 100%;
        max-width: min(100%, 360px);
        margin: 0 auto;
    }

    .site-nav.open .nav-dropdown-toggle,
    body.nav-open .site-nav .nav-dropdown-toggle {
        max-width: 100%;
    }

    .site-nav.open .nav-dropdown-menu,
    body.nav-open .site-nav .nav-dropdown-menu {
        position: static;
        min-width: 0;
        width: 100%;
        max-height: 0;
        margin-top: 0;
        padding: 0;
        overflow: hidden;
        border: 0;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: none;
        opacity: 1;
        pointer-events: none;
        transform: none;
        transition: max-height 0.28s ease, margin-top 0.28s ease, padding 0.28s ease;
        visibility: visible;
    }

    .site-nav.open .nav-dropdown-menu::before,
    body.nav-open .site-nav .nav-dropdown-menu::before {
        display: none;
    }

    .site-nav.open .nav-dropdown.open .nav-dropdown-menu,
    body.nav-open .site-nav .nav-dropdown.open .nav-dropdown-menu,
    body.nav-open .site-nav .nav-dropdown.open .nav-dropdown-menu {
        max-height: 320px;
        margin-top: 0.55rem;
        padding: 0.55rem;
        pointer-events: auto;
    }

    .site-nav.open .nav-dropdown-menu a,
    body.nav-open .site-nav .nav-dropdown-menu a {
        max-width: none;
        min-height: 42px;
        padding: 0.65rem 0.8rem;
        border-color: rgba(241, 196, 15, 0.1);
        background: rgba(3, 18, 15, 0.34);
        text-align: center;
    }

    .site-nav.open .mobile-nav-cta,
    body.nav-open .site-nav .mobile-nav-cta {
        display: grid;
        justify-items: center;
        width: min(100%, 360px);
        margin: 0.5rem auto 0;
        padding: 1rem;
        border: 1px solid rgba(241, 196, 15, 0.2);
        border-radius: 18px;
        background:
            linear-gradient(135deg, rgba(241, 196, 15, 0.12), rgba(22, 160, 133, 0.12)),
            rgba(255, 255, 255, 0.045);
        color: #d8efe8;
        text-align: center;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 42px rgba(0, 0, 0, 0.18);
    }

    .mobile-nav-cta img {
        width: 52px;
        height: 52px;
        object-fit: contain;
        margin-bottom: 0.45rem;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.9);
        padding: 0.25rem;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    }

    .mobile-nav-cta strong {
        color: #ffffff;
        font-size: 0.86rem;
        line-height: 1.2;
    }

    .mobile-nav-cta span {
        max-width: 30ch;
        margin-top: 0.3rem;
        color: #d8efe8;
        font-size: 0.72rem;
        line-height: 1.45;
    }

    .mobile-nav-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.55rem;
        width: 100%;
        margin-top: 0.85rem;
    }

    .site-nav.open .mobile-nav-actions a,
    body.nav-open .site-nav .mobile-nav-actions a {
        min-height: 40px;
        padding: 0.65rem 0.7rem;
        border-radius: 999px;
        font-size: 0.74rem;
        font-weight: 900;
        line-height: 1;
    }

    .site-nav.open .mobile-nav-actions .mobile-nav-whatsapp,
    body.nav-open .site-nav .mobile-nav-actions .mobile-nav-whatsapp {
        border-color: rgba(22, 160, 133, 0.5);
        background: linear-gradient(135deg, #0f9f73, #087b5f);
        color: #ffffff;
    }

    .site-nav.open .mobile-nav-actions .mobile-nav-register,
    body.nav-open .site-nav .mobile-nav-actions .mobile-nav-register {
        border-color: rgba(241, 196, 15, 0.55);
        background: var(--accent-gold);
        color: #062c25;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-copy {
        padding: clamp(1.5rem, 4vw, 2rem) 0;
    }

    .hero-slide {
        background-position: center center;
    }

    .hero-slide:nth-child(1),
    .hero-slide:nth-child(3) {
        background-position: center top;
    }

    .hero-slide:nth-child(4) {
        background-position: 58% center;
    }

    .platform-rail {
        position: relative;
        right: auto;
        top: auto;
        bottom: auto;
        grid-auto-flow: column;
        justify-content: center;
        width: auto;
        margin: -1rem auto 1rem;
        transform: none;
    }

    .hero-controls {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.7rem;
        margin-top: 1rem;
    }

    .slider-arrow {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        margin: 0;
        border-radius: 14px;
    }

    .slider-dots {
        width: auto;
        flex: 0 1 auto;
    }

    .hero-bottom {
        flex-direction: column;
        margin-top: 1.5rem;
    }

    .stats-card {
        flex-basis: calc(50% - 0.575rem);
    }
}

@media (max-width: 900px) {
    :root {
        --site-header-offset: 76px;
    }
}

@media (max-width: 680px) {
    .hero-slider {
        min-height: clamp(680px, 88svh, 780px);
    }

    .hero-slide {
        background-size: cover;
        background-position: center top;
    }

    .hero-slide:nth-child(1) {
        background-position: 52% top;
    }

    .hero-slide:nth-child(2) {
        background-position: 50% top;
    }

    .hero-slide:nth-child(3) {
        background-position: 50% top;
    }

    .hero-slide:nth-child(4) {
        background-position: 62% top;
    }

    .hero-copy {
        padding: 1.35rem 0;
    }

    .hero-tag {
        margin-bottom: 0.8rem;
        padding: 0.55rem 0.75rem;
        font-size: 0.68rem;
        letter-spacing: 0.08em;
    }

    .hero-copy h1 {
        font-size: clamp(1.65rem, 8.6vw, 2.3rem);
        line-height: 1.08;
        letter-spacing: 0;
    }

    .hero-copy p {
        margin: 1rem 0 1.35rem;
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .platform-rail {
        margin: 1rem auto 1rem;
    }

    .platform-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .platform-icon {
        width: auto;
        padding: 0 0.7rem;
    }

    .notification-wrap,
    .btn {
        width: 100%;
    }

    .notification-wrap {
        width: auto;
        flex-direction: column;
        align-items: center;
        gap: 0.55rem;
    }

    .notification-wrap .btn-tertiary {
        width: 100%;
    }

    .course-popup {
        position: absolute;
        left: 50%;
        right: auto;
        top: calc(100% + 0.6rem);
        width: min(100%, 230px);
        max-width: calc(100vw - 2rem);
        transform: translate(-50%, 8px);
        padding: 0.5rem 0.7rem 0.5rem 2rem;
        white-space: normal;
        z-index: 6;
        text-align: center;
    }

    .notification-wrap:hover .course-popup,
    .notification-wrap:focus-within .course-popup,
    .notification-wrap.is-open .course-popup {
        transform: translate(-50%, 0);
    }

    .course-popup::after {
        right: auto;
        left: 50%;
        top: auto;
        bottom: calc(100% - 8px);
        width: 18px;
        height: 18px;
        transform: translateX(-50%) rotate(45deg);
        border-left: 3px solid rgba(241, 196, 15, 0.78);
        border-top: 3px solid rgba(241, 196, 15, 0.78);
        border-right: 0;
        border-radius: 5px 0 0 0;
        box-shadow: -4px -4px 10px rgba(241, 196, 15, 0.16);
    }

    .hero-controls {
        padding: 0 1rem;
        margin-top: 0.75rem;
    }

    .stats-grid {
        justify-content: center;
    }

    .stats-card {
        flex: 0 1 min(100%, 360px);
        width: min(100%, 360px);
        min-height: auto;
        padding: 1.25rem 1.15rem;
        border-radius: 20px;
    }

    .stats-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .registration-modal {
        align-items: end;
        padding: 0.5rem;
    }

    .registration-dialog {
        width: 100%;
        max-height: 94dvh;
        padding: 1rem;
        border-radius: 22px 22px 16px 16px;
    }

    .registration-head {
        display: grid;
        gap: 0.75rem;
        padding-right: 2.35rem;
        margin-bottom: 1rem;
    }

    .registration-head h2 {
        max-width: 100%;
        font-size: clamp(1.35rem, 7vw, 1.85rem);
    }

    .whatsapp-contact {
        width: fit-content;
        padding: 0.68rem 0.9rem;
        font-size: 0.9rem;
    }

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

    .registration-form {
        gap: 0.85rem;
    }

    .registration-form legend {
        font-size: 0.68rem;
    }

    .registration-form label {
        font-size: 0.84rem;
    }

    .registration-form input,
    .registration-form select,
    .registration-form textarea {
        min-height: 44px;
        border-radius: 12px;
        padding: 0.68rem 0.75rem;
        font-size: 0.92rem;
    }

    .form-submit {
        justify-self: stretch;
    }

    .admin-header {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .admin-summary-card {
        min-width: 0;
        padding: 0.9rem 0.7rem;
        text-align: center;
    }

    .admin-summary-grid span {
        overflow-wrap: anywhere;
        font-size: 0.68rem;
        line-height: 1.25;
        letter-spacing: 0.025em;
    }

    .admin-summary-grid strong {
        margin-top: 0.35rem;
        font-size: 1.75rem;
    }
}

@media (max-width: 520px) {
    :root {
        --site-header-offset: 72px;
    }

    .site-header {
        padding: 0 0.75rem;
    }

    .nav-inner {
        gap: 0.65rem;
        padding: 0.7rem 0;
    }

    .brand {
        gap: 0.55rem;
    }

    .brand-logo {
        width: 54px;
        height: 54px;
    }

    .brand-name {
        font-size: clamp(0.78rem, 3.8vw, 0.95rem);
        letter-spacing: 0;
    }

    .brand-text small {
        font-size: clamp(0.58rem, 2.5vw, 0.7rem);
        letter-spacing: 0;
    }

    .site-nav.open,
    body.nav-open .site-nav {
        padding: 0.85rem 0.85rem calc(1.2rem + env(safe-area-inset-bottom));
    }
}

@media (max-width: 380px) {
    .admin-shell {
        width: min(100% - 1.2rem, 1200px);
    }

    .admin-summary-grid {
        gap: 0.65rem;
    }

    .admin-summary-card {
        padding: 0.85rem 0.55rem;
        border-radius: 16px;
    }

    .admin-summary-grid span {
        font-size: 0.62rem;
        letter-spacing: 0.015em;
    }

    .admin-summary-grid strong {
        font-size: 1.6rem;
    }
}

@media (max-width: 380px) {
    :root {
        --site-header-offset: 66px;
    }

    .container {
        width: min(100% - 0.75rem, 1150px);
    }

    .site-header {
        padding: 0 0.5rem;
    }

    .nav-inner {
        gap: 0.45rem;
    }

    .brand-logo {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        padding: 0.25rem;
    }

    .brand-name {
        font-size: 0.76rem;
    }

    .brand-text small {
        font-size: 0.56rem;
    }

    .nav-toggle {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }

    .hero-slider {
        min-height: 700px;
    }

    .hero-slide:nth-child(1) {
        background-position: 55% top;
    }

    .hero-slide:nth-child(4) {
        background-position: 66% top;
    }

    .hero-copy h1 {
        font-size: clamp(1.45rem, 8.2vw, 1.85rem);
    }

    .hero-copy p {
        font-size: 0.84rem;
    }

    .btn {
        padding: 0.82rem 1rem;
        font-size: 0.88rem;
    }

    .course-popup {
        max-width: 155px;
        font-size: 0.62rem;
        border-radius: 999px;
    }

    .platform-rail {
        width: auto;
        gap: 0.5rem;
        padding: 0;
    }

    .platform-icon {
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }

    .platform-icon {
        width: auto;
        padding: 0 0.62rem;
    }

    .platform-icon span {
        font-size: 0.64rem;
    }

    .platform-icon svg {
        width: 22px;
        height: 22px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .stats-card strong {
        font-size: 1.85rem;
    }

    .stats-card {
        flex-basis: min(100%, 310px);
        width: min(100%, 310px);
        padding: 1.05rem 1rem;
        border-radius: 18px;
    }

    .stat-label {
        font-size: 0.72rem;
    }

    .stats-card p {
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .registration-form fieldset {
        padding: 0.75rem;
        border-radius: 16px;
    }

    .registration-head h2 {
        font-size: 1.32rem;
    }

    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
        top: 0.75rem;
        right: 0.75rem;
    }

    .registration-dialog {
        padding: 0.8rem;
        border-radius: 18px 18px 14px 14px;
    }

    .registration-head {
        padding-right: 2rem;
    }

    .registration-form input,
    .registration-form select,
    .registration-form textarea {
        font-size: 0.86rem;
    }
}

@media (min-width: 1400px) {
    .container {
        width: min(1280px, calc(100% - 4rem));
    }

    .hero-copy {
        max-width: 820px;
    }

    .hero-slider {
        min-height: min(82svh, 920px);
    }
}

@media (max-height: 560px) and (orientation: landscape) {
    .hero-slider {
        min-height: 560px;
    }

    .hero-copy {
        padding: 1rem 0;
    }

    .hero-copy h1 {
        font-size: clamp(1.7rem, 5vw, 2.5rem);
    }

    .hero-copy p {
        margin: 0.75rem 0 1rem;
    }
}

@media (max-width: 640px) {
    .registration-modal {
        align-items: stretch;
        justify-items: stretch;
        padding: 0;
    }

    .registration-dialog {
        width: 100%;
        max-height: 100dvh;
        min-height: 100dvh;
        padding: 0.85rem;
        border: 0;
        border-radius: 0;
    }

    .registration-head {
        position: sticky;
        top: -0.85rem;
        z-index: 3;
        display: grid;
        gap: 0.65rem;
        margin: -0.85rem -0.85rem 1.15rem;
        padding: 0.9rem 3.2rem 0.85rem 0.85rem;
        border-bottom: 1px solid rgba(241, 196, 15, 0.16);
        background: rgba(5, 31, 27, 0.96);
        backdrop-filter: blur(18px);
    }

    .registration-head h2 {
        max-width: 100%;
        margin-top: 0.35rem;
        font-size: clamp(1rem, 5vw, 1.35rem);
        line-height: 1.18;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .modal-close {
        position: fixed;
        top: 0.7rem;
        right: 0.7rem;
        z-index: 3010;
        width: 38px;
        height: 38px;
        margin: 0;
        float: none;
    }

    .whatsapp-contact {
        width: fit-content;
        justify-self: center;
        justify-content: center;
        white-space: normal;
    }

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

    .registration-form {
        padding-top: 0.25rem;
    }

    .registration-form fieldset {
        padding: 0.78rem;
        border-radius: 16px;
    }

    .registration-form input,
    .registration-form select,
    .registration-form textarea {
        min-width: 0;
        font-size: 16px;
    }

    .form-submit {
        width: 100%;
        justify-self: stretch;
    }
}

@media (max-width: 420px) {
    .about-section-head {
        width: min(100%, calc(100% - 0.5rem));
    }

    .about-section-head h2 {
        font-size: clamp(1.5rem, 10vw, 2.25rem);
    }

    .about-section-head p {
        font-size: 0.82rem;
        line-height: 1.55;
    }

    .about-media img {
        aspect-ratio: 1 / 1;
    }

    .about-feature {
        padding: 0.7rem;
    }

    .about-feature span {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }

    .about-feature strong {
        font-size: 0.84rem;
    }

    .registration-dialog {
        padding: 0.65rem;
    }

    .registration-head {
        gap: 0.45rem;
        margin: -0.65rem -0.65rem 0.65rem;
        padding: 0.72rem 2.75rem 0.7rem 0.65rem;
    }

    .registration-head .hero-tag {
        width: fit-content;
        max-width: calc(100vw - 4.3rem);
        padding: 0.38rem 0.5rem;
        font-size: 0.56rem;
        letter-spacing: 0.04em;
        white-space: normal;
    }

    .registration-head h2 {
        margin-top: 0.2rem;
        font-size: clamp(1.05rem, 7vw, 1.35rem);
        line-height: 1.14;
    }

    .modal-close {
        top: 0.55rem;
        right: 0.55rem;
        width: 34px;
        height: 34px;
        font-size: 1.25rem;
    }

    .whatsapp-contact {
        padding: 0.62rem 0.75rem;
        font-size: 0.82rem;
        justify-self: center;
    }

    .whatsapp-contact svg {
        width: 18px;
        height: 18px;
    }

    .registration-form {
        gap: 0.62rem;
    }

    .registration-form fieldset {
        padding: 0.62rem;
        border-radius: 14px;
    }

    .registration-form legend {
        font-size: 0.62rem;
        letter-spacing: 0.04em;
    }

    .form-grid {
        gap: 0.58rem;
    }

    .registration-form label {
        gap: 0.28rem;
        font-size: 0.76rem;
    }

    .registration-form input,
    .registration-form select,
    .registration-form textarea {
        width: 100%;
        max-width: 100%;
        min-height: 40px;
        padding: 0.52rem 0.6rem;
        border-radius: 10px;
        font-size: 16px;
    }

    .registration-form select {
        padding-right: 2.05rem;
        background-position:
            calc(100% - 0.9rem) 50%,
            calc(100% - 0.62rem) 50%;
    }

    .registration-select-toggle {
        min-height: 40px;
        padding: 0.52rem 2.05rem 0.52rem 0.6rem;
        border-radius: 10px;
        font-size: 16px;
    }

    .registration-select-toggle::after {
        right: 0.78rem;
        width: 0.48rem;
        height: 0.48rem;
    }

    .registration-select-menu {
        max-height: 220px;
        border-radius: 12px;
    }

    .registration-select-option {
        padding: 0.58rem 0.62rem;
        border-radius: 8px;
        font-size: 16px;
        line-height: 1.2;
    }
}

@media (max-width: 340px) {
    .container {
        width: min(100% - 0.5rem, 1150px);
    }

    .about-section {
        padding: 2.4rem 0;
    }

    .about-section-head h2 {
        font-size: clamp(1.35rem, 10vw, 1.9rem);
    }

    .about-media,
    .about-content {
        border-radius: 16px;
    }

    .about-content {
        padding: 0.8rem;
    }

    .about-arabic-title {
        font-size: clamp(1.45rem, 10vw, 2rem);
    }

    .about-content h3 {
        font-size: clamp(1.22rem, 8vw, 1.7rem);
    }

    .about-content p {
        font-size: 0.82rem;
    }

    .about-feature {
        gap: 0.45rem;
        padding: 0.6rem;
    }

    .about-feature span {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
    }

    .stats-card {
        width: 100%;
        flex-basis: 100%;
        padding: 0.85rem;
    }

    .stats-card strong {
        font-size: 1.55rem;
    }

    .stats-card p {
        font-size: 0.76rem;
    }
}

@media (max-width: 640px) {
    .courses-hero {
        padding: 3rem 0 2.2rem;
    }

    .gallery-hero {
        padding: 3rem 0 2.2rem;
    }

    .gallery-hero-visual {
        min-height: 320px;
        border-radius: 22px;
    }

    .gallery-visual-overlay {
        border-radius: 16px;
    }

    .ebook-hero {
        padding: 3rem 0 2.2rem;
    }

    .courses-hero-copy h1 {
        font-size: clamp(1.85rem, 10vw, 2.7rem);
    }

    .gallery-hero-copy h1 {
        font-size: clamp(1.85rem, 10vw, 2.7rem);
    }

    .ebook-hero-copy h1 {
        font-size: clamp(1.85rem, 10vw, 2.7rem);
    }

    .duaa-frame {
        border-radius: 24px;
        padding: 0.75rem;
    }

    .duaa-frame-inner {
        min-height: 330px;
        padding: 1.75rem 1rem;
        border-radius: 18px;
    }

    .duaa-frame-corner {
        width: 52px;
        height: 52px;
    }

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

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

    .gallery-toolbar {
        align-items: stretch;
    }

    .gallery-filters {
        width: 100%;
    }

    .gallery-filter {
        flex: 1 1 auto;
    }

    .gallery-results {
        width: 100%;
        white-space: normal;
    }

    .gallery-lightbox {
        padding-bottom: 4.6rem;
    }

    .gallery-lightbox-dialog {
        max-height: calc(100dvh - 5.4rem);
        border-radius: 18px;
    }

    .gallery-lightbox-dialog img {
        max-height: calc(100dvh - 12.5rem);
        border-radius: 12px;
    }

    .gallery-lightbox-nav {
        top: auto;
        bottom: max(0.65rem, env(safe-area-inset-bottom));
        width: 42px;
        height: 42px;
        transform: none;
    }

    .gallery-lightbox-prev {
        left: calc(50% - 3.25rem);
    }

    .gallery-lightbox-next {
        right: calc(50% - 3.25rem);
    }

    .notifications-grid,
    .course-notice-card,
    .notification-empty-state {
        grid-template-columns: 1fr;
    }

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

    .ebook-toolbar {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .ebook-results {
        margin: 0;
        text-align: left;
    }

    .ebook-actions {
        width: 100%;
        justify-self: stretch;
    }

    .ebook-actions .btn {
        flex: 1 1 9rem;
        justify-content: center;
        text-align: center;
    }

    .admin-gallery-form,
    .admin-gallery-grid {
        grid-template-columns: 1fr;
    }

    .admin-gallery-form .btn {
        width: 100%;
    }

    .gallery-placeholder {
        min-height: 210px;
    }

    .course-notice-flyer,
    .notification-empty-flyer {
        min-height: 260px;
    }

    .course-notice-body .btn,
    .notification-empty-copy .btn {
        width: 100%;
    }

    .gallery-image {
        height: 230px;
    }

    .course-card .btn {
        width: 100%;
    }

    .course-tags span {
        min-height: 32px;
        font-size: 0.62rem;
    }

    .blog-page {
        padding-bottom: 2.5rem;
    }

    .blog-hero {
        padding: 2.4rem 0 1.6rem;
    }

    .blog-hero-inner {
        gap: 0.8rem;
    }

    .blog-hero h1,
    .post-hero h1,
    .post-not-found h1 {
        font-size: clamp(1.65rem, 8.5vw, 2.35rem);
        line-height: 1.12;
    }

    .blog-hero p,
    .post-not-found p {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .featured-post {
        margin-top: 0;
    }

    .featured-media,
    .blog-card-media {
        min-height: 190px;
    }

    .featured-content {
        padding: 1rem;
    }

    .featured-content h2,
    .section-head h2 {
        font-size: clamp(1.45rem, 7.5vw, 2.15rem);
    }

    .blog-grid-section {
        padding-top: 2rem;
    }

    .blog-card {
        flex-basis: 100%;
    }

    .blog-card-body {
        padding: 1rem;
    }

    .post-hero {
        min-height: 330px;
    }

    .post-hero-content {
        padding-bottom: 1.7rem;
    }

    .post-layout {
        margin-top: 0;
    }

    .post-content,
    .post-sidebar {
        flex-basis: 100%;
    }

    .back-link {
        font-size: 0.78rem;
    }
}

@media (max-width: 360px) {
    .blog-hero h1,
    .post-hero h1 {
        font-size: clamp(1.45rem, 8vw, 1.9rem);
    }

    .hero-tag,
    .post-category {
        max-width: 100%;
        white-space: normal;
    }

    .featured-media,
    .blog-card-media {
        min-height: 165px;
    }

    .testimonial-card {
        flex-basis: 100%;
    }

    .testimonial-shot {
        height: clamp(300px, 110vw, 420px);
    }
}

.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: clamp(2rem, 5vw, 4rem);
    padding: clamp(2.7rem, 6vw, 4.8rem) 0 1rem;
    border-top: 1px solid rgba(241, 196, 15, 0.22);
    background:
        radial-gradient(circle at var(--footer-x, 18%) var(--footer-y, 30%), rgba(241, 196, 15, 0.22), transparent 26%),
        radial-gradient(circle at 84% 8%, rgba(22, 160, 133, 0.24), transparent 30%),
        linear-gradient(135deg, rgba(4, 38, 30, 0.98), rgba(2, 19, 17, 1) 54%, rgba(5, 42, 32, 0.98));
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.055;
    pointer-events: none;
    background-image:
        linear-gradient(30deg, rgba(241, 196, 15, 0.9) 12%, transparent 12.5%, transparent 87%, rgba(241, 196, 15, 0.9) 87.5%, rgba(241, 196, 15, 0.9)),
        linear-gradient(150deg, rgba(241, 196, 15, 0.9) 12%, transparent 12.5%, transparent 87%, rgba(241, 196, 15, 0.9) 87.5%, rgba(241, 196, 15, 0.9));
    background-size: 86px 142px;
}

.site-footer::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: min(72rem, 92vw);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(241, 196, 15, 0.78), transparent);
    box-shadow: 0 0 26px rgba(241, 196, 15, 0.4);
}

.footer-glow {
    position: absolute;
    right: -8rem;
    top: -8rem;
    width: 24rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 160, 133, 0.22), transparent 68%);
    pointer-events: none;
}

.footer-inner,
.footer-bottom {
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(18rem, 0.92fr) minmax(0, 1.22fr);
    gap: clamp(1.2rem, 3vw, 2.4rem);
    align-items: start;
}

.footer-brand-panel {
    display: grid;
    gap: clamp(0.95rem, 1.8vw, 1.2rem);
    padding: clamp(1rem, 2.2vw, 1.5rem);
    border: 1px solid rgba(241, 196, 15, 0.34);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(8, 58, 45, 0.9), rgba(4, 29, 27, 0.96)),
        radial-gradient(circle at top left, rgba(241, 196, 15, 0.22), transparent 44%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 28px rgba(241, 196, 15, 0.09);
    backdrop-filter: blur(16px);
    animation: footer-panel-rise 0.8s ease both;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: clamp(0.75rem, 1.7vw, 1rem);
    color: #ffffff;
    text-decoration: none;
    min-width: 0;
}

.footer-logo-badge {
    position: relative;
    width: clamp(5.6rem, 8.8vw, 7.2rem);
    height: clamp(5.6rem, 8.8vw, 7.2rem);
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(241, 196, 15, 0.45);
    border-radius: 26px;
    background:
        radial-gradient(circle at 30% 20%, rgba(241, 196, 15, 0.22), transparent 42%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(4, 71, 54, 0.72));
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 24px rgba(241, 196, 15, 0.16);
}

.footer-logo-badge::after {
    content: "";
    position: absolute;
    inset: -35%;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.34) 48%, transparent 62%);
    transform: translateX(-48%) rotate(8deg);
    animation: footer-logo-sheen 4.8s ease-in-out infinite;
}

.footer-logo-badge img {
    position: relative;
    z-index: 1;
    width: 94%;
    height: 94%;
    object-fit: contain;
    filter: brightness(1.28) saturate(1.24) contrast(1.12) drop-shadow(0 8px 14px rgba(241, 196, 15, 0.22));
}

.footer-brand span {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.footer-brand strong {
    color: var(--accent-gold);
    font-size: clamp(1.2rem, 2.45vw, 1.65rem);
    line-height: 1.1;
    text-wrap: balance;
    text-shadow: 0 0 22px rgba(241, 196, 15, 0.2);
}

.footer-brand small {
    color: #d8efe8;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-brand-panel p {
    margin: 0;
    color: #d8efe8;
    line-height: 1.78;
    text-align: justify;
    text-align-last: left;
}

.footer-contact-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.footer-contact-pills a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.58rem 0.78rem;
    border: 1px solid rgba(241, 196, 15, 0.28);
    border-radius: 999px;
    background: rgba(241, 196, 15, 0.08);
    color: #fff4ba;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.footer-contact-pills a:hover,
.footer-contact-pills a:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(241, 196, 15, 0.72);
    background: rgba(241, 196, 15, 0.14);
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.62rem;
    padding-top: 0.1rem;
}

.footer-socials a {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(241, 196, 15, 0.28);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(241, 196, 15, 0.08));
    color: var(--accent-gold);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.22s ease, color 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.footer-socials a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.2), transparent 52%);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
    transform: translateY(-4px) scale(1.04);
    border-color: rgba(241, 196, 15, 0.72);
    background: linear-gradient(145deg, rgba(241, 196, 15, 0.22), rgba(4, 105, 76, 0.34));
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26), 0 0 18px rgba(241, 196, 15, 0.2);
}

.footer-socials a:hover::before,
.footer-socials a:focus-visible::before {
    opacity: 1;
}

.footer-socials svg {
    position: relative;
    z-index: 1;
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.footer-socials .footer-icon-cut {
    fill: #063a2c;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.85rem, 2vw, 1.2rem);
}

.footer-links div {
    position: relative;
    display: grid;
    align-content: start;
    gap: 0.7rem;
    min-height: 100%;
    padding: clamp(1rem, 2vw, 1.2rem);
    overflow: hidden;
    border: 1px solid rgba(241, 196, 15, 0.24);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.footer-links div::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.1), transparent 44%);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.footer-links div:hover {
    transform: translateY(-4px);
    border-color: rgba(241, 196, 15, 0.48);
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22), 0 0 20px rgba(241, 196, 15, 0.08);
}

.footer-links div:hover::before {
    opacity: 1;
}

.footer-links h3 {
    position: relative;
    margin: 0 0 0.2rem;
    color: var(--accent-gold);
    font-size: 0.86rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-links a {
    position: relative;
    width: fit-content;
    color: #d8efe8;
    font-weight: 750;
    text-decoration: none;
    line-height: 1.35;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-links .footer-admin-link {
    width: fit-content;
    margin-top: 0.35rem;
    padding: 0.42rem 0.7rem;
    border: 1px solid rgba(241, 196, 15, 0.28);
    border-radius: 999px;
    color: var(--accent-gold);
    background: rgba(241, 196, 15, 0.08);
    font-size: 0.78rem;
    font-weight: 900;
}

.footer-links .footer-admin-link:hover,
.footer-links .footer-admin-link:focus-visible {
    transform: translateY(-1px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: clamp(1.4rem, 4vw, 2.4rem);
    padding-top: 1rem;
    border-top: 1px solid rgba(241, 196, 15, 0.16);
}

.footer-bottom p {
    margin: 0;
    color: rgba(216, 239, 232, 0.82);
    font-size: 0.9rem;
}

.footer-top-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(241, 196, 15, 0.36);
    border-radius: 50%;
    background: rgba(241, 196, 15, 0.1);
    color: var(--accent-gold);
    cursor: pointer;
    opacity: 0.5;
    transition: transform 0.22s ease, opacity 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.footer-top-button span {
    width: 0.68rem;
    height: 0.68rem;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: translateY(3px) rotate(45deg);
}

.footer-top-button.is-visible,
.footer-top-button:hover,
.footer-top-button:focus-visible {
    opacity: 1;
    transform: translateY(-3px);
    border-color: rgba(241, 196, 15, 0.76);
    background: rgba(241, 196, 15, 0.16);
}

@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 680px) {
    .site-footer {
        padding-top: 2.2rem;
    }

    .footer-brand {
        align-items: flex-start;
    }

    .footer-brand-panel {
        border-radius: 24px;
    }

    .footer-contact-pills a {
        width: 100%;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }

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

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-top-button {
        align-self: flex-end;
    }
}

@media (max-width: 420px) {
    .footer-brand {
        flex-direction: column;
    }

    .footer-logo-badge {
        width: 5.1rem;
        height: 5.1rem;
        border-radius: 22px;
    }

    .footer-brand-panel p {
        text-align: left;
    }
}

@keyframes footer-logo-sheen {
    0%, 55% {
        transform: translateX(-58%) rotate(8deg);
    }

    78%, 100% {
        transform: translateX(58%) rotate(8deg);
    }
}

@keyframes footer-panel-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* White and golden footer refresh */
.site-footer {
    color: #07392f;
    border-top: 1px solid rgba(241, 196, 15, 0.42);
    background:
        radial-gradient(circle at var(--footer-x, 18%) var(--footer-y, 30%), rgba(241, 196, 15, 0.26), transparent 24%),
        linear-gradient(135deg, #fffdf4 0%, #fff7d6 42%, #ffffff 100%);
}

.site-footer::before {
    opacity: 0.08;
    background-image:
        linear-gradient(30deg, rgba(191, 145, 0, 0.6) 12%, transparent 12.5%, transparent 87%, rgba(191, 145, 0, 0.6) 87.5%, rgba(191, 145, 0, 0.6)),
        linear-gradient(150deg, rgba(191, 145, 0, 0.6) 12%, transparent 12.5%, transparent 87%, rgba(191, 145, 0, 0.6) 87.5%, rgba(191, 145, 0, 0.6));
}

.site-footer::after {
    background: linear-gradient(90deg, transparent, rgba(241, 196, 15, 0.9), transparent);
    box-shadow: 0 0 22px rgba(241, 196, 15, 0.42);
}

.footer-glow {
    background: radial-gradient(circle, rgba(241, 196, 15, 0.32), transparent 68%);
}

.footer-inner {
    grid-template-columns: minmax(18rem, 1.05fr) minmax(0, 1.35fr);
    align-items: stretch;
}

.footer-brand-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.footer-brand {
    color: #07392f;
}

.footer-logo-badge {
    width: clamp(6.4rem, 9vw, 7.8rem);
    height: clamp(6.4rem, 9vw, 7.8rem);
    border-color: rgba(241, 196, 15, 0.62);
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.95), rgba(255, 246, 199, 0.72) 58%, rgba(241, 196, 15, 0.2)),
        linear-gradient(145deg, rgba(241, 196, 15, 0.45), rgba(255, 255, 255, 0.88));
    box-shadow: 0 16px 34px rgba(87, 68, 0, 0.16), 0 0 0 7px rgba(241, 196, 15, 0.1);
}

.footer-logo-badge img {
    width: 91%;
    height: 91%;
    filter: brightness(1.06) saturate(1.18) contrast(1.08);
}

.footer-brand strong {
    color: #d9a900;
    text-shadow: none;
}

.footer-brand small,
.footer-brand-panel p,
.footer-links a,
.footer-bottom p {
    color: #07392f;
}

.footer-brand-panel p {
    max-width: 38rem;
    opacity: 0.9;
}

.footer-contact-pills a {
    border-color: rgba(217, 169, 0, 0.34);
    background: rgba(255, 255, 255, 0.64);
    color: #075244;
    box-shadow: 0 10px 22px rgba(87, 68, 0, 0.08);
}

.footer-contact-pills a:hover,
.footer-contact-pills a:focus-visible {
    border-color: rgba(217, 169, 0, 0.82);
    background: #ffd21f;
    color: #062c25;
}

.footer-socials a {
    border-color: rgba(217, 169, 0, 0.38);
    border-radius: 999px;
    background: #ffffff;
    color: #d9a900;
    box-shadow: 0 12px 24px rgba(87, 68, 0, 0.12);
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
    background: #ffd21f;
    color: #07392f;
    border-color: rgba(217, 169, 0, 0.9);
    box-shadow: 0 16px 30px rgba(87, 68, 0, 0.16);
}

.footer-socials .footer-icon-cut {
    fill: #ffffff;
}

.footer-socials a:hover .footer-icon-cut,
.footer-socials a:focus-visible .footer-icon-cut {
    fill: #ffd21f;
}

.footer-links {
    align-items: start;
}

.footer-links div {
    padding: 0.25rem clamp(0.9rem, 2vw, 1.35rem);
    border: 0;
    border-left: 1px solid rgba(217, 169, 0, 0.26);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.footer-links div::before {
    display: none;
}

.footer-links div:hover {
    transform: none;
    border-color: rgba(217, 169, 0, 0.48);
    background: transparent;
    box-shadow: none;
}

.footer-links h3 {
    color: #c79b00;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #c79b00;
}

.footer-bottom {
    border-top-color: rgba(217, 169, 0, 0.28);
}

.footer-top-button {
    border-color: rgba(217, 169, 0, 0.42);
    background: #ffffff;
    color: #c79b00;
    box-shadow: 0 10px 22px rgba(87, 68, 0, 0.1);
}

.footer-top-button.is-visible,
.footer-top-button:hover,
.footer-top-button:focus-visible {
    border-color: rgba(217, 169, 0, 0.86);
    background: #ffd21f;
    color: #07392f;
}

@media (max-width: 680px) {
    .footer-links div {
        padding: 0.9rem 0;
        border-left: 0;
        border-top: 1px solid rgba(217, 169, 0, 0.22);
    }
}

@media (max-width: 420px) {
    .footer-logo-badge {
        width: 5.8rem;
        height: 5.8rem;
    }
}

/* Dark green and gold footer refinement */
.site-footer {
    color: #f9fff8;
    margin-top: 0;
    padding-top: clamp(2rem, 4.5vw, 3.4rem);
    border-top: 1px solid rgba(241, 196, 15, 0.32);
    background:
        radial-gradient(circle at var(--footer-x, 18%) var(--footer-y, 30%), rgba(241, 196, 15, 0.16), transparent 26%),
        radial-gradient(circle at 88% 8%, rgba(22, 160, 133, 0.2), transparent 34%),
        linear-gradient(135deg, #041d1a 0%, #062f27 48%, #021311 100%);
}

.site-footer::before {
    opacity: 0.05;
    background-image:
        linear-gradient(30deg, rgba(241, 196, 15, 0.85) 12%, transparent 12.5%, transparent 87%, rgba(241, 196, 15, 0.85) 87.5%, rgba(241, 196, 15, 0.85)),
        linear-gradient(150deg, rgba(241, 196, 15, 0.85) 12%, transparent 12.5%, transparent 87%, rgba(241, 196, 15, 0.85) 87.5%, rgba(241, 196, 15, 0.85));
}

.site-footer::after {
    top: 0;
    background: linear-gradient(90deg, transparent, rgba(241, 196, 15, 0.86), transparent);
    box-shadow: 0 0 26px rgba(241, 196, 15, 0.35);
}

.footer-glow {
    background: radial-gradient(circle, rgba(241, 196, 15, 0.18), transparent 70%);
}

.footer-inner {
    grid-template-columns: minmax(18rem, 1.05fr) minmax(0, 1.35fr);
    align-items: start;
}

.footer-brand-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.footer-brand {
    color: #ffffff;
}

.footer-logo-badge {
    width: clamp(6rem, 8vw, 7rem);
    height: clamp(6rem, 8vw, 7rem);
    border-color: rgba(241, 196, 15, 0.55);
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.98), rgba(255, 245, 190, 0.78) 58%, rgba(241, 196, 15, 0.24)),
        linear-gradient(145deg, rgba(241, 196, 15, 0.52), rgba(255, 255, 255, 0.88));
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26), 0 0 0 7px rgba(241, 196, 15, 0.09), 0 0 28px rgba(241, 196, 15, 0.14);
}

.footer-logo-badge img {
    width: 91%;
    height: 91%;
    filter: brightness(1.04) saturate(1.18) contrast(1.08);
}

.footer-brand strong {
    color: var(--accent-gold);
    text-shadow: 0 0 22px rgba(241, 196, 15, 0.16);
}

.footer-brand small {
    color: #fff4ba;
}

.footer-brand-panel p {
    max-width: 38rem;
    color: rgba(244, 255, 251, 0.88);
}

.footer-contact-pills a {
    border-color: rgba(241, 196, 15, 0.34);
    background: rgba(255, 255, 255, 0.07);
    color: #fff4ba;
    box-shadow: none;
}

.footer-contact-pills a:hover,
.footer-contact-pills a:focus-visible {
    border-color: rgba(241, 196, 15, 0.82);
    background: rgba(241, 196, 15, 0.16);
    color: #ffffff;
}

.footer-socials a {
    border-color: rgba(241, 196, 15, 0.36);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent-gold);
    box-shadow: none;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
    background: var(--accent-gold);
    color: #062c25;
    border-color: rgba(241, 196, 15, 0.95);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22), 0 0 20px rgba(241, 196, 15, 0.2);
}

.footer-socials .footer-icon-cut {
    fill: #062c25;
}

.footer-socials a:hover .footer-icon-cut,
.footer-socials a:focus-visible .footer-icon-cut {
    fill: var(--accent-gold);
}

.footer-links div {
    padding: 0.25rem clamp(0.9rem, 2vw, 1.35rem);
    border: 0;
    border-left: 1px solid rgba(241, 196, 15, 0.2);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.footer-links div::before {
    display: none;
}

.footer-links div:hover {
    transform: none;
    border-color: rgba(241, 196, 15, 0.42);
    background: transparent;
    box-shadow: none;
}

.footer-links h3 {
    color: var(--accent-gold);
}

.footer-links a {
    color: rgba(244, 255, 251, 0.88);
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--accent-gold);
}

.footer-bottom {
    border-top-color: rgba(241, 196, 15, 0.2);
}

.footer-bottom p {
    color: rgba(244, 255, 251, 0.78);
}

.footer-top-button {
    border-color: rgba(241, 196, 15, 0.42);
    background: rgba(255, 255, 255, 0.07);
    color: var(--accent-gold);
    box-shadow: none;
}

.footer-top-button.is-visible,
.footer-top-button:hover,
.footer-top-button:focus-visible {
    border-color: rgba(241, 196, 15, 0.88);
    background: var(--accent-gold);
    color: #062c25;
}

@media (max-width: 680px) {
    .site-footer {
        padding-top: 2rem;
        padding-bottom: 1rem;
    }

    .footer-inner {
        width: min(100% - 1.25rem, 1150px);
        grid-template-columns: minmax(0, 1fr);
        gap: 1.6rem;
    }

    .footer-brand-panel,
    .footer-links,
    .footer-bottom {
        min-width: 0;
        width: 100%;
    }

    .footer-brand-panel {
        justify-items: center;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
        text-align: center;
    }

    .footer-brand-panel p {
        max-width: 34rem;
        text-align: center;
        text-align-last: center;
    }

    .footer-contact-pills {
        justify-content: center;
        width: 100%;
    }

    .footer-contact-pills a {
        max-width: 100%;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-links {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .footer-links div {
        padding: 0.9rem 0;
        border-left: 0;
        border-top: 1px solid rgba(241, 196, 15, 0.18);
        text-align: center;
        justify-items: center;
    }

    .footer-links a {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .footer-bottom {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .footer-inner {
        width: min(100% - 0.85rem, 1150px);
    }

    .footer-brand {
        flex-direction: column;
    }

    .footer-logo-badge {
        width: clamp(4.6rem, 32vw, 5.4rem);
        height: clamp(4.6rem, 32vw, 5.4rem);
    }

    .footer-brand strong {
        font-size: clamp(1rem, 8vw, 1.35rem);
    }

    .footer-brand small,
    .footer-links h3,
    .footer-links a,
    .footer-contact-pills a,
    .footer-bottom p {
        font-size: 0.78rem;
    }

    .footer-socials a,
    .footer-top-button {
        width: 38px;
        height: 38px;
    }
}

/* Polished mobile footer layout */
@media (max-width: 680px) {
    .site-footer {
        padding: 2rem 0 7rem;
        background:
            radial-gradient(circle at 50% 0%, rgba(241, 196, 15, 0.14), transparent 34%),
            linear-gradient(180deg, #05251f 0%, #031916 55%, #02110f 100%);
    }

    .site-footer::before {
        opacity: 0.035;
        background-size: 78px 128px;
    }

    .footer-inner {
        width: min(100% - 1.4rem, 28rem);
        display: flex;
        flex-direction: column;
        gap: 1.55rem;
    }

    .footer-brand-panel {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        text-align: left;
    }

    .footer-brand {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.85rem;
        text-align: left;
    }

    .footer-logo-badge {
        width: 4.85rem;
        height: 4.85rem;
        box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24), 0 0 0 5px rgba(241, 196, 15, 0.08);
    }

    .footer-brand strong {
        font-size: clamp(1.12rem, 6vw, 1.55rem);
        line-height: 1.05;
    }

    .footer-brand small {
        font-size: 0.68rem;
        letter-spacing: 0.07em;
    }

    .footer-brand-panel p {
        max-width: none;
        margin-top: 0.1rem;
        color: rgba(244, 255, 251, 0.86);
        font-size: 0.92rem;
        line-height: 1.75;
        text-align: left;
        text-align-last: left;
    }

    .footer-contact-pills {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        width: 100%;
    }

    .footer-contact-pills a {
        width: 100%;
        justify-content: center;
        min-height: 2.5rem;
        padding: 0.65rem 0.8rem;
        border-radius: 999px;
        font-size: 0.82rem;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .footer-socials {
        justify-content: flex-start;
        gap: 0.7rem;
    }

    .footer-socials a {
        width: 42px;
        height: 42px;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.9rem;
        padding-top: 0.25rem;
    }

    .footer-links div {
        display: flex;
        flex-direction: column;
        gap: 0.52rem;
        min-width: 0;
        padding: 0;
        border: 0;
        text-align: left;
        justify-items: initial;
    }

    .footer-links h3 {
        margin-bottom: 0.1rem;
        font-size: 0.72rem;
        letter-spacing: 0.11em;
    }

    .footer-links a {
        width: auto;
        color: rgba(244, 255, 251, 0.88);
        font-size: 0.84rem;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .footer-bottom {
        width: min(100% - 1.4rem, 28rem);
        align-items: center;
        justify-content: center;
        margin-top: 1.35rem;
        padding-top: 0;
        border-top: 0;
        text-align: center;
    }

    .footer-bottom p {
        font-size: 0.82rem;
        line-height: 1.45;
    }

}

@media (max-width: 520px) {
    .footer-links {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        border-top: 1px solid rgba(241, 196, 15, 0.16);
    }

    .footer-links div {
        padding: 0.92rem 0;
        border-bottom: 1px solid rgba(241, 196, 15, 0.13);
    }

    .footer-links a {
        font-size: 0.88rem;
    }
}

@media (max-width: 340px) {
    .footer-inner,
    .footer-bottom {
        width: min(100% - 1rem, 28rem);
    }

    .footer-brand {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-logo-badge {
        width: 4.65rem;
        height: 4.65rem;
    }

    .footer-socials {
        gap: 0.55rem;
    }

    .footer-socials a {
        width: 39px;
        height: 39px;
    }

    .footer-bottom {
        flex-direction: column;
        justify-content: center;
    }
}

.footer-top-button {
    position: fixed;
    right: clamp(1rem, 2.2vw, 1.35rem);
    bottom: clamp(4.7rem, 7vw, 5.25rem);
    z-index: 640;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26), 0 0 20px rgba(241, 196, 15, 0.12);
}

.footer-top-button.is-visible,
.footer-top-button:hover,
.footer-top-button:focus-visible {
    opacity: 1;
    pointer-events: auto;
}

.footer-in-view .footer-top-button {
    bottom: clamp(8.6rem, 12vw, 9.6rem);
}

@media (max-width: 520px) {
    .footer-top-button {
        right: 0.85rem;
        bottom: 6rem;
    }

    .footer-in-view .footer-top-button {
        bottom: 6rem;
    }
}

.footer-top-button {
    width: 48px;
    height: 48px;
    overflow: hidden;
    border: 1px solid rgba(241, 196, 15, 0.58);
    border-radius: 18px;
    background:
        radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.22), transparent 34%),
        linear-gradient(145deg, rgba(7, 67, 54, 0.96), rgba(2, 24, 21, 0.98));
    color: var(--accent-gold);
    opacity: 0;
    transform: translateY(12px) scale(0.92);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34), 0 0 0 5px rgba(241, 196, 15, 0.08);
}

.footer-top-button::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(241, 196, 15, 0.2);
    border-radius: 13px;
}

.footer-top-button::after {
    content: "";
    position: absolute;
    inset: -45%;
    background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.32) 50%, transparent 58%);
    transform: translateX(-62%) rotate(12deg);
    transition: transform 0.5s ease;
}

.footer-top-button span {
    position: relative;
    z-index: 1;
    width: 0.72rem;
    height: 0.72rem;
    border-top: 3px solid currentColor;
    border-left: 3px solid currentColor;
    transform: translateY(4px) rotate(45deg);
}

.footer-top-button.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.footer-top-button.is-visible:hover,
.footer-top-button.is-visible:focus-visible {
    transform: translateY(-4px) scale(1.04);
    border-color: rgba(241, 196, 15, 0.92);
    background:
        radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.32), transparent 34%),
        linear-gradient(145deg, #f1c40f, #d9a900);
    color: #062c25;
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34), 0 0 28px rgba(241, 196, 15, 0.28);
}

.footer-top-button.is-visible:hover::after,
.footer-top-button.is-visible:focus-visible::after {
    transform: translateX(62%) rotate(12deg);
}

.whatsapp-float {
    position: fixed;
    right: clamp(0.85rem, 2.2vw, 1.25rem);
    bottom: clamp(0.85rem, 2.2vw, 1.25rem);
    z-index: 650;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.9rem 0.7rem 0.75rem;
    border: 1px solid rgba(241, 196, 15, 0.38);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(2, 81, 70, 0.97), rgba(18, 140, 126, 0.97));
    color: #fff;
    text-decoration: none;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32), 0 0 24px rgba(37, 211, 102, 0.24);
    isolation: isolate;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(241, 196, 15, 0.78);
    background: linear-gradient(135deg, rgba(1, 93, 79, 0.98), rgba(21, 156, 137, 0.98));
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.38), 0 0 30px rgba(241, 196, 15, 0.2);
}

.footer-in-view .whatsapp-float {
    bottom: clamp(4.7rem, 8vw, 5.6rem);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    fill: currentColor;
}

.whatsapp-float-text {
    display: grid;
    gap: 0.14rem;
    line-height: 1.1;
}

.whatsapp-float-text strong {
    font-size: 0.86rem;
    letter-spacing: 0;
}

.whatsapp-float-text small {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.72rem;
}

.whatsapp-float-pulse {
    position: absolute;
    inset: -0.45rem;
    z-index: -1;
    border: 1px solid rgba(37, 211, 102, 0.42);
    border-radius: inherit;
    animation: whatsapp-pulse 2.2s ease-out infinite;
}

@media (max-width: 520px) {
    .whatsapp-float {
        left: 50%;
        right: auto;
        bottom: 1.05rem;
        gap: 0.62rem;
        width: min(calc(100vw - 1.5rem), 15.5rem);
        justify-content: center;
        padding: 0.72rem 0.95rem;
        border-radius: 999px;
        transform: translateX(-50%);
    }

    .footer-in-view .whatsapp-float {
        bottom: 1.05rem;
    }

    .whatsapp-float:hover,
    .whatsapp-float:focus-visible {
        transform: translateX(-50%) translateY(-4px);
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    .whatsapp-float-text {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        white-space: normal;
        text-align: left;
    }

    .whatsapp-float-text strong {
        font-size: 0.86rem;
    }

    .whatsapp-float-text small {
        font-size: 0.72rem;
    }
}

@media (max-width: 340px) {
    .whatsapp-float {
        width: min(calc(100vw - 1rem), 14.4rem);
        padding: 0.68rem 0.78rem;
    }

    .whatsapp-float svg {
        width: 25px;
        height: 25px;
    }

    .whatsapp-float-text strong {
        font-size: 0.8rem;
    }

    .whatsapp-float-text small {
        font-size: 0.66rem;
    }
}

@keyframes logo-float {
    0%,
    100% {
        transform: perspective(420px) translateY(0) rotateY(-7deg) rotateX(3deg) scale(1);
    }
    50% {
        transform: perspective(420px) translateY(-5px) rotateY(7deg) rotateX(-3deg) scale(1.05);
    }
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(0.92);
        opacity: 0.8;
    }
    75%,
    100% {
        transform: scale(1.18);
        opacity: 0;
    }
}

@keyframes logo-glow {
    0%,
    100% {
        filter: drop-shadow(0 8px 14px rgba(22, 160, 133, 0.32)) saturate(1.35) contrast(1.12);
    }
    50% {
        filter: drop-shadow(0 12px 22px rgba(241, 196, 15, 0.55)) saturate(1.6) contrast(1.18);
    }
}

/* Final responsive guard for floating controls */
@media (max-width: 680px) {
    .site-footer {
        padding-bottom: 8.25rem !important;
    }

    .footer-top-button {
        position: fixed !important;
        right: 1rem !important;
        bottom: 5.95rem !important;
        width: 46px !important;
        height: 46px !important;
        z-index: 640 !important;
    }

    .footer-in-view .footer-top-button {
        bottom: 5.95rem !important;
    }

    .whatsapp-float {
        position: fixed !important;
        left: 50% !important;
        right: auto !important;
        bottom: 0.95rem !important;
        width: min(calc(100vw - 1.25rem), 16.5rem) !important;
        justify-content: center !important;
        gap: 0.65rem !important;
        padding: 0.72rem 1rem !important;
        transform: translateX(-50%) !important;
    }

    .footer-in-view .whatsapp-float {
        bottom: 0.95rem !important;
    }

    .whatsapp-float:hover,
    .whatsapp-float:focus-visible {
        transform: translateX(-50%) translateY(-4px) !important;
    }

    .whatsapp-float svg {
        width: 28px !important;
        height: 28px !important;
    }

    .whatsapp-float-text {
        position: static !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        clip: auto !important;
        white-space: normal !important;
    }
}

@media (max-width: 340px) {
    .footer-top-button {
        right: 0.75rem !important;
        width: 42px !important;
        height: 42px !important;
    }

    .whatsapp-float {
        width: min(calc(100vw - 0.9rem), 14.7rem) !important;
        padding: 0.68rem 0.82rem !important;
    }
}

/* Match footer logo with navbar logo design */
.footer-logo-badge {
    width: clamp(86px, 8vw, 112px) !important;
    height: clamp(86px, 8vw, 112px) !important;
    border: 2px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28), 0 0 0 5px rgba(241, 196, 15, 0.12) !important;
    flex: 0 0 clamp(86px, 8vw, 112px) !important;
    padding: 0.18rem !important;
    transform-style: preserve-3d;
    animation: logo-float 3.8s ease-in-out infinite, logo-glow 2.8s ease-in-out infinite;
}

.footer-logo-badge::after {
    display: none !important;
}

.footer-logo-badge img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    filter: saturate(1.22) contrast(1.08) !important;
    transform: scale(1.12);
}

@media (max-width: 520px) {
    .footer-logo-badge {
        width: 86px !important;
        height: 86px !important;
        flex-basis: 86px !important;
    }
}

/* Final floating control spacing and back-to-top redesign */
.footer-top-button {
    right: clamp(1rem, 2.2vw, 1.5rem) !important;
    bottom: clamp(5.6rem, 7vw, 6.25rem) !important;
    width: 44px !important;
    height: 44px !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    background: linear-gradient(145deg, #ffdc36, #e8b900) !important;
    color: #07382f !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28), 0 0 0 6px rgba(241, 196, 15, 0.14) !important;
}

.footer-in-view .footer-top-button {
    bottom: clamp(7.35rem, 9vw, 8rem) !important;
}

.footer-top-button::before {
    inset: 0 !important;
    border: 0 !important;
    border-radius: inherit !important;
    background: radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.55), transparent 34%) !important;
}

.footer-top-button::after {
    display: none !important;
}

.footer-top-button span {
    width: 0.62rem !important;
    height: 0.62rem !important;
    border-top: 3px solid currentColor !important;
    border-left: 3px solid currentColor !important;
    transform: translateY(3px) rotate(45deg) !important;
}

.footer-top-button.is-visible:hover,
.footer-top-button.is-visible:focus-visible {
    transform: translateY(-5px) scale(1.04) !important;
    background: linear-gradient(145deg, #ffe56a, #f1c40f) !important;
}

.footer-in-view .whatsapp-float {
    bottom: clamp(1rem, 2vw, 1.3rem) !important;
}

@media (max-width: 680px) {
    .footer-top-button,
    .footer-in-view .footer-top-button {
        right: 1rem !important;
        bottom: 5.85rem !important;
        width: 42px !important;
        height: 42px !important;
    }

    .footer-in-view .whatsapp-float {
        bottom: 0.95rem !important;
    }
}

/* Reference-style circular back-to-top control */
.footer-top-button {
    right: clamp(1rem, 2.2vw, 1.55rem) !important;
    bottom: clamp(5.8rem, 7vw, 6.4rem) !important;
    width: 50px !important;
    height: 50px !important;
    display: grid !important;
    place-items: center !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #16356f !important;
    color: #ffffff !important;
    box-shadow: 0 16px 28px rgba(5, 18, 44, 0.32) !important;
}

.footer-in-view .footer-top-button {
    bottom: clamp(7.35rem, 9vw, 8rem) !important;
}

.footer-top-button::before,
.footer-top-button::after,
.footer-top-button span {
    display: none !important;
}

.footer-top-button svg {
    position: relative;
    z-index: 1;
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-top-button.is-visible:hover,
.footer-top-button.is-visible:focus-visible {
    transform: translateY(-5px) scale(1.04) !important;
    background: #1d4384 !important;
    box-shadow: 0 20px 34px rgba(5, 18, 44, 0.36) !important;
}

@media (max-width: 680px) {
    .footer-top-button,
    .footer-in-view .footer-top-button {
        right: 1rem !important;
        bottom: 5.85rem !important;
        width: 48px !important;
        height: 48px !important;
    }

    .footer-top-button svg {
        width: 25px;
        height: 25px;
    }
}

/* Featured Asaan Quran notice on notifications page */
.featured-course-notice {
    position: relative;
    overflow: hidden;
    margin-bottom: clamp(2rem, 4vw, 3.2rem);
    padding: clamp(1.1rem, 2.8vw, 2rem);
    border: 1px solid rgba(241, 196, 15, 0.24);
    border-radius: 24px;
    background:
        radial-gradient(circle at 12% 8%, rgba(241, 196, 15, 0.18), transparent 30%),
        linear-gradient(135deg, rgba(5, 46, 38, 0.98), rgba(2, 23, 20, 0.98));
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.featured-course-header {
    max-width: 820px;
}

.featured-course-header h3 {
    margin: 0.6rem 0 0;
    color: var(--accent-gold);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
}

.featured-course-header p {
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.85;
}

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

.featured-course-stats div,
.featured-course-details section {
    border: 1px solid rgba(241, 196, 15, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
}

.featured-course-stats div {
    padding: 1rem;
}

.featured-course-stats span {
    display: block;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.featured-course-stats strong {
    display: block;
    margin-top: 0.3rem;
    color: #ffffff;
    font-size: 1.05rem;
}

.featured-course-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.featured-course-details section {
    padding: 1rem;
}

.featured-course-details .featured-course-wide {
    grid-column: span 2;
}

.featured-course-details h4 {
    margin: 0 0 0.65rem;
    color: var(--accent-gold);
    font-size: 1rem;
}

.featured-course-details ul {
    margin: 0;
    padding-left: 1.1rem;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.75;
}

.featured-course-details li + li {
    margin-top: 0.28rem;
}

.featured-course-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.3rem;
}

.notifications-extra-head {
    margin-top: 0;
}

.course-notice-structured {
    grid-column: 1 / -1;
}

@media (max-width: 820px) {
    .featured-course-stats,
    .featured-course-details {
        grid-template-columns: 1fr;
    }

    .featured-course-details .featured-course-wide {
        grid-column: auto;
    }
}

/* Final override: match the provided navy circular upload-style control */
html body .footer-top-button,
html body .footer-top-button.is-visible,
html body .footer-top-button:hover,
html body .footer-top-button:focus-visible {
    width: 50px !important;
    height: 50px !important;
    display: grid !important;
    place-items: center !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #f3c21a !important;
    color: #ffffff !important;
    box-shadow: 0 14px 24px rgba(95, 70, 5, 0.34) !important;
}

html body .footer-top-button {
    right: clamp(1rem, 2.2vw, 1.55rem) !important;
    bottom: clamp(5.8rem, 7vw, 6.4rem) !important;
}

html body.footer-in-view .footer-top-button,
html.footer-in-view body .footer-top-button {
    bottom: clamp(7.35rem, 9vw, 8rem) !important;
}

html body .footer-top-button::before,
html body .footer-top-button::after,
html body .footer-top-button span {
    display: none !important;
}

html body .footer-top-button svg {
    display: block !important;
    width: 27px !important;
    height: 27px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.35 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

html body .footer-top-button.is-visible:hover,
html body .footer-top-button.is-visible:focus-visible {
    transform: translateY(-5px) scale(1.04) !important;
    background: #ffd447 !important;
}

@media (max-width: 680px) {
    html body .footer-top-button,
    html body .footer-top-button.is-visible,
    html body .footer-top-button:hover,
    html body .footer-top-button:focus-visible,
    html body.footer-in-view .footer-top-button,
    html.footer-in-view body .footer-top-button {
        right: 1rem !important;
        bottom: 5.85rem !important;
        width: 48px !important;
        height: 48px !important;
    }
}

/* Final footer credit cleanup */
html body .site-footer .footer-bottom {
    justify-content: center;
    padding: clamp(1rem, 2.4vw, 1.35rem) clamp(6.6rem, 15vw, 15rem) clamp(1.25rem, 2.8vw, 1.65rem) clamp(1rem, 2.4vw, 1.35rem);
}

html body .site-footer .footer-bottom p {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.45rem 0.8rem;
    width: 100%;
    max-width: 980px;
    margin: 0;
    color: rgba(244, 255, 251, 0.88);
    font-size: clamp(0.74rem, 1.35vw, 0.91rem);
    font-weight: 650;
    line-height: 1.55;
    text-align: center;
}

html body .site-footer .footer-bottom p span {
    display: inline-flex;
    align-items: center;
}

html body .site-footer .footer-credit-agency {
    color: rgba(244, 255, 251, 0.78);
}

html body .site-footer .footer-credit-manager {
    gap: 0.32rem;
    color: rgba(244, 255, 251, 0.9);
}

html body .site-footer .footer-credit-manager strong {
    color: #ffd447;
    font-weight: 950;
    text-shadow: 0 1px 10px rgba(247, 198, 0, 0.22);
}

@media (max-width: 860px) {
    html body .site-footer .footer-bottom {
        padding: 0.8rem 1rem 4.85rem;
    }

    html body .site-footer .footer-bottom p {
        display: grid;
        gap: 0.22rem;
        justify-items: center;
        font-size: clamp(0.76rem, 3.2vw, 0.88rem);
        line-height: 1.45;
    }

    html body .site-footer .footer-credit-manager {
        display: grid;
        justify-items: center;
        gap: 0.26rem;
    }
}

@media (max-width: 520px) {
    html body .site-footer {
        padding-top: 0.9rem !important;
        padding-bottom: 4.55rem !important;
    }

    html body .site-footer .footer-bottom {
        padding: 0.55rem 0.9rem 0.7rem;
    }

    html body .site-footer .footer-bottom p {
        width: calc(100% - 3.4rem);
        margin-right: 3.4rem;
    }

    html body.footer-in-view .footer-top-button,
    html.footer-in-view body .footer-top-button,
    html body .footer-top-button,
    html body .footer-top-button.is-visible,
    html body .footer-top-button:hover,
    html body .footer-top-button:focus-visible {
        display: grid !important;
        bottom: 4rem !important;
    }

    html body .whatsapp-float,
    html body.footer-in-view .whatsapp-float,
    html.footer-in-view body .whatsapp-float {
        bottom: 0.65rem !important;
    }
}

@media (max-width: 860px) {
    html body .site-footer {
        padding-top: clamp(0.9rem, 2.8vw, 1.25rem) !important;
        padding-bottom: clamp(4.35rem, 12vw, 4.9rem) !important;
    }

    html body .site-footer .footer-bottom {
        padding: 0.55rem 0.9rem 0.75rem !important;
    }

    html body.footer-in-view .footer-top-button,
    html.footer-in-view body .footer-top-button {
        display: grid !important;
    }
}

/* Final FAQ section balance */
html body .faq-section {
    padding: clamp(3.5rem, 6vw, 5.6rem) 0;
}

html body .faq-pattern {
    inset: 0;
    opacity: 0.035;
    mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

html body .faq-inner {
    grid-template-columns: minmax(220px, 0.48fr) minmax(0, 1.52fr);
    gap: clamp(1rem, 2.5vw, 1.8rem);
    align-items: start;
}

html body .faq-side {
    top: 5rem;
    gap: 0.75rem;
}

html body .faq-head {
    padding: clamp(1rem, 2vw, 1.4rem);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(6, 55, 44, 0.7), rgba(3, 18, 15, 0.88)),
        radial-gradient(circle at top left, rgba(241, 196, 15, 0.14), transparent 48%);
}

html body .faq-head h3 {
    font-size: clamp(1.25rem, 2.1vw, 1.75rem);
}

html body .faq-head p {
    margin-top: 0.7rem;
    font-size: 0.92rem;
    line-height: 1.65;
}

html body .faq-feature-card {
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 16px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24), 0 0 18px rgba(241, 196, 15, 0.08);
}

html body .faq-feature-option {
    min-height: auto;
    padding: 0.52rem 0.6rem;
    border-radius: 12px;
}

html body .faq-feature-option strong {
    font-size: 0.83rem;
}

html body .faq-dua-card {
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: center;
    gap: 0.85rem;
    min-height: clamp(15rem, 28vw, 24rem);
    padding: clamp(1.15rem, 2.4vw, 1.7rem);
    border: 1px solid rgba(241, 196, 15, 0.28);
    border-radius: 20px;
    background:
        radial-gradient(circle at 82% 14%, rgba(241, 196, 15, 0.18), transparent 34%),
        radial-gradient(circle at 16% 90%, rgba(22, 160, 133, 0.18), transparent 38%),
        linear-gradient(145deg, rgba(4, 45, 37, 0.76), rgba(3, 18, 15, 0.94));
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    text-align: center;
}

html body .faq-dua-card::before {
    content: "";
    position: absolute;
    inset: 0.75rem;
    border: 1px solid rgba(241, 196, 15, 0.16);
    border-radius: 16px;
    pointer-events: none;
}

html body .faq-dua-card::after {
    content: "";
    position: absolute;
    inset: auto 1.1rem 1.05rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(241, 196, 15, 0.78), transparent);
    opacity: 0.68;
}

html body .faq-dua-card span {
    color: var(--accent-gold);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

html body .faq-dua-card strong {
    color: #fff7c8;
    font-family: "Georgia", "Times New Roman", serif;
    font-size: clamp(2.25rem, 4.6vw, 4.1rem);
    font-weight: 800;
    line-height: 1.35;
    text-shadow: 0 0 28px rgba(241, 196, 15, 0.2), 0 10px 30px rgba(0, 0, 0, 0.32);
}

html body .faq-dua-card p {
    margin: 0;
    color: rgba(244, 255, 251, 0.9);
    font-size: clamp(0.9rem, 1.1vw, 0.98rem);
    font-weight: 800;
    line-height: 1.55;
}

html body .faq-dua-card small {
    color: rgba(216, 239, 232, 0.82);
    font-size: 0.86rem;
    font-weight: 650;
    line-height: 1.65;
}

html body .faq-list {
    gap: 0.72rem;
}

html body .faq-item {
    border-radius: 16px;
}

html body .faq-question {
    min-height: 4rem;
    padding: 0.85rem 1rem;
    font-size: clamp(0.92rem, 1.2vw, 1.02rem);
}

html body .faq-answer p {
    padding-right: 1rem;
    font-size: clamp(0.9rem, 1.12vw, 0.98rem);
}

@media (min-width: 1200px) {
    html body .faq-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    html body .faq-item.open {
        grid-row: span 2;
    }
}

@media (max-width: 980px) {
    html body .faq-inner {
        grid-template-columns: 1fr;
    }

    html body .faq-side {
        position: static;
        grid-template-columns: 1fr;
    }

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

    html body .faq-dua-card {
        max-width: 100%;
        min-height: 12rem;
    }
}

@media (max-width: 560px) {
    html body .faq-section {
        padding: 2.8rem 0;
    }

    html body .faq-section-intro {
        margin-bottom: 1.15rem;
    }

    html body .faq-feature-card {
        grid-template-columns: 1fr;
    }

    html body .faq-dua-card {
        min-height: 13rem;
        padding: 1rem;
    }

    html body .faq-question {
        min-height: 3.65rem;
        padding: 0.82rem 0.85rem;
    }

    html body .faq-toggle-icon {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }
}
/* Final mobile social icon alignment */
@media (max-width: 680px) {
    html body .site-footer .footer-socials {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Final mobile registration header alignment */
@media (max-width: 680px) {
    html body .registration-head {
        display: grid !important;
        justify-items: center !important;
        text-align: center !important;
        padding: 0.9rem 3.7rem 0.95rem !important;
    }

    html body .registration-head .hero-tag,
    html body .registration-head h2,
    html body .registration-head .whatsapp-contact {
        justify-self: center !important;
        text-align: center !important;
    }

    html body .registration-head .hero-tag {
        padding: 0.44rem 0.68rem !important;
        font-size: 0.64rem !important;
        letter-spacing: 0.06em !important;
    }

    html body .registration-head h2 {
        max-width: none !important;
        margin: 0.35rem auto 0 !important;
        font-size: clamp(1.05rem, 4.8vw, 1.45rem) !important;
        line-height: 1.12 !important;
        white-space: nowrap !important;
    }

    html body .registration-head .whatsapp-contact {
        width: fit-content !important;
        min-width: 9.5rem !important;
        margin: 0.2rem auto 0 !important;
    }
}

@media (max-width: 360px) {
    html body .registration-head h2 {
        font-size: clamp(0.92rem, 4.6vw, 1.05rem) !important;
    }
}

/* Final navbar-to-hero seam cleanup */
html body .site-header {
    border-bottom: 0 !important;
    box-shadow: none !important;
}

html body .hero-section {
    margin-top: -1px;
}

html body .hero-slider {
    margin-top: 0;
    border-top: 0 !important;
    overflow: hidden;
}

html body .hero-slide {
    inset: -2rem 0;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Lightweight parallax depth */
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
    html body .hero-section.parallax-ready .hero-slide {
        transform: scale(1.055) translate3d(0, var(--hero-parallax-y), 0);
        will-change: transform;
    }

    html body .hero-section.parallax-ready .hero-slide.active {
        transform: scale(1.035) translate3d(0, var(--hero-parallax-y), 0);
    }

    html body [data-parallax="pattern"] {
        transform: translate3d(0, var(--pattern-parallax-y), 0);
        will-change: transform;
    }
}

@media (max-width: 760px), (prefers-reduced-motion: reduce) {
    html body .hero-section {
        --hero-parallax-y: 0px !important;
    }

    html body [data-parallax="pattern"] {
        --pattern-parallax-y: 0px !important;
        transform: none !important;
    }
}

/* Final footer credit alignment only */
html body .site-footer .footer-bottom {
    justify-content: center !important;
    text-align: center !important;
}

html body .site-footer .footer-bottom p {
    justify-content: center !important;
    justify-items: center !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

html body .site-footer .footer-bottom p span {
    justify-content: center !important;
    text-align: center !important;
}

/* 360px footer balance */
@media (max-width: 480px) {
    html body .site-footer {
        padding-bottom: 5rem !important;
    }

    html body .site-footer .footer-bottom {
        padding: 0.8rem 0.75rem 1.2rem !important;
    }

    html body .site-footer .footer-bottom p {
        width: 100% !important;
        max-width: 18rem !important;
        display: grid !important;
        justify-items: center !important;
        font-size: 0.72rem !important;
        line-height: 1.5 !important;
        gap: 0.18rem !important;
        margin-inline: auto !important;
        transform: none !important;
    }

    html body .site-footer .footer-credit-manager {
        gap: 0.12rem !important;
    }

    html body.footer-in-view .footer-top-button,
    html.footer-in-view body .footer-top-button,
    html body .footer-top-button,
    html body .footer-top-button.is-visible {
        right: 0.72rem !important;
        bottom: 7.45rem !important;
        width: 42px !important;
        height: 42px !important;
    }

    html body .whatsapp-float,
    html body.footer-in-view .whatsapp-float,
    html.footer-in-view body .whatsapp-float {
        bottom: 0.55rem !important;
        width: min(calc(100vw - 2.25rem), 15.8rem) !important;
    }
}

@media (max-width: 360px) {
    html body .site-footer .footer-bottom p {
        max-width: 15.8rem !important;
        font-size: 0.7rem !important;
    }
}

/* Tablet notification popup viewport guard */
@media (min-width: 681px) and (max-width: 1100px) {
    html body .hero-actions .notification-wrap {
        position: relative;
    }

    html body .hero-actions .notification-wrap .course-popup {
        left: 50% !important;
        right: auto !important;
        top: calc(100% + 0.6rem) !important;
        width: min(230px, calc(100vw - 2rem)) !important;
        max-width: calc(100vw - 2rem) !important;
        transform: translate(-50%, 8px) !important;
        white-space: normal !important;
        text-align: center !important;
        z-index: 8 !important;
    }

    html body .hero-actions .notification-wrap:hover .course-popup,
    html body .hero-actions .notification-wrap:focus-within .course-popup,
    html body .hero-actions .notification-wrap.is-open .course-popup {
        transform: translate(-50%, 0) !important;
    }

    html body .hero-actions .notification-wrap .course-popup::after {
        right: auto !important;
        left: 50% !important;
        top: auto !important;
        bottom: calc(100% - 8px) !important;
        width: 18px !important;
        height: 18px !important;
        transform: translateX(-50%) rotate(45deg) !important;
        border-left: 3px solid rgba(241, 196, 15, 0.78) !important;
        border-top: 3px solid rgba(241, 196, 15, 0.78) !important;
        border-right: 0 !important;
        border-radius: 5px 0 0 0 !important;
        box-shadow: -4px -4px 10px rgba(241, 196, 15, 0.16) !important;
    }
}
