/* Category Page Styles */

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 14px;
    margin-bottom: 20px;
    padding: 10px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #117098;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #0d5a7a;
    text-decoration: underline;
}

.breadcrumb .homepage_button {
    font-weight: 500;
}

.breadcrumb span {
    color: #666;
}

/* Page Title */
.main-container > h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1a1a1a;
    border-bottom: 3px solid #117098;
    padding-bottom: 8px;
}

/* News Grid (Main Featured + 3 Small) */
.news_grid {
    display: grid;
    grid-template-columns: repeat(2, 49%);
    grid-column-gap: 2%;
    margin-bottom: 30px;
}

.news_grid > a,
.news_grid .main-news-item {
    text-decoration: none;
    color: inherit;
}

.news_grid > a:first-child,
.news_grid .main-news-item {
    grid-column: 1;
    grid-row: 1 / 3;
}

.news_grid .main_image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 10px;
}

.news_grid .main_image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news_grid > a:hover .main_image img,
.news_grid .main-news-item:hover .main_image img {
    transform: scale(1.05);
}

.news_grid .main-news-item h4,
.news_grid > a > h4 {
    font-size: 28px;
    font-weight: 700;
    line-height: 41px;
    margin-bottom: 10px;
    color: #212529;
}

.news_grid .main-news-item > p,
.news_grid > a > p {
    font-size: 16px;
    color: #495057;
    line-height: 32px;
}

/* Category Grid (3 small news) */
.category_grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.category_grid a {
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 10px;
    transition: background 0.3s;
    padding: 0;
    border-radius: 6px;
    margin-bottom: 20px;
}

.category_grid a:hover {
    background: #f5f5f5;
}

.category_grid .main_image {
    width: 220px;
    height: 145px;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 0 0 10px;
}

.category_grid .main_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category_grid .details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category_grid .details p:first-child {
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
    margin-bottom: 6px;
    color: #212529;
}

.category_grid .details .time {
    font-size: 12px;
    color: #999;
}

/* News Grid Two (Two Large News Side by Side) */
.news_grid_two {
    display: grid;
    grid-template-columns: repeat(2, 49%);
    grid-column-gap: 2%;
    margin-bottom: 30px;
}

.news_grid_two > a,
.news_grid_two .large-news-item {
    text-decoration: none;
    color: inherit;
}

.news_grid_two .main_image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 10px;
}

.news_grid_two .main_image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news_grid_two > a:hover .main_image img,
.news_grid_two .large-news-item:hover .main_image img {
    transform: scale(1.05);
}

.news_grid_two .large-news-item h4,
.news_grid_two > a > h4 {
    font-size: 28px;
    font-weight: 700;
    line-height: 41px;
    margin-bottom: 10px;
    color: #212529;
}

.news_grid_two .large-news-item > p,
.news_grid_two > a > p {
    font-size: 16px;
    color: #495057;
    line-height: 32px;
}

/* News Category List (Main list items) */
.news_category_list {
    margin-bottom: 40px;
}

