body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #ffffff;
    margin: 0;
    color: #222;
}

.rh-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.main-header {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 9999;
}



.header-container {
    width: 100%;
    max-width: 1280px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    height: 50px;
}

/* Search */
.search-container {
    display: flex;
    align-items: center;
    border-radius: 30px;
    border: 1px solid #2222;
    background: white;
    padding: 5px 10px;
    width: 350px;
    position: relative;
}

#searchInput {
    border: none;
    outline: none;
    flex: 1;
    padding: 10px;
    font-size: 14px;
    background: transparent;
}

#searchInput::placeholder {
    color: #aaa;
}

#searchButton {
    background: #333;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
}

/* Categories */
.categories-section {
    text-align: center;
    padding: 25px 0;
    background: linear-gradient(180deg, #ffe3ee 0%, #fdf1f5 100%);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-top: 22px;

}

.section-title {
    font-size: 25px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

.categories-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-item {
    padding: 10px 20px;
    font-weight: 600;
    background: #333;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0px 4px 10px rgba(255, 73, 124, 0.3);
}

.category-item:hover {
    background: #494446;
}

/* Featured Section */
.featured-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.featured-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 180px);
    gap: 20px;
}

.featured-left a,
.featured-right a {
    display: block;
    height: 100%;
}

#article-main-card {
    height: 100%;
    min-height: 380px;
}

/* Article Card */
.article-card.overlay-style {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.article-card:hover img {
    transform: scale(1.05);
}

.overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.overlay-content h3,
.overlay-content h2 {
    margin: 0;
    color: #fff;
    width: 92%
}

/* Article Section Layout */
.articles-section {
    margin-top: 40px;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 20px;
}

/* Sidebar */
.sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    height: fit-content;
    border: 1px solid #2222;
}

.sidebar h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.sidebar ul {
    padding: 0;
    list-style: none;
}

.sidebar li {
    margin-bottom: 12px;
}

.sidebar img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 6px;
}

.sidebar a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.sidebar a:hover {
    color: #686060;
}

/* Article Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

/* Footer */
.footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

#static-page {
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}



/* Responsive */
@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    .featured-section {
        grid-template-columns: 1fr;
    }

    .featured-left {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .featured-right {
        margin-top: 0px;
    }

    #article-main-card {
        min-height: 300px;
    }

    .search-container {
        width: 100%;
        max-width: 100%;
    }

    .header-container {
        flex-direction: column;
        align-items: center;
    }

    .search-container {
        display: flex;
        align-items: center;
        border-radius: 30px;
        border: 1px solid #222;
        background: white;
        padding: 0px 10px;
        width: 350px;
        position: relative;
        margin-top: 20px;

    }

    #searchButton {
        background: #333;
        border: none;
        padding: 3px;
        border-radius: 50%;
        cursor: pointer;
    }

    #searchIcon {
        width: 20px;
        height: 16px;
    }

}

@media (max-width: 600px) {
    .featured-left {
        grid-template-columns: 1fr;
    }

    .overlay-content {
        padding: 10px;
    }

    .overlay-content h2 {
        font-size: 18px;
    }

    .overlay-content h3 {
        font-size: 14px;
    }

    .sidebar {
        padding: 15px;
    }
}


.featured-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    max-width: 1280px;
    margin: 40px auto;
    align-items: stretch;
}

.featured-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
}

.featured-left .article-card,
.featured-right .article-card {
    height: 100%;
    width: 100%;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.featured-right {
    height: 100%;
}

.featured-right .article-card {
    height: 100%;
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card.overlay-style img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.article-card.overlay-style:hover img {
    transform: scale(1.05);
}

.overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.overlay-content h3,
.overlay-content h2 {
    margin: 0;
    color: #fff;
    width: 92%
}

@media (max-width: 768px) {
    .featured-section {
        grid-template-columns: 1fr;
    }

    .featured-left {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .featured-left .article-card,
    .featured-right .article-card {
        height: 220px;
    }
}

/* Featured Section */
.featured-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    max-width: 1280px;
    margin: 40px auto;
    align-items: stretch;
}

/* Smaller article height on the left */
.featured-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 140px);
    /* reduced height */
    gap: 20px;
}

.featured-left .article-card,
.featured-right .article-card {
    height: 100%;
    width: 100%;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.featured-right {
    height: 100%;
}

.featured-right .article-card {
    height: 100%;
    width: 100%;
    min-height: 300px;
    /* adjusted to match left column */
    display: flex;
    flex-direction: column;
}

.article-card.overlay-style img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.article-card.overlay-style:hover img {
    transform: scale(1.05);
}

.overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.overlay-content h3,
.overlay-content h2 {
    margin: 0;
    color: #fff;
    font-size: 14px;
    width: 92%
}

.featured-right .overlay-content h2 {
    font-size: 20px;
}



/* Responsive */
@media (max-width: 768px) {
    .featured-section {
        grid-template-columns: 1fr;
    }

    .featured-left {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .featured-left .article-card,
    .featured-right .article-card {
        height: 180px;
    }

    .featured-right .overlay-content h2 {
        font-size: 16px;
    }
}


/* Featured Section */
.featured-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    max-width: 1280px;
    margin: 40px auto;
    align-items: stretch;
}

/* Smaller article height on the left */
.featured-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 140px);
    /* reduced height */
    gap: 20px;
}

