* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: #fff;
    overflow-x: hidden;
    font-family: 'Cairo', sans-serif !important;
}

body, .top-bar, .header, .navbar {
    font-family: 'Cairo', sans-serif !important;
}

.top-bar {
    font-size: 15px !important;
    padding: 12px 5%;
}

.top-left a, .top-right span {
    font-size: 15px;
    font-weight: 600;
}

.btn {
    font-size: 15px !important;
}

.navbar a {
    font-size: 16px !important;
    font-weight: 600;
}

.title strong {
    font-size: 1.4rem !important;
}

.title small {
    font-size: 1rem !important;
}

.hero-section {
    padding: 60px 20px;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.content-side {
    flex: 1;
    min-width: 300px;
}

.date-badge {
    background-color: #fff1f1;
    color: #e3342f;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 20px;
}

.content-side h1 {
    font-size: 3rem;
    color: #1a202c;
    margin-bottom: 20px;
}

.content-side h1 span {
    color: #e3342f;
}

.content-side p {
    color: #718096;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.buttons-group {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary {
    background-color: #e3342f;
    color: white;
}

.btn-primary:hover {
    background-color: #c52a26;
}

.btn-outline {
    border: 1px solid #e3342f;
    color: #e3342f;
}

.btn-outline:hover {
    background-color: #fff1f1;
}

.image-side {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: visible;
}

.image-wrapper img {
    width: 100%;
    border-radius: 20px;
    display: block;
}

.floating-card {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: white;
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.floating-card .icon {
    background: #fff1f1;
    color: #e3342f;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #ffcccc;
}

.floating-card .text {
    display: flex;
    flex-direction: column;
}

.floating-card .text strong {
    font-size: 20px;
    color: #1a202c;
}

.floating-card .text span {
    font-size: 14px;
    color: #718096;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column-reverse;
        text-align: center;
    }
    .buttons-group {
        justify-content: center;
    }
    .content-side h1 {
        font-size: 2rem;
    }
}

.school-features {
    direction: ltr;
    padding: 60px 0;
    background-color: #fcfcfc;
    width: 100%;
}

.features-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.features-header {
    text-align: center;
    margin-bottom: 50px;
}

.features-header h1 {
    font-size: 2.2rem;
    color: #0d1b2a;
    margin-bottom: 15px;
}

.features-header p {
    color: #888;
    font-size: 1.1rem;
}

.features-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px 20px;
    flex: 1;
    min-width: 250px;
    max-width: 280px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f1f1f1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.icon-circle {
    width: 70px;
    height: 70px;
    background-color: #fff5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.feature-card p {
    font-size: 0.95rem;
    color: #777;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .features-row {
        flex-direction: column;
        align-items: center;
    }
    .feature-card {
        width: 100%;
        max-width: 350px;
    }
}

