/* Import Tajawal font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;900&display=swap');

/* --- CSS Variables for Colors and Spacing --- */
:root {
    /* Light Theme Colors */
    --primary-color: #3B82F6; /* Blue */
    --secondary-color: #10B981; /* Green */
    --background-light: #F9FAFB; /* Light gray */
    --background-gray: #E5E7EB; /* Lighter gray for sections */
    --text-light: #1F2937; /* Dark gray for text */
    --text-muted-light: #6B7280; /* Gray for muted text */
    --card-bg-light: #FFFFFF;
    --border-light: #D1D5DB; /* Gray-300 */
    --shadow-light: rgba(0, 0, 0, 0.1);

    /* Dark Theme Colors */
    --dark-bg: #111827; /* Darker dark mode background */
    --dark-gray-bg: #1F2937; /* Dark gray for sections and cards */
    --text-dark: #F3F4F6; /* Light text for dark mode */
    --text-muted-dark: #9CA3AF; /* Muted gray for dark mode text */
    --card-bg-dark: #374151; /* Deeper gray for dark mode cards */
    --border-dark: #4B5563; /* Gray-600 */
    --shadow-dark: rgba(0, 0, 0, 0.3);

    /* Spacing */
    --padding-section-y: 80px; /* Equivalent to py-16 */
    --padding-container-x: 1rem; /* px-4 */
    --max-width-container: 1280px; /* max-w-7xl */
}

/* Dark mode specific variables */
html[data-theme="dark"] {
    --background-light: var(--dark-bg);
    --background-gray: var(--dark-gray-bg);
    --text-light: var(--text-dark);
    --text-muted-light: var(--text-muted-dark);
    --card-bg-light: var(--card-bg-dark);
    --border-light: var(--border-dark);
    --shadow-light: var(--shadow-dark);
}

/* --- Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--background-light);
    color: var(--text-light);
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Direction and text-align are now handled by JS based on HTML dir attribute */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Utility Classes --- */
.container {
    max-width: var(--max-width-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--padding-container-x);
    padding-right: var(--padding-container-x);
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem; /* px-6 py-3 */
    font-weight: 500;
    border-radius: 0.5rem; /* rounded-lg */
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent; /* Default transparent border */
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
}

.btn-primary:hover {
    background-color: #2563EB; /* Darker blue */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); /* hover:shadow-xl */
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-icon .icon-margin-right {
    margin-right: 0.25rem; /* mr-1 */
    /* Adjust for LTR vs RTL via JS if needed, or if icon is at the start, use margin-left */
}

html[dir="ltr"] .btn-icon .icon-margin-right {
    margin-right: 0;
    margin-left: 0.25rem; /* For LTR, icon should be on the left */
}


/* --- Section Styling --- */
.section-padding {
    padding-top: var(--padding-section-y);
    padding-bottom: var(--padding-section-y);
}

.section-gray {
    background-color: var(--background-gray);
}

.section-light {
    background-color: var(--background-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem; /* mb-12 */
}

.section-title {
    font-size: 2.25rem; /* text-3xl */
    font-weight: 700; /* font-bold */
    margin-bottom: 1rem; /* mb-4 */
}

.section-description {
    font-size: 1.125rem; /* text-lg */
    color: var(--text-muted-light);
    max-width: 42rem; /* max-w-2xl */
    margin-left: auto;
    margin-right: auto;
}

/* --- Card Styles --- */
.card {
    background-color: var(--card-bg-light);
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 10px 15px -3px var(--shadow-light), 0 4px 6px -2px var(--shadow-light); /* shadow-lg */
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 20px 25px -5px var(--shadow-light), 0 8px 10px -6px var(--shadow-light); /* hover:shadow-xl */
}

.card-content {
    padding: 1.5rem; /* p-6 */
}

.card-title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700; /* font-bold */
    margin-bottom: 1rem; /* mb-4 */
    color: var(--text-light);
}

.card-title-small {
    font-size: 1.25rem; /* text-xl */
    font-weight: 700; /* font-bold */
    margin-bottom: 1rem; /* mb-4 */
    color: var(--text-light);
}

.card-description {
    color: var(--text-muted-light);
    margin-bottom: 1rem; /* mb-4 */
}

/* --- Header --- */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--card-bg-light); /* Use card background for header */
    opacity: 0.9; /* Simulate backdrop-blur-md */
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
    transition: background-color 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem; /* h-16 */
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo-link {
    color: var(--primary-color);
    font-weight: 700; /* font-bold */
    font-size: 1.5rem; /* text-2xl */
}

