@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Cairo, Arial, sans-serif;
    color: #152033;
    background: #fff;
    line-height: 1.8;
}

.container {
    width: min(1180px, 92%);
    margin: auto;
}

.narrow {
    max-width: 860px;
}


/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #edf0f4;
}

.nav {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: var(--accent);
    font-size: 22px;
}

.menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.menu a {
    color: #27354a;
    text-decoration: none;
    font-weight: 600;
}

.menu-toggle {
    display: none;
}


/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    padding: 12px 22px;
    background: var(--accent);
    color: #fff !important;
    text-decoration: none;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

.btn.secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,.3);
}


/* Hero */

.hero {
    min-height: 720px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 20% 20%,
            #1e405d 0,
            var(--primary) 45%,
            #071522 100%
        );
    color: #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 70px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(40px,6vw,76px);
    line-height: 1.18;
    margin: 15px 0 24px;
    letter-spacing: -2px;
}

.hero p {
    font-size: 19px;
    color: #d9e3ec;
}

.eyebrow,
.section-head span {
    color: var(--accent);
    font-weight: 800;
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.hero-card {
    padding: 42px;
    border-radius: 28px;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.16),
            rgba(255,255,255,.05)
        );
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 30px 80px rgba(0,0,0,.25);
    transform-style: preserve-3d;
}

.justice-icon {
    font-size: 90px;
    color: var(--accent);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: .15;
    background: var(--accent);
}

.hero-orb.one {
    width: 400px;
    height: 400px;
    left: -150px;
    top: -120px;
}

.hero-orb.two {
    width: 260px;
    height: 260px;
    right: 5%;
    bottom: -100px;
}


/* General Sections */

.section {
    padding: 95px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 45px;
}

.section-head h2,
.section h2 {
    font-size: clamp(30px,4vw,48px);
    line-height: 1.3;
    margin: 10px 0;
}


/* Cards */

.cards {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 24px;
}

.card {
    display: block;
    padding: 30px;
    border: 1px solid #e8edf2;
    border-radius: 20px;
    background: #fff;
    color: #152033;
    text-decoration: none;
    box-shadow: 0 12px 35px rgba(10,30,50,.06);
    transition: .25s;
}

.card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 50px rgba(10,30,50,.12);
}

.card i {
    font-size: 32px;
    color: var(--accent);
}

.card h3,
.card h2 {
    line-height: 1.45;
    color: #152033;
}

.card p {
    color: #415064;
}

.card small {
    color: #64748b;
}

.card a {
    color: var(--primary);
    text-decoration: none;
}


/* Dark Sections */

.dark {
    background: var(--primary);
    color: #fff;
}

/*
|--------------------------------------------------------------------------
| Fix cards inside dark sections
|--------------------------------------------------------------------------
*/

.dark .card {
    background: #fff;
    color: #152033;
}

.dark .card h2,
.dark .card h3 {
    color: #152033;
}

.dark .card p {
    color: #415064;
}

.dark .card small {
    color: #64748b;
}

.dark .card a {
    color: var(--primary);
}


/* About */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
}

.stats div {
    padding: 25px;
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    text-align: center;
}

.stats strong {
    display: block;
    font-size: 34px;
    color: var(--accent);
}


/* Consultation */

.consultation {
    background: #f3f6f9;
}

.form-wrap {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 55px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

input,
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d9e0e7;
    border-radius: 10px;
    font: inherit;
    background: #fff;
}

textarea {
    resize: vertical;
}

form > * + * {
    margin-top: 14px;
}


/* Inner Page Hero */

.page-hero {
    padding: 90px 0;
    background:
        linear-gradient(
            135deg,
            var(--primary),
            #173d5c
        );
    color: #fff;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(38px,5vw,64px);
    margin: 0;
}


/* Search */

.search {
    display: flex;
    max-width: 580px;
    margin: 30px auto 0;
    gap: 10px;
}


/* Blog */

.blog-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 35px;
}

.blog-layout aside {
    border: 1px solid #e8edf2;
    border-radius: 18px;
    padding: 22px;
    height: max-content;
}

.blog-layout aside a {
    display: block;
    padding: 9px;
    color: var(--primary);
    text-decoration: none;
}

.blog-layout aside .child {
    padding-right: 25px;
    color: #64748b;
}


/* Article */

.article {
    font-size: 18px;
}

.article h2 {
    font-size: 32px;
}

.article img {
    max-width: 100%;
    border-radius: 16px;
}

.article figure {
    text-align: center;
    margin: 35px 0;
}

.video {
    position: relative;
    padding-top: 56.25%;
    margin: 35px 0;
}

.video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 18px;
}

