/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #ef9c12;
    --primary-dark: #152c5e;
    --primary-light: #3b5fc7;
    --secondary-dark: #d68910;
    --secondary-light: #f5b041;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --light-bg: #f8f9fa;
    --dark-text: #1a1a1a;
    --light-text: #6b7280;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--dark-text);
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    direction: rtl;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* الهيدر */
.main-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 1.2rem 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    width: 100%;
    border-radius: 0;
    transition: border-radius 0.3s ease;
}

.main-header.scrolled {
    border-radius: 0 0 20px 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo a {
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s;
}

.logo a:hover {
    transform: scale(1.05);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.main-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: width 0.3s ease;
    z-index: -1;
}

.main-nav a:hover::before {
    width: 100%;
}

.main-nav a:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.1);
}

/* المحتوى الرئيسي */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 0;
}

/* قسم البطل */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--primary-color) 100%);
    color: #fff;
    padding: 6rem 0;
    text-align: center;
    margin-bottom: 4rem;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    transition: border-radius 0.3s ease;
}

.hero-section.scrolled {
    border-radius: 0 0 20px 20px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* الأزرار */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: var(--secondary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn i {
    font-size: 1.1rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

.btn-danger {
    background: var(--danger-color);
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* رأس القسم */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0 2rem;
    padding: 0 1rem;
}

.section-header .section-title {
    margin: 0;
    font-size: 2rem;
    text-align: right;
    padding-bottom: 0;
}

.section-header .section-title::after {
    display: none;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: var(--secondary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-view-all:hover {
    background: var(--secondary-dark);
    transform: translateX(-5px);
    box-shadow: var(--shadow-lg);
}

.btn-view-all i {
    font-size: 0.9rem;
}

/* البطاقات - عرض أفقي */
.articles-grid.horizontal-scroll,
.books-grid.horizontal-scroll,
.events-grid.horizontal-scroll {
    display: flex;
    gap: 2rem;
    padding: 1rem 0 2rem;
    margin: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* في الشاشات الكبيرة والمتوسطة - عرض بدون scroll */
@media (min-width: 768px) {
    .articles-grid.horizontal-scroll,
    .books-grid.horizontal-scroll,
    .events-grid.horizontal-scroll {
        overflow-x: visible;
        overflow-y: hidden;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .articles-grid.horizontal-scroll .article-card,
    .books-grid.horizontal-scroll .book-card,
    .events-grid.horizontal-scroll .event-card {
        flex: 0 0 calc(25% - 1.5rem);
        min-width: calc(25% - 1.5rem);
        max-width: calc(25% - 1.5rem);
    }
}

/* في الشاشات الصغيرة (الهواتف) - مع scroll */
@media (max-width: 767px) {
    .articles-grid.horizontal-scroll,
    .books-grid.horizontal-scroll,
    .events-grid.horizontal-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
        scrollbar-color: var(--secondary-color) transparent;
    }
    
    .articles-grid.horizontal-scroll::-webkit-scrollbar,
    .books-grid.horizontal-scroll::-webkit-scrollbar,
    .events-grid.horizontal-scroll::-webkit-scrollbar {
        height: 8px;
    }
    
    .articles-grid.horizontal-scroll::-webkit-scrollbar-track,
    .books-grid.horizontal-scroll::-webkit-scrollbar-track,
    .events-grid.horizontal-scroll::-webkit-scrollbar-track {
        background: var(--light-bg);
        border-radius: 10px;
    }
    
    .articles-grid.horizontal-scroll::-webkit-scrollbar-thumb,
    .books-grid.horizontal-scroll::-webkit-scrollbar-thumb,
    .events-grid.horizontal-scroll::-webkit-scrollbar-thumb {
        background: var(--secondary-color);
        border-radius: 10px;
    }
    
    .articles-grid.horizontal-scroll .article-card,
    .books-grid.horizontal-scroll .book-card,
    .events-grid.horizontal-scroll .event-card {
        flex: 0 0 calc(85vw - 2rem);
        min-width: calc(85vw - 2rem);
        max-width: calc(85vw - 2rem);
    }
}

/* البطاقات العادية (لصفحات أخرى) */
.articles-grid:not(.horizontal-scroll),
.books-grid:not(.horizontal-scroll),
.events-grid:not(.horizontal-scroll) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

/* ميزاتنا - تصميم إبداعي خاص */
.activities-grid-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.activity-feature-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    min-height: 300px;
    max-height: 300px;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-feature-card.expanded {
    max-height: none;
    height: auto;
}


.activity-feature-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.activity-feature-image-small {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(239, 156, 18, 0.3);
}


.activity-feature-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-feature-header h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}


.activity-feature-content {
    flex: 1;
    margin-bottom: 1.5rem;
    overflow: visible;
}

.activity-feature-content p {
    color: var(--light-text);
    line-height: 1.8;
    font-size: 0.95rem;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.activity-text-short {
    display: block;
}

.activity-text-full {
    display: none;
    margin-top: 0.5rem;
}

.activity-feature-card.expanded .activity-text-short {
    display: none;
}

.activity-feature-card.expanded .activity-text-full {
    display: block;
}

.activity-feature-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(239, 156, 18, 0.3);
    width: 100%;
    justify-content: center;
    cursor: pointer;
    font-family: inherit;
}

.btn-more i {
    transition: transform 0.3s ease;
}



.article-card, .book-card, .event-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    position: relative;
}

.article-card::before, .book-card::before, .event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.article-card:hover::before, .book-card:hover::before, .event-card:hover::before {
    transform: scaleX(1);
}

.article-card:hover, .book-card:hover, .event-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.article-image, .book-cover, .event-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.article-image::after, .book-cover::after, .event-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(30, 58, 138, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.article-card:hover .article-image::after,
.book-card:hover .book-cover::after,
.event-card:hover .event-image::after {
    opacity: 1;
}

.article-image img, .book-cover img, .event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img,
.book-card:hover .book-cover img,
.event-card:hover .event-image img {
    transform: scale(1.1);
}

.article-content, .book-info, .event-content {
    padding: 1.8rem;
}

.article-content h3, .book-info h3, .event-content h3 {
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
}

.article-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.article-content h3 a:hover {
    color: var(--secondary-color);
}

.article-summary, .book-description {
    color: var(--light-text);
    margin: 1rem 0;
    line-height: 1.8;
    font-size: 0.95rem;
}

.article-meta, .book-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--light-text);
    margin: 1.2rem 0;
    flex-wrap: wrap;
}

.article-meta i, .book-meta i {
    margin-left: 0.3rem;
    color: var(--secondary-color);
}

/* قائمة المقالات */
.articles-list, .activities-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.article-item, .activity-item {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    gap: 2rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.article-item:hover, .activity-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(-5px);
}

.article-item .article-image, .activity-item .activity-image {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.article-item .article-image img, .activity-item .activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-details, .activity-content {
    flex: 1;
}

.article-details h2, .activity-content h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.article-details h2 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.article-details h2 a:hover {
    color: var(--secondary-color);
}

/* صفحة واحدة */
.single-article, .single-book {
    background: #fff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.article-header, .book-info-large {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.article-header h1, .book-info-large h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 800;
    line-height: 1.3;
}

.article-featured-image, .book-cover-large {
    width: 100%;
    max-height: 450px;
    overflow: hidden;
    border-radius: 16px;
    margin: 2.5rem 0;
    box-shadow: var(--shadow-lg);
}

.article-featured-image img, .book-cover-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    line-height: 2;
    font-size: 1.1rem;
    color: var(--dark-text);
}

.article-download {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.book-details {
    display: flex;
    gap: 3rem;
}

.book-cover-large {
    width: 350px;
    flex-shrink: 0;
}

.book-info-large {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-info-large h1 {
    font-size: 2.2rem;
}

.book-info-large .btn-large {
    margin-top: auto;
    align-self: center;
    width: 100%;
    max-width: 400px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* صفحة البحث */
.page-header {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 3rem 0;
    border-radius: 0 0 20px 20px;
    color: #fff;
    box-shadow: var(--shadow-lg);
    position: relative;
    margin-bottom: 3rem;
}

.page-header > div {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.search-form {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: center;
    max-width: 600px;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-form input {
    flex: 1;
    padding: 0.9rem 3.5rem 0.9rem 1.2rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.search-form input::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 0 3px rgba(239, 156, 18, 0.2);
}

.search-btn {
    position: absolute;
    left: 0.5rem;
    background: var(--secondary-color);
    border: none;
    border-radius: 8px;
    color: #fff;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.search-btn:hover {
    background: var(--secondary-dark);
    transform: scale(1.05);
}

.search-btn:active {
    transform: scale(0.95);
}

.search-btn i {
    font-size: 1rem;
}

/* النماذج */
.login-page, .contact-page {
    max-width: 600px;
    margin: 3rem auto;
}

.login-form-container, .contact-form-container {
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.login-form-container h2, .contact-form-container h2 {
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(239, 156, 18, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.8rem;
}

.form-note {
    background: #f0f7ff;
    border: 1px solid #b3d9ff;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
}

.form-note p {
    margin: 0;
    color: var(--primary-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-note i {
    color: var(--secondary-color);
}

.alert {
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    border-right: 4px solid;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #27ae60;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #e74c3c;
}

/* الترقيم */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.pagination .btn {
    min-width: 45px;
    padding: 0.7rem 1rem;
}

.pagination .btn.active {
    background: var(--primary-color);
    color: #fff;
}

/* الفوتر */
.main-footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: #fff;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.8rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-5px) scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* نصوص مساعدة */
.text-center {
    text-align: center;
}

.no-content {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--light-text);
    font-size: 1.3rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 2.5rem;
    margin: 3rem 0 2rem;
    color: var(--primary-color);
    text-align: center;
    font-weight: 800;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

.event-date, .activity-date {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(239, 156, 18, 0.1);
    color: var(--secondary-dark);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
}

.book-author {
    color: var(--light-text);
    font-size: 0.95rem;
    margin: 0.5rem 0;
}

.book-author i {
    color: var(--secondary-color);
    margin-left: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--primary-dark);
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 16px 16px;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
    
    .section-header .section-title {
        font-size: 1.5rem;
        margin: 0;
    }
    
    .btn-view-all {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .section-header .section-title {
        font-size: 1.5rem;
    }
    
    .articles-grid.horizontal-scroll .article-card,
    .books-grid.horizontal-scroll .book-card,
    .events-grid.horizontal-scroll .event-card {
        flex: 0 0 calc(85vw - 2rem);
        min-width: calc(85vw - 2rem);
        max-width: calc(85vw - 2rem);
    }
    
    .articles-grid:not(.horizontal-scroll), 
    .books-grid:not(.horizontal-scroll), 
    .events-grid:not(.horizontal-scroll) {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .activities-grid-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* شاشات متوسطة */
@media (min-width: 769px) and (max-width: 1023px) {
    .activities-grid-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* شاشات كبيرة */
@media (min-width: 1024px) {
    .activities-grid-features {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .article-item, .activity-item {
        flex-direction: column;
    }
    
    .article-item .article-image, .activity-item .activity-image {
        width: 100%;
        height: 250px;
    }
    
    .article-details, .activity-content {
        padding: 1.5rem;
    }
    
    .article-details h2, .activity-content h3 {
        font-size: 1.3rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.85rem;
    }
    
    .page-header {
        padding: 2rem 0;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .search-form {
        width: 100%;
        max-width: 100%;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
    
    .search-form input {
        width: 100%;
        padding-right: 3.5rem;
    }
    
    .search-btn {
        left: 0.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    
    .pagination .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .book-details {
        flex-direction: column;
    }
    
    .book-cover-large {
        width: 100%;
    }
    
    .search-form {
        width: 100%;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
    
    .search-form input {
        width: 100%;
        padding-right: 3.5rem;
    }
    
    .search-btn {
        left: 0.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .article-item, .activity-item {
        flex-direction: column !important;
        padding: 1.5rem !important;
        gap: 1rem !important;
    }
    
    .article-item .article-image, .activity-item .activity-image {
        width: 100% !important;
        height: 250px !important;
        flex-shrink: 1 !important;
    }
    
    .article-details, .activity-content {
        padding: 0 !important;
        width: 100% !important;
    }
    
    .article-details h2, .activity-content h3 {
        font-size: 1.3rem !important;
    }
    
    .article-meta {
        flex-direction: column !important;
        gap: 0.5rem !important;
        font-size: 0.85rem !important;
    }
    
    .article-details .btn {
        width: 100%;
        text-align: center;
    }
    
    .single-article, .single-book {
        padding: 1.5rem;
    }
    
    .article-header h1, .book-info-large h1 {
        font-size: 1.8rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .book-details {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    .book-cover-large {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .book-info-large {
        width: 100% !important;
    }
    
    .book-info-large h1 {
        font-size: 1.5rem !important;
    }
    
    .book-info-large .btn-large {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 1.5rem !important;
        align-self: stretch !important;
        text-align: center !important;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    
    .pagination .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-header {
        padding: 2rem 0;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .page-header {
        padding: 1.5rem 1rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .article-item, .activity-item {
        padding: 1rem !important;
        flex-direction: column !important;
    }
    
    .article-item .article-image, .activity-item .activity-image {
        width: 100% !important;
        height: 200px !important;
    }
    
    .article-details h2, .activity-content h3 {
        font-size: 1.1rem !important;
    }
    
    .book-info-large .btn-large {
        width: 100% !important;
        text-align: center !important;
        margin-top: 1.5rem !important;
    }
    
    .article-summary {
        font-size: 0.9rem;
    }
    
    .single-article, .single-book {
        padding: 1rem;
    }
    
    .article-header h1, .book-info-large h1 {
        font-size: 1.5rem;
    }
    
    .article-content {
        font-size: 0.95rem;
    }
    
    .login-form-container, .contact-form-container {
        padding: 1.5rem 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pagination .btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        min-width: 35px;
    }
    
    .book-info-large .btn-large {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        margin-top: 1.5rem !important;
        align-self: stretch !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}
