/* ================================================================
   NEWS INDEX BRAND OVERRIDES - OKAI Website
   Purpose: Apply OKAI brand colors and News-specific styling
   Based on OKAIpower design patterns
   ================================================================ */

/* OKAI Brand Colors - Global Theme */
:root {
    --primary-color: #C21F61;
    --primary-color-rgb: 194, 31, 97;
    --okai-red: #C21F61;
    --okai-grey: #f8f9fa;
    --okai-white: #ffffff;
    --okai-dark: #1a1a1a;
}

/* Additional colors specific to News page */
.news-content,
.news-search-section {
    --news-green: #28a745;  /* For date badges */
}

/* ================================================================
   SEARCH BOX STYLING (Top Section)
   ================================================================ */
.news-search-section .widget-search-top {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}

.news-search-section .widget-search-top .search-box {
    margin-bottom: 0;
}

/* ================================================================
   SEARCH BOX STYLING
   ================================================================ */
.news-content .search-box,
.news-search-section .search-box {
    position: relative;
    margin-bottom: 2rem;
}

.news-content .search-box input[type="text"],
.news-search-section .search-box input[type="text"] {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid var(--okai-red);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.news-content .search-box input[type="text"]:focus,
.news-search-section .search-box input[type="text"]:focus {
    outline: none;
    border-color: var(--okai-red);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

.news-content .search-box button,
.news-search-section .search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--okai-red);
    color: var(--okai-white);
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.news-content .search-box button:hover,
.news-search-section .search-box button:hover {
    background-color: #a01a50;
}

/* ================================================================
   ARTICLE CARDS WITH ROUNDED CORNERS AND DATE BADGES
   ================================================================ */
.news-content .rounded-20px {
    border-radius: 20px;
}

.news-content .rounded-10px {
    border-radius: 10px;
}

.news-content .post-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.news-content .post-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.news-content .post-image:hover img {
    transform: scale(1.05);
}

/* Date Badge */
.news-content .post-image .post-badge-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px;
    pointer-events: none;
    z-index: 10;
}

.news-content .post-image .post-badge-bar > * {
    pointer-events: auto;
}

.news-content .date-badge {
    position: static;
    background-color: var(--news-green);
    color: var(--okai-white);
    border-radius: 8px;
    padding: 6px 12px;
    min-width: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.news-content .date-badge .day {
    line-height: 1;
}

.news-content .date-badge .month {
    text-transform: uppercase;
}

/* Category Tag */
.news-content .d-tagline {
    position: static;
    background-color: var(--news-green);
    color: var(--okai-white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* ================================================================
   SIDEBAR WIDGET STYLING
   ================================================================ */
.news-content .widget {
    background-color: var(--okai-grey);
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.news-content .widget h5 {
    color: var(--okai-red);
    font-weight: 700;
    margin-bottom: 15px;
}

.news-content .small-border {
    width: 50px;
    height: 3px;
    background-color: var(--okai-red);
    margin-bottom: 20px;
}

/* ================================================================
   TAG CLOUD STYLING
   ================================================================ */
.news-content .tagcloud a {
    display: inline-block;
    padding: 8px 16px;
    margin: 4px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-content .tagcloud a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ================================================================
   LIST STYLE
   ================================================================ */
.news-content .ul-style-2 {
    list-style: none;
    padding-left: 0;
}

.news-content .ul-style-2 li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.news-content .ul-style-2 li:before {
    content: "▸";
    color: var(--okai-red);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.news-content .ul-style-2 li a {
    color: var(--okai-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-content .ul-style-2 li a:hover {
    color: var(--okai-red);
}

/* ================================================================
   SEARCH RESULTS INFO
   ================================================================ */
.news-content .search-results-info {
    background-color: var(--okai-grey);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid var(--okai-red);
}

.news-content .search-results-info strong {
    color: var(--okai-red);
}

/* ================================================================
   BUTTON TEXT STYLE
   ================================================================ */
.news-content .btn-text {
    color: var(--okai-red);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-content .btn-text:hover {
    color: #a01a50;
    text-decoration: underline;
}

/* ================================================================
   LATEST NEWS WIDGET WITH THUMBNAILS
   ================================================================ */
.news-content .latest-news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-content .latest-news-item {
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.news-content .latest-news-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    transition: transform 0.3s ease;
    background-color: #f8f9fa;
    padding: 4px;
}

.news-content .latest-news-thumb:hover {
    transform: scale(1.05);
}

.news-content .latest-news-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

.news-content .latest-news-title a {
    color: var(--okai-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-content .latest-news-title a:hover {
    color: var(--okai-red);
}

.news-content .latest-news-date {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.news-content .latest-news-date i {
    color: var(--okai-red);
    font-size: 11px;
}

/* ================================================================
   RESPONSIVE STYLES
   ================================================================ */
@media (max-width: 768px) {
    /* Search box full width on mobile */
    .news-search-section .widget-search-top {
        padding: 0 15px;
    }
    
    /* Article card adjustments */
    .news-content .date-badge {
        top: 10px;
        right: 10px;
        padding: 6px 8px;
        min-width: 50px;
    }
    
    .news-content .date-badge .day {
        font-size: 16px;
    }
    
    .news-content .date-badge .month {
        font-size: 10px;
    }
    
    /* Latest news thumbnails */
    .news-content .latest-news-thumb {
        aspect-ratio: 16 / 9;
    }
    
    .news-content .latest-news-title {
        font-size: 13px;
    }
    
    /* Widgets spacing */
    .news-content .widget {
        padding: 15px;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .news-content .date-badge {
        padding: 5px 6px;
        min-width: 45px;
    }
    
    .news-content .date-badge .day {
        font-size: 14px;
    }
    
    .news-content .date-badge .month {
        font-size: 9px;
    }
    
    .news-content .latest-news-thumb {
        aspect-ratio: 16 / 9;
    }
}

