/* Google Fonts: Cairo */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;900&display=swap');

/* Font Awesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css');

/* Custom Styles */
:root {
    --primary: #dc2626;
    --secondary: #1f2937;
    --accent: #f87171;
    --light: #FFFFFF;
    --light-bg: #f8fafc;
    --dark: #333333;
    --border-radius: 0.75rem;
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Cairo', sans-serif;
    scroll-behavior: smooth;
    background-color: #f8fafc;
    color: #333333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

.section-title p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 700px;
    margin: 1rem auto 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1.125rem;
    box-shadow: var(--box-shadow);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--light);
}

.btn-primary:hover {
    background-color: #b91c1c;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.25);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--light);
}

.btn-secondary:hover {
    background-color: #111827;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(31, 41, 55, 0.25);
}

.gradient-bg {
    background-color: #1f2937;
    background-image: 
        radial-gradient(at 27% 37%, hsla(355, 70%, 50%, 0.1) 0px, transparent 50%), 
        radial-gradient(at 97% 21%, hsla(355, 70%, 65%, 0.15) 0px, transparent 50%),
        radial-gradient(at 70% 94%, hsla(355, 70%, 55%, 0.1) 0px, transparent 50%);
}

.gradient-text {
    background: linear-gradient(90deg, #ef4444, #f87171);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-right: 0.625rem;
    font-weight: 900;
}

.logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    position: relative;
    margin: 0 0.75rem;
}

.nav-menu a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    display: block;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu .dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    background-color: var(--light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #eee;
    display: block;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.header-actions {
    display: flex;
    align-items: center;
}

.lang-toggle {
    margin: 0 1rem;
    font-size: 0.875rem;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    gap: 0.25rem;
}

.lang-toggle .active {
    font-weight: 700;
    color: var(--primary);
}

.search-icon {
    margin: 0 1rem;
    color: var(--dark);
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--light);
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1740&q=80') center/cover no-repeat;
    z-index: -1;
    filter: brightness(0.5);
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #d1d5db;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero .slogan {
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff;
    margin-top: 1rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* AI Search Box Styles */
.ai-search-box {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.ai-search-box h3 {
    color: var(--secondary);
    margin-bottom: 1.25rem;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 800;
}

.ai-search-box p.text-sm {
    color: #4b5563;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.ai-search-box input[type="text"] {
    padding: 1rem;
    border: 1px solid #c7d2fe;
    border-radius: 0.75rem;
    background-color: #fefefe;
    font-size: 1.1rem;
    color: #333;
    transition: all 0.3s ease;
}

.ai-search-box input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.ai-search-box #ask-ai-btn {
    background-color: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.15rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
}

.ai-search-box #ask-ai-btn:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(220, 38, 38, 0.4);
}

#ai-response-area {
    background-color: #eef2f6;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #d1d5db;
    margin-top: 1.5rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

#ai-loading-indicator {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#ai-loading-indicator i {
    font-size: 1.25rem;
}

#ai-response-text {
    color: #1f2937;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: right;
}

.search-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin-top: 3.125rem;
    box-shadow: var(--box-shadow);
}

.search-box h3 {
    color: var(--secondary);
    margin-bottom: 1.25rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 0.5rem;
    color: var(--secondary);
    font-weight: 600;
}

.filter-group select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background: var(--light);
    color: var(--dark);
}

.search-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
}

/* Features Section - MODIFIED */
.features {
    background-color: var(--light-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-top: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-top: 3px solid var(--primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary);
    font-size: 1.75rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.9rem;
}

/* Certificate Showcase Section */
.certificate-showcase {
    background-color: var(--light-bg);
    padding: 5rem 0;
}

.certificate-showcase .certificate-image-container {
    perspective: 1000px;
}

.certificate-showcase .certificate-image {
    background-color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: transform 0.5s ease-out, box-shadow 0.3s ease;
    transform: rotateY(-10deg) rotateX(3deg);
}

.certificate-showcase .certificate-image:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(220, 38, 38, 0.25);
}