.inline-link {
    color: #1266d6;
    font-weight: 700;
}

.article blockquote {
    border-right: 5px solid var(--accent);
    background: #f5f7fa;
    padding: 25px;
    border-radius: 12px;
    font-size: 21px;
}

.article cite {
    display: block;
    color: #6b7280;
    font-size: 14px;
}


/* Alert */

.alert {
    background: #fff4d6;
    border: 1px solid #f0d58b;
    padding: 18px;
    border-radius: 12px;
}


/* Flash Message */

.flash {
    position: fixed;
    top: 95px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: #15803d;
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
}


/* WhatsApp */

.whatsapp {
    position: fixed;
    bottom: 22px;
    left: 22px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #25d366;
    color: #fff;
    font-size: 30px;
    z-index: 70;
    box-shadow: 0 12px 35px rgba(0,0,0,.25);
}


/* Footer */

footer {
    background: #071522;
    color: #d7e0e8;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

.footer-grid a {
    display: block;
    color: #d7e0e8;
    text-decoration: none;
    margin: 8px 0;
}

.copyright {
    text-align: center;
    border-top: 1px solid #263747;
    margin-top: 45px;
    padding: 20px;
}


/* Reveal Animation */

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: .7s;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}


/* Tablet */

@media(max-width:900px) {

    .menu-toggle {
        display: block;
    }

    .menu {
        display: none;
        position: absolute;
        top: 82px;
        right: 4%;
        left: 4%;
        flex-direction: column;
        background: #fff;
        padding: 25px;
        border-radius: 16px;
        box-shadow: 0 15px 40px rgba(0,0,0,.16);
    }

    .menu.open {
        display: flex;
    }

    .hero-grid,
    .about-grid,
    .form-wrap,
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding: 90px 0;
    }

    .cards {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }
}


/* Mobile */

@media(max-width:580px) {

    .cards,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .actions {
        flex-direction: column;
    }

    .section {
        padding: 65px 0;
    }
}






/* =========================
   مؤثرات الصفحة الرئيسية كاملة حركات
   ========================= */

.hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(184, 148, 85, 0.18) 0%,
        rgba(184, 148, 85, 0.08) 40%,
        transparent 72%
    );
    top: -160px;
    right: -140px;
    animation: heroGlowMove 10s ease-in-out infinite alternate;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255,255,255,0.08) 0%,
        rgba(255,255,255,0.03) 45%,
        transparent 75%
    );
    bottom: -170px;
    left: -120px;
    animation: heroGlowMoveSecond 13s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes heroGlowMove {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-70px, 55px) scale(1.18);
    }
}

@keyframes heroGlowMoveSecond {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(85px, -45px) scale(1.12);
    }
}

/* مؤثرات اول جزء يظهر في الصفحة ا لرئيسية */
/* Hero Card Floating Motion */

.hero-card {
    animation: heroCardFloat 5s ease-in-out infinite;
}

@keyframes heroCardFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }

    100% {
        transform: translateY(0);
    }
}


/* Justice Icon Glow */

.justice-icon {
    animation: justiceGlow 3s ease-in-out infinite;
    text-shadow: 0 0 0 rgba(184, 148, 85, 0);
}

@keyframes justiceGlow {
    0%,
    100% {
        text-shadow:
            0 0 5px rgba(184, 148, 85, 0.15);
    }

    50% {
        text-shadow:
            0 0 18px rgba(184, 148, 85, 0.65),
            0 0 35px rgba(184, 148, 85, 0.25);
    }
}








/* Button Hover Effects */

.btn {
    position: relative;
    overflow: hidden;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 12px 28px rgba(184, 148, 85, .28),
        0 0 18px rgba(184, 148, 85, .18);
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,.38),
        transparent
    );
    transform: skewX(-20deg);
    transition: left .55s ease;
}

.btn:hover::before {
    left: 140%;
}

.btn:active {
    transform: translateY(-1px) scale(.98);
}


/* مؤثرات ازار الشاشة الرئيسية */

.btn.secondary:hover {
    background: rgba(255,255,255,.08);
    border-color: var(--accent);
    box-shadow:
        0 10px 28px rgba(0,0,0,.18),
        0 0 15px rgba(184,148,85,.18);
}


/* Menu Hover */

.menu a:not(.btn) {
    position: relative;
    transition: color .25s ease;
}

.menu a:not(.btn)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width .3s ease;
}

.menu a:not(.btn):hover {
    color: var(--accent);
}

.menu a:not(.btn):hover::after {
    width: 100%;
}
/* =========================
   شكل أزرار مشاركة المقاله فيس وواتس
   ========================= */

