:root {
            --primary: #12284C; 
            --gold-light: #E4C580;
            --gold: #D4AF37; 
            --gold-dark: #9B7D23;
            --text-light: #F8F9FA;
        }

        .dr-mahmoud-hero {
            background-color: var(--primary);
            background-image: radial-gradient(circle at 50% 50%, #111D4A 0%, var(--primary) 80%);
            font-family: 'Tajawal', sans-serif;
            display: grid;
            grid-template-columns: 1fr 1fr;
            align-items: center;
            width: 100%;
            min-height: 100vh; 
            padding: 120px 5% 40px 5%; 
            position: relative;
            z-index: 2;
            overflow: hidden;
        }

        .dr-mahmoud-hero .hero-content { padding-left: 2rem; }
        
        .dr-mahmoud-hero .hero-title {
            font-size: 4.5rem;
            font-weight: 800;
            background: #ffffff;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 0.5rem;
            line-height: 1.2;
        }
        
        .dr-mahmoud-hero .hero-subtitle {
            font-size: 1.8rem;
            font-weight: 500;
            line-height: 1.4;
            margin-bottom: 2.5rem;
            max-width: 95%;
            color: var(--text-light);
        }
        
        .dr-mahmoud-hero .hero-stats {
            display: flex;
            flex-direction: column;
            gap: 1.2rem;
            margin-bottom: 2.5rem;
            font-size: 1.3rem;
            font-weight: 500;
            color: var(--text-light);
        }
        
        .dr-mahmoud-hero .stat-row {
            display: flex;
            align-items: center;
        }
        
        .dr-mahmoud-hero .stat-png-icon,
        .dr-mahmoud-hero .scroll-png-icon {
            display: inline-block;
            background-color: var(--gold);
            -webkit-mask-size: contain;
            mask-size: contain;
            -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
            -webkit-mask-position: center;
            mask-position: center;
        }

        .dr-mahmoud-hero .stat-png-icon {
            width: 32px;
            height: 32px;
            margin-left: 15px;
        }
        
        .dr-mahmoud-hero .counter {
            font-weight: 800;
            color: var(--gold-light);
            margin-right: 5px;
        }

        .dr-mahmoud-hero .hero-bio {
            font-size: 1.1rem;
            line-height: 1.8;
            color: #CBD5E1;
            margin-bottom: 3rem;
            font-weight: 300;
            border-right: 3px solid var(--gold);
            padding-right: 15px;
        }
        
        .dr-mahmoud-hero .cta-btn {
            display: inline-block;
            background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
            color: var(--primary);
            padding: 1rem 2.5rem;
            border-radius: 50px;
            text-decoration: none;
            font-size: 1.1rem;
            font-weight: 700;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
        }
        
        .dr-mahmoud-hero .cta-btn:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 25px rgba(212, 175, 55, 0.4);
        }

        .dr-mahmoud-hero .hero-visual {
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
        }

        .dr-mahmoud-hero .modern-image-container {
            position: relative;
            width: 450px;
            height: 550px;
        }

        .dr-mahmoud-hero .modern-frame {
            position: absolute;
            top: -20px;
            left: -20px;
            width: 100%;
            height: 100%;
            border: 3px solid var(--gold);
            border-radius: 24px;
            z-index: 1;
            transition: transform 0.5s ease;
        }

        /* تنسيق طبقات الصور المتعددة */
        .dr-mahmoud-hero .modern-img-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center top;
            border-radius: 24px;
            z-index: 2;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
            transition: opacity 1s ease-in-out, transform 0.5s ease;
        }

        .dr-mahmoud-hero .modern-image-container:hover .modern-frame {
            transform: translate(10px, 10px);
        }
        .dr-mahmoud-hero .modern-image-container:hover .modern-img-slide {
            transform: translate(-10px, -10px);
        }

        .dr-mahmoud-hero .dots-pattern {
            position: absolute;
            bottom: -30px;
            right: -30px;
            width: 120px;
            height: 120px;
            background-image: radial-gradient(var(--gold-dark) 2px, transparent 2px);
            background-size: 15px 15px;
            z-index: 0;
            opacity: 0.5;
        }

        .dr-mahmoud-hero .scroll-down {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
        }

        .dr-mahmoud-hero .scroll-png-icon {
            width: 40px;
            height: 40px;
            animation: bounce 2s infinite;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-10px); }
            60% { transform: translateY(-5px); }
        }

        @media (max-width: 1024px) {
            .dr-mahmoud-hero {
                grid-template-columns: 1fr;
                text-align: center;
                padding-top: 130px;
                gap: 3rem;
            }
            .dr-mahmoud-hero .hero-content { padding-left: 0; order: 2; }
            .dr-mahmoud-hero .hero-visual { order: 1; }
            .dr-mahmoud-hero .stat-row, 
            .dr-mahmoud-hero .hero-subtitle { justify-content: center; }
            .dr-mahmoud-hero .hero-bio {
                border-right: none;
                padding-right: 0;
                border-bottom: 2px solid var(--gold);
                padding-bottom: 15px;
                display: inline-block;
            }
            .dr-mahmoud-hero .modern-image-container {
                width: 350px;
                height: 450px;
            }
        }

        /* --- شاشات الموبايل (حل مشكلة خروج العناصر وضبط التناسق) --- */
        @media (max-width: 768px) {
            .dr-mahmoud-hero {
                padding: 100px 1.2rem 40px 1.2rem;
                min-height: auto;
                gap: 2.5rem;
            }
            .dr-mahmoud-hero .hero-title {
                font-size: 2.3rem;
                line-height: 1.3;
                word-break: break-word;
            }
            .dr-mahmoud-hero .hero-subtitle {
                font-size: 1.15rem;
                line-height: 1.5;
                margin-bottom: 1.8rem;
                max-width: 100%;
            }
            .dr-mahmoud-hero .hero-stats {
                font-size: 1.05rem;
                gap: 0.8rem;
                margin-bottom: 1.8rem;
            }
            .dr-mahmoud-hero .stat-png-icon {
                width: 24px;
                height: 24px;
                margin-left: 10px;
            }
            .dr-mahmoud-hero .hero-bio {
                font-size: 0.95rem;
                line-height: 1.7;
                margin-bottom: 2rem;
            }
            .dr-mahmoud-hero .modern-image-container {
                width: 100%;
                max-width: 290px;
                height: 380px;
                margin: 0 auto;
            }
            .dr-mahmoud-hero .modern-frame {
                top: -10px;
                left: -10px;
                border-width: 2px;
                border-radius: 20px;
            }
            .dr-mahmoud-hero .modern-img-slide {
                border-radius: 20px;
            }
            .dr-mahmoud-hero .dots-pattern {
                display: none; /* إخفاء النقاط لمنع الخروج عن حافة الشاشة */
            }
            .dr-mahmoud-hero .cta-btn {
                padding: 0.85rem 2rem;
                font-size: 1rem;
                width: 100%;
                max-width: 280px;
                text-align: center;
            }
            .dr-mahmoud-hero .scroll-down {
                display: none; /* إخفاء أيقونة التمرير لعدم حجب المحتوى على الشاشات الصغيرة */
            }
        }

        @media (max-width: 480px) {
            .dr-mahmoud-hero .hero-title {
                font-size: 1.95rem;
            }
            .dr-mahmoud-hero .modern-image-container {
                max-width: 250px;
                height: 330px;
            }
        }

        /* --- LTR Styles for English Hero --- */
        .dr-mahmoud-hero[dir="ltr"],
        .dr-mahmoud-hero.pe-ltr {
            font-family: 'Outfit', 'Inter', sans-serif;
            direction: ltr;
            text-align: left;
        }

        .dr-mahmoud-hero[dir="ltr"] .hero-content,
        .dr-mahmoud-hero.pe-ltr .hero-content {
            padding-left: 0;
            padding-right: 2rem;
            text-align: left;
        }

        .dr-mahmoud-hero[dir="ltr"] .stat-png-icon,
        .dr-mahmoud-hero.pe-ltr .stat-png-icon {
            margin-left: 0;
            margin-right: 12px;
        }

        .dr-mahmoud-hero[dir="ltr"] .modern-frame,
        .dr-mahmoud-hero.pe-ltr .modern-frame {
            left: auto;
            right: -20px;
        }

        .dr-mahmoud-hero[dir="ltr"] .dots-pattern,
        .dr-mahmoud-hero.pe-ltr .dots-pattern {
            left: -40px;
            right: auto;
        }

        @media (max-width: 992px) {
            .dr-mahmoud-hero[dir="ltr"] .hero-content,
            .dr-mahmoud-hero.pe-ltr .hero-content {
                padding-right: 0;
                text-align: center;
            }
            .dr-mahmoud-hero[dir="ltr"] .stat-row,
            .dr-mahmoud-hero.pe-ltr .stat-row {
                justify-content: center;
            }
        }