.certificate-showcase .benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: right;
}

.certificate-showcase .benefit-icon {
    background-color: rgba(220, 38, 38, 0.1);
    color: var(--primary);
    padding: 0.75rem;
    border-radius: 9999px;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.certificate-showcase .benefit-item h3 {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--secondary);
}

.certificate-showcase .benefit-item p {
    color: #6b7280;
}

/* Philosophy Section - MODIFIED */
.philosophy-section {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.philosophy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(220,38,38,0.1)"/></svg>');
    background-size: cover;
    opacity: 0.1;
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.philosophy-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.philosophy-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    border-radius: 2px;
}

.philosophy-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #f87171;
}

.philosophy-statement {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 1rem;
}

.philosophy-highlight {
    color: #f87171;
    font-weight: 700;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.value-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(220, 38, 38, 0.3);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}

.value-card:hover::before {
    transform: translateY(0);
}

.value-icon {
    font-size: 2rem;
    color: #f87171;
    margin-bottom: 1rem;
    transition: all 0.4s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.2);
    color: #fff;
}

.value-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.philosophy-cta {
    margin-top: 2.5rem;
    display: inline-block;
    background: linear-gradient(135deg, #dc2626, #1f2937);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.philosophy-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
    background: linear-gradient(135deg, #b91c1c, #111827);
}

/* رسوم متحركة للفلسفة */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating-icon {
    animation: float 4s ease-in-out infinite;
}

/* Accreditation Section */
.accreditation-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.accreditation-note {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    border-right: 8px solid var(--primary);
}

.accreditation-note i {
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.5;
}

.accreditation-note h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--secondary);
}

.accreditation-note p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 800px;
    line-height: 1.7;
}

/* Verification Section */
.verification-section {
    background-color: var(--light-bg);
    padding: 5rem 0;
}

.verification-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.verification-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 1.25rem;
    text-align: center;
    background: #f9f9f9;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.125rem;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--light);
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

.tab-content {
    padding: 2.5rem;
}

.verification-form {
    margin-bottom: 1.875rem;
}