html[data-theme="dark"] .logo-secondary {
    color: var(--primary-color);
}
html[data-theme="light"] .logo-secondary {
    color: var(--secondary-color);
}


.nav-desktop {
    display: none; /* Hidden by default, shown on medium screens */
    align-items: center;
    gap: 0.25rem; /* space-x-1 */
}

.nav-link {
    padding: 0.5rem 0.75rem; /* px-3 py-2 */
    border-radius: 0.375rem; /* rounded-md */
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    color: var(--text-light);
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: var(--background-gray); /* hover:bg-gray-100 / hover:bg-gray-700 */
}

.nav-mobile-btn-container {
    display: block; /* Shown by default, hidden on medium screens */
}

.mobile-menu-btn {
    padding: 0.5rem; /* p-2 */
    border-radius: 0.375rem; /* rounded-md */
    color: var(--text-light);
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: var(--background-gray);
}

.mobile-menu-icon {
    display: block;
    height: 1.5rem; /* h-6 */
    width: 1.5rem; /* w-6 */
}

.mobile-menu-content {
    display: none; /* Hidden by default */
    background-color: var(--card-bg-light);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-lg */
}

.mobile-menu-content.active {
    display: block;
}

.mobile-menu-links {
    padding: 0.5rem 0.5rem 0.75rem; /* px-2 pt-2 pb-3 */
    display: flex;
    flex-direction: column;
    gap: 0.25rem; /* space-y-1 */
}

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0.75rem; /* px-3 py-2 */
    border-radius: 0.375rem; /* rounded-md */
    font-size: 1rem; /* text-base */
    font-weight: 500; /* font-medium */
    color: var(--text-light);
    transition: background-color 0.3s ease;
}

.mobile-nav-link:hover {
    background-color: var(--background-gray);
}

.mobile-menu-bottom-section {
    padding-top: 1rem; /* pt-4 */
    padding-bottom: 0.5rem; /* pb-2 */
    border-top: 1px solid var(--border-light);
}

.mobile-menu-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem; /* px-3 py-2 */
}

/* --- Dropdown (for Language Switcher) --- */
.dropdown {
    position: relative;
    display: inline-block; /* Or flex if needed for alignment */
}

.lang-switcher-btn {
    display: flex;
    align-items: center;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    padding: 0.5rem 0.75rem; /* px-3 py-2 */
    border-radius: 0.375rem; /* rounded-md */
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    transition: background-color 0.3s ease;
}

.lang-switcher-btn:hover {
    background-color: var(--background-gray);
}

.flag-margin {
    margin-left: 0.25rem; /* ml-1 */
}

html[dir="ltr"] .flag-margin {
    margin-right: 0.25rem; /* mr-1 */
    margin-left: 0;
}


.dropdown-arrow {
    width: 0.625rem; /* w-2.5 */
    height: 0.625rem; /* h-2.5 */
    margin-right: 0.5rem; /* ms-2 */
    color: currentColor; /* Inherit color */
}

html[dir="ltr"] .dropdown-arrow {
    margin-left: 0.5rem; /* ml-2 */
    margin-right: 0;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0; /* Align to right for RTL */
    margin-top: 0.5rem; /* mt-2 */
    min-width: 10rem; /* min-w-40 */
    background-color: var(--card-bg-light);
    box-shadow: 0 4px 6px -1px var(--shadow-light), 0 2px 4px -1px var(--shadow-light); /* shadow-md */
    border-radius: 0.5rem; /* rounded-lg */
    padding: 0.5rem; /* p-2 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    border: 1px solid var(--border-light); /* dark:border dark:border-gray-700 */
    z-index: 10; /* Ensure it's above other content */
}

html[dir="ltr"] .dropdown-menu {
    left: 0; /* Align to left for LTR */
    right: auto;
}

.dropdown[data-dropdown-active="true"] .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.875rem; /* gap-x-3.5 */
    padding: 0.5rem 0.75rem; /* py-2 px-3 */
    border-radius: 0.375rem; /* rounded-md */
    font-size: 0.875rem; /* text-sm */
    color: var(--text-light);
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--background-gray);
    color: var(--text-light); /* Ensure text color remains readable */
}

