        * {
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
        }

        nav {
            background-color: #0d4800;
            color: white;
            padding: 10px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
        }

        /* القائمة العادية */
        .list-link ul {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
        }

        .list-link ul li {
            margin: 0 15px;
        }

        .list-link ul li a {
            color: white;
            text-decoration: none;
        }

        .list-link ul li a:hover {
            text-decoration: underline;
        }

        /* زر القائمة (الهامبرغر) */
        .menu-toggle {
            display: none;
            font-size: 28px;
            cursor: pointer;
        }

        /* القائمة الجانبية */
        .sidebar {
            position: fixed;
            top: 0;
            right: -250px;
            /* مخفية */
            width: 250px;
            height: 100%;
            background: #0d4800;
            padding-top: 60px;
            transition: 0.3s;
            z-index: 2000;
        }

        .sidebar ul {
            list-style: none;
            padding: 0;
        }

        .sidebar ul li {
            padding: 15px;
            text-align: center;
        }

        .sidebar ul li a {
            color: white;
            text-decoration: none;
            display: block;
        }

        .sidebar ul li a:hover {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 5px;
        }

        .home-contant {
            font-size: 2em;
            font-weight: bold;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100%;
            padding: 25px;
        }

        .home-text h5 {
            background-color: #0d4800;
            color: rgb(255, 255, 255);
            padding: 10px;
            border-radius: 50px;
            width: fit-content;
            margin-bottom: 20px;
        }

        .home-text h1 {
            color: #0d4800;
        }

        .home-text h4 {
            color: #4e6749;
        }

        .home-btns {
            display: flex;
            justify-content: start;
            align-items: center;
            gap: 20px;
            margin-top: 20px;
        }

        .word {
            display: inline-flex;
            align-items: flex-end;
            /* محاذاة خط الأساس تقريبًا */
            padding: clamp(12px, 3vw, 28px);
            border-radius: 22px;
            background: rgba(255, 255, 255, 0.02);
            backdrop-filter: blur(2px);
        }

        .letter {
            width: clamp(64px, 12vw, 160px);
            height: clamp(64px, 12vw, 160px);
            display: inline-block;
            position: relative;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
        }

        .letter img {
            width: 100%;
            object-fit: cover;
            display: block;
        }

        /* الميم: دوران سلس لا نهائي */
        .spin {
            animation: spin 6s linear infinite;
            will-change: transform;
        }

        /* احترام تفضيل تقليل الحركة */
        @media (prefers-reduced-motion: reduce) {
            .spin {
                animation: none;
            }
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* زر التحكم اختياري */
        .controls {
            margin-top: 18px;
            display: flex;
            gap: 10px;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            font-size: 14px;
        }

        .btn {
            padding: 10px 14px;
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(255, 255, 255, 0.06);
            color: inherit;
            cursor: pointer;
            transition: transform .12s ease, background .2s ease;
        }

        .btn:active {
            transform: translateY(1px);
        }

        input[type="range"] {
            width: clamp(160px, 40vw, 360px);
        }

        .caption {
            opacity: .75;
            font-size: 13px;
            text-align: center;
            margin-top: 8px;
        }

        .meem {
            align-self: center;
            /* يضع الميم في منتصف الحروف عموديًا */
            transform: translateY(35%);
        }

        .home {
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            height: 100vh;
            padding: 0 20px;
            background-image: url('assets/header.png');
            background-size: cover;
            background-position: center;
            z-index: 1;
        }

        .home::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(255, 255, 255, 0.6);
            z-index: 0;
        }

        .home-text {
            position: relative;
            z-index: 2;
            text-align: start;
        }

        .btn-contact {
            width: 25%;
            font-size: 25px;
            text-decoration: none;
            background-color: rgb(183, 241, 198);
            color: #4e6749;
            padding: 20px;
            border-radius: 15px;
        }

        .btn-contact:hover {
            background-color: #96c69b;
            color: rgb(203, 255, 217);

        }

        .btn-courses {
            width: 25%;
            font-size: 25px;
            text-decoration: none;
            background-color: #4e6749;
            color: rgb(183, 241, 198);
            padding: 20px;
            border-radius: 15px;
        }

        .btn-courses:hover {
            background-color: #96c69b;
            color: rgb(203, 255, 217);
        }


        .text-title {
            color: rgb(0, 81, 22);
            font-size: 50px;
        }

        .about,
        .teachers,
        .faq-section,
        .contact {
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            height: 100vh;
            padding: 0 20px;
            background: linear-gradient(to bottom right, #ecfeff, #b7f1c6);
            z-index: 1;
        }

        .services,
        .actions,.clients {
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            height: 100vh;
            padding: 0 20px;
            background: linear-gradient(to top right, #ecfeff, #b7f1c6);
            z-index: 1;
        }

        .about-contant {
            margin: 25px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .about-img {
            background-image: url('assets/about.jpg');
            background-size: cover;
            background-position: center;
            border-radius: 80% 20% 60% 40% / 50% 62% 38% 50%;
            height: 400px;
            width: 100%;

        }

        .about-details {
            padding: 25px;
            text-align: start;
            height: 100%
        }

        .about-details p {
            font-size: 27px;
            text-align: justify;
        }

        .service-contant {
            display: flex;
            justify-content: center;
            height: 250px;
        }

        .big-mark {
            height: 100%;
            width: 15px;
            background-color: #4e6749;
            border-radius: 50px;
            margin: 10px;
        }

        .contant-mark {
            display: flex;
            justify-content: center;
            align-items: end;
        }

        .height-contant-mark {
            height: 67.3px
        }

        .small-mark {
            width: 50px;
            height: 7px;
            background-color: #4e6749;
            margin-top: 53%;
            display: flex;
            align-items: center;
            margin-left: 10px;
            border-radius: 50px
        }

        .card-wrapper {
            position: relative;
            width: 300px;
            height: 400px;
            perspective: 1000px;
            cursor: pointer;
            flex-shrink: 0;
        }

        .frame {
            position: absolute;
            inset: 0;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(3px);
            border: 4px solid rgba(255, 255, 255, 0.5);
            border-radius: 15px;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: opacity 0.3s ease;
        }

        .frame img {
            width: 90%;
            border-radius: 10px;
            display: block;
            z-index: 1;
        }

        .shard {
            position: absolute;
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.5);
            backdrop-filter: blur(3px);
            transition: transform 0.8s ease, opacity 0.8s ease;
        }

        .details {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            opacity: 0;
            pointer-events: none;
            padding: 20px;
            background: #fff;
            border-radius: 15px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
            transition: opacity 0.6s ease;
        }

        .details h2 {
            margin: 0 0 10px;
        }

        .details p {
            color: #555;
            font-size: 0.9rem;
            margin: 0;
        }

        #cardsContainer {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
        }

        .carousel {
            position: relative;
            width: 300px;
            height: 300px;
            transform-style: preserve-3d;
            animation: rotate 20s linear infinite;
        }

        .carousel img {
            position: absolute;
            width: 360px;
            height: 260px;
            left: 20px;
            top: 70px;
            border-radius: 15px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
            transition: transform 0.3s;
            cursor: pointer;
        }

        .carousel img:hover {
            transform: scale(1.1);
            box-shadow: 0 15px 30px rgba(255, 255, 255, 0.6);
        }

        @keyframes rotate {
            from {
                transform: rotateY(0deg);
            }

            to {
                transform: rotateY(360deg);
            }
        }

        .container {
            width: min(1200px, 94%);
            margin-inline: auto;
            padding: 48px 0 96px;
        }

        header {
            display: grid;
            gap: 12px;
            justify-items: center;
            margin-bottom: 28px;
            text-align: center
        }

        h1 {
            margin: 0;
            font-size: clamp(24px, 4vw, 42px);
            letter-spacing: .5px
        }

        .lead {
            max-width: 800px;
            color: #a9b5c9;
            line-height: 1.8
        }

        /* --- 3D Stage --- */
        .stage {
            perspective: 1400px;
            perspective-origin: 50% 40%;
            position: relative;
        }

        /* --- Masonry-like responsive grid --- */
        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 26px;
            transform-style: preserve-3d;
        }

        /* --- Card --- */
        .card {
            position: relative;
            border-radius: 22px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.06)) padding-box, linear-gradient(135deg, #306824, rgb(120 241 99 / 20%)) border-box;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow:
                0 12px 40px rgba(0, 0, 0, .45),
                0 0 0 1px rgba(255, 255, 255, .03) inset;
            padding: 22px;
            transform-style: preserve-3d;
            transform: translateZ(0);
            transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
            overflow: clip;
            isolation: isolate;
            min-height: 210px;
        }

        .card:hover {
            box-shadow: 0 22px 70px rgba(0, 0, 0, .55), 0 0 0 rgba(125, 211, 252, 0.0);
        }

        /* Glow ring */
        .ring {
            position: absolute;
            inset: -1px;
            border-radius: inherit;
            pointer-events: none;
            background: radial-gradient(350px 200px at var(--mx, 50%) var(--my, 50%), rgba(125, 211, 252, .20), transparent 60%);
            mix-blend-mode: screen;
            opacity: .6;
            transition: opacity .2s ease;
        }

        .card:hover .ring {
            opacity: .9
        }

        .head {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 12px;
            transform: translateZ(35px);
        }

        .avatar {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            flex: 0 0 auto;
            position: relative;
            overflow: hidden;
            background: linear-gradient(135deg, #38bdf8, #818cf8);
            box-shadow: 0 8px 24px rgba(56, 189, 248, .45);
            transform: translateZ(45px);
        }

        .avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            opacity: .9
        }

        .meta {
            display: grid
        }

        .name {
            font-weight: 800;
            font-size: 18px
        }

        .role {
            font-size: 13px;
            color: #035200
        }

        .stars {
            display: flex;
            gap: 4px;
            margin-bottom: 8px;
            transform: translateZ(30px)
        }

        .stars svg {
            width: 18px;
            height: 18px;
            opacity: .95
        }

        .quote {
            position: relative;
            color: #dfe7f7;
            line-height: 1.9;
            font-weight: 500;
            text-wrap: pretty;
            transform: translateZ(18px);
        }

        /* Accent corner */
        .corner {
            position: absolute;
            inset: auto 12px 12px auto;
            width: 56px;
            height: 56px;
            border-radius: 14px;
            background: radial-gradient(100px 70px at 70% 30%, rgba(56, 189, 248, .35), rgba(99, 102, 241, .2));
            filter: blur(18px);
            opacity: .7;
            transform: translateZ(60px);
        }

        /* Floating particles for depth */
        .particle {
            position: absolute;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: radial-gradient(circle at 30% 30%, #fff, rgba(255, 255, 255, .1));
            opacity: .6;
            filter: blur(.3px);
            pointer-events: none;
        }

        /* Footer badge */
        .badge {
            position: absolute;
            left: 16px;
            bottom: 12px;
            font-size: 12px;
            color: #ffffff;
            background: rgba(255, 255, 255, .04);
            border: 1px solid rgba(255, 255, 255, .08);
            padding: 6px 10px;
            border-radius: 999px;
            backdrop-filter: blur(6px);
            transform: translateZ(45px);
        }

        /* Drag-to-tilt hint */
        .hint {
            color: #8f1414;
            text-align: center;
            margin-top: 12px;
            font-size: 14px
        }

        /* Subtle entrance */
        @keyframes popIn {
            from {
                opacity: 0;
                transform: translateY(10px)
            }

            to {
                opacity: 1;
                transform: none
            }
        }

        .card {
            animation: popIn .45s both
        }

        /* Responsive fine-tuning */
        @media (max-width:520px) {
            .head {
                gap: 10px
            }

            .avatar {
                width: 46px;
                height: 46px
            }
        }

        .contact-cards {
            display: flex;
            gap: 2rem;
            flex-wrap: wrap;
            justify-content: center;
        }

        .contact-card {
            background: #fff;
            border-radius: 20px;
            padding: 2rem 3rem;
            width: 320px;
            text-align: center;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .contact-card:hover {
            transform: translateY(-10px) scale(1.05);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
        }

        .contact-card h2 {
            font-size: 3rem;
            margin-bottom: 1rem;
        }

        .big-text {
            font-size: 1.2rem;
            font-weight: bold;
            color: #333;
        }

        @media (max-width: 768px) {
            .contact-cards {
                flex-direction: column;
                gap: 1.5rem;
            }
        }

        footer {
            background: linear-gradient(to bottom right, #ecfeff, #b7f1c6, #ecfeff);
            padding: 60px 20px 6px 20px;

            height: auto;
            text-align: center;
        }

        .footer-contant {
            display: flex;
            justify-content: center;
            text-align: start
        }

        .bubbles-footer {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
        }

        .bubble-row-footer {
            display: flex;
            gap: 30px;
            justify-content: center;
        }

        .bubble-footer {
            width: 40px;
            height: 40px;
            background: #c1edae;
            backdrop-filter: blur(5px);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            animation: wave 4s ease-in-out infinite;
            transition: transform 0.3s ease;
            cursor: pointer;
        }

        .bubble-footer img {
            width: 20px;
            height: 20px;
        }

        .bubble-footer:nth-child(1) {
            animation-delay: 0s;
        }

        .bubble-footer:nth-child(2) {
            animation-delay: 0.3s;
        }

        .bubble-footer:nth-child(3) {
            animation-delay: 0.6s;
        }

        .bubble-footer:nth-child(4) {
            animation-delay: 0.9s;
        }

        .bubble-footer:nth-child(5) {
            animation-delay: 1.2s;
        }

        .bubble-footer:nth-child(6) {
            animation-delay: 1.5s;
        }

        .bubble-footer:hover {
            transform: scale(1.3);
        }

        @keyframes wave {

            0%,
            100% {
                transform: translateY(0px);
            }

            50% {
                transform: translateY(-15px);
            }
        }

        footer h3 {
            color: #0d4800;
            font-weight: bold;

        }

        footer p {
            color: #0d4800;
            font-weight: bold;
            margin-bottom: 20px;
        }

        .footer-col {
            width: 33%;
        }

        .service-details {
            display: flex;
        }

        .shard-1 {
            width: 60px;
            height: 60px;
            top: 20px;
            left: 30px;
        }

        .shard-2 {
            width: 50px;
            height: 50px;
            top: 100px;
            left: 225px;
        }

        .shard-3 {
            width: 40px;
            height: 40px;
            top: 345px;
            left: 80px;
        }


.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header .eyebrow {
  color: #7EAD3B;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.section-header .title {
  font-size: 2rem;
  color: #333;
}

      

        .faq-grid {
            max-width: 800px;
            margin: auto;
            display: grid;
            gap: 20px;
        }

        .faq-item {
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .faq-q {
            cursor: pointer;
            padding: 18px 20px;
            font-weight: 600;
            color: #333;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .faq-q:hover {
            background: #f9fff5;
        }

        .faq-q .icon {
            width: 20px;
            height: 20px;
            stroke: #7EAD3B;
            stroke-width: 2;
            fill: none;
            transition: transform 0.3s ease;
        }

        .faq-a {
            max-height: 0;
            overflow: hidden;
            padding: 0 20px;
            font-size: 0.95rem;
            color: #555;
            line-height: 1.6;
            transition: all 0.4s ease;
        }

        /* عند الفتح */
        .faq-item.active .faq-a {
            max-height: 200px;
            /* يكفي لفقرتين */
            padding: 15px 20px;
        }

        .faq-item.active .faq-q .icon {
            transform: rotate(180deg);
        }



        /* ميديا كويري للشاشات الصغيرة (موبايل) */
        @media (max-width: 600px) {

            .carousel {
                width: 47vw;
                /* تقريباً عرض الشاشة */
                height: 70vw;
                /* يخلي الارتفاع متناسب */
            }

            .carousel img {
                width: 100%;
                height: 200px;
                left: 0;
                top: 5%;
                transform: rotateY 180px !important;

            }

            .home-contant,
            .service-contant,
            .about-contant,
            .footer-contant {

                display: block;

                padding-top: 50px;
            }


            .service-logo {
                width: 200px;
            }

            .service-contant .home-text {

                text-align: center;
            }

            .about,
            .teachers,
            .clients,.faq-section {

                height: auto;
            }

            .service-details {
                height: 100%;
            }

            .service-contant {

                height: auto;
            }

            .big-mark {
                height: 70%;
            }

            .btn-courses,
            .btn-contact {
                width: 45%;
                font-size: 20px;
            }

            .footer-col {
                width: 100%;
            }

            .list-link {
                display: none;
            }

            /* اخفاء القائمة العادية */
            .menu-toggle {
                display: block;
            }

            .about-img {
                height: 300px;

            }

            .contant-mark h2 {
                width: 100%;
                text-align: start;
                font-size: 18px !important;
            }

            .card-wrapper {
                width: 200px;
                height: 300px;

            }

            .shard-1 {
                width: 40px;
                height: 40px;
                top: 20px;
                left: 30px;
            }

            .shard-2 {
                width: 25px;
                height: 25px;
                top: 100px;
                left: 160px;
            }

            .shard-3 {
                width: 25px;
                height: 25px;
                top: 260px;
                left: 80px;
            }
        }