/* ===================================================
 * ROAYATY LATEST NEWS SECTION (EXACT MATCH TO DESIGN)
 * =================================================== */

:root {
    --gold-primary: #b88a3e;
    --gold-dark: #9e7029;
    --bg-light: #fbfbf9;
    --card-bg: #ffffff;
    --text-dark: #221c14;
    --border-color: #eae7e1;
    --radius-card: 12px;
}

/* ===================================================
 * ROAYATY LATEST NEWS SECTION STYLES
 * =================================================== */

.roayaty-latest-news-section {
    padding: 60px 20px;
    background-color: var(--header-bg, #faf8f5);
}

.news-container {
    max-width: 1400px;
    margin: 0 auto;
}

.news-section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--menu-text-dark, #332d27);
    margin-bottom: 40px;
}

/* Grid Layout: 3 Horizontal Cards + 1 Side Vertical Button */
.news-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 100px;
    gap: 24px;
    align-items: stretch;
}

/* Individual Horizontal Card */
.news-horizontal-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(209, 168, 102, 0.25);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: row; /* Forces horizontal layout */
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.news-horizontal-card:hover {
    box-shadow: 0 8px 25px rgba(166, 114, 45, 0.12);
    border-color: var(--top-border-color, #d1a866);
}

/* Circular Date Badge */
.news-date-badge {
    position: relative;
    top: 0;
    left: 15px;
    width: 46px;
    height: 46px;
    background: #fdfaf6;
    border: 1px solid #d1a866;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.news-date-day {
    font-size: 0.85rem;
    font-weight: 700;
    color: #b88a3e;
}

.news-date-month {
    font-size: 0.55rem;
    font-weight: 600;
    color: #a37b38;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Card Body & Text */
.news-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding-top: 15px;
    text-align: left;
}

.news-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--menu-text-dark, #332d27);
    line-height: 1.4;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b88a3e;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-read-more:hover {
    color: #946322;
}

/* Big Image Thumbnail */
.news-card-thumb {
    width: 170px;
    height: 170px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.news-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-horizontal-card:hover .news-card-thumb img {
    transform: scale(1.05);
}

/* Right-Side Vertical "View All" Button Card */
.news-side-card {
    background: #ffffff;
    border: 1px solid rgba(209, 168, 102, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.news-side-card:hover {
    background: #fdfaf6;
    border-color: #b88a3e;
}

.view-all-side-btn {
    /* writing-mode: vertical-rl; */
    /* text-orientation: mixed; */
    /* transform: rotate(180deg); */
    color: #b88a3e;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    padding: 20px 0;
    text-align: center;
    transition: color 0.2s ease;
}

.view-all-side-btn:hover {
    color: #946322;
}

/* ===================================================
 * RTL SUPPORT
 * =================================================== */
html[dir="rtl"] .news-date-badge,
body.rtl .news-date-badge {
    left: auto;
    right: 15px;
}

html[dir="rtl"] .news-read-more i,
body.rtl .news-read-more i {
    transform: scaleX(-1);
}

/* ===================================================
 * RESPONSIVE MEDIA QUERIES
 * =================================================== */

@media (max-width: 1280px) {
    .news-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-side-card {
        grid-column: span 2;
        height: 70px;
    }
    .view-all-side-btn {
        writing-mode: horizontal-tb;
        transform: none;
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .news-grid-wrapper {
        grid-template-columns: 1fr;
    }
    .news-side-card {
        grid-column: span 1;
    }
    .news-horizontal-card {
        flex-direction: column-reverse;
        align-items: stretch;
        padding: 25px 20px 20px 20px;
    }
    .news-card-thumb {
        width: 100%;
        height: 220px;
    }
    .news-date-badge {
        top: 20px;
        left: 20px;
    }
    html[dir="rtl"] .news-date-badge,
    body.rtl .news-date-badge {
        left: auto;
        right: 20px;
    }
}

/* RTL support for text alignment */
html[dir="rtl"] .news-card-body,
body.rtl .news-card-body {
    text-align: right;
}