/* --- Theme Toggle --- */
.theme-toggle-btn {
    padding: 0.5rem; /* p-2 */
    border-radius: 0.5rem; /* rounded-lg */
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    transition: background-color 0.3s ease;
}

.theme-toggle-btn:hover {
    background-color: var(--background-gray);
}

.theme-icon {
    width: 1.25rem; /* w-5 */
    height: 1.25rem; /* h-5 */
}

.theme-icon-dark {
    display: none; /* hidden by default */
}

html[data-theme="dark"] .theme-icon-dark {
    display: block;
}

html[data-theme="light"] .theme-icon-light {
    display: block;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    overflow: hidden;
    background-color: var(--background-light);
    padding-top: 5rem; /* py-20 */
    padding-bottom: 5rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr; /* Single column by default */
    gap: 2rem; /* gap-8 */
    align-items: center;
}

.hero-text-container {
    text-align: center; /* Center by default */
}

html[dir="rtl"] .hero-text-container {
    text-align: center;
}

html[dir="ltr"] .hero-text-container {
    text-align: center;
}


.hero-title {
    font-size: 2.25rem; /* text-4xl */
    line-height: 1.25; /* leading-tight */
    font-weight: 700; /* font-bold */
    margin-bottom: 1.5rem; /* mb-6 */
}

.hero-description {
    font-size: 1.125rem; /* text-lg */
    color: var(--text-muted-light);
    margin-bottom: 2rem; /* mb-8 */
    max-width: 32rem; /* max-w-lg */
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column; /* Column by default */
    gap: 1rem; /* gap-4 */
    justify-content: center; /* Center buttons */
}

html[dir="rtl"] .hero-buttons {
    justify-content: center;
}

html[dir="ltr"] .hero-buttons {
    justify-content: center;
}


.hero-image-container {
    position: relative;
    display: none; /* Hidden on small screens */
}

.hero-image {
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* shadow-2xl */
    width: 100%;
    height: auto;
    max-width: 32rem; /* max-w-lg */
    margin-left: auto;
    margin-right: auto;
}

.hero-circle-secondary {
    position: absolute;
    bottom: -1.5rem; /* -bottom-6 */
    left: -1.5rem; /* -left-6 */
    width: 8rem; /* w-32 */
    height: 8rem; /* h-32 */
    background-color: var(--secondary-color);
    border-radius: 9999px; /* rounded-full */
    opacity: 0.2;
}
html[dir="ltr"] .hero-circle-secondary {
    left: auto;
    right: -1.5rem;
}

.hero-circle-primary {
    position: absolute;
    top: -1.5rem; /* -top-6 */
    right: -1.5rem; /* -right-6 */
    width: 6rem; /* w-24 */
    height: 6rem; /* h-24 */
    background-color: var(--primary-color);
    border-radius: 9999px; /* rounded-full */
    opacity: 0.2;
}
html[dir="ltr"] .hero-circle-primary {
    right: auto;
    left: -1.5rem;
}


/* Floating animation for hero image */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr)); /* Single column by default */
    gap: 2rem; /* gap-8 */
}

.service-card {
    background-color: var(--card-bg-light);
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 10px 15px -3px var(--shadow-light), 0 4px 6px -2px var(--shadow-light); /* shadow-lg */
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px var(--shadow-light), 0 8px 10px -6px var(--shadow-light);
}

.service-icon-wrapper {
    width: 3.5rem; /* w-14 */
    height: 3.5rem; /* h-14 */
    /* background-color handled dynamically by JS for dynamic opacity */
    border-radius: 0.5rem; /* rounded-lg */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem; /* mb-4 */
}

.service-icon {
    font-size: 1.5rem; /* text-2xl */
}

.service-title {
    font-size: 1.25rem; /* text-xl */
    font-weight: 700; /* font-bold */
    margin-bottom: 0.5rem; /* mb-2 */
    color: var(--text-light);
}

.service-description {
    color: var(--text-muted-light);
}

/* --- Courses Section --- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr)); /* Single column by default */
    gap: 1.5rem; /* gap-6 */
}

.course-card {
    background-color: var(--card-bg-light);
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 10px 15px -3px var(--shadow-light), 0 4px 6px -2px var(--shadow-light); /* shadow-lg */
    overflow: hidden;
    transition: all 0.3s ease;
}