.news_category_list_item {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.news_category_list_item:hover {


    border-radius: 8px;
}

.news_category_list_item .main_image {
    width: 160px;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
    order: 2;
}

.news_category_list_item .main_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news_category_list_item .details {
    display: flex;
    flex-direction: column;
    order: 1;
}

.news_category_list_item .details h4 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.news_category_list_item .details > p:not(.time) {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news_category_list_item .details .time {
    font-size: 12px;
    color: #999;
    margin-top: auto;
}

/* Category Layout - Flexbox (bypasses Bootstrap grid issues) */
.category-layout-row {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}

.category-layout-main {
    flex: 0 0 66.666%;
    max-width: 66.666%;
    min-width: 0;
}

.category-layout-sidebar {
    flex: 0 0 calc(33.333% - 24px);
    max-width: calc(33.333% - 24px);
    min-width: 0;
    overflow: hidden;
}

/* Sidebar */
.category-sidebar {

    position: sticky;
    top: 20px;
}

/* Force whatsapp partial to fit inside col-3 */
.category-sidebar .wa-sub-section {
    padding: 0;
    margin: 0;
}

.category-sidebar .wa-sub-section .container-xl {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.category-sidebar .wa-sub-card {
    flex-direction: column;
    min-height: unset;
}

.category-sidebar .wa-sub-info {
    flex: unset;
    padding: 24px 20px 18px;
    border-left: none;
    border-bottom: 1px solid rgba(255,255,255,.15);
    gap: 12px;
}

.category-sidebar .wa-sub-logo-text { font-size: 17px; }
.category-sidebar .wa-sub-desc { font-size: 13px; max-width: 100%; }
.category-sidebar .wa-sub-perks li { font-size: 13px; }

.category-sidebar .wa-sub-form-wrap {
    padding: 20px;
    gap: 0;
}

.category-sidebar .wa-sub-form-title { font-size: 15px; margin-bottom: 14px; }
.category-sidebar .wa-sub-btn { font-size: 14px; padding: 11px 20px; margin-top: 14px; }

.sidebar-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid #f0f0f0;
    margin-bottom: 16px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #117098;
}

/* Sections List */
.sections-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sections-list li {
    border-bottom: 1px solid #f0f0f0;
}

.sections-list li:last-child {
    border-bottom: none;
}

.sections-list li a {
    display: block;
    padding: 10px 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: color 0.2s, padding-right 0.2s;
}

.sections-list li a:hover,
.sections-list li.active a {
    color: #117098;
    padding-right: 14px;
    font-weight: 700;
}

.sections-list li.active a::before {
    content: '• ';
    color: #117098;
}

/* Mini News Item (Sidebar) */
.mini-news-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.mini-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mini-news-item:hover h6 {
    color: #117098;
}

.mini-news-item img {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.mini-news-item h6 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 4px;
    color: #1a1a1a;
    transition: color 0.2s;
}

.mini-news-item small {
    font-size: 11px;
    color: #999;
}

/* Load More Button */
.load-more-btn {
    background: #117098;
    border: 2px solid #117098;
    color: #fff;
    padding: 12px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: #0d5a7a;
    border-color: #0d5a7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 112, 152, 0.3);
}

/* Loading Message */
.loading-message {
    margin-top: 15px;
    padding: 15px 30px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    display: inline-block;
}

.loading-text {
    color: #117098;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.loading-text::after {
    content: '';
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 3px solid #117098;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 992px) {
    .category-layout-row {
        flex-direction: column;
    }

    .category-layout-main,
    .category-layout-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .news_grid {
        grid-template-columns: 1fr;
    }

    .news_grid > a:first-child,
    .news_grid .main-news-item {
        grid-column: 1;
        grid-row: 1;
    }

    .news_category_list .ias-container {
        grid-template-columns: 1fr;
    }

    .news_category_list_item {
        grid-template-columns: 1fr 120px;
    }

    .news_category_list_item .main_image {
        width: 120px;
        height: 85px;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 15px 10px;
    }

    .main-container > h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .breadcrumb {
        font-size: 12px;
    }

    .news_grid {
        gap: 15px;
        margin-bottom: 30px;
    }

    .news_grid > a > h4,
    .news_grid .main-news-item h4 {
        font-size: 20px;
    }

    .news_grid_two {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 30px;
    }

    .news_grid_two .large-news-item h4,
    .news_grid_two > a > h4 {
        font-size: 20px;
    }

    .category_grid a {
        gap: 10px;
        padding: 8px;
    }

    .category_grid .main_image {
        width: 90px;
        height: 60px;
    }

    .category_grid .details p:first-child {
        font-size: 15px;
    }

    .news_category_list_item {
        grid-template-columns: 1fr 90px;
    }

    .news_category_list_item .main_image {
        width: 90px;
        height: 65px;
    }

    .news_category_list_item .details h4 {
        font-size: 18px;
    }
}

/* RTL Support */
[dir="rtl"] .breadcrumb {
    direction: rtl;
}

[dir="rtl"] .news_category_list_item {
    direction: rtl;
}

[dir="rtl"] .category_grid a {
    direction: rtl;
}
