:root {
            /* Color Palette Definition */
            --primary-green: #246F06;       
            --secondary-green: #388E3C;     
            --light-green: #F1F8E9;         
            --accent-yellow: #A5A30F;       
            --light-yellow: #FFFFF0;        
            --dark-text: #1B3302;           
            --white: #ffffff;
        }

        body {
            font-family: 'Roboto', sans-serif;
            color: #333;
            overflow-x: hidden;
        }

        /* Arabic Typography Support */
        :lang(ar) body {
            font-family: 'Cairo', sans-serif;
        }
        :lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4, :lang(ar) h5, :lang(ar) h6 {
            font-family: 'Cairo', sans-serif;
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: 'Poppins', sans-serif;
            color: var(--primary-green);
        }

        /* --- Navigation Bar --- */
        .navbar {
            background-color: var(--white);
            padding: 0.8rem 0;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        }

        .navbar-brand {
            color: var(--primary-green) !important;
            font-weight: 700;
            font-size: 1.3rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
        }
        
        .navbar-brand img {
            height: 100px;
            margin-right: 15px;
            width: auto;
            transition: height 0.3s ease; /* Add transition for smooth resizing */
        }

        /* Mobile adjustments for Navbar Brand */
        @media (max-width: 767.98px) {
            .navbar-brand {
                font-size: 0.85rem; /* Smaller font size for mobile */
                white-space: normal; /* Allow text to wrap lines */
                max-width: 80%; /* Restrict width to leave room for toggler */
                line-height: 1.2;
            }
            
            .navbar-brand img {
                height: 50px; /* Smaller logo height on mobile */
                margin-right: 8px;
            }
            
            /* RTL specific mobile adjustments */
            :lang(ar) .navbar-brand img {
                margin-right: 0;
                margin-left: 8px;
            }

            /* Carousel Caption Mobile Adjustments */
            .carousel-caption {
                bottom: 10% !important; /* Lower position */
                padding: 15px !important; /* Less padding */
                left: 5% !important;
                right: 5% !important;
            }
            
            .carousel-caption h5 {
                font-size: 1.2rem !important; /* Smaller title */
                margin-bottom: 10px;
            }
            
            .carousel-caption p {
                font-size: 0.9rem !important; /* Smaller description */
                margin-bottom: 15px;
                display: -webkit-box;
                -webkit-line-clamp: 3; /* Limit lines if too long */
                -webkit-box-orient: vertical;
                overflow: hidden;
            }
            
            .carousel-caption .btn {
                padding: 5px 15px; /* Smaller button */
                font-size: 0.8rem;
            }
        }

        .nav-link {
            color: #555 !important;
            font-weight: 600;
            margin-right: 15px;
            transition: all 0.3s;
        }

        .nav-link:hover, .nav-item.show .nav-link {
            color: var(--primary-green) !important;
        }
        
        .navbar-toggler {
            border-color: var(--primary-green);
        }
        
        .navbar-toggler-icon {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(36, 111, 6, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        }

        /* Dropdowns */
        .dropdown-menu {
            border: none;
            border-top: 3px solid var(--accent-yellow);
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            border-radius: 0 0 8px 8px;
        }

        .dropdown-item {
            padding: 10px 20px;
            color: #444;
            transition: 0.2s;
        }

        .dropdown-item:hover {
            background-color: var(--light-green);
            color: var(--primary-green);
            padding-left: 25px; 
        }
        
        /* Adjust slide effect for RTL */
        :lang(ar) .dropdown-item:hover {
            padding-left: 20px;
            padding-right: 25px;
        }
        
        /* RTL Text Alignments */
        :lang(ar) .dropdown-item, :lang(ar) .dropdown-menu {
            text-align: right;
        }
        
        :lang(ar) .navbar-brand {
            font-size: 1.1rem;
        }

        /* Action Buttons in Menu */
        .btn-auth {
            background-color: var(--primary-green);
            color: var(--white) !important; 
            font-weight: 600;
            border-radius: 20px;
            padding: 6px 20px;
            transition: transform 0.2s;
        }
        
        .btn-auth:hover {
            background-color: var(--secondary-green);
            transform: translateY(-2px);
            color: var(--white) !important;
        }
        
        /* Language Selector Button */
        #langDropdown {
             color: var(--primary-green) !important;
             border: 1px solid var(--primary-green);
             border-radius: 20px;
             padding: 5px 15px;
        }
        
        #langDropdown:hover {
            background-color: var(--primary-green);
            color: var(--white) !important;
        }

        /* --- Hero Carousel --- */
        #heroCarousel {
            position: relative;
        }

        .carousel-item {
            height: 85vh;
            min-height: 500px;
            background: #000;
        }

        .carousel-item img {
            object-fit: cover;
            height: 100%;
            width: 100%;
            opacity: 0.6; 
        }

        .carousel-caption {
            bottom: 20%;
            left: 10%;
            right: 10%;
            padding: 40px;
            background: rgba(0, 0, 0, 0.6);
            border-radius: 15px;
            border-bottom: 5px solid var(--accent-yellow);
        }
        
        /* RTL Caption Support */
        :lang(ar) .carousel-caption {
            text-align: right;
        }

        .carousel-caption h5 {
            font-size: 2.8rem;
            color: var(--accent-yellow); 
            font-weight: 800;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
            margin-bottom: 20px;
            animation: fadeInDown 1s;
            line-height: 1.3;
        }

        .carousel-caption p {
            font-size: 1.6rem;
            color: var(--white);
            font-weight: 500;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
            animation: fadeInUp 1s;
        }

        /* --- Global Buttons --- */
        .btn-primary-custom {
            background-color: var(--primary-green);
            color: white;
            padding: 12px 30px;
            border-radius: 50px;
            border: none;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: all 0.3s;
        }

        .btn-primary-custom:hover {
            background-color: var(--secondary-green);
            box-shadow: 0 5px 15px rgba(36, 111, 6, 0.4);
            color: white;
        }

        .btn-yellow-custom {
            background-color: var(--accent-yellow);
            color: var(--white);
            padding: 12px 30px;
            border-radius: 50px;
            border: none;
            font-weight: 700;
            text-transform: uppercase;
            transition: all 0.3s;
        }

        .btn-yellow-custom:hover {
            background-color: #8E8C0D;
            transform: scale(1.05);
            color: var(--white);
        }
        
        /* Outline Button for "Read More" */
        .btn-outline-custom {
            color: var(--primary-green);
            border: 2px solid var(--primary-green);
            padding: 8px 20px;
            border-radius: 30px;
            font-weight: 600;
            background: transparent;
            transition: all 0.3s;
        }
        
        .btn-outline-custom:hover {
            background-color: var(--primary-green);
            color: var(--white);
        }

        /* --- Sections General --- */
        section {
            padding: 80px 0;
        }

        .section-title {
            text-align: center;
            margin-bottom: 60px;
            position: relative;
        }

        .section-title h2 {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--primary-green);
            display: inline-block;
            padding-bottom: 15px;
        }

        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background-color: var(--accent-yellow);
        }

        /* --- Highlights Section --- */
        .feature-card {
            background: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.05);
            transition: 0.3s;
            height: 100%;
            border-bottom: 4px solid transparent;
            text-align: center;
        }

        .feature-card:hover {
            transform: translateY(-10px);
            border-bottom: 4px solid var(--accent-yellow);
        }

        .feature-icon {
            font-size: 3.5rem;
            color: var(--secondary-green);
            margin-bottom: 25px;
            display: inline-block;
        }

        /* --- Themes / Tracks Section --- */
        .bg-light-yellow {
            background-color: var(--light-yellow);
        }

        .theme-card {
            background: white;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.05);
            transition: 0.3s;
            height: 100%;
            border-top: 5px solid var(--primary-green);
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .theme-card:hover {
            transform: translateY(-10px);
            border-top-color: var(--accent-yellow);
        }

        .theme-icon {
            font-size: 2.5rem;
            color: var(--secondary-green);
            margin-bottom: 20px;
            background: var(--light-green);
            width: 80px;
            height: 80px;
            line-height: 80px;
            border-radius: 50%;
            display: inline-block;
        }
        
        .theme-card h4 {
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 15px;
            min-height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .theme-card p {
            font-size: 0.95rem;
            color: #666;
            margin-bottom: 20px;
            flex-grow: 1;
        }

        /* --- Speakers Section --- */
        .bg-white-custom {
            background-color: var(--white);
        }

        .speaker-card {
            border: none;
            overflow: hidden;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08); 
        }

        .speaker-img-container {
            overflow: hidden;
            height: 300px;
        }

        .speaker-img-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: 0.4s;
        }

        .speaker-card:hover img {
            transform: scale(1.1);
        }

        .speaker-info {
            background: white;
            padding: 20px;
            text-align: center;
            border-top: 3px solid var(--accent-yellow);
        }

        /* --- Countdown --- */
        .countdown-section {
            background: linear-gradient(rgba(36, 111, 6, 0.8), rgba(36, 111, 6, 0.8)), url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&q=80&w=2000');
            background-size: cover;
            background-attachment: fixed;
            color: white;
            text-align: center;
        }

        .timer-box {
            display: inline-block;
            margin: 10px 20px;
            background: rgba(255, 255, 255, 0.15);
            padding: 20px;
            border-radius: 10px;
            min-width: 120px;
            border: 1px solid var(--accent-yellow);
        }

        .timer-number {
            font-size: 3rem;
            font-weight: 700;
            color: var(--accent-yellow);
            display: block;
        }

        /* --- Footer --- */
        footer {
            background-color: #1a1a1a;
            color: #ccc;
            padding: 40px 0 15px; 
        }

        footer h4 {
            color: var(--accent-yellow);
            margin-bottom: 20px;
            font-size: 1.2rem;
        }

        footer ul li {
            margin-bottom: 8px;
        }

        footer a {
            color: #ccc;
            text-decoration: none;
            transition: 0.2s;
        }

        footer a:hover {
            color: var(--accent-yellow);
            padding-left: 5px;
        }
        
        :lang(ar) footer a:hover {
            padding-left: 0;
            padding-right: 5px;
        }
        
        .footer-bottom {
            border-top: 1px solid #333;
            margin-top: 40px;
            padding-top: 20px;
            text-align: center;
            font-size: 0.9rem;
        }

        /* RTL Specifics */
        :lang(ar) .ms-auto {
            margin-right: auto !important;
            margin-left: 0 !important;
        }
        
        :lang(ar) .me-2 {
            margin-left: 0.5rem !important;
            margin-right: 0 !important;
        }
        
        :lang(ar) .navbar-brand img {
            margin-right: 0;
            margin-left: 15px;
        }

        /* Subscription Form RTL */
        .newsletter-input-group .form-control {
            border-radius: 50px 0 0 50px;
            padding-left: 20px;
        }
        .newsletter-input-group .btn {
            border-radius: 0 50px 50px 0;
        }
        :lang(ar) .newsletter-input-group {
            flex-direction: row-reverse;
        }
        :lang(ar) .newsletter-input-group .form-control {
            border-radius: 0 50px 50px 0;
            padding-right: 20px;
        }
        :lang(ar) .newsletter-input-group .btn {
            border-radius: 50px 0 0 50px;
            margin-left: -1px;
        }

        /* Scroll to Top */
        #btn-back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            display: none;
            z-index: 1000;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: var(--accent-yellow);
            color: var(--white);
            border: 2px solid var(--primary-green);
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
            font-size: 1.2rem;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }
        #btn-back-to-top:hover {
            background-color: var(--primary-green);
            color: var(--accent-yellow);
            transform: translateY(-5px);
        }

        /* Responsive */
        @media (max-width: 991px) {
            .navbar-collapse {
                background: var(--white); 
                padding: 20px;
                border-top: 1px solid #eee;
                border-radius: 0 0 10px 10px;
            }
            .carousel-caption h5 {
                font-size: 1.8rem;
            }
            .carousel-caption p {
                font-size: 1.1rem;
            }
            .timer-box {
                margin: 5px;
                min-width: 80px;
            }
            .timer-number {
                font-size: 2rem;
            }
        }
		
		.timer-number {color: #d3d12b !important;}