.verification-form h3 {
    color: var(--secondary);
    margin-bottom: 1.25rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input {
    width: 100%;
    padding: 0.9375rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.verification-result {
    background: #f9f9f9;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1.875rem;
    display: none;
}

.result-title {
    color: var(--secondary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.result-item {
    background: var(--light);
    padding: 0.9375rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.result-item h4 {
    color: var(--primary);
    margin-bottom: 0.3125rem;
    font-weight: 600;
}

.status-badge {
    padding: 0.3125rem 0.9375rem;
    border-radius: 9999px;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.625rem;
}

.status-valid {
    background: rgba(141, 198, 63, 0.2);
    color: #5e8e28;
}

.status-expired {
    background: rgba(241, 90, 36, 0.2);
    color: #c73a0b;
}

.status-renewing {
    background: rgba(255, 193, 7, 0.2);
    color: #b08d2c;
}

/* Courses Section */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.course-img {
    height: 200px;
    background: var(--secondary);
    position: relative;
    background-size: cover;
    background-position: center;
}

.course-category {
    position: absolute;
    top: 0.9375rem;
    left: 0.9375rem;
    background: var(--accent);
    color: var(--light);
    padding: 0.3125rem 0.9375rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.course-content {
    padding: 1.5rem;
}

.course-rating {
    display: flex;
    align-items: center;
    margin-bottom: 0.625rem;
}

.course-rating .stars {
    display: flex;
    margin-left: 0.3125rem;
}

.course-rating .stars i {
    color: #FFC107;
    font-size: 0.875rem;
}

.course-rating .rating-value {
    color: #6b7280;
    margin-right: 0.625rem;
    font-weight: 600;
}

.course-content h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: 700;
    height: 60px;
    display: flex;
    align-items: center;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.course-meta div {
    display: flex;
    align-items: center;
}

.course-meta i {
    margin-left: 0.3125rem;
}

.course-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.price h4 {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

.price .old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 1rem;
    margin-left: 0.3125rem;
}

.course-btns {
    display: flex;
    gap: 0.625rem;
}

/* Stats Section */
.stats {
    background: linear-gradient(rgba(31, 41, 55, 0.9), rgba(31, 41, 55, 0.9)), url('https://images.unsplash.com/photo-1521737711867-e3b97375f902') center/cover no-repeat;
    color: var(--light);
    text-align: center;
    padding: 5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    padding: 1.875rem 0.9375rem;
}

.stat-item .number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.625rem;
    color: var(--primary);
}

.stat-item .label {
    font-size: 1.25rem;
}

/* Trainers Section - MODIFIED */
.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

.trainer-card {
    background: var(--light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
    max-width: 300px;
    margin: 0 auto;
}

.trainer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.trainer-img {
    height: 220px;
    background: var(--secondary);
    background-size: cover;
    background-position: center;
}

.trainer-content {
    padding: 1rem;
    text-align: center;
}

.trainer-content h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.trainer-specialty {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
}

.trainer-certifications {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.cert-badge {
    background: var(--light-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.trainer-btn {
    width: 100%;
}

/* Partners Section */
.partners {
    padding: 3.75rem 0;
}

.partners-slider {
    display: flex;
    overflow: hidden;
    position: relative;
    height: 100px;
}

.partners-track {
    display: flex;
    animation: slide 20s linear infinite;
}

.partner-logo {
    flex-shrink: 0;
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 1.5rem;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Digital Products Section */
.digital-products {
    background-color: var(--light-bg);
    padding: 5rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

.product-img {
    height: 200px;
    background: var(--secondary);
    background-size: cover;
    background-position: center;
    position: relative;
}

.product-content {
    padding: 1.5rem;
}

.product-type {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.625rem;
    display: block;
    font-size: 0.9rem;
}

.product-content h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 700;
}

.product-content p {
    color: #6b7280;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price h4 {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

.product-price .old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 1rem;
    margin-left: 0.3125rem;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.blog-img {
    height: 200px;
    background: var(--secondary);
    background-size: cover;
    background-position: center;
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.625rem;
    display: block;
}

.blog-content h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 700;
    height: 70px;
    display: flex;
    align-items: center;
}

.blog-content p {
    color: #6b7280;
    margin-bottom: 1.25rem;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.read-more i {
    margin-right: 0.3125rem;
    transition: var(--transition);
}

.read-more:hover i {
    margin-right: 0.625rem;
}

/* Newsletter Section */
.newsletter {
    background: var(--secondary);
    padding: 5rem 0;
    color: var(--light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1543269865-cbf427effbad?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1740&q=80') center/cover no-repeat;
    z-index: 0;
    filter: brightness(0.4);
}

.newsletter-content {
    position: relative;
    z-index: 1;
}

.newsletter h2 {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    font-weight: 800;
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 1.875rem;
    font-size: 1.125rem;
    opacity: 0.9;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
}

.newsletter-form input {
    padding: 0.9375rem 1.25rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
}

.newsletter-form .full-width {
    grid-column: span 2;
}

.newsletter-form .btn {
    border-radius: var(--border-radius);
    grid-column: span 2;
}

.social-subscription {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-subscription a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.social-subscription a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.social-subscription a i {
    margin-left: 0.5rem;
}

.whatsapp-subscription {
    background: #25D366 !important;
}

.instagram-subscription {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
}

/* New Sections */
.special-offers {
    background: linear-gradient(135deg, #f8fafc, #e5e7eb);
    padding: 5rem 0;
    text-align: center;
}

.offers-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.offer-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    border-radius: 2px;
}

.offer-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.offer-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.offer-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.offer-card .btn {
    margin-top: 1rem;
}

/* Footer */
footer {
    background: #111;
    color: #aaa;
    padding-top: 4.375rem;
    padding-bottom: 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3.125rem;
}

.footer-column h3 {
    color: var(--light);
    font-size: 1.375rem;
    margin-bottom: 1.5625rem;
    position: relative;
    padding-bottom: 0.625rem;
    font-weight: 700;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.footer-contact p {
    margin-bottom: 0.9375rem;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--primary);
    margin-left: 0.625rem;
    margin-top: 0.3125rem;
}

.footer-links a {
    display: block;
    color: #aaa;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-right: 0.3125rem;
}

.social-links {
    display: flex;
    gap: 0.9375rem;
    margin-top: 1.25rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #222;
    border-radius: 50%;
    color: var(--light);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 1.25rem;
}

.payment-methods div {
    background: #222;
    padding: 0.5rem 0.9375rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.accreditation-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.accreditation-badge i {
    font-size: 2rem;
    color: var(--primary);
}

.accreditation-badge span {
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.875rem;
}

/* Floating Buttons */
.floating-btns {
    position: fixed;
    bottom: 1.875rem;
    left: 1.875rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.9375rem;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    transition: var(--transition);
    text-decoration: none;
}

.floating-btn:hover {
    transform: translateY(-5px);
}

.floating-btn.whatsapp {
    background: #25D366;
}

.floating-btn.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.floating-btn.phone {
    background: var(--secondary);
}

/* New Floating Button */
.become-trainer-btn {
    position: fixed;
    bottom: 1.875rem;
    right: 1.875rem;
    z-index: 999;
    background: linear-gradient(135deg, #dc2626, #1f2937);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.become-trainer-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Modal Styles */
.modal {
    transition: opacity 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal.visible {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    position: relative;
    width: 100%;
}

.modal.visible .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #777;
    z-index: 10;
}

.close-modal:hover {
    color: #333;
}

/* Search Results Modal */
.search-results-modal .modal-content {
    max-width: 800px;
    padding: 2rem;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.result-course-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.result-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.result-course-img {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.result-course-content {
    padding: 1rem;
}

.result-course-content h3 {
    font-size: 1.125rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.result-course-meta {
    display: flex;
    justify-content: space-between;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.result-course-price {
    font-weight: 700;
    color: var(--primary);
    margin-top: 0.5rem;
}

/* إضافة أنماط جديدة للترجمة */
.google-translate-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
}

.google-translate-container.active {
    display: block;
}

.translation-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(255,255,255,0.9);
    padding: 10px 15px;
    border-radius: 30px;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.translation-indicator:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.translation-indicator .lang-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-block;
    background-size: cover;
}

.translation-indicator .lang-flag.ar {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 480"><path fill="#ce1126" d="M0 0h640v160H0z"/><path fill="#fff" d="M0 160h640v160H0z"/><path fill="#000" d="M0 320h640v160H0z"/></svg>');
}

.translation-indicator .lang-flag.fr {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 480"><path fill="#fff" d="M0 0h213.3v480H0z"/><path fill="#002654" d="M213.3 0h213.4v480H213.3z"/><path fill="#ce1126" d="M426.7 0H640v480H426.7z"/></svg>');
}

.no-translate {
    user-select: none;
}

/* Product Modal */
.product-modal .modal-content {
    max-width: 800px;
    padding: 2rem;
}

.product-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.product-modal-img {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 0.75rem;
}

.product-modal-content h2 {
    font-size: 1.75rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.product-modal-price {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    margin: 1.5rem 0;
}

.product-modal-description {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.product-modal-features {
    margin-bottom: 1.5rem;
}

.product-modal-features h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.product-modal-features ul {
    padding-right: 1.5rem;
}

.product-modal-features li {
    margin-bottom: 0.5rem;
}

.product-modal-actions {
    display: flex;
    gap: 1rem;
}

/* Course Details Modal specific styles */
#course-details-modal .modal-content {
    max-width: 1000px;
    padding: 0;
}

#course-details-modal .modal-header {
    background-color: var(--secondary);
    color: var(--light);
    padding: 2rem;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    text-align: center;
}

#course-details-modal .modal-header h2 {
    color: var(--light);
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

#course-details-modal .modal-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

#course-details-modal .modal-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#course-details-modal .video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

#course-details-modal .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

#course-details-modal .course-info,
#course-details-modal .course-description,
#course-details-modal .registration-form,
#course-details-modal .course-objectives,
#course-details-modal .course-audience {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

#course-details-modal .registration-form {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid var(--primary);
}

#course-details-modal .registration-form iframe {
    min-height: 400px;
}

#course-details-modal .course-info .info-item:last-child {
    border-bottom: none;
}

#course-details-modal .course-objectives ul,
#course-details-modal .course-features ul {
    list-style: disc;
    padding-right: 1.5rem;
}

#course-details-modal .course-objectives li,
#course-details-modal .course-features li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* Trainer Details Modal specific styles */
#trainer-details-modal .modal-content {
    max-width: 900px;
    padding: 2rem;
}

#trainer-details-modal .trainer-profile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    #trainer-details-modal .trainer-profile {
        grid-template-columns: 250px 1fr;
    }
}

#trainer-details-modal .trainer-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin: 0 auto;
    box-shadow: var(--box-shadow);
    border: 4px solid var(--primary);
    flex-shrink: 0;
}

#trainer-details-modal .trainer-bio,
#trainer-details-modal .trainer-experience,
#trainer-details-modal .trainer-certifications {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

#trainer-details-modal .trainer-experience ul {
    list-style: disc;
    padding-right: 1.5rem;
}

#trainer-details-modal .trainer-experience li {
    margin-bottom: 0.5rem;
    color: #555;
}

#trainer-details-modal .trainer-certifications .cert-badge {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Blog Article Modal specific styles */
#blog-article-modal .modal-content {
    max-width: 800px;
    padding: 0;
}

#blog-article-modal .blog-article-modal-content {
    padding: 2.5rem;
}

#blog-article-modal .blog-article-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    margin-bottom: 1.5rem;
}

#blog-article-modal .blog-article-date {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

#blog-article-modal .blog-article-title {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
}

#blog-article-modal .blog-article-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #555;
}

/* AI Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chatbot-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #dc2626;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.chatbot-button:hover {
    transform: scale(1.1);
    background-color: #b91c1c;
}

.chatbot-window {
    display: none;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    flex-direction: column;
    overflow: hidden;
}

.chatbot-container.active .chatbot-window {
    display: flex;
}

.chat-header {
    background: #dc2626;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    position: relative;
}

.bot-message {
    background: #f1f1f1;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.user-message {
    background: #dc2626;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    outline: none;
    font-family: 'Cairo', sans-serif;
}

.chat-input button {
    margin-right: 10px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 3px;
    text-align: right;
}
/* نافذة الهدية المنبثقة - تصميم مطوّر */
#special-offer-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
    backdrop-filter: blur(5px);
}

#special-offer-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

#special-offer-popup.active .popup-content {
    transform: translateY(0) scale(1);
}

.popup-header {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.limited-badge {
    background-color: #faf089;
    color: #744210;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}

.close-popup {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-popup:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.popup-body {
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.popup-body::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(239, 68, 68, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.popup-body::after {
    content: "";
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 120px;
    height: 120px;
    background: rgba(239, 68, 68, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.gift-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
}

.gift-icon i {
    font-size: 40px;
    color: white;
}

.popup-body h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.popup-body p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    font-size: 16px;
}

.popup-footer {
    padding: 0 30px 30px;
    text-align: center;
}

.discover-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.discover-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.discover-btn:hover::before {
    left: 100%;
}

.discover-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.discover-btn i {
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.discover-btn:hover i {
    transform: translateX(-5px);
}

/* Scroll Animation Styles */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .section {
        padding: 3.75rem 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .header-actions .btn {
        display: none;
    }

    .hero-btns .btn {
        width: 100%;
        margin-bottom: 0.625rem;
    }

    .newsletter-form {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form .full-width {
        grid-column: span 1;
    }
    
    .translation-indicator {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .product-modal-grid {
        grid-template-columns: 1fr;
    }

    #course-details-modal .course-details-grid {
        grid-template-columns: 1fr;
    }
    
    .chatbot-window {
        width: 300px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }

    .section-title h2 {
        font-size: 1.4rem; /* تم التصغير */
    }

    .hero h1 {
        font-size: 1.5rem; /* تم التصغير */
    }

    .hero p {
        font-size: 0.9rem; /* تم التصغير */
    }

    .search-filters {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h3 {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
    
    .footer-column h3::after {
        right: 50%;
        transform: translateX(50%);
    }

    .accreditation-note {
        flex-direction: column;
        text-align: center;
    }

    .become-trainer-btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    .philosophy-title {
        font-size: 2rem;
    }
    
    .philosophy-subtitle {
        font-size: 1.25rem;
    }
    
    .philosophy-statement {
        font-size: 1.1rem;
    }
    
    .offers-container {
        flex-direction: column;
        align-items: center;
    }
    
    .chatbot-window {
        width: 280px;
        height: 380px;
    }

    /* ==== RESPONSIVE FIXES START ==== */
    /* تعديلات لجعل الخانات أصغر وأكثر تناسقًا على الموبايل */
    .ai-search-box input[type="text"],
    .filter-group select,
    .newsletter-form input {
        font-size: 0.8rem; /* تم التصغير */
        padding: 0.55rem 0.8rem; /* تم التصغير */
    }

    .ai-search-box, .search-box {
        padding: 1rem 0.8rem; /* تم التصغير */
    }
    /* ==== RESPONSIVE FIXES END ==== */
}

@media (max-width: 576px) {
    .logo h1 {
        font-size: 1rem; /* تم التصغير */
    }

    .hero h1 {
        font-size: 1.4rem; /* تم التصغير */
    }

    .feature-card {
        padding: 1.25rem;
    }

    .floating-btns {
        bottom: 1.25rem;
        left: 1.25rem;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .verification-tabs {
        flex-direction: column;
    }
    
    .tab-content {
        padding: 1.25rem;
    }
    
    .translation-indicator {
        bottom: 80px;
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .product-modal-actions {
        flex-direction: column;
    }
    
    .chatbot-window {
        width: 90vw;
        height: 70vh;
        bottom: 80px;
        right: 5vw;
    }

    /* ==== RESPONSIVE FIXES START ==== */
    /* تصغير إضافي للشاشات الصغيرة جدًا */
    .ai-search-box input[type="text"],
    .filter-group select,
    .newsletter-form input {
        padding: 0.5rem; /* تم التصغير */
    }
    
    .search-box h3, .ai-search-box h3 {
        font-size: 1rem; /* تم التصغير */
    }

    .btn {
        padding: 0.4rem 1rem; /* تم التصغير */
        font-size: 0.75rem; /* تم التصغير */
    }

    .hero-btns {
        flex-direction: column;
        gap: 0.75rem;
    }
    /* ==== RESPONSIVE FIXES END ==== */
}
  /* أنماط الـ Popup */
.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-container.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(50px);
    transition: transform 0.5s ease;
}

.popup-container.active .popup-content {
    transform: translateY(0);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.1);
}

.limited-badge {
    background-color: #fff;
    color: #ff6b6b;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.close-popup {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s;
}

.close-popup:hover {
    transform: rotate(90deg);
}

.popup-body {
    padding: 30px;
    text-align: center;
    color: white;
}

.gift-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

.popup-body h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
}

.popup-body p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.popup-footer {
    padding: 0 30px 30px;
    text-align: center;
}

.discover-btn {
    display: inline-flex;
    align-items: center;
    background-color: white;
    color: #ff6b6b;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.discover-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

.discover-btn i {
    margin-right: 8px;
    transition: transform 0.3s;
}

.discover-btn:hover i {
    transform: translateX(-5px);
}

/* تحسينات الـ Chatbot */
.chatbot-container.active .chatbot-window {
    transform: translateY(0);
    opacity: 1;
}

.chat-message {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.typing-indicator {
    display: flex;
    padding: 10px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: #888;
    border-radius: 50%;
    margin: 0 3px;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingAnimation {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}


