/* Home page styles (moved verbatim from index.blade.php; hero heading is now h1). */
        :root {
            --primary-color: #2d7a4e;
            --secondary-color: #5bc0be;
            --accent-color: #020202da;
            --text-color: #333;
            --light-text: #666;
            --bg-color: #ffffff;
            --section-bg: #f8f9fa;
            --card-bg: #ffffff;
            --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
            --primary-gradient: linear-gradient(135deg, #2d7a4e, #4ca571, #5bc0be);
            --border-radius: 12px;
        }

        .hero-text h1,
        .hero-text .hero-label,
        .hero-text .hero-subtext,
        .hero-text .hero-actions,
        .hero-text .hero-statistics,
        .hero-text .countries-section {
            opacity: 1 !important;
        }

        /* إضافة هذا الكود في أعلى ملف الـ CSS */

        /* Fix للـ Overflow على Mobile */
        * {
            box-sizing: border-box;
        }

        html,
        body {
            margin: 0;
            padding: 0;
            overflow-x: hidden;
            width: 100%;
            max-width: 100vw;
        }

        /* Fix للـ Container العام */
        .container,
        .faq-wrapper {
            max-width: 100%;
            margin: 0 auto;
            padding: 0 15px;
        }


        /* Flags Container Fix */
        .flags-container {
            width: 100%;
            max-width: 100%;
        }

        /* FAQ Section Fix */
        #faq {
            width: 100%;
            max-width: 100vw;
            overflow-x: hidden;
        }

        .faq-content-wrapper {
            width: 100%;
            max-width: 100%;
        }

        .faq-question {
            width: 100%;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        /* Blog Grid Fix */
        .blog-grid {
            width: 100%;
            max-width: 100%;
        }

        /* Investment Opportunities Fix */
        .opportunities-grid {
            width: 100%;
            max-width: 100%;
        }

        /* Study Phases Fix */
        .phases-container {
            width: 100%;
            max-width: 100%;
        }

        /* Mobile Responsive Fix */
        @media (max-width: 768px) {
            body {
                overflow-x: hidden !important;
            }

            .hero-inner {
                padding: 0 10px;
                width: 100%;
            }

            .hero-text h1 {
                font-size: 1.8rem;
                word-wrap: break-word;
            }

            .flags-container {
                grid-template-columns: repeat(3, 1fr);
                gap: 10px;
                padding: 0 10px;
            }


            .img-thumbnail {
                max-width: 80px;
                max-height: 60px;
            }

            .hero-image {
                width: 100%;
                height: auto;
                border-radius: 15px;
                box-shadow: var(--shadow);
                transition: transform 0.3s ease, box-shadow 0.3s ease;
            }

            .hero-image:hover {
                transform: scale(1.05);
                box-shadow: var(--shadow-hover);
            }

            */ .faq-wrapper {
                padding: 0 10px;
            }

            .faq-content-wrapper {
                gap: 20px;
                padding: 0;
            }

            .faq-question {
                font-size: 0.95rem;
                padding: 12px 10px;
            }

            .blog-grid,
            .opportunities-grid,
            .features-grid {
                grid-template-columns: 1fr;
                padding: 0 10px;
                gap: 15px;
            }
        }

        @media (max-width: 480px) {

            .container,
            .faq-wrapper {
                padding: 0 10px;
            }

            .hero {
                padding: 60px 0 40px;
            }

            .hero-text h1 {
                font-size: 1.5rem;
                line-height: 1.3;
            }

            .flags-container {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }

            .section-title {
                font-size: 1.7rem;
                padding: 0 10px;
            }

            .section-intro {
                font-size: 0.95rem;
                padding: 0 10px;
            }

            /* تأكد من عدم خروج أي عنصر عن الشاشة */
            img {
                max-width: 100%;
                height: auto;
            }

            table {
                width: 100%;
                overflow-x: auto;
                display: block;
            }
        }

        /* Fix للعناصر التي قد تسبب المشكلة */
        .hero-background,
        .hero-pattern,
        .hero-overlay {
            width: 100%;
            max-width: 100vw;
        }

        /* منع أي padding أو margin زائد */
        section {
            width: 100%;
            max-width: 100vw;
            overflow-x: hidden;
        }

        /* Fix للصور */
        img {
            max-width: 100%;
            height: auto;
        }

        /* ===== Hero Section - Optimized Styles ===== */

        /* Hero Container */
        .hero {
            position: relative;
            background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
            color: white;
            padding: 100px 0 80px;
            overflow: hidden;
            min-height: 600px;
        }

        /* Background Elements */
        .hero-background {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 1;
            pointer-events: none;
        }

        .hero-pattern {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background:
                radial-gradient(circle at 20% 80%, rgba(45, 122, 78, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(91, 192, 190, 0.15) 0%, transparent 50%);
            opacity: 0.7;
        }

        .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.3);
        }

        /* Hero Inner Container */
        .hero-inner {
            position: relative;
            z-index: 2;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 30px;
        }

        /* Hero Text Section */
        .hero-text {
            padding-left: 20px;
        }

        .hero-label {
            display: inline-block;
            background: rgba(255, 255, 255, 0.15);
            color: white;
            padding: 10px 20px;
            border-radius: 25px;
            font-size: 0.9rem;
            font-weight: 500;
            margin-bottom: 25px;
            border: 1px solid rgba(255, 255, 255, 0.25);
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }

        .hero-label:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }

        .hero-text h1 {
            font-size: 3.2rem;
            font-weight: 700;
            margin-bottom: 25px;
            line-height: 1.3;
            color: white;
        }

        .hero-subtext {
            font-size: 1.3rem;
            margin-bottom: 35px;
            opacity: 0.95;
            line-height: 1.6;
            color: rgba(255, 255, 255, 0.9);
        }

        /* Hero Actions */
        .hero-actions {
            display: flex;
            gap: 20px;
            margin-bottom: 50px;
            flex-wrap: wrap;
        }

        .btn-primary {
            background: linear-gradient(135deg, #2d7a4e, #4ca571);
            color: white;
            padding: 14px 35px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1rem;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            display: inline-block;
            box-shadow: 0 5px 15px rgba(45, 122, 78, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(45, 122, 78, 0.5);
            background: linear-gradient(135deg, #23603d, #3d9160);
        }

        .btn-link {
            background: transparent;
            color: white;
            padding: 14px 35px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1rem;
            transition: all 0.3s ease;
            border: 2px solid rgba(255, 255, 255, 0.4);
            display: inline-block;
        }

        .btn-link:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.7);
            transform: translateY(-3px);
        }

        /* Hero Statistics */
        .hero-statistics {
            display: flex;
            gap: 40px;
            margin-bottom: 50px;
            flex-wrap: wrap;
        }

        .stat-item {
            text-align: center;
            flex: 1;
            min-width: 100px;
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: 700;
            color: #5bc0be;
            margin-bottom: 8px;
            text-shadow: 0 2px 10px rgba(91, 192, 190, 0.3);
        }

        .stat-label {
            font-size: 0.95rem;
            opacity: 0.85;
            color: rgba(255, 255, 255, 0.9);
        }

        /* Countries Section */
        .countries-section {
            margin-top: 40px;
        }

        .countries-section h2,
        .countries-section h3 {
            font-size: 1.15rem;
            margin-bottom: 25px;
            opacity: 0.95;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.9);
        }

        .flags-container {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 20px;
        }

        .flag-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            transition: transform 0.3s ease;
        }

        .flag-item:hover {
            transform: translateY(-5px);
        }

        .flag {
            width: 45px;
            height: 32px;
            border-radius: 6px;
            object-fit: cover;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
            border: 2px solid rgba(255, 255, 255, 0.3);
            transition: all 0.3s ease;
        }

        .flag-item:hover .flag {
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
            border-color: rgba(255, 255, 255, 0.5);
        }

        .country-name {
            font-size: 0.85rem;
            opacity: 0.85;
            color: rgba(255, 255, 255, 0.9);
            font-weight: 500;
        }

        /* Hero Visual Section */
        .hero-visual {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .hero-image {
            width: 100%;
            max-width: 550px;
            height: auto;
            border-radius: 20px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
            transition: all 0.4s ease;
        }

        .hero-image:hover {
            transform: scale(1.03);
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        }

        /* Animation */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .hero-text>* {
            opacity: 0;
            animation: fadeInUp 0.8s ease forwards;
        }

        .hero-label {
            animation-delay: 0.1s;
        }

        .hero-text h1 {
            animation-delay: 0.2s;
        }

        .hero-subtext {
            animation-delay: 0.3s;
        }

        .hero-actions {
            animation-delay: 0.4s;
        }

        .hero-statistics {
            animation-delay: 0.5s;
        }

        .countries-section {
            animation-delay: 0.6s;
        }

        /* ===== Responsive Design ===== */

        /* Tablet (1024px and below) */
        @media (max-width: 1024px) {
            .hero {
                padding: 80px 0 60px;
            }

            .hero-inner {
                grid-template-columns: 1fr;
                gap: 40px;
                text-align: center;
                padding: 0 20px;
            }

            .hero-text {
                padding-left: 0;
            }

            .hero-text h1 {
                font-size: 2.5rem;
            }

            .hero-actions {
                justify-content: center;
            }

            .hero-statistics {
                justify-content: center;
            }

            .flags-container {
                grid-template-columns: repeat(4, 1fr);
                gap: 15px;
            }

            .hero-visual {
                order: -1;
            }
        }

        /* Mobile (768px and below) */
        @media (max-width: 768px) {
            .hero {
                padding: 70px 0 50px;
                min-height: auto;
            }

            .hero-inner {
                gap: 30px;
                padding: 0 15px;
            }

            .hero-text h1 {
                font-size: 2rem;
                margin-bottom: 20px;
            }

            .hero-subtext {
                font-size: 1.1rem;
                margin-bottom: 30px;
            }

            .hero-label {
                font-size: 0.85rem;
                padding: 8px 16px;
                margin-bottom: 20px;
            }

            .btn-primary,
            .btn-link {
                padding: 12px 28px;
                font-size: 0.95rem;
            }

            .hero-statistics {
                gap: 25px;
                margin-bottom: 40px;
            }

            .stat-number {
                font-size: 2rem;
            }

            .stat-label {
                font-size: 0.85rem;
            }

            .flags-container {
                grid-template-columns: repeat(3, 1fr);
                gap: 12px;
            }

            .flag {
                width: 40px;
                height: 28px;
            }

            .country-name {
                font-size: 0.8rem;
            }

            /* Disable animations on mobile for better performance */
            .hero-text>* {
                animation: none;
                opacity: 1;
            }
        }

        /* Small Mobile (480px and below) */
        @media (max-width: 480px) {
            .hero {
                padding: 60px 0 40px;
            }

            .hero-inner {
                padding: 0 10px;
            }

            .hero-text h1 {
                font-size: 1.6rem;
                line-height: 1.4;
            }

            .hero-subtext {
                font-size: 1rem;
            }

            .hero-label {
                font-size: 0.8rem;
                padding: 7px 14px;
            }

            .hero-actions {
                flex-direction: column;
                gap: 12px;
                width: 100%;
            }

            .btn-primary,
            .btn-link {
                width: 100%;
                text-align: center;
                padding: 12px 20px;
                font-size: 0.9rem;
            }

            .hero-statistics {
                flex-direction: column;
                gap: 20px;
                margin-bottom: 35px;
            }

            .stat-item {
                min-width: auto;
            }

            .stat-number {
                font-size: 1.8rem;
            }

            .flags-container {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }

            .flag {
                width: 35px;
                height: 25px;
            }

            .country-name {
                font-size: 0.75rem;
            }

            .countries-section h2,
            .countries-section h3 {
                font-size: 1rem;
                margin-bottom: 20px;
            }
        }

        /* Extra Small Mobile (360px and below) */
        @media (max-width: 360px) {
            .hero-text h1 {
                font-size: 1.4rem;
            }

            .hero-subtext {
                font-size: 0.95rem;
            }

            .stat-number {
                font-size: 1.6rem;
            }

            .flags-container {
                gap: 8px;
            }
        }

        .countries-section {
            animation-delay: 0.6s;
        }



        .project-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }

        .project-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
            will-change: transform;
        }

        /* Lazy loading placeholder */
        .lazy-load {
            background: rgba(255, 255, 255, 0.1);
            min-height: 200px;
        }

        .lazy-load.loaded {
            background: none;
        }

        /* Mobile Optimizations */
        @media (max-width: 768px) {
            .hero {
                padding: 60px 0 40px;
            }

            .hero-inner {
                grid-template-columns: 1fr;
                gap: 30px;
            }

            .hero-text h1 {
                font-size: 1.8rem;
            }

            .project-grid {
                grid-template-columns: 1fr;
            }



            .countries-section {
                display: none;
                /* Hide on mobile for performance */
            }

            /* Disable animations on mobile */
            .hero-text>* {
                animation: none;
                opacity: 1;
            }


        }

        @media (max-width: 480px) {
            .hero-text h1 {
                font-size: 1.5rem;
            }

            .hero-statistics {
                flex-direction: column;
                gap: 15px;
            }


        }

        .project-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }

        .project-card {
            border-radius: 12px;
            overflow: hidden;
            position: relative;
            aspect-ratio: 4/3;
        }

        .project-image {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .project-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .project-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
            color: white;
            padding: 20px;
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }

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

        .project-card:hover .project-overlay {
            transform: translateY(0);
        }

        .project-overlay h4 {
            font-size: 1rem;
            margin-bottom: 5px;
            font-weight: 600;
        }

        .project-overlay p {
            font-size: 0.8rem;
            opacity: 0.8;
            margin: 0;
        }



        .indicator {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            border: none;
            background: rgba(255, 255, 255, 0.3);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .indicator.active {
            background: white;
            transform: scale(1.2);
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .hero-inner {
                grid-template-columns: 1fr;
                gap: 40px;
                text-align: center;
            }

            .hero-text {
                padding-right: 0;
            }

            .flags-container {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        @media (max-width: 768px) {
            .hero {
                padding: 80px 0 60px;
            }

            .hero-text h1 {
                font-size: 2.2rem;
            }

            .hero-actions {
                justify-content: center;
            }

            .hero-statistics {
                justify-content: center;
            }

            .project-grid {
                grid-template-columns: 1fr;
            }

            .flags-container {
                grid-template-columns: repeat(3, 1fr);
            }


        }

        @media (max-width: 480px) {
            .hero-text h1 {
                font-size: 1.8rem;
            }

            .hero-subtext {
                font-size: 1rem;
            }

            .btn-primary,
            .btn-link {
                padding: 10px 20px;
                font-size: 0.9rem;
            }

            .flags-container {
                grid-template-columns: repeat(2, 1fr);
            }

            .hero-statistics {
                flex-direction: column;
                gap: 20px;
            }
        }

        /* Animation */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }



        .countries-section {
            animation-delay: 0.6s;
        }


        /* FAQ Section Styles */
        #faq {
            padding: 80px 0;
            background: var(--bg-color);
        }

        .faq-wrapper {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .faq-section-title {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 50px;
            color: #2c3e50;
            position: relative;
            padding-bottom: 20px;
        }

        .faq-section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 3px;
            background: #3498db;
        }

        .faq-content-wrapper {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 40px;
            align-items: flex-start;
        }

        /* Image Section */
        .faq-image-section {
            display: flex;
            justify-content: center;
            align-items: flex-start;
        }

        .faq-image {
            max-width: 100%;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            transition: transform 0.3s ease;
        }

        .faq-image:hover {
            transform: translateY(-5px);
        }

        /* FAQ Content */
        .faq-main-content {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        .faq-intro-box {
            background: white;
            padding: 25px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            border-right: 4px solid #3498db;
        }

        .faq-intro-box p {
            margin-bottom: 15px;
            color: #555;
            line-height: 1.7;
        }

        .faq-intro-box p:last-child {
            margin-bottom: 0;
        }

        .faq-items-container {
            background: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

        .faq-item {
            border-bottom: 1px solid #eaeaea;
        }

        .faq-item:last-of-type {
            border-bottom: none;
        }

        .faq-question {
            width: 100%;
            padding: 20px;
            text-align: right;
            background: none;
            border: none;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 1.1rem;
            font-weight: 600;
            color: #2c3e50;
            transition: background 0.3s;
        }

        .faq-question:hover {
            background: #f1f8ff;
        }

        .faq-icon {
            font-size: 1.5rem;
            font-weight: bold;
            color: #3498db;
            transition: transform 0.3s;
            flex-shrink: 0;
            margin-left: 15px;
        }

        .faq-item.active .faq-icon {
            transform: rotate(45deg);
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
            background: #f8fafc;
        }

        .faq-item.active .faq-answer {
            max-height: 500px;
        }

        .faq-answer p {
            padding: 0 20px 20px;
            color: #555;
            line-height: 1.7;
            margin: 0;
        }

        .faq-empty {
            text-align: center;
            padding: 40px;
            color: #666;
        }

        .faq-contact-box {
            background: white;
            margin-top: 30px;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            text-align: center;
        }

        .faq-contact-box h3 {
            color: #2c3e50;
            margin-bottom: 15px;
            font-size: 1.5rem;
        }

        .faq-contact-box p {
            color: #555;
            margin-bottom: 25px;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.7;
        }

        .faq-contact-btn {
            display: inline-block;
            background: #1f6aa5;
            color: white;
            padding: 12px 30px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
        }

        .faq-contact-btn:hover {
            background: #2980b9;
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .faq-content-wrapper {
                grid-template-columns: 1fr;
                gap: 30px;
            }

            .faq-image-section {
                order: -1;
            }

            .faq-image {
                max-width: 400px;
            }
        }

        @media (max-width: 768px) {
            #faq {
                padding: 60px 0;
            }

            .faq-section-title {
                font-size: 2rem;
                margin-bottom: 35px;
            }

            .faq-wrapper {
                padding: 0 15px;
            }

            .faq-content-wrapper {
                gap: 25px;
            }

            .faq-intro-box {
                padding: 20px;
            }

            .faq-question {
                padding: 15px;
                font-size: 1rem;
            }

            .faq-answer p {
                padding: 0 15px 15px;
            }

            .faq-contact-box {
                padding: 25px 20px;
            }

            .faq-contact-box h3 {
                font-size: 1.3rem;
            }

            .faq-contact-btn {
                padding: 10px 25px;
                font-size: 0.95rem;
            }
        }

        @media (max-width: 480px) {
            .faq-section-title {
                font-size: 1.7rem;
            }

            .faq-intro-box {
                padding: 15px;
            }

            .faq-intro-box p {
                font-size: 0.95rem;
            }

            .faq-question {
                padding: 12px 15px;
                font-size: 0.95rem;
                gap: 10px;
            }

            .faq-icon {
                font-size: 1.3rem;
                margin-left: 10px;
            }

            .faq-answer p {
                padding: 0 15px 15px;
                font-size: 0.9rem;
            }

            .faq-contact-box {
                padding: 20px 15px;
            }

            .faq-contact-box h3 {
                font-size: 1.2rem;
            }

            .faq-contact-box p {
                font-size: 0.9rem;
            }

            .faq-contact-btn {
                width: 100%;
                padding: 12px 20px;
            }
        }

        /* Blog Section Styles */

        .section-alt {
            background: var(--section-bg);
            padding: 5rem 0;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            color: var(--primary-color);
            margin-bottom: 1rem;
        }

        .section-intro {
            text-align: center;
            max-width: 600px;
            margin: 0 auto 3rem;
            opacity: 0.8;
        }

        .blog-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .blog-card {
            background: var(--card-bg);
            border-radius: 15px;
            box-shadow: var(--shadow);
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .blog-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }

        .blog-image {
            width: 100%;
            height: 250px;
            object-fit: cover;
        }

        .blog-content {
            padding: 1.5rem;
        }

        .blog-meta {
            display: flex;
            justify-content: space-between;
            margin-bottom: 1rem;
            font-size: 0.9rem;
            color: #666;
        }

        .blog-category {
            background: var(--primary-color);
            color: white;
            padding: 0.2rem 0.8rem;
            border-radius: 20px;
            font-size: 0.8rem;
        }

        .blog-title {
            margin-bottom: 1rem;
            font-size: 1.3rem;
            line-height: 1.4;
        }

        .blog-excerpt {
            margin-bottom: 1.5rem;
            color: #555;
            line-height: 1.6;
        }

        .btn-link {
            display: inline-flex;
            align-items: center;
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
            transition: color 0.3s ease;
        }

        .btn-link:hover {
            color: #23603d;
        }

        .text-center {
            text-align: center;
        }

        .mt-4 {
            margin-top: 2rem;
        }

        .btn-primary {
            display: inline-block;
            background: var(--primary-color);
            color: white;
            padding: 0.8rem 2rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            border: 2px solid var(--primary-color);
        }

        .btn-primary:hover {
            background: transparent;
            color: var(--primary-color);
            transform: translateY(-2px);
        }

        .no-blogs {
            text-align: center;
            padding: 2rem;
            grid-column: 1 / -1;
        }

        @media (max-width: 768px) {
            .blog-grid {
                grid-template-columns: 1fr;
            }

            .blog-meta {
                flex-direction: column;
                gap: 0.5rem;
            }
        }

        /* Contact Form Styles */
        #contact-form {
            background: var(--section-bg);
            padding: 5rem 0;
        }

        .contact-form {
            max-width: 800px;
            margin: 0 auto;
            background: var(--card-bg);
            padding: 2rem;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
        }

        .form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
            color: var(--text-color);
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 1rem;
            transition: border-color 0.3s ease;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary-color);
        }

        .alert {
            padding: 1rem;
            margin-bottom: 2rem;
            border-radius: 8px;
            text-align: center;
        }

        .alert-success {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .alert-danger {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        .alert-danger ul {
            margin: 0;
            padding-right: 1rem;
            text-align: right;
        }

        @media (max-width: 768px) {
            .form-grid {
                grid-template-columns: 1fr;
            }

            .contact-form {
                padding: 1.5rem;
            }
        }

        /* إضافة CSS المفقود للعناصر الأساسية */


        .btn-primary {
            background: var(--primary-gradient);
            color: white;
            padding: 12px 30px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            display: inline-block;
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(45, 122, 78, 0.4);
        }

        .btn-link {
            background: transparent;
            color: white;
            padding: 12px 30px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            border: 2px solid rgba(255, 255, 255, 0.3);
            display: inline-block;
        }

        .btn-link:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.5);
        }


        .stat-item {
            text-align: center;
        }

        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            color: var(--secondary-color);
            margin-bottom: 5px;
        }

        .stat-label {
            font-size: 0.9rem;
            opacity: 0.8;
        }

        /* Countries Section */
        .countries-section {
            margin-top: 30px;
        }

        .countries-section h2,
        .countries-section h3 {
            font-size: 1.1rem;
            margin-bottom: 20px;
            opacity: 0.9;
        }

        .flags-container {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 15px;
        }

        .flag-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }

        .flag {
            width: 40px;
            height: 28px;
            border-radius: 4px;
            object-fit: cover;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .country-name {
            font-size: 0.8rem;
            opacity: 0.8;
        }



        /* Investment Opportunities */
        .opportunities-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            padding: 0 20px;
        }

        .opportunity-card {
            background: var(--card-bg);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.3s ease;
        }

        .opportunity-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }

        .opportunity-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        .opportunity-content {
            padding: 1.5rem;
        }

        .opportunity-content h3 {
            color: var(--primary-color);
            margin-bottom: 1rem;
        }

        .opportunity-stats {
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid #eee;
        }

        .opportunity-stats span {
            color: var(--accent-color);
            font-weight: 600;
        }

        /* Study Phases */
        .phases-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            padding: 0 20px;
        }

        .phase {
            background: var(--card-bg);
            padding: 2rem;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            transition: transform 0.3s ease;
        }

        .phase:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }

        .phase-number {
            width: 60px;
            height: 60px;
            background: var(--primary-gradient);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
        }

        .phase-content h3 {
            color: var(--primary-color);
            margin-bottom: 1rem;
            font-size: 1.3rem;
        }

        .phase-content p {
            color: var(--light-text);
            line-height: 1.7;
        }


        @media (max-width: 480px) {

            .btn-primary,
            .btn-link {
                width: 100%;
                text-align: center;
            }

            .flags-container {
                grid-template-columns: repeat(2, 1fr);
            }

            .opportunities-grid,
            .phases-container {
                grid-template-columns: 1fr;
            }
        }

        /* FAQ Toggle Animation Fix */
        .faq-item {
            border-bottom: 1px solid #eaeaea;
            transition: all 0.3s ease;
        }

        .faq-question {
            width: 100%;
            padding: 20px;
            text-align: right;
            background: none;
            border: none;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 1.1rem;
            font-weight: 600;
            color: #2c3e50;
            transition: background 0.3s;
            outline: none;
        }

        .faq-question:hover {
            background: #f1f8ff;
        }

        .faq-icon {
            font-size: 1.5rem;
            font-weight: bold;
            color: #3498db;
            transition: transform 0.3s ease;
            flex-shrink: 0;
            margin-left: 15px;
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
            background: #f8fafc;
        }

        .faq-answer p {
            padding: 0 20px 20px;
            color: #555;
            line-height: 1.7;
            margin: 0;
            opacity: 0;
            transform: translateY(-10px);
            transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
        }

        /* When FAQ is active */
        .faq-item.active .faq-answer {
            max-height: 1000px;
            transition: max-height 1s ease-in-out;
        }

        .faq-item.active .faq-answer p {
            opacity: 1;
            transform: translateY(0);
        }

        .faq-item.active .faq-icon {
            transform: rotate(45deg);
            content: "−";
        }

/* ---- Additions for the bilingual server-rendered home page ---- */
/* Direct answer under the hero headline (quoted by search engines / AI assistants). */
.hero-text .hero-answer {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
    max-width: 620px;
    margin: -15px 0 30px;
}

.hero-text .hero-subtext {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .hero-text .hero-answer {
        font-size: 0.95rem;
        margin: 0 auto 24px;
    }
}

.home-services .card h3 a {
    color: inherit;
    text-decoration: none;
}

.home-services .card h3 a:hover {
    color: var(--primary-color);
}

.home-services .card .btn-link,
#study-phases .btn-link {
    display: inline-block;
    margin-top: 0.75rem;
}
