:root {
    --primary-color: #fc8232;      
    --secondary-color: #ca2a2a; 
    --accent-color: #0000e4; 
    --dark-text: #333333;        
    --light-text: #ffffff;         
    --background-color: #f9f9f9;  
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all var(--transition-speed);
}

body {
    font-family: 'cairo', sans-serif;
    background: rgba(0, 0, 0, 0.9);
    color: var(--dark-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}


/* Language Selection */
.language-selection {
    position: absolute;
    top: 10px; 
    right: 10px; 
    display: flex;
    gap: 10px; 
    font-size: 12px;
    z-index: 1001;
}

.language-selection a {
    color: #191919;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.language-selection a.active {
    text-decoration: underline;
    color: #fc8232;
} 

.language-selection a:hover {
    background-color: #fc8232;
    transform: scale(1.1);
    color: #ffffff;
}

.social-media {
    text-align: center;
    padding: 10px 0;
    background: linear-gradient(90deg, #ffffff, #191919, #ffffff);
    color: var(--light-text);
    box-shadow: 0 4px 8px var(--shadow-color);
    position: relative; 
    z-index: 1000; 
}


.social-links {
    display: flex;
    justify-content: center;
    gap: 25px; 
    margin-top: 0px;
    margin-bottom: -10px;
}

.social-icon img {
    width: 25px;
    height: 25px;
    filter: grayscale(25%);
    transition: transform var(--transition-speed), filter 0.3s ease;
}

.social-icon img:hover {
    transform: scale(1.2);
    filter: grayscale(0%);
}

header {
    padding: 15px;
    text-align: center;
    background: #ffffff;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	position: relative;
    z-index: 999; 

}

header:hover {

    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align the logo to the left */
    padding-left: 0px; /* Optional: Add padding for spacing from the edge */
	margin-left:-20PX;
}

.logo {
    width: auto;
    height: 60px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}


/* Default styles for desktop */
.banner {
    position: relative;
    overflow: hidden;
    height: 505px; /* Fixed height for desktop */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    margin: 0 !important;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.mySlides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 4s ease-in-out;
    z-index: 1;
}

.mySlides.active {
    opacity: 1;
    z-index: 2;
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure images cover the entire banner */
}


.prev, .next {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    color: var(--light-text);
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.3s ease, transform 0.3s ease;
    user-select: none;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.2);
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
    transform: translateY(-50%) scale(1.1);
    background-color: rgba(0, 0, 0, 0.5);
}

.tabs {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    background: #ffffff;
    padding-top: 15px;
    border-bottom: 4px solid #337a3b; 
    border-top: 2px solid #fc8232;
	gap:100px;
}

.tab {
    font-family: 'Cairo', sans-serif;
    padding: 0px 20px;
    cursor: pointer;
    font-size: 18px;
    color: #ffffff; 
    background: linear-gradient(to bottom, #3e9948, #3e9948); 
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border: 1px solid #3e9948; 
    border-bottom: none; 
    margin: 0 5px;
    transition: background 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    position: relative;
	transform: translateY(-2px);
}

.tab:hover {
    background: linear-gradient(to bottom, #337a3b, #337a3b); 
    color: #ffffff;
     
}

.tab.active {
    background: #337a3b;
	font-weight:bold;
    color: #ffffff;
    border-bottom: 4px solid #337a3b; 
    z-index: 2;
    transform: translateY(0);
}

.tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 4px;
    background: #337a3b;
}

.content-display {
    padding-left: 20px;
	padding-bottom: 20px;
    margin: 20px;
    max-width: auto;
    font-family: 'cairo', sans-serif;
}

.footer {
    background: #ffffff;
    color: #191919;
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
    border-top: 2px solid #fc8232;

    margin-top: auto;
}

.rtl {
    direction: rtl;
    text-align: right;
}



.rtl .tabs {
    direction: rtl;
    text-align: right;
}

.rtl .tabs .tab {
    float: right;
    text-align: right;
}

.rtl .content-display {
    padding-right: 20px;
    padding-left: 10px;
}

@media only screen and (max-width: 1024px) {
    .logo {
        height: 50px;
		
    }
	
	.logo-container {
        justify-content: center; /* Center logo on smaller screens */
    }
	
	.social-links {
	gap:30px;
    display: flex;
    justify-content: left;
    gap: 25px; 
    margin-left: 10px;
    margin-bottom:1px;
}

    .banner {
        height: auto; /* Let height adjust dynamically */
        min-height: 300px; /* Set a minimum height for consistency */
        aspect-ratio: 16/9; /* Maintain aspect ratio */
    }

    .mySlides img {
        object-fit: cover; /* Ensure images cover the entire banner */
    }
	
    .tab {
        padding: 0px 20px; 
        font-size: 16px; 
    }

    .content-display {
        padding: 15px; 
        margin: 15px; 
    }

    .footer {
        padding: 15px;
    }
}

@media only screen and (max-width: 768px) {
    :root {
        --border-radius: 6px; 
    }
	
	.logo-container {
        justify-content: center; /* Center logo on smaller screens */
    }

    .logo {
        height: 40px; 
    }

     .banner {
        min-height: 250px; /* Adjust for smaller screens */
    }

 .language-selection {
        top: 5px;
        right: 5px;
        gap: 5px; 
        font-size: 10px;
    }

    .language-selection a {
        padding: 3px 8px; 
    }

    .social-media {
        padding: 5px 0; 
    }

    .social-links {
        gap: 20px; 
		margin-bottom:1px;
    }

    .social-icon img {
        width: 20px; 
        height: 20px;
    }

    .tabs {
        flex-direction: column;
        align-items: center;
        padding-top: 10px; 
		gap:0px;
    }

    .tab {
        width: 100%; 
        text-align: center; 
        padding: 8px 20px;
        font-size: 14px; 
        margin: 5px 0; 
    }

    .content-display {
        padding: 10px;
        margin: 10px; 
    }

    .footer {
        padding: 10px;
        font-size: 0.8rem;
    }

    .prev, .next {
        width: 30px; 
        height: 30px;
        font-size: 1.2rem; 
    }

    .prev {
        left: 5px;
    }

    .next {
        right: 5px;
    }
	
	
}

@media only screen and (max-width: 480px) {
    .logo {
        height: 30px; 
    }
	
	.logo-container {
        justify-content: center; /* Center logo on smaller screens */
    }
	
   .banner {
        min-height: 200px; /* Further adjust for very small screens */
    }

    .mySlides img {
        object-fit: contain; /* Prevent cropping for very small screens */
    }

    .tab {
        padding: 6px 15px; 
        font-size: 12px; 
    }

    .content-display {
        padding: 8px; 
        margin: 8px; 
    }

    .footer {
        padding: 8px;
        font-size: 0.7rem; 
    }
	
	 .language-selection {
        top: 2px; 
        right: 2px; 
        font-size: 8px;
    }

    .language-selection a {
        padding: 2px 5px; 
    }

    .social-media {
        padding: 3px 0;
    }

    .social-links {
        gap: 15px;
		margin-bottom:1px;
    }

    .social-icon img {
        width: 15px;
        height: 15px;
    }
}	