.about-us-section {
    direction: ltr;
    padding: 60px 20px;
    background-color: #ffffff;
    overflow: hidden;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-content h2 {
    color: #002b5b;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-content h3 {
    color: #333;
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.about-content .description {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.goals-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.goals-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.goal-icon {
    color: #e63946;
    font-weight: bold;
    font-size: 1.2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #e63946;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background-color: #c32f3a;
}

.cta-button .arrow {
    font-size: 1.2rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: right;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 20px 20px 0px #f8f9fa; 
}

@media (max-width: 992px) {
    .about-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    .goals-list li {
        justify-content: center;
    }
    .about-image {
        text-align: center;
    }
}

.curriculum-section {
    direction: ltr;
    padding: 80px 20px;
    background-color: #fcfcfc;
}

.curriculum-container {
    max-width: 1200px;
    margin: 0 auto;
}

.curriculum-header {
    text-align: center;
    margin-bottom: 50px;
}

.curriculum-header h2 {
    color: #002b5b;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.curriculum-header p {
    color: #666;
    font-size: 1.1rem;
}

.curriculum-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.curriculum-card {
    background: #fff;
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    position: relative;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.card-top-border {
    height: 6px;
    background-color: #e63946;
    width: 100%;
}

.card-content {
    padding: 35px 25px;
    text-align: center;
}

.curriculum-card h3 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.curriculum-card .badge {
    display: inline-block;
    color: #e63946;
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.curriculum-card p {
    color: #777;
    line-height: 1.7;
    font-size: 1rem;
}

.curriculum-footer {
    text-align: center;
    margin-top: 40px;
}

.outline-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 30px;
    border: 2px solid #e63946;
    color: #e63946;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.outline-button:hover {
    background-color: #e63946;
    color: #fff;
}

@media (max-width: 768px) {
    .curriculum-grid {
        flex-direction: column;
        align-items: center;
    }
    .curriculum-card {
        width: 100%;
    }
}

.news-section {
    direction: ltr;
    padding: 60px 20px;
    background-color: #fff;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-direction: row;
}

.view-all {
    color: #e63946;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: 0.3s;
}

.view-all:hover {
    padding-left: 10px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.news-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
}

.news-image {
    width: 100%;
    height: 200px;
    background-color: #f8f9fa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* لحل مشكلة الزووم وقص الصورة */
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.03);
}

.news-body {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.news-date {
    display: block;
    color: #e63946;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.news-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-card p {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e63946;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: auto;
    transition: 0.2s;
    text-decoration: none;
}

.news-card:hover .read-more-btn {
    gap: 10px;
}

@media (max-width: 768px) {
    .news-header {
        flex-direction: column-reverse;
        gap: 15px;
        text-align: center;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.news-card-link {
    text-decoration: none;
    display: block;
    color: inherit;
    height: 100%;
}

.school-section {
    direction: ltr;
    padding: 60px 0;
    background-color: #fcfcfc;
    width: 100%;
}

.container-box {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h1 {
    font-size: 2rem;
    color: #0d1b2a;
    margin-bottom: 10px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
} 

.card-item {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.card-item:hover { 
    transform: translateY(-5px); 
} 

.icon-box {
    width: 60px;
    height: 60px;
    background-color: #fff5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

@media (max-width: 1024px) {
    .cards-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
} 

@media (max-width: 600px) {
    .cards-grid { 
        grid-template-columns: 1fr; 
    }
} 

.hero-section, .school-section, .about-us-section, .curriculum-section, .news-section {
    position: relative;
    z-index: 1;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #25D366;
    color: white;
    font-size: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
} 

:root {
    --slider-red: #d71920;
}

.main-slider-section {
    width: 100%;
    position: relative;
    padding-top: 0; 
    margin-top: 0;
    background: #fff;
    clear: both;
}

.slideshow-container {
    width: 100%;
    max-width: 100%;
    position: relative;
    margin: 0;
    overflow: hidden;
    z-index: 1;
    direction: ltr;
}

.mySlides {
    display: none;
    width: 100%;
}

.mySlides img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    vertical-align: middle;
}

.prev-btn, .next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.4s ease;
    background-color: rgba(0,0,0,0.4);
    text-decoration: none;
    z-index: 10;
}

.next-btn {
    right: 0; 
    border-radius: 5px 0 0 5px;
}

.prev-btn {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.slide-caption {
    direction: ltr;
    color: #ffffff;
    font-size: 22px;
    padding: 12px 25px;
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(0, 0, 0, 0.7);
    border-left: 5px solid var(--slider-red);
    font-weight: bold;
    max-width: 80%;
}

@media (max-width: 768px) {
    .mySlides img {
        height: 35vh;
    }
    
    .slide-caption {
        font-size: 15px;
        left: 10px;
        bottom: 15px;
        padding: 8px 15px;
        max-width: 90%;
        border-left-width: 3px;
    }

    .prev-btn, .next-btn {
        padding: 10px;
        font-size: 16px;
    }
}