/* Blog Hero Section */
.blog-hero {
    background-color: #f8f9fa;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.blog-hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    color: #1B365D;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background-color: #C9A55C;
    margin: 0 auto 2rem;
}

.hero-description {
    color: #4A4A4A;
    font-size: 1.4rem;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 700px;
}

/* Decorative Circles */
.hero-circles {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(27, 54, 93, 0.05);
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
}

.circle-2 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 15%;
}

.circle-3 {
    width: 100px;
    height: 100px;
    bottom: 30%;
    right: 25%;
}

.circle-4 {
    width: 180px;
    height: 180px;
    bottom: -50px;
    right: 10%;
}

.circle-5 {
    width: 120px;
    height: 120px;
    top: 40%;
    right: 5%;
}

/* RTL Support */
[dir="rtl"] .hero-circles {
    right: auto;
    left: 0;
}

[dir="rtl"] .circle-1 {
    right: auto;
    left: -50px;
}

[dir="rtl"] .circle-2 {
    right: auto;
    left: 15%;
}

[dir="rtl"] .circle-3 {
    right: auto;
    left: 25%;
}

[dir="rtl"] .circle-4 {
    right: auto;
    left: 10%;
}

[dir="rtl"] .circle-5 {
    right: auto;
    left: 5%;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .blog-hero {
        padding: 80px 0;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-description {
        font-size: 1.2rem;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .circle {
        opacity: 0.5;
    }
}

/* Blog Content Section */
.blog-content {
    padding: 80px 0;
    background-color: white;
}

/* Search and Filters */
.blog-controls {
    margin-bottom: 50px;
}

.search-box {
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #1B365D;
    outline: none;
}

.search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #1B365D;
    cursor: pointer;
}

.blog-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.blog-filters .filter-btn {
    padding: 10px 20px;
    border: 2px solid #1B365D;
    border-radius: 25px;
    background: transparent;
    color: #1B365D;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-filters .filter-btn:hover,
.blog-filters .filter-btn.active {
    background-color: #1B365D;
    color: white;
}

/* Featured Article */
.featured-article {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.featured-article .article-image {
    position: relative;
    height: 100%;
    min-height: 400px;
}

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

.featured-article .category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #C9A55C;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.featured-article .article-content {
    padding: 40px;
}

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

.featured-article h2 {
    color: #1B365D;
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-article p {
    color: #4A4A4A;
    line-height: 1.6;
    margin-bottom: 25px;
}

.featured-article .read-more {
    color: #1B365D;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.featured-article .read-more:hover {
    color: #C9A55C;
}

/* Article Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

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

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

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

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

.article-card .category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #C9A55C;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.article-card .article-content {
    padding: 25px;
}

.article-card .article-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.article-card h3 {
    color: #1B365D;
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-card p {
    color: #4A4A4A;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-card .read-more {
    color: #1B365D;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.article-card .read-more:hover {
    color: #C9A55C;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1B365D;
    border-radius: 50%;
    color: #1B365D;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-link:hover,
.page-link.active {
    background-color: #1B365D;
    color: white;
}

.page-dots {
    color: #1B365D;
}

/* Pagination Enhancements */
.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.page-link i {
    font-size: 0.8rem;
}

[dir="rtl"] .page-link i.fa-chevron-left {
    transform: rotate(180deg);
}

[dir="rtl"] .page-link i.fa-chevron-right {
    transform: rotate(180deg);
}

/* RTL Support */
[dir="rtl"] .search-btn {
    right: auto;
    left: 15px;
}

[dir="rtl"] .featured-article .category,
[dir="rtl"] .article-card .category {
    left: auto;
    right: 20px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .featured-article {
        grid-template-columns: 1fr;
    }

    .featured-article .article-image {
        min-height: 300px;
    }

    .featured-article .article-content {
        padding: 30px;
    }

    .featured-article h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .blog-content {
        padding: 60px 0;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .search-input {
        padding: 12px 45px 12px 15px;
    }

    .blog-filters .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .featured-article .article-image {
        min-height: 250px;
    }

    .featured-article h2 {
        font-size: 1.6rem;
    }

    .article-card .article-image {
        height: 180px;
    }

    .pagination {
        gap: 5px;
    }

    .page-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.newsletter-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.newsletter-content {
    padding: 40px;
}

.newsletter-content h2 {
    color: #1B365D;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: #4A4A4A;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.newsletter-form {
    margin-bottom: 1rem;
}

.email-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.email-input:focus {
    border-color: #1B365D;
    outline: none;
}

.subscribe-btn {
    width: 100%;
    padding: 15px;
    background: #1B365D;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-btn:hover {
    background: #152c4d;
}

.privacy-note {
    color: #666;
    font-size: 0.9rem;
}

.benefits-content {
    padding: 40px;
    background: #1B365D;
    color: white;
}

.benefits-content h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.benefits-list i {
    color: #C9A55C;
    font-size: 1.2rem;
}

/* RTL Support for Newsletter */
[dir="rtl"] .benefits-list li {
    flex-direction: row-reverse;
}

/* Responsive Styles for Newsletter */
@media (max-width: 992px) {
    .newsletter-card {
        grid-template-columns: 1fr;
    }

    .newsletter-content,
    .benefits-content {
        padding: 30px;
    }

    .newsletter-content h2 {
        font-size: 2rem;
    }

    .benefits-content h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .newsletter-section {
        padding: 60px 0;
    }

    .newsletter-content h2 {
        font-size: 1.8rem;
    }

    .newsletter-content p {
        font-size: 1rem;
    }

    .benefits-list li {
        font-size: 1rem;
    }

    .email-input,
    .subscribe-btn {
        padding: 12px;
    }
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.toast-success {
    border-left: 4px solid #28a745;
}

.toast-error {
    border-left: 4px solid #dc3545;
}

.toast-info {
    border-left: 4px solid #17a2b8;
}

/* RTL Support for Toast */
[dir="rtl"] .toast {
    right: auto;
    left: 20px;
    border-left: none;
}

[dir="rtl"] .toast-success {
    border-right: 4px solid #28a745;
}

[dir="rtl"] .toast-error {
    border-right: 4px solid #dc3545;
}

[dir="rtl"] .toast-info {
    border-right: 4px solid #17a2b8;
}

/* Popular Topics Section */
.popular-topics-section {
    padding: 80px 0;
    background-color: white;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    color: #1B365D;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.section-header .underline {
    width: 80px;
    height: 4px;
    background: #C9A55C;
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-header p {
    color: #4A4A4A;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.topics-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.topic-tag {
    display: inline-block;
    padding: 12px 24px;
    background-color: #f8f9fa;
    color: #1B365D;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.topic-tag:hover {
    background-color: #1B365D;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 54, 93, 0.2);
}

.topic-tag.active {
    background-color: #1B365D;
    color: white;
}

/* RTL Support for Popular Topics */
[dir="rtl"] .topics-container {
    flex-direction: row-reverse;
}

/* Responsive Styles for Popular Topics */
@media (max-width: 992px) {
    .popular-topics-section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .topic-tag {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
        padding: 0 20px;
    }

    .topics-container {
        padding: 0 15px;
    }
} 