/* Blog Page Specific Styles */

    body {
        background: white;
    }


/* Blog Section Enhancements */
.blog-section {
    /* background-color: var(--white); */
    padding: 6rem 0;
}

.blog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.blog-header {
    text-align: center;
    margin-bottom: 4rem;
}

.blog-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.blog-title-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.blog-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-teal);
    margin-top: 30px;
}

.blog-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-grey);
    margin: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.blog-card {
    /* background-color: var(--white); */
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.blog-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
    background: none !important;
}

.blog-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.blog-card-excerpt {
    font-size: 1rem;
    color: var(--text-grey);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.blog-date {
    font-size: 0.9rem;
    color: var(--text-grey);
}

/* Blog Detail Page Styles */
.blog-detail-section {
    background-color: var(--white);
    padding: 6rem 0;
}

.blog-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.blog-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* RTL: Image on right (second column), text on left (first column) */
body[dir="rtl"] .blog-detail-content {
    direction: rtl;
}

body[dir="rtl"] .blog-detail-image-wrapper {
    grid-column: 2;
}

body[dir="rtl"] .blog-detail-text-wrapper {
    grid-column: 1;
}

/* LTR: Image on left (first column), text on right (second column) */
body[dir="ltr"] .blog-detail-content {
    direction: ltr;
}

body[dir="ltr"] .blog-detail-image-wrapper {
    grid-column: 1;
}

body[dir="ltr"] .blog-detail-text-wrapper {
    grid-column: 2;
}

.blog-detail-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* RTL: direction right, padding on left to avoid overlap */
body[dir="rtl"] .blog-detail-text-wrapper {
    direction: rtl;
    padding-left: 2rem;
    padding-right: 0;
    text-align: right;
}

/* LTR: direction left, padding on right to avoid overlap */
body[dir="ltr"] .blog-detail-text-wrapper {
    direction: ltr;
    padding-left: 0;
    padding-right: 2rem;
    text-align: left;
}

.blog-detail-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-direction: row;
}

/* RTL: align right */
body[dir="rtl"] .blog-detail-title-section {
    justify-content: flex-start;
    direction: rtl;
}

/* LTR: align left */
body[dir="ltr"] .blog-detail-title-section {
    justify-content: flex-start;
    direction: ltr;
}

.blog-detail-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-teal);
    margin: 0;
    font-family: 'CoconNextArabic', sans-serif;
    align-items: center;
    margin-top: 20px;
}

/* RTL: align right */
body[dir="rtl"] .blog-detail-title {
    text-align: right;
}

/* LTR: align left */
body[dir="ltr"] .blog-detail-title {
    text-align: left;
}

.blog-detail-meta {
    margin-bottom: 1rem;
}

.blog-detail-date {
    font-size: 1rem;
    color: var(--text-grey);
    font-family: 'CoconNextArabic', sans-serif;
}

/* RTL: align right */
body[dir="rtl"] .blog-detail-date {
    text-align: right;
    direction: rtl;
}

/* LTR: align left */
body[dir="ltr"] .blog-detail-date {
    text-align: left;
    direction: ltr;
}

.blog-detail-content-wrapper {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.9;
    color: var(--text-grey);
    margin: 0;
    font-family: 'CoconNextArabic', sans-serif;
}

/* RTL: direction right */
body[dir="rtl"] .blog-detail-content-wrapper {
    direction: rtl;
    text-align: right;
}

/* LTR: direction left */
body[dir="ltr"] .blog-detail-content-wrapper {
    direction: ltr;
    text-align: left;
}

/* Style paragraphs, lists, and other elements within blog content */
.blog-detail-content-wrapper p {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.9;
    color: var(--text-grey);
    margin-bottom: 1.5rem;
}

.blog-detail-content-wrapper ul,
.blog-detail-content-wrapper ol {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.9;
    color: var(--text-grey);
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* RTL: padding on right */
body[dir="rtl"] .blog-detail-content-wrapper ul,
body[dir="rtl"] .blog-detail-content-wrapper ol {
    padding-left: 2rem;
    padding-right: 2rem;
    direction: rtl;
}

/* LTR: padding on left */
body[dir="ltr"] .blog-detail-content-wrapper ul,
body[dir="ltr"] .blog-detail-content-wrapper ol {
    padding-left: 2rem;
    padding-right: 2rem;
    direction: ltr;
}

.blog-detail-content-wrapper li {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.9;
    color: var(--text-grey);
    margin-bottom: 0.5rem;
}

.blog-detail-content-wrapper h1,
.blog-detail-content-wrapper h2,
.blog-detail-content-wrapper h3,
.blog-detail-content-wrapper h4,
.blog-detail-content-wrapper h5,
.blog-detail-content-wrapper h6 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-teal);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: 'CoconNextArabic', sans-serif;
}

