.page-container {
    padding-top: 60px;
    padding-bottom: 60px;
}
.hero-section {
    position: relative;
    height: 50vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(53, 52, 102, 0.7);
}
.hero-section .container {
    position: relative;
    z-index: 2;
}
.hero-section h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-size: 22px;
    font-weight: 400;
    opacity: 0.9;
}
.alert { padding: 15px; margin-bottom: 20px; border-radius: 8px; font-weight: 700; }
.alert-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.creative-grid-container { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(2, 250px); gap: 30px; }
.card { border-radius: 15px; overflow: hidden; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 10px 30px -10px rgba(0,0,0,0.2); }
.card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px -15px rgba(0,0,0,0.3); }
.main-card { grid-column: 1 / 8; grid-row: 1 / 3; position: relative; background-size: cover; background-position: center; color: white; display: flex; flex-direction: column; justify-content: flex-end; padding: 40px; }
.main-card::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 50%); }
.main-card .card-content { position: relative; z-index: 2; }
.main-card h1 { font-size: 42px; margin-bottom: 15px; color: white; }
.main-card p { font-size: 18px; line-height: 1.6; max-width: 80%; }
.feature-card { grid-column: 8 / 13; background-color: #ffffff; border: 1px solid #e9ecef; padding: 30px; display: flex; flex-direction: column; }
.feature-card:nth-child(2) { grid-row: 1 / 2; }
.feature-card:nth-child(3) { grid-row: 2 / 3; }
.card-icon { width: 60px; height: 60px; background-color: var(--primary-color); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.card-icon svg { width: 32px; height: 32px; color: white; }
.feature-card h3 { font-size: 24px; color: var(--primary-color); margin-top: 0; margin-bottom: 15px; }
.feature-card p { font-size: 16px; line-height: 1.8; color: #555; }

.services-section { padding-top: 80px; padding-bottom: 80px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
a.service-card { text-decoration: none; color: inherit; }
.service-card { background-color: #ffffff; border: 1px solid #e9ecef; border-radius: 15px; padding: 40px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: all 0.3s ease-in-out; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: var(--secondary-color); }
.service-icon { width: 70px; height: 70px; margin: 0 auto 25px auto; background-color: var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease-in-out; }
.service-card:hover .service-icon { background-color: var(--secondary-color); transform: rotate(15deg); }
.service-icon svg { width: 36px; height: 36px; color: white; }
.service-card h3 { font-size: 22px; color: var(--primary-color); margin-bottom: 15px; }
.service-card p { font-size: 16px; line-height: 1.8; color: #666; margin-bottom: 25px; }
.read-more-btn { color: var(--secondary-color); text-decoration: none; font-weight: 700; }

.page-content {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}
.page-content h1, .page-content h2, .page-content h3 {
    color: var(--primary-color);
}
.page-content p {
    font-size: 17px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 20px;
}

.portfolio-section { padding-top: 80px; padding-bottom: 80px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.portfolio-card { position: relative; min-height: 450px; border-radius: 15px; overflow: hidden; background-size: cover; background-position: center; color: white; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transition: all 0.4s ease; }
.portfolio-card:hover { transform: scale(1.03); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.card-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.7) 100%); transition: all 0.4s ease; }
.portfolio-card:hover .card-overlay { background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 80%); }
.portfolio-card-content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px; z-index: 2; box-sizing: border-box; }
.brand-logo { max-height: 50px; width: auto; margin-bottom: 20px; filter: brightness(0) invert(1); }
.portfolio-card-content h3 { font-size: 26px; margin: 0 0 10px 0; color: white; }
.portfolio-card-content p { font-size: 16px; line-height: 1.7; margin: 0; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.4s ease, opacity 0.4s ease 0.2s; }
.portfolio-card:hover .portfolio-card-content p { max-height: 200px; opacity: 1; }

.sources-section { padding-top: 80px; padding-bottom: 80px; }
.featured-post { display: flex; background-color: white; border-radius: 15px; box-shadow: 0 15px 40px -15px rgba(0,0,0,0.1); margin-bottom: 60px; overflow: hidden; transition: all 0.3s ease; }
.featured-post:hover { transform: translateY(-5px); box-shadow: 0 20px 45px -15px rgba(0,0,0,0.15); }
.featured-post-image { flex: 0 0 50%; }
.featured-post-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-post-content { flex: 1 1 50%; padding: 40px; }
.featured-post-content h2 { font-size: 32px; margin: 15px 0; }
.featured-post-content h2 a { color: var(--primary-color); text-decoration: none; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.post-card { background-color: white; border-radius: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); overflow: hidden; transition: all 0.3s ease; }
.post-card:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0,0,0,0.1); }
.post-card-image-link img { width: 100%; height: 200px; object-fit: cover; display: block; }
.post-card-content { padding: 25px; }
.post-card-content h3 { font-size: 20px; margin: 10px 0; line-height: 1.4; }
.post-card-content h3 a { color: var(--primary-color); text-decoration: none; }
.post-category { display: inline-block; background-color: var(--primary-color); color: white; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.post-meta { font-size: 14px; color: #888; }

.contact-page-wrapper { padding: 80px 0; }
.contact-panel { display: grid; grid-template-columns: 3fr 2fr; background-color: white; border-radius: 20px; box-shadow: 0 20px 50px -20px rgba(53, 52, 102, 0.2); overflow: hidden; min-height: 600px; }
.contact-form-wrapper { padding: 50px; }
.form-title { font-size: 32px; font-weight: 700; color: var(--primary-color); margin-top: 0; margin-bottom: 10px; }
.form-subtitle { font-size: 16px; color: #666; margin-bottom: 40px; }
.modern-form .form-group { position: relative; margin-bottom: 35px; }
.modern-form input, .modern-form textarea { width: 100%; border: none; border-bottom: 2px solid #ccc; padding: 10px 0; background-color: transparent; font-size: 16px; transition: border-color 0.3s; position: relative; z-index: 2; }
.modern-form input:focus, .modern-form textarea:focus { outline: none; border-color: var(--primary-color); }
.modern-form label { position: absolute; top: 10px; left: 0; color: #999; transition: all 0.3s; pointer-events: none; z-index: 1; }
html[dir="rtl"] .modern-form label { left: auto; right: 0; }
.modern-form input:focus + label, .modern-form input:not(:placeholder-shown) + label, .modern-form textarea:focus + label, .modern-form textarea:not(:placeholder-shown) + label { top: -15px; font-size: 12px; color: var(--primary-color); }
.btn-block { width: 100%; padding: 15px; font-size: 18px; margin-top: 20px; }
.contact-info-wrapper { position: relative; background-size: cover; background-position: center; color: white; padding: 50px; }
.info-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(53, 52, 102, 0.85); z-index: 1; }
.contact-info-wrapper h3, .contact-info-wrapper .info-item { position: relative; z-index: 2; }
.contact-info-wrapper h3 { font-size: 28px; margin-top: 0; margin-bottom: 40px; padding-bottom: 15px; border-bottom: 2px solid var(--secondary-color); }
.info-item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 30px; }
.info-icon { flex-shrink: 0; width: 45px; height: 45px; background-color: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.info-icon svg { width: 24px; height: 24px; color: white; }
.info-text h4 { margin: 0 0 5px 0; font-size: 16px; color: var(--secondary-color); }
.info-text p { margin: 0; font-size: 16px; color: #eee; }

.career-section { padding-bottom: 80px; }
.text-center-section { padding: 80px 0; text-align: center; }
.text-center-section h2 { font-size: 36px; color: var(--primary-color); margin-bottom: 20px; }
.section-lead { font-size: 18px; color: #555; max-width: 700px; margin: 0 auto; }
.job-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.job-card { background-color: white; border-radius: 15px; box-shadow: 0 5px 25px -5px rgba(0,0,0,0.07); transition: all 0.3s ease; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; }
.job-card:hover { transform: translateY(-8px); box-shadow: 0 12px 30px -10px rgba(0,0,0,0.12); }
.job-card-content { padding: 30px; }
.job-card-content h3 { font-size: 22px; color: var(--primary-color); margin: 0 0 10px 0; }
.job-card-content p { margin: 0; color: #666; font-size: 16px; }
.job-card-action { padding: 20px 30px; border-top: 1px solid #f0f0f0; font-weight: 700; color: var(--secondary-color); }
#jobModal .job-details-list { list-style: none; padding: 0; margin: 20px 0; display: flex; gap: 25px; color: #555; }
#jobModal .job-details-list li { display: flex; align-items: center; gap: 8px; font-weight: 700; }
#jobModal .job-details-list svg { width: 20px; height: 20px; color: var(--secondary-color); }
#jobModal #modalJobDescription { padding: 10px 0; line-height: 1.8; color: #555;}
#jobModal .modal-form-container { max-height: 0; opacity: 0; overflow: hidden; transition: all 0.5s ease-in-out; }
#jobModal .modal-content.expanded .modal-form-container { max-height: 1000px; opacity: 1; margin-top: 30px; }
.form-group.file-upload label { display: block; margin-bottom: 15px; font-weight: 700; }
.no-jobs-alert { text-align: center; padding: 40px; background-color: white; border-radius: 10px; }

.faq-section { padding-top: 80px; padding-bottom: 80px; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background-color: white; border-radius: 10px; margin-bottom: 15px; box-shadow: 0 5px 20px -5px rgba(0,0,0,0.05); border: 1px solid #e9ecef; overflow: hidden; }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 20px 25px; cursor: pointer; font-size: 18px; font-weight: 700; color: var(--primary-color); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease-out; }
.faq-answer p { margin: 0; padding: 0 25px 25px 25px; line-height: 1.8; color: #555; border-top: 1px solid #f0f0f0; padding-top: 25px; }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-icon { position: relative; width: 20px; height: 20px; flex-shrink: 0; margin-left: 20px; }
html[dir="rtl"] .faq-icon { margin-left: 0; margin-right: 20px; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; background-color: var(--primary-color); transition: transform 0.3s ease; }
.faq-icon::before { top: 50%; left: 0; width: 100%; height: 2px; margin-top: -1px; }
.faq-icon::after { top: 0; left: 50%; width: 2px; height: 100%; margin-left: -1px; }
.faq-item.active .faq-icon::after { transform: rotate(90deg); }
.faq-item.active .faq-icon::before { transform: rotate(180deg); }

.hero-home { 
    height: 90vh;
    min-height: 700px;
}
.home-hero-title { 
    font-size: 64px; 
    font-weight: 700; 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto; 
    line-height: 1.2; 
    text-shadow: 2px 2px 15px rgba(0,0,0,0.6); 
}
.hero-buttons { 
    margin-top: 40px; 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
}
.hero-buttons .btn { 
    font-size: 18px; 
    padding: 15px 35px; 
}

.stats-section { 
    background-color: transparent;
    padding: 60px 0; 
    margin-top: -120px;
    position: relative; 
    z-index: 10; 
}
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    text-align: center; 
    gap: 30px; 
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 40px -10px rgba(0,0,0,0.1);
}
.stat-item {
    border-right: 1px solid #ddd;
    padding: 0 15px;
}
html[dir="rtl"] .stat-item {
    border-right: none;
    border-left: 1px solid #ddd;
}
.stat-item:last-child {
    border: none;
}
.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px auto;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-icon svg {
    width: 32px;
    height: 32px;
}
.stat-number { 
    font-size: 48px; 
    font-weight: 700; 
    color: var(--primary-color); 
}
.stat-title { 
    font-size: 18px; 
    color: #555; 
}

.home-section { 
    padding-top: 80px; 
    padding-bottom: 80px; 
}
.section-header { 
    text-align: center; 
    margin-bottom: 50px; 
}
.section-header h2 { 
    font-size: 36px; 
    color: var(--primary-color); 
    margin-bottom: 15px; 
}
.section-header p { 
    font-size: 18px; 
    color: #666; 
    max-width: 600px; 
    margin: 0 auto; 
}
.partners-section { 
    background-color: white; 
}
.logo-carousel-section { 
    background-color: #fff; 
    padding: 60px 0; 
    overflow: hidden; 
}
.logo-carousel { 
    display: flex; 
    width: max-content; 
}
.logo-carousel-track { 
    display: flex; 
    animation: scroll 40s linear infinite; 
}
@keyframes scroll { 
    from { transform: translateX(0); } 
    to { transform: translateX(-50%); } 
}
.logo-carousel:hover .logo-carousel-track { 
    animation-play-state: paused; 
}
.carousel-slide { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 0 40px; 
}
.carousel-slide img { 
    height: 60px; 
    max-width: 150px; 
    filter: grayscale(100%); 
    opacity: 0.6; 
    transition: all 0.3s ease; 
}
.carousel-slide:hover img { 
    filter: grayscale(0%); 
    opacity: 1; 
    transform: scale(1.1); 
}
.cta-section { 
    background-color: var(--primary-color); 
    color: white; 
    padding: 80px 0; 
    text-align: center; 
}
.cta-section h2 { 
    font-size: 36px; 
    margin-bottom: 15px; 
}
.cta-section p { 
    font-size: 18px; 
    opacity: 0.9; 
    margin-bottom: 40px; 
}
.cta-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
}
.cta-section .btn-secondary:hover { 
    background-color: white; 
    color: black; 
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    width: 100%;
    max-width: 700px;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #888;
}

.error-page-container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
    padding-top: 80px;
    padding-bottom: 80px;
}
.error-code {
    font-size: 120px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}
.error-content h1 {
    font-size: 36px;
    margin: 10px 0;
    color: var(--text-color);
}
.error-content p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .creative-grid-container, .contact-panel { grid-template-columns: 1fr; }
    .main-card { grid-row: 1 / 2; min-height: 400px; }
    .feature-card { grid-column: 1 / 2; }
    .feature-card:nth-child(2) { grid-row: 2 / 3; }
    .feature-card:nth-child(3) { grid-row: 3 / 4; }
    .contact-info-wrapper { min-height: 400px; }
}
@media (max-width: 768px) {
    .hero-section h1 { font-size: 38px; }
    .home-hero-title { font-size: 42px; }
    .hero-subtitle { font-size: 18px; }
    .featured-post { flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-item { border: none; padding-bottom: 20px; border-bottom: 1px solid #ddd; }
    .stat-item:last-child { border: none; padding-bottom: 0;}
}

.testimonials-section {
    background-color: #f0f2f5;
}
.testimonial-slider .swiper-slide {
    padding: 20px;
    box-sizing: border-box;
}
.testimonial-card {
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    text-align: center;
    height: 100%;
}
.testimonial-card .quote {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
    font-style: italic;
}
.testimonial-card .author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: auto;
}
.testimonial-card .author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
.author-info {
    text-align: start;
}
html[dir="rtl"] .author-info {
    text-align: right;
}
.author-info h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 18px;
}
.author-info span {
    color: #888;
    font-size: 14px;
}
.swiper-pagination-bullet {
    background-color: var(--primary-color);
    opacity: 0.5;
}
.swiper-pagination-bullet-active {
    opacity: 1;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.tab-link {
    background-color: white;
    border: 1px solid #ddd;
    color: #555;
    padding: 12px 30px;
    border-radius: 30px;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}
.tab-link:hover {
    background-color: #f0f0f0;
}
.tab-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(53, 52, 102, 0.2);
}
.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.tab-pane.active {
    display: block;
}

.tabs-content .posts-grid {

}

body {
  background-color: #313666;

}

.section-with-bg {
  position: relative;
  background-size: cover;
  background-position: center center; 
  background-repeat: no-repeat;
  padding-top: 80px;   
  padding-bottom: 80px; 
}

.section-with-bg .container {
  position: relative;
  z-index: 2;
}

