* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Zain', sans-serif;
}

:root {
    --main-color: #474443;
    --secondary-color: #8ddf82;
    --background-color: #f5f5f5;
    --text-color: #333;
    --text-secondary-color: #507be1;
    direction: rtl;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

.bi::before {
    vertical-align: middle;
}

.container {
    margin: 0 auto;
    padding: 20px;
}

@media (min-width: 768px) {
    .container {
        width: 90%;
        max-width: 1200px;
    }
}

.header {
    text-align: center;
    background-color: var(--main-color);
    color: white;
    height: 13vh;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header .logoDiv {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.header .logoDiv img {
    height: 50px;
}

.header nav {
    display: none;
}

.header nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.header .menuDiv {
    transition: 0.3s;
}

.header .menuDiv i {
    font-size: 35px;
    cursor: pointer;
}

.header .sideMenu .sideMenuContent {
    position: fixed;
    top: 13vh;
    left: -100%;
    width: 200px;
    height: 87vh;
    background-color: var(--main-color);
    color: white;
    transition: left 0.3s;
    z-index: 1000;
}

.header .sideMenu .sideMenuContent ul {
    list-style: none;
    padding: 0;
}

.header .sideMenu .sideMenuContent ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.header .sideMenu .sideMenuContent ul li a:hover {
    background-color: var(--secondary-color);
    color: var(--main-color);
}

@media (min-width: 1200px) {
    .header nav {
        display: block;
    }

    .header .sideMenu {
        display: none;
    }

}

.content {
    min-height: 72vh;
}

/* Carousel Styles */
.carousel-section {
    position: relative;
    margin-bottom: 40px;
}

.carousel-container {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    cursor: pointer;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    padding: 30px;
    text-align: center;
    z-index: 5;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.5) 50%, transparent);
    z-index: 1;
}

.carousel-content h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.carousel-content p {
    font-size: 1.2em;
    opacity: 0.9;
}

.carousel-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: var(--main-color);
    transition: all 0.3s;
    z-index: 10;
}

.carousel-nav button:hover {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.carousel-prev {
    right: 20px;
}

.carousel-next {
    left: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Separator */
.separator {
    height: 3px;
    background: linear-gradient(to left, var(--secondary-color), var(--text-secondary-color));
    border-radius: 2px;
    margin: 40px auto;
    width: 90%;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5em;
    color: var(--main-color);
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Grades Section */
.grades-section {
    margin: 60px 0;
}

.grades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.grade-card {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s;
}

.grade-card:hover {
    transform: translateY(-5px);
}

.grade-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--text-secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    font-weight: 700;
    margin: 0 auto 15px;
    box-shadow: 0 4px 15px rgba(141, 223, 130, 0.3);
    transition: all 0.3s;
}

.grade-card:hover .grade-circle {
    box-shadow: 0 6px 25px rgba(141, 223, 130, 0.4);
    transform: scale(1.05);
}

.grade-card h3 {
    color: var(--main-color);
    font-size: 1.3em;
    font-weight: 600;
    margin: 0;
}

/* Topics Section */
.topics-section {
    margin: 60px 0;
}

.topics-list {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.topic-item {
    display: flex;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    align-items: center;
}

.topic-item:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.topic-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

.topic-content {
    padding: 30px;
    flex: 1;
}

.topic-content h3 {
    color: var(--main-color);
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.topic-content p {
    color: var(--text-color);
    font-size: 1.1em;
    line-height: 1.6;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-content h2 {
        font-size: 1.8em;
    }
    
    .carousel-content p {
        font-size: 1em;
    }
    
    .section-title {
        font-size: 2em;
    }
    
    .grades-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .grade-circle {
        width: 100px;
        height: 100px;
        font-size: 2em;
    }
    
    .topic-item {
        flex-direction: column;
        text-align: center;
    }
    
    .topic-image {
        width: 100%;
        height: 200px;
    }
    
    .topic-content {
        padding: 20px;
    }
    
    .carousel-nav button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

.footer {
    background-color: var(--main-color);
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
    min-height: 13vh;
    display: flex;
    justify-content: center;
    align-items: center;
}