/* RTL: align right */
body[dir="rtl"] .blog-detail-content-wrapper h1,
body[dir="rtl"] .blog-detail-content-wrapper h2,
body[dir="rtl"] .blog-detail-content-wrapper h3,
body[dir="rtl"] .blog-detail-content-wrapper h4,
body[dir="rtl"] .blog-detail-content-wrapper h5,
body[dir="rtl"] .blog-detail-content-wrapper h6 {
    text-align: right;
    direction: rtl;
}

/* LTR: align left */
body[dir="ltr"] .blog-detail-content-wrapper h1,
body[dir="ltr"] .blog-detail-content-wrapper h2,
body[dir="ltr"] .blog-detail-content-wrapper h3,
body[dir="ltr"] .blog-detail-content-wrapper h4,
body[dir="ltr"] .blog-detail-content-wrapper h5,
body[dir="ltr"] .blog-detail-content-wrapper h6 {
    text-align: left;
    direction: ltr;
}

.btn-blog-read {
    background-color: white;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #C9B384;
    color: #C9B384;
    font-family: 'CoconNextArabic', sans-serif;
    text-decoration: none;
    display: inline-block;
}

.btn-blog-read:hover {
    background-color: #C9B384;
    color: var(--white);
    transform: translateY(-2px);
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.pagination-btn {
    /* border: 1px solid #C9B384; */
    color: black;
    width: 40px;
    height: 40px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.pagination-btn:hover {
    background-color: #C9B384;
    color: var(--white);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: black;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-number {
    /* background-color: transparent; */
    border: none;
    color: black;
    width: 40px;
    height: 40px;
    border-radius:5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
}

.pagination-number:hover {
    background-color: #C9B384;
    color: var(--white);
    transform: translateY(-2px);
}

.pagination-number.active {
    background-color: #C9B384;
    color: var(--white);
    border-color: #C9B384;
}

.pagination-dots {
    color: black;
    font-size: 1.2rem;
    padding: 0 0.5rem;
}

/* Responsive Design */
/* iPad 1024px */
@media (min-width: 1024px) and (max-width: 1024px) {
    .page-header {
        height: 45vh;
        padding: 3.5rem 0 2.5rem;
    }
    
    .page-header-container {
        max-width: 1000px;
        padding: 0 2.5rem;
    }
    
    .blog-container {
        max-width: 1000px;
        padding: 0 2.5rem;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .breadcrumb a,
    .breadcrumb-separator {
        font-size: 2rem;
    }
}

/* iPad 1366px */
@media (min-width: 1366px) and (max-width: 1366px) {
    .page-header {
        height: 48vh;
        padding: 4rem 0 3rem;
    }
    
    .page-header-container {
        max-width: 1200px;
        padding: 0 3rem;
    }
    
    .blog-container {
        max-width: 1200px;
        padding: 0 3rem;
    }
    
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.75rem;
    }
    
    .page-title {
        font-size: 2.75rem;
    }
    
    .breadcrumb a,
    .breadcrumb-separator {
        font-size: 2.5rem;
    }
}

/* Screen 1400px */
@media (min-width: 1400px) and (max-width: 1439px) {
    .page-header {
        height: 50vh;
        padding: 4rem 0 3rem;
    }
    
    .page-header-container {
        max-width: 1350px;
        padding: 0 3.5rem;
    }
    
    .blog-container {
        max-width: 1350px;
        padding: 0 3.5rem;
    }
    
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    .page-title {
        font-size: 2.9rem;
    }
    
    .breadcrumb a,
    .breadcrumb-separator {
        font-size: 2.75rem;
    }
}

/* Screen 1440px */
@media (min-width: 1440px) and (max-width: 1440px) {
    .page-header {
        height: 50vh;
        padding: 4rem 0 3rem;
    }
    
    .page-header-container {
        max-width: 1400px;
        padding: 0 4rem;
    }
    
    .blog-container {
        max-width: 1400px;
        padding: 0 4rem;
    }
    
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3.5rem;
    }
    
    .page-title {
        font-size: 3rem;
    }
    
    .breadcrumb a,
    .breadcrumb-separator {
        font-size: 3rem;
    }
}

@media (max-width: 1440px) {
    .page-header-container {
        max-width: 1400px;
        padding: 0 3rem;
    }
    
    .blog-container {
        max-width: 1400px;
        padding: 0 3rem;
    }
}

@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .page-header {
        height: 40vh;
    }
    
    .breadcrumb {
        margin-top: 80px;
    }
    
    .breadcrumb a,
    .breadcrumb-separator {
        font-size: 40px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
}

/* Tablets (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .page-header {
        height: 40vh;
        padding: 3rem 0 2.5rem;
    }
    
    .page-header-container {
        padding: 0 2rem;
    }
    
    .breadcrumb {
        margin-top: 70px;
    }
    
    .breadcrumb a,
    .breadcrumb-separator {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2.25rem;
    }
    
    .blog-section {
        padding: 4.5rem 0;
    }
    
    .blog-container {
        padding: 0 2rem;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .blog-card {
        max-width: 100%;
    }
    
    .blog-card-image {
        height: 220px;
    }
    
    .blog-card-title {
        font-size: 1.3rem;
    }
    
    .blog-card-excerpt {
        font-size: 0.95rem;
    }
    
    .blog-title {
        font-size: 2.1rem;
    }
    
    .blog-subtitle {
        font-size: 1.15rem;
    }
}

@media (max-width: 968px) {
    .page-header {
        height: 35vh;
        padding: 2.5rem 0 2rem;
    }
    
    .breadcrumb {
        margin-top: 60px;
    }
    
    .breadcrumb a,
    .breadcrumb-separator {
        font-size: 36px;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .blog-section {
        padding: 4rem 0;
    }
    
    .blog-container {
        padding: 0 2rem;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        height: 35vh;
        padding: 2.5rem 0 1.5rem;
    }
    
    .page-header-container {
        padding: 0 1.5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .breadcrumb {
        margin-top: 50px;
        flex-wrap: wrap;
    }
    
    .breadcrumb a,
    .breadcrumb-separator {
        font-size: 32px;
    }
    
    .hero-left-image,
    .hero-bottom-image {
        display: none;
    }
    
    .blog-section {
        padding: 4rem 0;
    }
    
    .blog-container {
        padding: 0 1.5rem;
    }
    
    .blog-header {
        margin-bottom: 3rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-card-content {
        padding: 1.25rem;
    }
    
    .blog-card-title {
        font-size: 1.2rem;
    }
    
    .blog-card-excerpt {
        font-size: 0.95rem;
    }
    
    .blog-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-blog-read {
        width: 100%;
    }
    
    .blog-title {
        font-size: 1.75rem;
    }
    
    .blog-subtitle {
        font-size: 1rem;
    }
    
    .blog-pagination {
        gap: 0.5rem;
    }
    
    .pagination-number,
    .pagination-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        height: 30vh;
        padding: 2rem 0 1rem;
    }
    
    .page-header-container {
        padding: 0 1rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .breadcrumb {
        margin-top: 30px;
        gap: 0.25rem;
    }
    
    .breadcrumb a,
    .breadcrumb-separator {
        font-size: 24px;
    }
    
    .blog-section {
        padding: 3rem 0;
    }
    
    .blog-container {
        padding: 0 1rem;
    }
    
    .blog-header {
        margin-bottom: 2.5rem;
    }
    
    .blog-title {
        font-size: 1.5rem;
    }
    
    .blog-subtitle {
        font-size: 0.95rem;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .blog-card-content {
        padding: 1rem;
    }
    
    .blog-card-title {
        font-size: 1.1rem;
    }
    
    .blog-card-excerpt {
        font-size: 0.9rem;
    }
    
    .blog-date {
        font-size: 0.85rem;
    }
    
    .btn-blog-read {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .pagination-number,
    .pagination-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .pagination-dots {
        font-size: 1rem;
    }
}