.course-card:hover {
    box-shadow: 0 20px 25px -5px var(--shadow-light), 0 8px 10px -6px var(--shadow-light);
}

.course-icon-wrapper {
    width: 3rem; /* w-12 */
    height: 3rem; /* h-12 */
    background-color: rgba(var(--primary-color-rgb), 0.1); /* Primary color opacity */
    color: var(--primary-color);
    border-radius: 0.5rem; /* rounded-lg */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem; /* mb-4 */
}

.course-icon {
    font-size: 1.25rem; /* text-xl */
}

.course-title {
    font-size: 1.25rem; /* text-xl */
    font-weight: 700; /* font-bold */
    margin-bottom: 0.5rem; /* mb-2 */
    color: var(--text-light);
}

.course-info {
    display: flex;
    align-items: center;
    color: var(--text-muted-light);
    font-size: 0.875rem; /* text-sm */
    margin-bottom: 0.5rem; /* mb-2 */
}

.course-info i {
    margin-left: 0.25rem; /* ml-1 */
}
html[dir="ltr"] .course-info i {
    margin-right: 0.25rem; /* mr-1 */
    margin-left: 0;
}


/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr)); /* Single column by default */
    gap: 2rem; /* gap-8 */
}

.card-project-list {
    transition: all 0.3s ease;
}

.project-list-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* space-y-3 */
    color: var(--text-muted-light);
}

.project-list-item {
    display: flex;
    align-items: flex-start;
}

.project-list-icon {
    width: 1.25rem; /* w-5 */
    height: 1.25rem; /* h-5 */
    color: var(--secondary-color);
    margin-top: 0.25rem; /* mt-1 */
    margin-left: 0.5rem; /* ml-2 */
    flex-shrink: 0;
}
html[dir="ltr"] .project-list-icon {
    margin-right: 0.5rem; /* mr-2 */
    margin-left: 0;
}


.card-project-image .project-image {
    width: 100%;
    height: 16rem; /* h-64 */
    object-fit: cover;
}

.link-with-icon {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500; /* font-medium */
    transition: color 0.3s ease;
}

.link-with-icon:hover {
    color: #2563EB; /* Darker primary color on hover */
}

.link-with-icon .icon-margin-right {
    margin-right: 0.25rem; /* mr-1 */
}
html[dir="ltr"] .link-with-icon .icon-margin-right {
    margin-left: 0.25rem; /* ml-1 */
    margin-right: 0;
}


/* --- About Section --- */
.about-content {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr)); /* Single column by default */
    gap: 3rem; /* gap-12 */
    align-items: center;
}

html[dir="rtl"] .about-text-container {
    order: 2; /* order-2 for RTL */
}
html[dir="ltr"] .about-text-container {
    order: 1; /* order-1 for LTR */
}


.about-paragraph {
    font-size: 1.125rem; /* text-lg */
    color: var(--text-muted-light);
    margin-bottom: 1.5rem; /* mb-6 */
}

.about-highlight {
    font-weight: 700; /* font-bold */
    color: var(--primary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* grid-cols-2 */
    gap: 1rem; /* gap-4 */
    margin-bottom: 1.5rem; /* mb-6 */
}

.stat-item {
    background-color: var(--background-gray);
    padding: 1rem; /* p-4 */
    border-radius: 0.5rem; /* rounded-lg */
    text-align: center; /* Or right for RTL */
}

.stat-number {
    font-size: 1.25rem; /* text-xl */
    font-weight: 700; /* font-bold */
    color: var(--primary-color);
    margin-bottom: 0.5rem; /* mb-2 */
}

.stat-label {
    color: var(--text-muted-light);
}

html[dir="rtl"] .about-image-container {
    order: 1; /* order-1 for RTL */
}
html[dir="ltr"] .about-image-container {
    order: 2; /* order-2 for LTR */
}

.about-image {
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 10px 15px -3px var(--shadow-light), 0 4px 6px -2px var(--shadow-light); /* shadow-lg */
    width: 100%;
    height: auto;
    max-width: 32rem; /* max-w-lg */
    margin-left: auto;
    margin-right: auto;
}

.about-circle-secondary {
    position: absolute;
    bottom: -1.5rem; /* -bottom-6 */
    left: -1.5rem; /* -left-6 */
    width: 8rem; /* w-32 */
    height: 8rem; /* h-32 */
    background-color: var(--secondary-color);
    border-radius: 9999px; /* rounded-full */
    opacity: 0.2;
    z-index: -1;
}

html[dir="ltr"] .about-circle-secondary {
    left: auto;
    right: -1.5rem;
}


/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr)); /* Single column by default */
    gap: 2rem; /* gap-8 */
}