.featured-left .article-card,
.featured-right .article-card {
    height: 100%;
    width: 100%;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.featured-right {
    height: 100%;
}

.featured-right .article-card {
    height: 100%;
    width: 100%;
    min-height: 300px;
    /* adjusted to match left column */
    display: flex;
    flex-direction: column;
}

.article-card.overlay-style img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.article-card.overlay-style:hover img {
    transform: scale(1.05);
}

.overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.overlay-content h3,
.overlay-content h2 {
    margin: 0;
    color: #fff;
    font-size: 14px;
    width: 92%
}

.featured-right .overlay-content h2 {
    font-size: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .featured-section {
        grid-template-columns: 1fr;
    }

    .featured-left {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .featured-left .article-card,
    .featured-right .article-card {
        height: 180px;
    }

    .featured-right .overlay-content h2 {
        font-size: 16px;
    }
}

.featured-section {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 20px;
    max-width: 1280px;
    margin: 40px auto;
    align-items: stretch;
}

/* Make the left 4 articles stack into a grid with equal height */
.featured-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    /* Equal height rows */
    gap: 20px;
    height: 400px;
    /* Set fixed height to match the right side */
}

/* Right article fills full height */
.featured-right {
    height: 400px;
}

/* Cards should fill their grid cell */
.featured-left .article-card,
.featured-right .article-card {
    height: 100%;
    width: 100%;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Ensure images cover the whole card */
.article-card.overlay-style img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.article-card.overlay-style:hover img {
    transform: scale(1.05);
}

.overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.overlay-content h3,
.overlay-content h2 {
    margin: 0;
    color: #fff;
    font-size: 14px;
    width: 92%
}

.featured-right .overlay-content h2 {
    font-size: 20px;
}

@media (max-width: 768px) {
    .featured-section {
        grid-template-columns: 1fr;
    }

    .featured-left {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        height: auto;
    }

    .featured-left .article-card,
    .featured-right .article-card {
        height: 200px;
    }
}

.latest-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.latest-post-item {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    gap: 12px;
    transition: background 0.2s ease;
    border-radius: 10px;
}

.latest-post-item:hover {
    scale: 1.1;
}

.latest-post-item img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.latest-post-item .post-info {
    flex: 1;
}

.latest-post-item .post-info p {
    margin: 0;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    font-weight: 500;
}

.latest-post-item:hover .post-info p {
    color: #333;
}


.articles-grid .article-card {
    height: 220px;
}

.articles-grid .article-card img {
    height: 100%;
    object-fit: cover;
}

.articles-grid .article-card .overlay-content h3 {
    font-size: 13px;
}

.category-wraper-title {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 0px;
}

.category-wraper-title {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 0px;
}

.category-title-wraper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 0px;
}

/* categories */
.category-title {
    font-size: 140%;
    font-weight: 700;
    color: #333;
    padding: 30px 0 10px;
    text-align: left;
}

/* Article Page */
.article-content h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.article-content em {
    color: #888;
    font-size: 14px;
    display: block;
    margin-bottom: 15px;
}

.article-content img {
    width: 100%;
    border-radius: 10px;
    margin: 20px 0;
}

.article-content p,
.article-content li {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
    color: #333;
}

.article-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.pagination {
    text-align: center;
    padding: 30px 0;
}

.page-link {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 5px;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    border: 1px solid #333;
    font-weight: 500;
}

.page-link.active,
.page-link:hover {
    background: #333;
    color: #fff;
}

.category-article-card {
    display: flex;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 25px;
    transition: transform 0.3s ease-in-out;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e3e3e3;
    background-color: #fff;
    position: relative;
}

.category-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.category-article-card .card-thumb {
    flex-shrink: 0;
    width: 220px;
    height: 160px;
    overflow: hidden;
}

.category-article-card .card-thumb img {

    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    width: 160px;
    height: 160px;
    object-fit: cover;
}

.card-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.card-details a {
    text-decoration: none;
}

.card-details h2 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #333;
    transition: color 0.2s ease;
    font-size: 20px;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}


.card-snippet {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-date {
    font-size: 13px;
    color: #aaa;
    font-style: italic;
}

.read-more {
    padding: 6px 14px;
    font-size: 13px;
    background-color: #333;
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s ease;
}

.read-more:hover {
    background-color: #494446;
}

.card-snippet {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* Responsive for mobile */
@media (max-width: 1024px) {
    .category-title {
        font-size: 140%;
        font-weight: 700;
        color: #333;
        padding: 30px 0 10px;
        text-align: center;
    }

    .category-with-sidebar,
    .article-with-sidebar {
        display: flex !important;
        flex-direction: column;
    }

    .category-articles,
    .article-content {
        width: 95%;
        padding-left: 10px;
    }

    .sidebar {
        width: 88%;
        margin-left: 6px;
    }

    .category-article-card {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
        background: white;
        margin-bottom: 20px;
    }

    .category-article-card .card-thumb {
        flex: 0 0 100px;
        height: 100px;
        overflow: hidden;
        border-radius: 10px;
    }

    .category-article-card .card-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .card-details {
        flex: 1;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .card-details h2 {
        font-size: 16px;
        margin: 0 0 6px;
        line-height: 1.3;
    }

    .card-snippet {
        font-size: 14px;
        margin-bottom: 8px;
        color: #555;
        line-height: 1.4;
    }

    .card-meta {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 6px;
        font-size: 13px;
        color: #aaa;
    }

    .read-more {
        font-size: 12px;
        padding: 6px 12px;
        background: #333;
        color: white;
        border-radius: 20px;
        text-decoration: none;
        font-weight: bold;
    }

    .read-more:hover {
        background-color: #494446;
    }

    .article-content h1 {
        font-size: 25px;
        color: #333;
        margin-bottom: 10px;
    }
}

.categories-section-modern {
    margin-top: 40px;
    text-align: center;
}

.modern-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 0fr));
    gap: 20px;
    margin-top: 20px;
}

.modern-category-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    padding: 8px 20px;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #2222;
    justify-content: center;
}

.modern-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.modern-category-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.modern-category-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.static-page h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.static-body {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #eee;
    margin: 0 10px;
    font-size: 14px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}