.article-share-section {
    padding: 28px 0 10px;
    background: #fff;
}

.article-share-box {
    text-align: center;
}

.share-label {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    min-width: 130px;
    height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #fff !important;
    text-decoration: none;
    font-family: Cairo, Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        opacity .25s ease;
}

.share-btn i {
    font-size: 20px;
}

.share-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,.18);
}

.whatsapp-share {
    background: #25d366;
}

.facebook-share {
    background: #1877f2;
}

.instagram-share {
    background: linear-gradient(
        135deg,
        #833ab4,
        #fd1d1d,
        #fcb045
    );
}

@media(max-width:580px) {

    .share-buttons {
        gap: 8px;
    }

    .share-btn {
        min-width: 100%;
    }
}



/* =========================
   شكل ازرار لايك + تعليقات المدونة
   ========================= */

.article-interaction {
    padding: 10px 0 25px;
    background: #fff;
}

.like-box {
    display: flex;
    justify-content: center;
}

.like-box form {
    margin: 0;
}

.like-button {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #152033;
    border-radius: 14px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: Cairo, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s ease;
}

.like-button i {
    font-size: 21px;
    color: #dc2626;
}

.like-button strong {
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: #f3f4f6;
    color: #152033;
    font-size: 14px;
}

.like-button:hover {
    transform: translateY(-3px);
    border-color: #dc2626;
    box-shadow: 0 10px 25px rgba(220,38,38,.12);
}

.like-button.liked {
    background: #fff1f2;
    border-color: #fecdd3;
}

.like-button.liked i {
    animation: likePulse .35s ease;
}

@keyframes likePulse {
    0% {
        transform: scale(.8);
    }

    50% {
        transform: scale(1.25);
    }

    100% {
        transform: scale(1);
    }
}


/* Comments */

.comments-section {
    padding: 55px 0 90px;
    background: #f7f9fb;
}

.comments-header {
    text-align: center;
    margin-bottom: 30px;
}

.comments-header span {
    color: var(--accent);
    font-weight: 800;
}

.comments-header h2 {
    font-size: 36px;
    margin: 8px 0;
    color: var(--primary);
}

.comments-header p {
    margin: 0;
    color: #64748b;
}


/* Comment Form */

.comment-form {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 12px 35px rgba(10,30,50,.06);
    margin-bottom: 35px;
}

.comment-form label {
    display: block;
    font-weight: 700;
    color: #152033;
    margin-bottom: 18px;
}

.comment-form input,
.comment-form textarea {
    margin-top: 7px;
    background: #fff;
}

.comment-form .btn {
    margin-top: 5px;
}

.comment-errors {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #b91c1c;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.comment-errors p {
    margin: 0;
}


/* Comments List */

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(10,30,50,.05);
}

.comment-avatar {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 18px;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.comment-meta strong {
    color: #152033;
    font-size: 16px;
}

.comment-meta span {
    color: #94a3b8;
    font-size: 13px;
}

.comment-content p {
    margin: 0;
    color: #334155;
    line-height: 1.9;
}

.no-comments {
    background: #fff;
    border: 1px dashed #cbd5e1;
    padding: 25px;
    text-align: center;
    border-radius: 16px;
    color: #64748b;
}


/* Mobile */

@media(max-width:580px) {

    .comments-header h2 {
        font-size: 30px;
    }

    .comment-form {
        padding: 20px;
    }

    .comment-card {
        gap: 12px;
        padding: 16px;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 16px;
    }
}




/* =========================
   Homepage Hero Background Slider
   ========================= */

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    opacity: 0;
    transform: scale(1.03);

    transition:
        opacity 1.2s ease-in-out,
        transform 7s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}


/* الطبقة الكحلي الشفافة فوق الصور */

.hero-image-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(7, 21, 34, 0.88) 0%,
            rgba(12, 38, 60, 0.78) 50%,
            rgba(7, 21, 34, 0.72) 100%
        );

    pointer-events: none;
}


/* إبقاء المحتوى فوق الصورة والطبقة */

.hero-has-slides .hero-grid {
    position: relative;
    z-index: 3;
}

.hero-has-slides .hero-orb {
    z-index: 2;
}


/* إبقاء المؤثرات الحالية ظاهرة فوق الخلفية */

.hero-has-slides::before,
.hero-has-slides::after {
    z-index: 2;
}


/* تحسين وضوح النص */

.hero-has-slides h1 {
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.28);
}

.hero-has-slides .reveal > p {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}


/* الموبايل */

@media(max-width: 580px) {

    .hero-slide {
        background-position: center center;
    }

    .hero-image-overlay {
        background:
            rgba(7, 21, 34, 0.80);
    }

}