.contact-form-card {
    padding: 1.5rem; /* p-6 */
}

.contact-form-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* space-y-4 */
}

.form-group {
    margin-bottom: 0.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    color: var(--text-light);
    margin-bottom: 0.25rem; /* mb-1 */
}

.form-input {
    width: 100%;
    padding: 0.5rem 1rem; /* px-4 py-2 */
    border: 1px solid var(--border-light);
    border-radius: 0.5rem; /* rounded-lg */
    background-color: var(--background-light); /* Matches body/section background */
    color: var(--text-light);
    transition: all 0.3s ease;
}

html[data-theme="dark"] .form-input {
    background-color: var(--dark-gray-bg);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.25); /* ring-2 focus:ring-primary */
}

.form-submit-btn {
    width: 100%;
    margin-top: 1rem; /* Adjust as needed */
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* space-y-6 */
}

.contact-info-card, .operating-hours-card {
    padding: 1.5rem; /* p-6 */
}

.info-items-group {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* space-y-4 */
}

.info-item {
    display: flex;
    align-items: flex-start;
}

.info-icon-wrapper {
    flex-shrink: 0;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    padding: 0.75rem; /* p-3 */
    border-radius: 0.5rem; /* rounded-lg */
    color: var(--primary-color);
}

.info-icon {
    width: 1.5rem; /* w-6 */
    height: 1.5rem; /* h-6 */
}

.info-text-content {
    margin-right: 0.75rem; /* mr-3 */
}

html[dir="ltr"] .info-text-content {
    margin-left: 0.75rem; /* ml-3 */
    margin-right: 0;
}


.info-heading {
    font-weight: 500; /* font-medium */
    color: var(--text-light);
}

.info-detail {
    color: var(--text-muted-light);
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* space-y-2 */
}

.hour-item {
    display: flex;
    justify-content: space-between;
}

.hour-label {
    color: var(--text-muted-light);
}

.hour-time {
    font-weight: 500; /* font-medium */
    color: var(--text-light);
}

/* --- Footer --- */
.footer {
    background-color: #1a202c; /* Equivalent to gray-900 */
    color: white;
    padding-top: 4rem; /* pt-16 */
    padding-bottom: 2rem; /* pb-8 */
}

.footer-content {
    max-width: var(--max-width-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--padding-container-x);
    padding-right: var(--padding-container-x);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr)); /* Single column by default */
    gap: 2rem; /* gap-8 */
    margin-bottom: 3rem; /* mb-12 */
}

.footer-heading {
    font-size: 1.25rem; /* text-xl */
    font-weight: 700; /* font-bold */
    margin-bottom: 1rem; /* mb-4 */
}

.footer-sub-heading {
    font-size: 1.125rem; /* text-lg */
    font-weight: 600; /* font-semibold */
    margin-bottom: 1rem; /* mb-4 */
}

.footer-description {
    color: #A0AEC0; /* gray-400 */
    margin-bottom: 1rem; /* mb-4 */
}

.social-links {
    
    display: flex;
    gap: 1rem; /* space-x-4 */
    /* flex-direction controlled by JS */
}

.social-icon-link {
    color: #A0AEC0; /* gray-400 */
    transition: color 0.3s ease;
}

.social-icon-link:hover {
    color: white;
}

.social-icon {
    font-size: 1.25rem; /* text-xl */
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* space-y-2 */
}

