/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: #f7fafc;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: #2c5282;
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.9;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
}

.social-icons {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.social-link {
    background: white;
    color: #2c5282;
    width: 25px;
    height: 25px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #fbbf24;
    color: white;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #fbbf24;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fbbf24;
}

.cart-icon {
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    cursor: pointer;
}

.cart-count {
    background: #fbbf24;
    color: #2c5282;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    margin-right: 5px;
}

.order-btn {
    background: #fbbf24;
    color: #2c5282;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.order-btn:hover {
    background: #f59e0b;
    transform: translateY(-2px);
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 3px;
    background: white;
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Logo image styles */
.logo-image {
    max-height: 35px;
    width: auto;
    object-fit: contain;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
    min-height: 100vh;
    padding-top: 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="1" fill="%23ffffff" fill-opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: white;
}

.hero-badge {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn-primary {
    background: #fbbf24;
    color: #2c5282;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.btn-primary:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 13px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    background: rgba(251, 191, 36, 0.2);
    padding: 10px;
    border-radius: 8px;
    font-size: 1.2rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
}

.stat-value {
    font-weight: 600;
    font-size: 1rem;
}

/* Book Cover */
.hero-book {
    display: flex;
    justify-content: center;
    position: relative;
}

.book-cover {
    width: 350px;
    height: 500px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    color: #2d3748;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.book-cover:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.book-title-main {
    font-size: 2.8rem;
    font-weight: 900;
    color: #2c5282;
    margin-bottom: 20px;
    line-height: 1.1;
}

.book-subtitle {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.4;
    margin-bottom: 30px;
}

.book-award {
    position: absolute;
    top: 30px;
    left: 30px;
    background: #fbbf24;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.award-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
}

.award-text {
    font-size: 0.6rem;
}

.book-icon {
    font-size: 4rem;
    text-align: center;
    margin: 40px 0;
    position: relative;
    z-index: 2;
}

.book-category {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c5282;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.3;
}

.book-author {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    text-align: center;
    margin-bottom: 20px;
}

.book-tagline {
    font-size: 0.8rem;
    color: #718096;
    text-align: center;
    line-height: 1.4;
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
}

/* Books Section */
.books-section {
    padding: 100px 0;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c5282;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

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

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.book-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    gap: 20px;
    padding: 20px;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.book-cover-small {
    width: 120px;
    height: 160px;
    border-radius: 10px;
    position: relative;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.book-cover-small.atomic {
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
    color: white;
}

.book-cover-small.dark-light {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #2d3748;
}

.book-cover-small .book-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.1;
}

.book-cover-small .book-subtitle {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.book-cover-small .book-icon {
    font-size: 1.5rem;
    text-align: center;
    margin: 10px 0;
}

.book-cover-small .book-author-small {
    font-size: 0.7rem;
    font-weight: 600;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    text-align: center;
}

.book-award-small {
    position: absolute;
    top: 10px;
    left: 10px;
}

.award-badge-small {
    background: #fbbf24;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: bold;
}

.book-category-small {
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    margin: 5px 0;
    line-height: 1.2;
}

.book-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.book-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c5282;
    margin-bottom: 10px;
}

.book-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 10px;
}

.book-info p {
    color: #4a5568;
    margin-bottom: 15px;
    line-height: 1.5;
    flex: 1;
}

.book-rating {
    margin-bottom: 15px;
}

.stars {
    color: #fbbf24;
    margin-left: 5px;
}

.rating-text {
    font-size: 0.9rem;
    color: #718096;
}

.order-now-btn {
    background: #fbbf24;
    color: #2c5282;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
    align-self: flex-start;
}

.order-now-btn:hover {
    background: #f59e0b;
    transform: translateY(-2px);
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.author-image {
    position: relative;
}

.author-image img {
    width: 100%;
    max-width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.author-info {
    color: #2d3748;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c5282;
    margin-bottom: 30px;
    position: relative;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 4px;
    background: #fbbf24;
    border-radius: 2px;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #4a5568;
}

.author-achievements {
    display: flex;
    gap: 40px;
    margin: 40px 0;
}

.achievement {
    text-align: center;
}

.achievement-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #2c5282;
    margin-bottom: 5px;
}

.achievement-label {
    font-size: 0.9rem;
    color: #718096;
}

.contact-btn {
    background: #2c5282;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
    margin-top: 20px;
}

.contact-btn:hover {
    background: #2a4f7c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 82, 130, 0.3);
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fbbf24;
}

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

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

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fbbf24;
}

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

.footer-section p {
    color: #a0aec0;
    line-height: 1.6;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #fbbf24;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 20px;
    text-align: center;
    color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .book-cover {
        width: 300px;
        height: 430px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2c5282;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        z-index: 1000;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-actions {
        gap: 10px;
    }
    
    .order-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .social-icons {
        flex-direction: column;
        gap: 5px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .hero {
        padding-top: 140px;
        min-height: auto;
        padding-bottom: 60px;
    }
    
    .hero-container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }
    
    .hero-buttons {
        margin-bottom: 40px;
    }
    
    .btn-primary, .btn-secondary {
        font-size: 0.9rem;
        padding: 12px 25px;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .stat {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        min-width: 80px;
    }
    
    .stat-icon {
        font-size: 1.5rem;
        padding: 8px;
    }
    
    .stat-value {
        font-size: 0.9rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .books-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .book-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .book-cover-small {
        width: 140px;
        height: 180px;
        margin: 0 auto 20px auto;
    }
    
    .book-info h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .book-price {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .book-info p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .about-section {
        padding: 60px 0;
    }
    
    .about-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .about-description {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .author-achievements {
        justify-content: center;
        gap: 25px;
        flex-wrap: wrap;
    }
    
    .achievement-number {
        font-size: 1.5rem;
    }
    
    .achievement-label {
        font-size: 0.8rem;
    }
    
    .contact-btn {
        margin-top: 15px;
        width: 100%;
        padding: 12px 25px;
    }
    
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-section h4 {
        margin-bottom: 15px;
    }
    
    .social-links {
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .navbar {
        padding: 12px 0;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    .social-icons {
        gap: 3px;
    }
    
    .social-link {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .hero {
        padding-top: 120px;
        padding-bottom: 40px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.9rem;
    }
    
    .book-cover {
        width: 250px;
        height: 350px;
        padding: 25px 15px;
    }
    
    .book-title-main {
        font-size: 1.8rem;
    }
    
    .book-subtitle {
        font-size: 0.8rem;
    }
    
    .book-category {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .books-section {
        padding: 50px 0;
    }
    
    .book-card {
        padding: 20px 15px;
    }
    
    .about-section {
        padding: 50px 0;
    }
    
    .about-title {
        font-size: 1.8rem;
    }
    
    .author-achievements {
        gap: 20px;
    }
    
    .achievement {
        min-width: 70px;
    }
    
    .achievement-number {
        font-size: 1.3rem;
    }
    
    .footer-section {
        margin-bottom: 25px;
    }
    
    .footer-contact p {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
}

/* Articles Styles */
.articles-section {
    padding: 100px 0;
    background: #f8fafc;
    min-height: 80vh;
}

.articles-header {
    text-align: center;
    margin-bottom: 60px;
}

.articles-subtitle {
    font-size: 1.2rem;
    color: #718096;
    margin-top: 15px;
}

.categories-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.category-btn {
    background: white;
    color: #2c5282;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.category-btn:hover,
.category-btn.active {
    background: #2c5282;
    color: white;
    border-color: #2c5282;
}

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

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

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

.article-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

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

.article-no-image {
    background: linear-gradient(135deg, #2c5282, #3182ce);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.article-icon {
    font-size: 3rem;
}

.article-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fbbf24;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-content {
    padding: 25px;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: #718096;
    font-size: 0.9rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-title a {
    color: #2c5282;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
}

.article-title a:hover {
    color: #fbbf24;
}

.article-excerpt {
    color: #4a5568;
    line-height: 1.6;
    margin: 15px 0;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.read-more-btn {
    background: #2c5282;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.read-more-btn:hover {
    background: #1a365d;
}

.article-stats {
    color: #718096;
    font-size: 0.9rem;
}

.no-articles {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.no-articles-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

/* Article Page Styles */
.article-page {
    padding: 100px 0;
    background: white;
}

.article-header {
    margin-bottom: 40px;
}

.breadcrumb {
    margin-bottom: 20px;
    color: #718096;
}

.breadcrumb a {
    color: #2c5282;
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 10px;
}

.article-category-badge {
    background: #fbbf24;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.article-page .article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c5282;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-featured-image {
    margin: 40px 0;
    border-radius: 15px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

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

.article-excerpt {
    font-size: 1.2rem;
    color: #4a5568;
    background: #f8fafc;
    padding: 25px;
    border-radius: 10px;
    border-right: 4px solid #fbbf24;
    margin-bottom: 30px;
    line-height: 1.7;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
    margin-bottom: 40px;
}

.article-tags {
    margin: 40px 0;
}

.article-tags h4 {
    color: #2c5282;
    margin-bottom: 15px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #e2e8f0;
    color: #2c5282;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.article-share {
    margin: 40px 0;
    padding: 25px;
    background: #f8fafc;
    border-radius: 10px;
}

.article-share h4 {
    color: #2c5282;
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.related-articles {
    margin: 60px 0;
    padding-top: 40px;
    border-top: 2px solid #e2e8f0;
}

.related-articles h3 {
    color: #2c5282;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

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

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

.related-card:hover {
    transform: translateY(-3px);
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-no-image {
    height: 150px;
    background: linear-gradient(135deg, #2c5282, #3182ce);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.related-content {
    padding: 20px;
}

.related-content h4 a {
    color: #2c5282;
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1.4;
}

.related-date {
    color: #718096;
    font-size: 0.9rem;
}

.back-to-articles {
    text-align: center;
    margin-top: 50px;
}

.back-btn {
    background: #e2e8f0;
    color: #2c5282;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #2c5282;
    color: white;
}

/* Mobile Responsive for Articles */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .categories-filter {
        gap: 10px;
    }
    
    .category-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .article-page .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .articles-section {
        padding: 60px 0;
    }
    
    .article-content {
        padding: 15px;
    }
    
    .article-page .article-title {
        font-size: 1.6rem;
    }
    
    .article-excerpt {
        padding: 20px;
        font-size: 1.1rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        text-align: center;
    }
}

/* Consultation Page Styles */
.consultation-section {
    padding: 100px 0;
    background: #f8fafc;
    min-height: 80vh;
}

.consultation-header {
    text-align: center;
    margin-bottom: 50px;
}

.consultation-subtitle {
    font-size: 1.2rem;
    color: #718096;
    margin-top: 15px;
}

.consultation-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.notice-icon {
    font-size: 3rem;
}

.notice-content h3 {
    color: #856404;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.notice-content p {
    color: #856404;
    line-height: 1.6;
    margin-bottom: 10px;
}

.notice-content a {
    color: #2c5282;
    text-decoration: underline;
}

.consultation-form-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.disabled-form {
    opacity: 0.6;
    pointer-events: none;
}

.form-section {
    margin-bottom: 40px;
}

.form-section h3 {
    color: #2c5282;
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5282;
}

.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    background-color: #f7fafc;
    cursor: not-allowed;
}

.form-actions {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
}

.submit-btn {
    background: #e2e8f0;
    color: #a0aec0;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: not-allowed;
    font-family: 'Tajawal', sans-serif;
}

.form-note {
    color: #718096;
    font-size: 0.9rem;
    margin-top: 15px;
    font-style: italic;
}

.contact-info {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-info h3 {
    color: #2c5282;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2d3748;
}

.contact-icon {
    font-size: 1.2rem;
}

.contact-item a {
    color: #2c5282;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Mobile Responsive for Consultation */
@media (max-width: 768px) {
    .consultation-section {
        padding: 60px 0;
    }
    
    .consultation-notice {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .consultation-form-container {
        padding: 25px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-details {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .consultation-form-container {
        padding: 20px;
    }
    
    .form-section h3 {
        font-size: 1.2rem;
    }
    
    .submit-btn {
        width: 100%;
    }
}
/* ============================================
   تنسيقات Trix للموقع العام
   ============================================ */

/* إخفاء اسم وحجم الصورة فقط في محتوى Trix */
.attachment--preview .attachment__caption,
.attachment--png .attachment__caption,
.attachment--jpg .attachment__caption,
.attachment--jpeg .attachment__caption,
.attachment--gif .attachment__caption,
.attachment--webp .attachment__caption {
    display: none !important;
}

/* تحسين شكل الملفات المرفوعة لتظهر كأزرار جميلة */
.attachment--file {
    margin: 1.5rem 0 !important;
}

.attachment--file a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 1rem 1.75rem !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3) !important;
    font-family: 'Tajawal', sans-serif !important;
}

.attachment--file a:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4) !important;
}

.attachment--file .attachment__caption {
    margin: 0 !important;
    background: transparent !important;
    padding: 0 !important;
}

.attachment--file .attachment__name {
    font-size: 1rem !important;
    color: white !important;
    font-weight: 600 !important;
}

.attachment--file .attachment__name::before {
    content: "📥 " !important;
    margin-left: 0.25rem !important;
}

.attachment--file .attachment__size {
    font-size: 0.875rem !important;
    opacity: 0.9 !important;
    color: white !important;
    font-weight: 500 !important;
}

/* أنواع ملفات مختلفة بألوان مختلفة */
.attachment--pdf a {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    box-shadow: 0 4px 10px rgba(245, 87, 108, 0.3) !important;
}

.attachment--pdf a:hover {
    box-shadow: 0 8px 16px rgba(245, 87, 108, 0.4) !important;
}

.attachment--csv a,
.attachment--xlsx a,
.attachment--xls a {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    box-shadow: 0 4px 10px rgba(79, 172, 254, 0.3) !important;
}

.attachment--csv a:hover,
.attachment--xlsx a:hover,
.attachment--xls a:hover {
    box-shadow: 0 8px 16px rgba(79, 172, 254, 0.4) !important;
}

.attachment--doc a,
.attachment--docx a {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important;
    box-shadow: 0 4px 10px rgba(67, 233, 123, 0.3) !important;
}

.attachment--doc a:hover,
.attachment--docx a:hover {
    box-shadow: 0 8px 16px rgba(67, 233, 123, 0.4) !important;
}

.attachment--zip a,
.attachment--rar a {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
    box-shadow: 0 4px 10px rgba(250, 112, 154, 0.3) !important;
}

.attachment--zip a:hover,
.attachment--rar a:hover {
    box-shadow: 0 8px 16px rgba(250, 112, 154, 0.4) !important;
}

/* التنسيق للشاشات الصغيرة */
@media (max-width: 768px) {
    .attachment--file a {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.95rem !important;
    }
    
    .attachment--file .attachment__name {
        font-size: 0.95rem !important;
    }
    
    .attachment--file .attachment__size {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .attachment--file a {
        flex-direction: column !important;
        text-align: center !important;
        padding: 0.875rem 1.25rem !important;
    }
}
