/* 
 * الألوان الرئيسية لحملة "إقراء"
 * الفيروزي: #40C4C4
 * الأزرق: #3333CC
 * الأصفر: #FFCC00
 * الأحمر: #FF3333
 * الأبيض: #FFFFFF
 * الرمادي الفاتح: #F5F5F5
 */

/* إعدادات عامة */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #40C4C4;
    --secondary-color: #3333CC;
    --accent-color-1: #FFCC00;
    --accent-color-2: #FF3333;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    background-color: var(--white);
    color: var(--dark-gray);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn-accent-1 {
    background-color: var(--accent-color-1);
    color: var(--dark-gray);
    border: 2px solid var(--accent-color-1);
}

.btn-accent-1:hover {
    background-color: transparent;
    color: var(--accent-color-1);
}

.btn-accent-2 {
    background-color: var(--accent-color-2);
    color: var(--white);
    border: 2px solid var(--accent-color-2);
}

.btn-accent-2:hover {
    background-color: transparent;
    color: var(--accent-color-2);
}

/* الهيدر */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
}

.logo h1 {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 24px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-right: 20px;
}

nav ul li:last-child {
    margin-right: 0;
}

nav ul li a {
    color: var(--dark-gray);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    right: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* البانر الرئيسي */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    margin-top: 90px;
    transition: background-image 0.5s ease;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    transition: transform 0.5s ease;
    z-index: -1;
}

.hero:hover::before {
    transform: scale(1.05);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-buttons .btn {
    min-width: 160px;
    font-size: 1.1rem;
    padding: 12px 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* قسم الأهداف */
.goals {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 18px;
    color: var(--dark-gray);
}

.goals-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.goal-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.goal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.goal-card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.goal-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.goal-card-content p {
    color: var(--dark-gray);
    opacity: 0.8;
    line-height: 1.6;
}

.goal-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.goal-card:hover {
    transform: translateY(-10px);
}

.goal-card-icon {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 50px;
}

.goal-card:nth-child(2) .goal-card-icon {
    background-color: var(--secondary-color);
}

.goal-card:nth-child(3) .goal-card-icon {
    background-color: var(--accent-color-1);
    color: var(--dark-gray);
}

.goal-card:nth-child(4) .goal-card-icon {
    background-color: var(--accent-color-2);
}

.goal-card-content {
    padding: 20px;
}

.goal-card-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.goal-card:nth-child(2) .goal-card-content h3 {
    color: var(--secondary-color);
}

.goal-card:nth-child(3) .goal-card-content h3 {
    color: var(--accent-color-1);
}

.goal-card:nth-child(4) .goal-card-content h3 {
    color: var(--accent-color-2);
}

/* قسم الإحصاءات */
.statistics {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.statistics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.statistic-item h3 {
    font-size: 48px;
    margin-bottom: 10px;
}

.statistic-item p {
    font-size: 18px;
}

/* قسم المكتبات */
.libraries {
    padding: 80px 0;
}

.libraries-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.library-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.library-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.library-card-image {
    position: relative;
    overflow: hidden;
}

.library-card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.library-card:hover .library-card-image img {
    transform: scale(1.1);
}

.library-card-content {
    padding: 20px;
}

.library-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.library-card-content p {
    color: var(--dark-gray);
    opacity: 0.8;
    margin-bottom: 15px;
}

.library-card-content .location {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.library-card-content .location i {
    margin-left: 8px;
}

.library-card-content .btn {
    width: 100%;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.library-card-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.library-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.library-card-image {
    height: 200px;
    overflow: hidden;
}

.library-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.library-card:hover .library-card-image img {
    transform: scale(1.1);
}

.library-card-content {
    padding: 20px;
}

.library-card-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.library-card-content p {
    margin-bottom: 15px;
}

.library-card-content .location {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.library-card-content .location i {
    margin-left: 10px;
    color: var(--primary-color);
}

/* قسم الكتب المقترحة */
.books {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.books-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.book-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.book-card:hover {
    transform: translateY(-10px);
}

.book-card-image {
    height: 300px;
    overflow: hidden;
}

.book-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-card-content {
    padding: 20px;
}

.book-card-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.book-card-content .author {
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.book-card-content .rating {
    display: flex;
    margin-bottom: 15px;
}

.book-card-content .rating i {
    color: var(--accent-color-1);
    margin-left: 5px;
}

/* قسم شاركنا القراءة */
.join-us {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/join-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
}

.join-us-content {
    max-width: 800px;
    margin: 0 auto;
}

.join-us h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.join-us p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* قسم المدونة */
.blog {
    padding: 80px 0;
}

.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-content {
    padding: 20px;
}

.blog-card-content .date {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 14px;
}

.blog-card-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.blog-card-content p {
    margin-bottom: 15px;
}

/* الفوتر */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
}

.footer-logo h2 {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 24px;
}

.footer-about p {
    margin-bottom: 20px;
}

.footer-links h3, .footer-contact h3, .footer-newsletter h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--white);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-left: 10px;
    color: var(--primary-color);
}

.footer-newsletter p {
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-family: 'Tajawal', sans-serif;
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.social-icons {
    display: flex;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* تصميم متجاوب */
@media screen and (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: fixed;
        top: 90px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 90px);
        background-color: var(--white);
        transition: right 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
    }

    nav ul li {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .hero h2 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .section-title h2 {
        font-size: 30px;
    }

    .statistic-item h3 {
        font-size: 36px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: 5px;
        margin-bottom: 10px;
    }

    .newsletter-form button {
        border-radius: 5px;
    }
}
