@import url('theme.css');
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif;
    direction: rtl; text-align: right;
    line-height: 1.75; margin: 0; min-height: 100vh;
    font-feature-settings: "ss01", "ss02";
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { color: var(--text); line-height: 1.4; margin-top: 0; letter-spacing: -.02em; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-2); }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 22px; }

body::before {
    content: ''; position: fixed; inset: 0;
    pointer-events: none; z-index: 0;
    background:
        radial-gradient(circle at 15% 15%, rgba(74,144,226,.08), transparent 40%),
        radial-gradient(circle at 85% 20%, rgba(240,193,75,.08), transparent 40%),
        radial-gradient(circle at 20% 85%, rgba(139,92,246,.06), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(20,184,166,.06), transparent 45%);
    animation: auroraShift 25s ease-in-out infinite alternate;
}
@keyframes auroraShift {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(2%, -2%) scale(1.05); }
}
body > * { position: relative; z-index: 1; }

.top-bar {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 9px 0; font-size: .82rem;
    position: relative; z-index: 100;
}
html[data-theme="dark"] .top-bar { background: rgba(10,14,23,.85); }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.top-center { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.top-center a { color: var(--text-soft); padding: 5px 11px; border-radius: 20px; font-size: .82rem; transition: all .2s; }
.top-center a:hover { color: var(--gold); background: var(--gold-soft); }
.top-center .divider { color: var(--border); }
.top-center .lang { display: inline-flex; align-items: center; gap: 5px; }
.top-left { display: flex; gap: 6px; }
.social-icon {
    width: 28px; height: 28px; display: inline-flex;
    align-items: center; justify-content: center;
    background: var(--gold-soft); border-radius: 50%;
    color: var(--gold); font-size: .78rem; transition: all .25s;
}
.social-icon:hover { background: var(--gold); color: var(--text-inv); transform: translateY(-2px); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { color: var(--text); font-weight: 700; font-size: .9rem; }
.brand-logo {
    width: 30px; height: 30px;
    background: linear-gradient(135deg, #ffd970, #e0a82e 60%, #c98a1e);
    color: #fff; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .9rem;
    box-shadow: 0 4px 12px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,.4);
}

.hero {
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(74,144,226,.18), transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 40%, rgba(240,193,75,.14), transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 60%, rgba(139,92,246,.12), transparent 70%),
        linear-gradient(135deg, #0d1f3c 0%, #12294a 50%, #0a1730 100%);
    color: #fff; position: relative; overflow: hidden; padding-bottom: 80px;
}
html[data-theme="dark"] .hero {
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(74,144,226,.20), transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 40%, rgba(240,193,75,.18), transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 60%, rgba(139,92,246,.14), transparent 70%),
        linear-gradient(135deg, #060d1c 0%, #0a1730 50%, #040810 100%);
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 15% 20%, rgba(255,255,255,.9), transparent),
        radial-gradient(1px 1px at 60% 40%, rgba(255,255,255,.7), transparent),
        radial-gradient(2px 2px at 80% 15%, rgba(240,193,75,.9), transparent),
        radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,.8), transparent),
        radial-gradient(1px 1px at 90% 60%, rgba(240,193,75,.7), transparent),
        radial-gradient(1.5px 1.5px at 45% 85%, rgba(255,255,255,.7), transparent);
    background-size: 500px 500px;
    animation: starDrift 90s linear infinite;
    pointer-events: none;
}
@keyframes starDrift { to { background-position: 500px 500px; } }
.hero-nav {
    position: relative; z-index: 2;
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 6px; padding: 22px 0 12px;
    border-bottom: 1px solid rgba(212,175,55,.12);
}
.hero-nav a { color: rgba(255,255,255,.7); padding: 8px 18px; border-radius: 20px; font-size: .9rem; transition: all .25s; }
.hero-nav a:hover, .hero-nav a.active { background: var(--gold-soft); color: var(--gold); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; padding: 55px 0 60px; position: relative; z-index: 2; }
.hero-text { text-align: center; }
.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem); font-weight: 900; margin: 0;
    background: linear-gradient(120deg, #fff2c8 0%, #f0c14b 25%, #e0a82e 50%, #f0c14b 75%, #fff2c8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    letter-spacing: 3px;
    animation: titleShine 6s ease-in-out infinite;
    filter: drop-shadow(0 4px 24px rgba(240,193,75,.5));
}
@keyframes titleShine {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}
.hero-subtitle { font-size: clamp(1.2rem, 2.4vw, 1.7rem); color: #f9e7b3; margin: 8px 0 22px; font-weight: 700; }
.hero-desc { color: rgba(255,255,255,.72); line-height: 2; font-size: 1rem; max-width: 520px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn-gold, .btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 30px; border-radius: 30px;
    font-weight: 700; font-size: .95rem; cursor: pointer;
    transition: all .3s; text-decoration: none;
    font-family: inherit; border: 2px solid transparent;
    position: relative; overflow: hidden;
}
.btn-gold {
    background: linear-gradient(135deg, #f5cd5a 0%, #e0a82e 50%, #c98a1e 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(140,95,10,.3);
    box-shadow: 0 6px 20px rgba(224,168,46,.35), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-gold:hover {
    color: #fff;
    background: linear-gradient(135deg, #ffd970 0%, #f0c14b 50%, #e0a82e 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(224,168,46,.45), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn-outline { color: var(--gold); border-color: rgba(212,175,55,.5); background: transparent; }
.btn-outline:hover { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }

.hero-visual { position: relative; height: 400px; display: flex; align-items: center; justify-content: center; }
.hero-book { width: 230px; height: 300px; perspective: 1000px; position: relative; z-index: 3; animation: bookFloat 6s ease-in-out infinite; }
@keyframes bookFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-14px) rotate(2deg); }
}
.book-cover {
    width: 100%; height: 100%;
    background: linear-gradient(150deg, #1e3a5f 0%, #0a1730 100%);
    border-radius: 14px 6px 6px 14px;
    border: 2px solid var(--gold);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    position: relative;
    box-shadow: -14px 14px 60px rgba(0,0,0,.7), inset 0 0 80px rgba(240,193,75,.18), 0 0 100px rgba(240,193,75,.35);
}
.book-cover::before {
    content: ''; position: absolute; inset: 18px;
    border: 1px solid rgba(212,175,55,.4); border-radius: 8px;
}
.book-title {
    font-size: 2.8rem; font-weight: 900;
    background: linear-gradient(135deg, #f9e7b3, #f0c14b);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    letter-spacing: 3px;
}
.book-sub { color: rgba(201,182,134,.9); font-size: .85rem; margin-top: 10px; }
.hero-hex { position: absolute; font-size: 2rem; filter: drop-shadow(0 0 12px var(--gold-glow)); animation: hexFloat 5s ease-in-out infinite; z-index: 2; }
.hex-1 { top: 8%; right: 22%; animation-delay: 0s; }
.hex-2 { top: 20%; left: 12%; animation-delay: 1.2s; }
.hex-3 { bottom: 18%; right: 28%; animation-delay: 2.4s; }
.hex-4 { bottom: 8%; left: 18%; animation-delay: 3.6s; }
@keyframes hexFloat {
    0%, 100% { transform: translateY(0) rotate(0); opacity: .85; }
    50% { transform: translateY(-18px) rotate(20deg); opacity: 1; }
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: glowPulse 8s ease-in-out infinite; }
.glow-1 { width: 220px; height: 220px; background: #7b5cff; top: 5%; right: 0%; }
.glow-2 { width: 180px; height: 180px; background: #4a90e2; bottom: 5%; left: 5%; animation-delay: 3s; }
.glow-3 { width: 160px; height: 160px; background: #e0a82e; bottom: 25%; right: 15%; opacity: .3; animation-delay: 1.5s; }
@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: .5; }
    50% { transform: scale(1.15); opacity: .7; }
}

.stats-bar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 30px 20px;
    margin: 0 auto -60px;
    position: relative; z-index: 5;
    box-shadow: var(--shadow-lg);
    transform: translateY(60px);
}
.stat { text-align: center; padding: 5px 15px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: none; }
.stat-icon { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; transition: all .3s; }
.stat:nth-child(1) .stat-icon { background: rgba(74,144,226,.12); color: #4a90e2; }
.stat:nth-child(2) .stat-icon { background: rgba(244,63,94,.12); color: #f43f5e; }
.stat:nth-child(3) .stat-icon { background: rgba(20,184,166,.12); color: #14b8a6; }
.stat:nth-child(4) .stat-icon { background: rgba(139,92,246,.12); color: #8b5cf6; }
.stat:nth-child(1):hover .stat-icon { background: #4a90e2; color: #fff; }
.stat:nth-child(2):hover .stat-icon { background: #f43f5e; color: #fff; }
.stat:nth-child(3):hover .stat-icon { background: #14b8a6; color: #fff; }
.stat:nth-child(4):hover .stat-icon { background: #8b5cf6; color: #fff; }
.stat-icon:hover { transform: scale(1.1) rotate(-5deg); }
.stat-num { font-size: 2.2rem; font-weight: 900; line-height: 1; margin-bottom: 6px; }
.stat:nth-child(1) .stat-num { color: #4a90e2; }
.stat:nth-child(2) .stat-num { color: #f43f5e; }
.stat:nth-child(3) .stat-num { color: #14b8a6; }
.stat:nth-child(4) .stat-num { color: #8b5cf6; }
.stat-label { color: var(--text-mute); font-size: .85rem; }

.section-light { padding: 100px 0 70px; background: transparent; position: relative; }
.section-cream { padding: 70px 0; background: var(--bg-soft); position: relative; }
.section-light::before, .section-cream::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 120px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: .4;
}
.section-title-right { font-size: 1.7rem; margin: 0 0 10px; display: flex; align-items: center; gap: 12px; }
.section-title-right.with-line { position: relative; padding-right: 22px; margin-bottom: 40px; }
.section-title-right.with-line::before {
    content: ''; position: absolute; right: 0; top: 0; bottom: 0;
    width: 5px; border-radius: 3px;
    background: linear-gradient(180deg, #ffd970, #e0a82e 50%, #c98a1e);
    box-shadow: 0 0 20px rgba(224,168,46,.5);
}
.section-title-center {
    text-align: center; font-size: 1.9rem; margin: 0 0 45px;
    display: flex; align-items: center; justify-content: center;
    gap: 22px; flex-wrap: wrap;
    position: relative; padding-bottom: 18px;
}
.section-title-center::after {
    content: ''; position: absolute; bottom: 0; right: 50%; transform: translateX(50%);
    width: 80px; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border-radius: 3px;
}
.section-title-center.light { color: var(--gold); }
.icon-badge {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, #ffd970, #e0a82e 60%, #c98a1e);
    color: #fff; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1rem;
    box-shadow: 0 6px 18px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,.4);
    transition: transform .4s cubic-bezier(.2,.9,.3,1.4);
}
.icon-badge:hover { transform: rotate(360deg) scale(1.1); }
.section-sub-right { color: var(--text-mute); margin: 0 0 35px; font-size: .95rem; }

.start-header { margin-bottom: 40px; }
.start-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px; }
.video-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow-md); transition: all .35s; }
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.video-thumb {
    height: 100%; min-height: 260px;
    background: linear-gradient(135deg, #1a2a42, #0a1628);
    border-radius: var(--r);
    position: relative;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; cursor: pointer;
}
.video-thumb::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(212,175,55,.25), transparent 55%),
        radial-gradient(circle at 70% 60%, rgba(74,144,226,.25), transparent 55%);
}
.play-btn {
    width: 76px; height: 76px; border-radius: 50%;
    background: linear-gradient(135deg, #f5cd5a, #e0a82e);
    color: #0a1628;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; position: relative; z-index: 2;
    box-shadow: 0 0 0 12px rgba(212,175,55,.2);
    animation: pulsePlay 2.4s infinite;
    transition: transform .3s;
}
.video-thumb:hover .play-btn { transform: scale(1.1); }
@keyframes pulsePlay {
    0%, 100% { box-shadow: 0 0 0 12px rgba(212,175,55,.2); }
    50% { box-shadow: 0 0 0 24px rgba(212,175,55,.05); }
}
.video-badge { position: absolute; bottom: 16px; right: 16px; background: rgba(0,0,0,.65); color: var(--gold); padding: 6px 14px; border-radius: 20px; font-size: .8rem; backdrop-filter: blur(6px); }

.start-services { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.service-card {
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 28px 20px; border-radius: var(--r);
    text-align: center; box-shadow: var(--shadow-sm);
    transition: all .35s; position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
    transform: scaleX(0); transform-origin: right;
    transition: transform .4s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-8px) scale(1.015); border-color: var(--gold); box-shadow: var(--shadow-md); }
.service-icon { width: 56px; height: 56px; margin: 0 auto 15px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; transition: all .3s; }
.service-card:nth-child(1) .service-icon { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #4a90e2; }
.service-card:nth-child(2) .service-icon { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }
.service-card:nth-child(3) .service-icon { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #7c3aed; }
.service-card:nth-child(4) .service-icon { background: linear-gradient(135deg, #ccfbf1, #99f6e4); color: #0d9488; }
.service-card:hover .service-icon { background: linear-gradient(135deg, #ffd970, #e0a82e); color: #fff; box-shadow: 0 8px 20px rgba(224,168,46,.4); transform: rotate(-8deg) scale(1.08); }
.service-card h3 { margin: 0 0 5px; font-size: 1rem; }
.service-card p { margin: 0; color: var(--text-mute); font-size: .82rem; }

.two-col-section { display: grid; grid-template-columns: 1.4fr 1fr; gap: 45px; }
.two-col-section.equal { grid-template-columns: 1fr 1fr; }
.col-head { display: flex; gap: 14px; margin-bottom: 28px; align-items: flex-start; }
.col-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, #ffd970, #e0a82e 60%, #c98a1e);
    color: #fff; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
    box-shadow: 0 6px 18px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,.4);
    transition: transform .4s cubic-bezier(.2,.9,.3,1.4);
}
.col-icon:hover { transform: rotate(360deg) scale(1.1); }
.col-head h3 { margin: 0 0 3px; font-size: 1.25rem; }
.col-head p { margin: 0; color: var(--text-mute); font-size: .82rem; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.topic-card {
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 22px 14px; border-radius: var(--r);
    text-align: center; color: inherit;
    transition: all .45s cubic-bezier(.2,.9,.3,1.2);
    display: block;
}
.topic-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(135deg, #ffd970, #e0a82e, #ffd970) border-box;
    box-shadow: 0 20px 48px rgba(224,168,46,.18), 0 0 0 1px rgba(240,193,75,.25);
}
.topic-orbit { width: 76px; height: 76px; margin: 0 auto 14px; position: relative; display: flex; align-items: center; justify-content: center; }
.topic-orbit::before { content: ''; position: absolute; inset: 0; border: 1.5px dashed rgba(212,175,55,.4); border-radius: 50%; animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.planet { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; box-shadow: inset -8px -8px 22px rgba(0,0,0,.4), 0 6px 16px rgba(0,0,0,.3); transition: transform .35s, box-shadow .35s; position: relative; animation: planetFloat 5s ease-in-out infinite; }
@keyframes planetFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.planet::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(135deg, rgba(255,255,255,.4), transparent 50%); pointer-events: none; }
.topic-card:hover .planet { transform: scale(1.12) rotate(15deg); box-shadow: inset -8px -8px 22px rgba(0,0,0,.35), 0 10px 28px rgba(0,0,0,.4), 0 0 40px rgba(224,168,46,.6); }
.planet-0 { background: radial-gradient(circle at 30% 30%, #e5c04a, #7b5c3c); }
.planet-1 { background: radial-gradient(circle at 30% 30%, #6ab0ff, #1a3a5a); }
.planet-2 { background: radial-gradient(circle at 30% 30%, #6ddba0, #1a4a2a); }
.planet-3 { background: radial-gradient(circle at 30% 30%, #ffdb70, #6a4a10); }
.planet-4 { background: radial-gradient(circle at 30% 30%, #b07cff, #3a1a6a); }
.planet-5 { background: radial-gradient(circle at 30% 30%, #d0dae8, #3a4a5a); }
.topic-card h4 { margin: 0 0 4px; font-size: .95rem; }
.topic-card p { margin: 0; color: var(--text-mute); font-size: .78rem; }

.surah-list { list-style: none; padding: 0; margin: 0; }
.surah-list li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 10px; transition: all .25s; cursor: pointer; position: relative; overflow: hidden; }
.surah-list li::before { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, #ffd970, #e0a82e); transform: scaleY(0); transform-origin: bottom; transition: transform .35s; border-radius: 3px; }
.surah-list li:hover::before { transform: scaleY(1); transform-origin: top; }
.surah-list li:hover { border-color: var(--gold); transform: translateX(-6px); box-shadow: var(--shadow-sm); }
.surah-num { width: 44px; height: 44px; background: linear-gradient(135deg, #2b4f7a, #1e3a5f); color: #f0c14b; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; box-shadow: 0 6px 16px rgba(30,58,95,.25); }
.surah-info { flex: 1; }
.surah-info strong { display: block; font-size: .95rem; }
.surah-info span { color: var(--text-mute); font-size: .78rem; }
.surah-arrow { color: var(--gold); font-weight: 700; font-size: 1.2rem; transition: transform .25s; }
.surah-list li:hover .surah-arrow { transform: translateX(-4px); }

.latest-carousel { display: flex; align-items: center; gap: 15px; }
.car-btn { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border); color: var(--text); font-size: 1.5rem; cursor: pointer; flex-shrink: 0; transition: all .25s; }
.car-btn:hover { background: var(--gold); color: var(--text-inv); border-color: var(--gold); transform: scale(1.08); }
.latest-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.latest-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); transition: all .45s cubic-bezier(.2,.9,.3,1.2); position: relative; }
.latest-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.4), transparent 50%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.latest-card:hover::after { opacity: 1; }
.latest-card:hover {
    transform: translateY(-10px);
    border-color: transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(135deg, #ffd970, #e0a82e, #ffd970) border-box;
    box-shadow: 0 24px 60px rgba(224,168,46,.22), 0 0 0 1px rgba(240,193,75,.25);
}
.latest-img { position: relative; height: 190px; overflow: hidden; background: linear-gradient(135deg, #2b4f7a, #1e3a5f); }
.latest-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.3,1), filter .5s; filter: saturate(1.05) contrast(1.02); }
.latest-card:hover .latest-img img { transform: scale(1.12); filter: saturate(1.15) contrast(1.05); }
.latest-badge { position: absolute; top: 14px; right: 14px; background: linear-gradient(135deg, #ffd970, #e0a82e); color: #fff; padding: 5px 14px; border-radius: 20px; font-size: .75rem; font-weight: 700; box-shadow: 0 4px 12px var(--gold-glow); text-shadow: 0 1px 2px rgba(140,95,10,.3); }
.latest-body { padding: 20px; }
.latest-body h3 { margin: 0 0 14px; font-size: 1.02rem; line-height: 1.55; }
.latest-stats { display: flex; gap: 15px; color: var(--text-mute); font-size: .78rem; padding-top: 12px; border-top: 1px dashed var(--border); }
.img-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: rgba(212,175,55,.5); background: linear-gradient(135deg, #2b4f7a, #1e3a5f); }
.img-placeholder.small { font-size: 2rem; }

.col-panel { background: var(--bg-card); border: 1px solid var(--border); padding: 32px; border-radius: var(--r-lg); box-shadow: var(--shadow-md); text-align: center; transition: all .45s cubic-bezier(.2,.9,.3,1.2); position: relative; }
.col-panel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.4), transparent 50%); opacity: 0; transition: opacity .4s; pointer-events: none; border-radius: inherit; }
.col-panel:hover::after { opacity: 1; }
.col-panel:hover { transform: translateY(-10px) scale(1.015); border-color: transparent; background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box, linear-gradient(135deg, #ffd970, #e0a82e, #ffd970) border-box; }
.panel-head { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 28px; }
.panel-icon { width: 40px; height: 40px; background: linear-gradient(135deg, #2b4f7a, #1e3a5f); color: var(--gold); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.panel-head h3 { margin: 0; }
.diagram-sun { position: relative; width: 280px; height: 280px; margin: 0 auto 22px; }
.sun-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #ffdb70, #d4af37, #a8820a); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 60px rgba(212,175,55,.6), inset 0 -8px 24px rgba(0,0,0,.2); }
.sun-core { font-size: 2.4rem; color: #fff; filter: drop-shadow(0 0 8px rgba(255,255,255,.6)); }
.ray { position: absolute; top: 50%; left: 50%; width: 88px; padding: 6px 9px; text-align: center; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 9px; font-size: .72rem; transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-118px) rotate(calc(-1 * var(--angle))); box-shadow: var(--shadow-sm); transition: all .3s; }
.ray:hover { border-color: var(--gold); box-shadow: 0 6px 20px var(--gold-glow); z-index: 3; }
.ray strong { display: block; font-size: .76rem; }
.ray span { color: var(--text-mute); font-size: .68rem; }
.diagram-compass { position: relative; width: 280px; height: 280px; margin: 0 auto 22px; display: flex; align-items: center; justify-content: center; }
.compass-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(212,175,55,.5); animation: spin 45s linear infinite; }
.compass-ring::before { content: ''; position: absolute; inset: 18px; border-radius: 50%; border: 1px solid var(--border); }
.compass-center { width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(135deg, #2b4f7a, #1e3a5f); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 2rem; position: relative; z-index: 2; box-shadow: 0 0 40px var(--gold-glow); }
.compass-needle { position: absolute; top: 18%; bottom: 18%; width: 3px; background: linear-gradient(to bottom, var(--gold) 50%, #c0c0c0 50%); border-radius: 2px; }
.compass-point { position: absolute; background: var(--navy-2); color: var(--gold); padding: 5px 13px; border-radius: 20px; font-size: .72rem; border: 1px solid var(--gold); font-weight: 600; }
.p-n { top: 0; left: 50%; transform: translateX(-50%); }
.p-s { bottom: 0; left: 50%; transform: translateX(-50%); }
.p-e { right: 0; top: 50%; transform: translateY(-50%); }
.p-w { left: 0; top: 50%; transform: translateY(-50%); }
.panel-text { color: var(--text-soft); font-size: .9rem; line-height: 2; margin: 18px 0; padding: 0 10px; font-style: italic; }
.panel-link { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 700; margin-top: 12px; font-size: .9rem; transition: all .25s; }
.panel-link:hover { gap: 12px; color: var(--gold-2); }

.articles-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 35px; flex-wrap: wrap; gap: 15px; }
.articles-head .section-title-right { margin: 0; }
.link-more { color: var(--gold); font-weight: 700; font-size: .9rem; }
.articles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.article-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); transition: all .45s cubic-bezier(.2,.9,.3,1.2); position: relative; }
.article-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.4), transparent 50%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.article-card:hover::after { opacity: 1; }
.article-card:hover {
    transform: translateY(-10px);
    border-color: transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(135deg, #ffd970, #e0a82e, #ffd970) border-box;
    box-shadow: 0 24px 60px rgba(224,168,46,.22), 0 0 0 1px rgba(240,193,75,.25);
}
.article-img { height: 150px; overflow: hidden; background: linear-gradient(135deg, #2b4f7a, #1e3a5f); }
.article-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.3,1), filter .5s; filter: saturate(1.05) contrast(1.02); }
.article-card:hover .article-img img { transform: scale(1.12); filter: saturate(1.15) contrast(1.05); }
.article-body { padding: 18px; }
.article-cat { display: inline-block; background: linear-gradient(135deg, #ffd970, #e0a82e); color: #fff; padding: 3px 11px; border-radius: 12px; font-size: .7rem; font-weight: 700; margin-bottom: 12px; box-shadow: 0 4px 12px rgba(224,168,46,.35); text-shadow: 0 1px 2px rgba(140,95,10,.3); }
.article-body h4 { margin: 0 0 14px; font-size: .92rem; line-height: 1.55; }
.article-meta { display: flex; justify-content: space-between; color: var(--text-mute); font-size: .75rem; padding-top: 12px; border-top: 1px dashed var(--border); }

.testimonials-section { background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(74,144,226,.18), transparent 70%), radial-gradient(ellipse 50% 40% at 80% 40%, rgba(240,193,75,.14), transparent 70%), linear-gradient(135deg, #0d1f3c 0%, #12294a 50%, #0a1730 100%); padding: 80px 0; position: relative; overflow: hidden; }
.testimonials-section::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 15% 20%, rgba(229,192,74,.6), transparent), radial-gradient(1px 1px at 85% 30%, rgba(255,255,255,.5), transparent), radial-gradient(1px 1px at 50% 80%, rgba(229,192,74,.5), transparent); background-size: 180px 180px; opacity: .7; }
.lantern { font-size: 1.7rem; filter: drop-shadow(0 0 12px rgba(255,180,50,.9)); animation: lanternGlow 3s ease-in-out infinite; }
@keyframes lanternGlow {
    0%, 100% { filter: drop-shadow(0 0 12px rgba(255,180,50,.9)); }
    50% { filter: drop-shadow(0 0 24px rgba(255,200,80,1)); }
}
.testimonials-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; z-index: 2; }
.testimonial-card { background: rgba(255,255,255,.06); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(212,175,55,.2); padding: 28px 22px; border-radius: var(--r); position: relative; transition: all .35s; overflow: hidden; }
.testimonial-card::before { content: ''; position: absolute; top: 0; right: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(240,193,75,.6), transparent); opacity: 0; transition: opacity .4s; }
.testimonial-card:hover::before { opacity: 1; }
.testimonial-card:hover { background: rgba(255,255,255,.10); border-color: var(--gold); transform: translateY(-8px); box-shadow: 0 24px 60px rgba(0,0,0,.35), 0 0 0 1px rgba(240,193,75,.5); }
.quote { font-size: 3.5rem; color: var(--gold); line-height: 1; font-family: Georgia, serif; position: absolute; top: 8px; right: 18px; opacity: .45; }
.testimonial-card p { color: rgba(255,255,255,.85); font-size: .88rem; line-height: 1.95; margin: 24px 0 0; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; margin-top: 18px; border-top: 1px solid rgba(212,175,55,.15); }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #ffd970, #e0a82e); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; box-shadow: 0 6px 16px var(--gold-glow); text-shadow: 0 1px 2px rgba(140,95,10,.3); }
.testimonial-author strong { display: block; color: var(--gold); font-size: .85rem; }
.testimonial-author span { color: rgba(255,255,255,.55); font-size: .72rem; }

.newsletter-section { padding: 80px 0; background: transparent; }
.newsletter-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.newsletter-form-box { background: var(--bg-card); border: 1px solid var(--border); border-right: 5px solid var(--gold); padding: 38px; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.newsletter-form-box h3 { margin: 0 0 10px; font-size: 1.35rem; }
.newsletter-form-box > p { color: var(--text-mute); font-size: .9rem; margin-bottom: 22px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input { flex: 1; padding: 14px 20px; border: 2px solid var(--border); border-radius: 30px; font-size: .95rem; background: var(--bg-alt); color: var(--text); transition: all .25s; }
.newsletter-form input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 4px var(--gold-soft); }
.newsletter-form input::placeholder { color: var(--text-mute); }
.newsletter-form button { background: linear-gradient(135deg, #f5cd5a, #e0a82e 60%, #c98a1e); color: #fff; padding: 14px 34px; border: none; border-radius: 30px; font-weight: 700; cursor: pointer; font-size: .95rem; box-shadow: 0 8px 22px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,.4); text-shadow: 0 1px 2px rgba(140,95,10,.3); transition: all .3s; }
.newsletter-form button:hover { transform: translateY(-3px); box-shadow: 0 12px 30px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,.5); }
.newsletter-info { text-align: center; }
.contact-icon { font-size: 3rem; margin-bottom: 12px; animation: lanternGlow 3s infinite; }
.newsletter-info h4 { margin: 0 0 22px; font-size: 1.15rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 22px; }
.contact-list li { padding: 9px 0; color: var(--text-soft); font-size: .9rem; display: flex; align-items: center; justify-content: center; gap: 8px; }
.social-row { display: flex; gap: 10px; justify-content: center; }
.social-row a { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: .95rem; transition: all .25s; box-shadow: 0 2px 8px rgba(30,58,95,.05); }
.social-row a:hover { background: linear-gradient(135deg, #ffd970, #e0a82e); color: #fff; border-color: transparent; transform: translateY(-4px); box-shadow: 0 8px 20px var(--gold-glow); }

.site-footer-rich { background: var(--bg-soft); border-top: 4px solid var(--gold); padding: 65px 0 25px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 35px; margin-bottom: 45px; }
.footer-col h4 { margin: 0 0 20px; font-size: 1rem; padding-bottom: 14px; border-bottom: 1px solid var(--border); position: relative; }
.footer-col h4::after { content: ''; position: absolute; bottom: -1px; right: 0; width: 40px; height: 2px; background: linear-gradient(90deg, #e0a82e, #ffd970); box-shadow: 0 2px 8px rgba(224,168,46,.4); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: var(--text-soft); font-size: .87rem; transition: all .2s; display: inline-block; }
.footer-col a:hover { color: var(--gold); transform: translateX(-4px); }
.footer-bottom { padding-top: 25px; border-top: 1px solid var(--border); text-align: center; }
.footer-bottom p { margin: 6px 0; font-size: .82rem; color: var(--text-mute); }
.footer-credit { font-size: .75rem !important; opacity: .7; }

.page-title { color: var(--text); border-bottom: 3px solid var(--gold); padding-bottom: 12px; margin-bottom: 30px; }
.miracle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; margin: 30px 0; }
.miracle-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); transition: all .35s; display: flex; flex-direction: column; }
.miracle-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.miracle-card img { width: 100%; height: 190px; object-fit: cover; }
.miracle-card .no-image { height: 190px; background: linear-gradient(135deg, #2b4f7a, #1e3a5f); display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 2rem; font-weight: 700; }
.miracle-card h3 { margin: 15px 15px 8px; font-size: 1.05rem; }
.miracle-card a { text-decoration: none; color: inherit; }
.miracle-card p { margin: 0 15px 15px; color: var(--text-mute); font-size: .88rem; }
.miracle-card .read-more { margin: auto 15px 15px; color: var(--gold); font-weight: 700; font-size: .88rem; }
.miracle-single { background: var(--bg-card); border: 1px solid var(--border); padding: 35px; border-radius: var(--r-lg); box-shadow: var(--shadow-md); margin-bottom: 30px; }
.miracle-cats { margin: 15px 0; }
.cat-badge { display: inline-block; background: var(--gold-soft); color: var(--gold); padding: 5px 15px; border-radius: 20px; font-size: .85rem; margin-left: 8px; font-weight: 600; }
.cat-badge:hover { background: var(--gold); color: var(--text-inv); }
.miracle-meta { color: var(--text-mute); font-size: .82rem; margin-bottom: 20px; }
.miracle-thumb img { width: 100%; max-height: 450px; object-fit: cover; border-radius: var(--r); margin-bottom: 20px; }
.miracle-content { font-size: 1.05rem; color: var(--text-soft); line-height: 2; margin: 25px 0; }
.miracle-video, .miracle-gallery { margin-top: 30px; }
.miracle-video h2, .miracle-gallery h2 { border-right: 4px solid var(--gold); padding-right: 12px; font-size: 1.25rem; margin-bottom: 15px; }
.video-wrapper iframe { width: 100%; aspect-ratio: 16/9; border-radius: var(--r); border: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gallery-item img { width: 100%; height: 130px; object-fit: cover; border-radius: var(--r-sm); transition: transform .2s; }
.gallery-item:hover img { transform: scale(1.03); }
.back-link { margin-top: 30px; }
.back-link a { color: var(--gold); font-weight: 700; }
.category-desc { color: var(--text-mute); text-align: center; margin-bottom: 30px; }

.alert { padding: 13px 20px; border-radius: 10px; margin-bottom: 20px; font-weight: 700; font-size: .9rem; }
.alert-success { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: #047857; border-right: 4px solid #10b981; }
.alert-error { background: linear-gradient(135deg, #fef2f2, #fee2e2); color: #b91c1c; border-right: 4px solid #ef4444; }
html[data-theme="dark"] .alert-success { background: rgba(16,185,129,.15); color: #6ee7b7; }
html[data-theme="dark"] .alert-error { background: rgba(239,68,68,.15); color: #fca5a5; }

@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-visual { height: 320px; order: -1; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); padding: 24px 18px; }
    .stat { padding: 12px; border: none; border-bottom: 1px solid var(--border); }
    .start-grid { grid-template-columns: 1fr; }
    .two-col-section, .two-col-section.equal { grid-template-columns: 1fr; }
    .latest-grid { grid-template-columns: repeat(2, 1fr); }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .newsletter-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .hero-nav { overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; padding-bottom: 14px; }
    .hero-nav a { white-space: nowrap; }
    .stats-bar { grid-template-columns: 1fr; transform: translateY(30px); }
    .topic-grid { grid-template-columns: repeat(2, 1fr); }
    .latest-grid, .articles-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .top-center { display: none; }
    .start-services { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .diagram-sun, .diagram-compass { width: 250px; height: 250px; }
    .section-title-center { font-size: 1.4rem; }
    .latest-carousel .car-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}