.footer-link {
    color: #A0AEC0; /* gray-400 */
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.newsletter-form {
    display: flex;
}

.newsletter-input {
    padding: 0.5rem 1rem; /* px-4 py-2 */
    /* border-radius controlled by JS */
    width: 100%;
    background-color: #2D3748; /* gray-800 */
    color: white;
    border: none;
    outline: none;
}

.newsletter-input:focus {
    outline: 2px solid var(--primary-color);
}

.newsletter-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem; /* px-4 py-2 */
    /* border-radius controlled by JS */
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-button:hover {
    background-color: #2563EB; /* Darker blue */
}

.newsletter-icon {
    width: 1.25rem; /* w-5 */
    height: 1.25rem; /* h-5 */
}

.footer-bottom {
    border-top: 1px solid #2D3748; /* border-gray-800 */
    padding-top: 2rem; /* pt-8 */
    display: flex;
    flex-direction: column; /* Column by default */
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: #A0AEC0; /* gray-400 */
    font-size: 0.875rem; /* text-sm */
    margin-bottom: 1rem; /* mb-4 */
}

.footer-utility-links {
    display: flex;
    gap: 1.5rem; /* space-x-6 */
    /* flex-direction controlled by JS */
}

.footer-utility-links .footer-link {
    font-size: 0.875rem; /* text-sm */
}

/* --- Back to Top Button --- */
.back-to-top-btn {
    position: fixed;
    bottom: 2rem; /* bottom-8 */
    right: 2rem; /* right-8 */
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem; /* p-3 */
    border-radius: 9999px; /* rounded-full */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    z-index: 40;
}

.back-to-top-btn:hover {
    background-color: #2563EB; /* hover:bg-blue-700 */
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-icon {
    width: 1.5rem; /* w-6 */
    height: 1.5rem; /* h-6 */
}

/* --- Media Queries for Responsiveness (Desktop/Tablet) --- */
@media (min-width: 768px) { /* md breakpoint */
    .hero-section {
        padding-top: 7rem; /* md:py-28 */
        padding-bottom: 7rem;
    }

    .hero-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-text-container {
        text-align: right; /* md:text-right for RTL */
    }
    html[dir="ltr"] .hero-text-container {
        text-align: left; /* md:text-left for LTR */
    }

    .hero-description {
        margin-left: 0; /* md:mx-0 */
        margin-right: 0;
    }

    .hero-buttons {
        flex-direction: row; /* sm:flex-row */
        justify-content: flex-start; /* md:justify-start for RTL */
    }
    html[dir="ltr"] .hero-buttons {
        justify-content: flex-start; /* For LTR, buttons align left */
    }


    .hero-image-container {
        display: block; /* md:block */
    }

    .nav-desktop {
        display: flex; /* md:flex */
    }

    .nav-mobile-btn-container {
        display: none; /* md:hidden */
    }

    .mobile-menu-content {
        display: none; /* md:hidden */
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* md:grid-cols-2 */
    }

    .courses-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* sm:grid-cols-2 */
    }

    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* md:grid-cols-2 */
    }

    .about-content {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* md:grid-cols-2 */
    }

    /* Order for about section for desktop */
    html[dir="rtl"] .about-text-container {
        order: 1; /* md:order-1 for RTL */
    }
    html[dir="ltr"] .about-text-container {
        order: 1; /* md:order-1 for LTR */
    }
    html[dir="rtl"] .about-image-container {
        order: 2; /* md:order-2 for RTL */
    }
    html[dir="ltr"] .about-image-container {
        order: 2; /* md:order-2 for LTR */
    }


    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* md:grid-cols-2 */
    }

    .footer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)); /* md:grid-cols-4 */
    }

    .footer-bottom {
        flex-direction: row; /* md:flex-row */
    }

    .footer-copyright {
        margin-bottom: 0; /* md:mb-0 */
    }
}

@media (min-width: 1024px) { /* lg breakpoint */
    .section-title {
        font-size: 2.75rem; /* lg:text-5xl for hero, lg:text-4xl for others */
    }
    .hero-title {
        font-size: 3.75rem; /* lg:text-6xl */
    }
    .courses-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)); /* lg:grid-cols-4 */
    }
    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)); /* lg:grid-cols-3 */
    }
}


/* --- RGB values for dynamic opacity backgrounds --- */
/* These are needed for dynamic opacity backgrounds like .service-icon-wrapper and .info-icon-wrapper */
/* You will need to manually update these if you change --primary-color or --secondary-color */
:root {
    --primary-color-rgb: 59, 130, 246; /* RGB of #3B82F6 */
    --secondary-color-rgb: 16, 185, 129; /* RGB of #10B981 */
}

/* Fallback for service icon color if no specific color is provided */
.service-icon-wrapper {
    color: var(--primary-color); /* Default icon color */
}