/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --primary: #03302b;      /* Dark Teal */
    --secondary: #025146;    /* Slightly lighter Teal */
    --accent: #e2af40;       /* Gold */
    --accent-hover: #d4a038;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-warm: #fefbf8;
    --white: #ffffff;
    
    /* Spacing */
    --container-padding: 1.5rem;
    --max-width: 1200px;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-warm);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-back {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.nav-back:hover {
    transform: translateX(-3px);
}

/* Blog Hero Section */
.blog-hero {
    padding: 3rem var(--container-padding);
    text-align: center;
    background: linear-gradient(135deg, rgba(3, 48, 43, 0.05) 0%, rgba(226, 175, 64, 0.05) 100%);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.hero-badge {
    display: inline-block;
    background: rgba(226, 175, 64, 0.15);
    color: #b48624;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Social Links */
.hero-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid rgba(3, 48, 43, 0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.social-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.social-pill i {
    font-size: 1.1rem;
}

.social-instagram:hover {
    border-color: #E4405F;
    color: #E4405F;
}

.social-tiktok:hover {
    border-color: #000000;
    color: #000000;
}

/* Blog Section */
.blog-section {
    padding: 3rem 0 5rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Blog Post Card */
.blog-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(3, 48, 43, 0.15);
}

.blog-card-image-link {
    display: block;
    width: 100%;
    overflow: hidden;
}

.blog-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    background: var(--bg-warm);
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card-date i {
    color: var(--accent);
}

.blog-card-title {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.blog-card-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.blog-card-link:hover {
    color: var(--accent-hover);
}

.blog-card-instagram {
    color: var(--text-light);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card-instagram i {
    color: #E4405F;
}

.blog-card {
    cursor: pointer;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.loading-state i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.loading-state p {
    font-size: 1rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Blog Modal */
.blog-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    z-index: 1001;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    margin: auto;
    background: var(--white);
    border-radius: 16px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
    background: var(--white);
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-image-container {
    width: 100%;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.modal-body {
    padding: 2rem;
    flex-shrink: 0;
}

.modal-date {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-date i {
    color: var(--accent);
}

.modal-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.modal-caption {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Arabic text styling in modal */
.modal-caption .arabic-quote {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(3, 48, 43, 0.05);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
}

.modal-caption .arabic-text {
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 2;
    display: block;
    direction: rtl;
    text-align: right;
}

.modal-footer {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.modal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.modal-link:hover {
    color: var(--accent-hover);
}

.modal-link i {
    font-size: 1.1rem;
}

.modal-close-bottom {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: none;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(3, 48, 43, 0.2);
    margin-left: auto;
}

.modal-close-bottom:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 48, 43, 0.3);
}

.modal-close-bottom i {
    font-size: 1rem;
}

/* Footer */
.footer {
    background: var(--bg-warm);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Responsive Design */
@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .blog-hero {
        padding: 4rem var(--container-padding);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .modal-content {
        width: 85%;
        max-width: 800px;
    }
    
    .modal-body {
        padding: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .blog-card-image {
        height: 300px;
    }
    
    .modal-content {
        max-width: 900px;
    }
}

@media (max-width: 767px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
}

