@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');
:root{color-scheme:dark;--bg:#05221e;--header:#041f1a;--band:#073d32;--card:#0b2d27;--gold:#e9b93d;--line:#665b31;--text:#f7f8f6;--muted:#b9c9c3}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Tajawal,Arial,sans-serif;line-height:1.65}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.top{height:74px;background:var(--header);display:flex;align-items:center;justify-content:space-between;padding:0 5.2%;border-bottom:1px solid #77622d}.brand{display:flex;align-items:center;gap:10px;color:var(--gold);font-size:29px;font-weight:900;line-height:1.1}.brand svg{width:62px;height:57px}.brand small{display:block;font:700 10px Arial,sans-serif;letter-spacing:1.8px;margin-top:7px;text-align:center}.top-actions{display:flex;gap:9px}.top-actions a{display:grid;place-items:center;width:40px;height:40px;border:1px solid #746030;border-radius:50%;color:var(--gold);background:#0b2924}.top-actions a:hover,.portal:hover{background:#174a3b;border-color:var(--gold)}svg.icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.hero{position:relative;min-height:455px;display:flex;align-items:flex-end;justify-content:center;text-align:center;background:linear-gradient(0deg,rgba(0,23,20,.22),rgba(0,18,16,.10)),url('assets/hero.webp') center/cover no-repeat;isolation:isolate}.hero:before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at center,rgba(2,21,18,.16),transparent 72%);z-index:-1}.hero-content{width:min(900px,84%);padding:80px 0 66px;text-shadow:0 2px 12px #001711}.hero-content>span,.intro>span{color:var(--gold);font-weight:800;font-size:19px}.hero h1{font-size:clamp(32px,3.8vw,60px);line-height:1.2;margin:6px 0 12px;font-weight:900}.hero p{max-width:820px;margin:0 auto 23px;font-size:clamp(15px,1.4vw,20px);color:#f0f2ee}.hero-actions{display:flex;gap:12px;justify-content:center}.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid #eac353;background:linear-gradient(110deg,#e9b536,#f3ca59);color:#14241c;border-radius:9px;padding:10px 20px;font-weight:800;min-height:44px;text-shadow:none}.btn:hover{filter:brightness(1.08)}.btn.outline{background:#ffffff1c;border-color:#ffffff75;color:white}.arrow{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:44px;background:#0b4739d9;border:1px solid #8b9a8d55;border-radius:11px;color:white;font:26px Arial}.prev{left:18px}.next{right:18px}.dots{position:absolute;bottom:13px;display:flex;gap:8px;align-items:center}.dots button{padding:0;width:11px;height:11px;border:0;border-radius:20px;background:#ffffff69}.dots button.active{background:var(--gold);width:24px}.portal-band{background:var(--band);border-bottom:1px solid #69613b;padding:23px 4.3%;scroll-margin-top:14px}.portals{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:10px}.portal{display:flex;min-width:0;min-height:138px;align-items:center;justify-content:center;flex-direction:column;gap:6px;padding:13px 5px;background:var(--card);color:var(--text);border:1px solid #655a335e;border-radius:15px;transition:background .2s,border-color .2s,transform .2s;text-align:center}.portal:hover{transform:translateY(-2px)}.portal .symbol{width:46px;height:46px;display:grid;place-items:center;border-radius:12px;background:#0d382e;color:var(--gold)}.portal .symbol svg{width:27px;height:27px}.portal strong{font-size:15px;line-height:1.35}.portal small{font-size:12px;line-height:1.35;color:var(--muted)}#notice{text-align:center;margin:16px 0 0;color:var(--gold)}.about{padding:48px 5.2% 38px}.features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.features article{display:flex;align-items:center;gap:18px;background:linear-gradient(120deg,#103f34,#0b2b25);border:1px solid #6f633d;border-radius:16px;padding:23px}.features article>span{color:var(--gold)}.features .icon{width:44px;height:44px}.features h2{font-size:20px;margin:0}.features p{color:var(--muted);margin:3px 0 0;font-size:14px}.intro{text-align:center;padding:52px 12px 10px}.intro h2{font-size:32px;margin:8px 0}.intro p{color:var(--muted);margin:0 0 20px}.registration{max-width:1080px;margin:0 auto 48px;padding:28px;background:#0b2d27;border:1px solid #6b6139;border-radius:18px;scroll-margin-top:15px}.registration h2{font-size:29px;margin:0 0 14px}.warning{background:#e9b93d18;color:#f1d27e;border:1px solid #8a733d80;border-radius:8px;padding:10px 14px}fieldset{border:1px solid #42685d;border-radius:12px;margin:22px 0;padding:20px}legend{color:var(--gold);font-weight:800;padding:0 10px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.fields label{display:flex;flex-direction:column;gap:6px}input:not([type=checkbox]),select{width:100%;min-height:45px;border:1px solid #4b6b61;background:#09231e;border-radius:8px;color:#fff;padding:8px 12px}input[type=checkbox]{accent-color:var(--gold);width:17px;height:17px}.consent{display:flex;align-items:center;gap:8px;margin:15px 0}.registration button:disabled{opacity:.65;cursor:wait}#result{font-weight:700;color:#e9cd80}#result[data-state=error]{color:#ffb0a7}#result[data-state=success]{color:#a4e8ba}.contact{text-align:center;padding:20px 16px 40px}.contact p{color:var(--muted)}footer{text-align:center;border-top:1px solid #6b613955;background:#031b17;padding:26px 12px;color:#b8c7c0;font-size:14px}@media(max-width:1100px){.portals{grid-template-columns:repeat(5,minmax(0,1fr))}.registration{margin-inline:4%}.hero{min-height:420px}}@media(max-width:650px){.top{height:70px;padding:0 12px}.brand{font-size:19px;gap:4px}.brand svg{width:42px;height:45px}.brand small{font-size:7px;letter-spacing:.6px}.top-actions{gap:4px}.top-actions a{width:30px;height:30px}.top-actions .icon{width:17px;height:17px}.hero{min-height:390px;align-items:center}.hero-content{padding:45px 0 48px;width:80%}.arrow{width:28px;height:36px}.prev{left:5px}.next{right:5px}.portal-band{padding:15px 10px}.portals{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.portal{min-height:110px}.features,.fields{grid-template-columns:1fr}.about{padding:25px 12px}.registration{padding:16px;margin-inline:10px}fieldset{padding:12px}.intro{padding-top:30px}.intro h2{font-size:26px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Dynamic slider: real text and real controls on every slide. */
.hero{background-image:linear-gradient(0deg,rgba(0,23,20,.45),rgba(0,18,16,.23)),var(--slide-image,url('assets/hero.webp'));background-position:center;background-size:cover;background-repeat:no-repeat}
.hero.quran-slide{background-color:#34271c;background-image:linear-gradient(90deg,rgba(4,24,20,.10) 0%,rgba(14,25,20,.30) 23%,#1d2b22 62%,#05221e 100%),var(--slide-image);background-size:cover,auto 100%;background-position:center,left center;background-repeat:no-repeat}
@media(max-width:650px){.hero.quran-slide{background-size:cover,cover;background-image:linear-gradient(0deg,rgba(0,23,20,.83),rgba(0,18,16,.35)),var(--slide-image);background-position:center}}

/* Smooth crossfade between images, with independent animated text. */
.hero.smooth-slider{background:#05221e;overflow:hidden;isolation:isolate}
.hero.smooth-slider::before{display:none}
.slider-backdrop{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.slider-layer{position:absolute;inset:0;background-color:#05221e;background-image:linear-gradient(0deg,rgba(0,23,20,.45),rgba(0,18,16,.23)),var(--layer-image);background-position:center;background-size:cover;background-repeat:no-repeat}
.slider-layer.quran-layer{background-color:#34271c;background-image:linear-gradient(90deg,rgba(4,24,20,.10) 0%,rgba(14,25,20,.30) 23%,#1d2b22 62%,#05221e 100%),var(--layer-image);background-size:cover,auto 100%;background-position:center,left center}
.hero.smooth-slider .hero-content{position:relative;z-index:2}
.hero.smooth-slider .arrow,.hero.smooth-slider .dots{z-index:3}
.hero.smooth-slider #eyebrow{display:inline-block}
.hero.smooth-slider .dots button{transition:width .35s ease,background .35s ease}
@media(max-width:650px){.slider-layer.quran-layer{background-size:cover,cover;background-image:linear-gradient(0deg,rgba(0,23,20,.83),rgba(0,18,16,.35)),var(--layer-image);background-position:center}}

/* PORTALS - 5 GRANDES CARTES */

.portals {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    width: 100%;
    max-width: 100% !important;
    gap: 20px;
    margin: 0 auto;
}

.portal {
    width: 100% !important;
    box-sizing: border-box;
    min-height: 120px;
    border-radius: 18px;
    padding: 12px 10px;
    transition: transform 0.3s ease,
                background 0.3s ease;
}

.portal .icon {
    width: 40px;
    height: 40px;
}

.portal strong {
    font-size: 22px;
}

.portal small {
    font-size: 15px;
}

.portal:hover {
    transform: translateY(-5px);
    border-color: #E9B93D;
    background: #12483B;
}

@media (max-width: 768px) {
    .portals {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
    }

    .portal {
        min-height: 145px;
    }

    .portal strong {
        font-size: 17px;
    }

    .portal:last-child {
        grid-column: 1 / -1;
    }
}

/* GALERIE PHOTOS */

.program-gallery {
    max-width: 1100px;
    margin: 35px auto;
    padding: 20px 0;
}

.program-gallery .section-title {
    text-align: center;
    margin-bottom: 25px;
}

.program-gallery h2 {
    color: #EBC04C;
    font-size: 28px;
}

.gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gallery-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #B89B55;
    border-radius: 14px;
}

.gallery-card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

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

    .gallery-card img {
        height: 140px;
    }
}
.top .brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top .brand span {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    line-height: 1.4;
    white-space: nowrap;
}

.top .brand small {
    font-size: 11px;
    letter-spacing: 2px;
    line-height: 1.5;
    margin-top: 3px;
}

.top .brand svg {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}
.top .brand span {
    font-size: 23px;
    line-height: 1.4;
}

.top .brand small {
    font-size: 9px;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

.top .brand svg {
    width: 42px;
    height: 42px;
}

.top .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.top .brand span {
    font-size: 20px;
    line-height: 1.4;
}

.top .brand small {
    font-size: 9px;
    letter-spacing: 1.5px;
    margin-top: 3px;
}

.top .brand svg {
    width: 36px;
    height: 36px;
}

.top .brand {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 5px 0 !important;
}


.top .brand span {
    font-size: 14px !important;
}

.top .brand small {
    font-size: 6px !important;
}

.top .brand svg {
    width: 26px !important;
    height: 26px !important;
}

.top .brand {
    transform: scale(1.2) !important;
    transform-origin: right center !important;
}


.top .brand {
    transform: none !important;
    gap: 10px !important;
    padding: 6px 0 !important;
}

.top .brand span {
    font-size: 23px !important;
    line-height: 1.3 !important;
}

.top .brand small {
    font-size: 10px !important;
    letter-spacing: 1.3px !important;
}

.top .brand svg {
    width: 44px !important;
    height: 44px !important;
}




.top .brand {
    transform: none !important;
    scale: 1 !important;
}

.top .brand span {
    font-size: 24px !important;
    line-height: 1.3 !important;
}

.top .brand small {
    font-size: 10px !important;
    letter-spacing: 1.5px !important;
}

.top .brand svg {
    width: 45px !important;
    height: 45px !important;
}