/* Advanced Mobile Compatibility & CSS Reset */
/* Unified font size for author and date labels across sections */
.news-slider .slide-author,
.news-slider .slide-time,
.news-card .news-author,
.news-card .news-time,
.featured-meta .featured-author,
.featured-meta .featured-time,
.related-articles .article-meta .author,
.related-articles .article-meta .time,
.top-articles .card .news-author,
.top-articles .card .news-time {
    font-size: 10px !important;
    line-height: 1.2;
}

/* Search results, related articles, and more articles: unify author/date font size */
.related-articles-section .related-article-meta .author,
.related-articles-section .related-article-meta .time,
.search-results .category-article-meta .author,
.search-results .category-article-meta .time,
.more-articles-section .category-article-meta .author,
.more-articles-section .category-article-meta .time,
.category-article-meta .author,
.category-article-meta .time {
    font-size: 10px !important;
    line-height: 1.2;
}
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    background-color: #f5f5f5;
    min-height: 100%;
    overscroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Noto Kufi Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    padding-bottom: 0;
    touch-action: pan-y;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* CSS Custom Properties for Responsive Design */
:root {
    --header-height: 65px;
    --header-height-mobile: 55px;
    --header-height-small: 45px;
    --header-height-xs: 35px;
    
    --nav-padding: 1rem;
    --nav-padding-mobile: 0.8rem;
    --nav-padding-small: 0.6rem;
    --nav-padding-xs: 0.4rem;
    
    --border-radius: 12px;
    --border-radius-mobile: 8px;
    --border-radius-small: 6px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-mobile: 0 2px 10px rgba(0,0,0,0.1);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) { :root { --header-height: 60px; } }
@media (max-width: 992px) { :root { --header-height: 55px; } }
@media (max-width: 768px) { :root { --header-height: var(--header-height-mobile); } }
@media (max-width: 576px) { :root { --header-height: var(--header-height-small); } }
@media (max-width: 480px) { :root { --header-height: var(--header-height-xs); } }

/* Fixed Navigation Bar - Advanced Mobile Compatibility */
.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: var(--header-height);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: var(--shadow);
    z-index: 1000;
    transform: translateY(-100%);
    transition: var(--transition);
    border-bottom: 1px solid #e9ecef;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    will-change: transform;
    opacity: 0;
    visibility: hidden;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow: hidden;
    -webkit-transform: translateY(-100%);
    -ms-transform: translateY(-100%);
}

.fixed-nav.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
}

.fixed-nav-content {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 var(--nav-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
    min-width: 0;
    flex-wrap: nowrap;
}

/* Advanced Logo Styling */
.fixed-nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: var(--transition);
    cursor: pointer;
    flex-shrink: 0;
    min-width: 0;
    position: relative;
    flex: 0 0 auto;
    max-width: 30%;
    overflow: hidden;
    padding-inline-start: 16px;
}

.fixed-nav.show .fixed-nav-logo {
    opacity: 1;
    transform: translateX(0);
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
}

.fixed-nav-logo h2 {
    font-size: 1.5rem; /* match .logo h1 size */
    font-weight: 700;
    color: #ff661f;
    margin: 2px 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    transition: var(--transition);
    -webkit-line-clamp: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.fixed-nav-logo .subtitle {
    font-size: clamp(0.6rem, 1.5vw, 0.8rem);
    color: #6c757d;
    font-weight: 300;
    margin-top: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    transition: var(--transition);
    -webkit-line-clamp: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

/* Advanced Navigation List */
.fixed-nav-list {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition) 0.1s;
    flex-wrap: nowrap;
    justify-content: center;
    flex: 1;
    max-width: 60%;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.fixed-nav-list::-webkit-scrollbar {
    display: none;
}

.fixed-nav.show .fixed-nav-list {
    opacity: 1;
    transform: translateY(0);
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
}

.fixed-nav-list li {
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.fixed-nav-list a {
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    font-size: clamp(0.7rem, 1.8vw, 0.9rem);
    padding: clamp(0.6rem, 1.5vw, 1rem) clamp(0.8rem, 2vw, 1.2rem);
    border-radius: 0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
    height: 100%;
    min-height: 40px;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.fixed-nav-list a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #ff661f;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.fixed-nav-list a:hover::before {
    width: 100%;
}

.fixed-nav-list a:hover {
    background-color: #f8f9fa;
    color: #1e3c72;
    transform: translateY(-2px);
}

.fixed-nav-list a.active {
    color: #ff661f;
    background-color: #f8f9fa;
    border-bottom-color: #ff661f;
}

.fixed-nav-list a.active::before {
    width: 100%;
}

/* Advanced Search Styling */
.fixed-nav-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition) 0.2s;
    flex-shrink: 0;
    position: relative;
    max-width: 25%;
    overflow: hidden;
}

.fixed-nav.show .fixed-nav-search {
    opacity: 1;
    transform: translateX(0);
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
}

.fixed-nav-search form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.fixed-nav-search input {
    padding: clamp(0.3rem, 1vw, 0.5rem) clamp(0.6rem, 1.5vw, 0.8rem);
    border: 1px solid #dee2e6;
    border-radius: 18px;
    width: clamp(120px, 20vw, 200px);
    font-family: inherit;
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    transition: var(--transition);
    max-width: 100%;
    background: white;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.fixed-nav-search input:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
    width: clamp(140px, 25vw, 220px);
    max-width: 100%;
}

.fixed-nav-search button {
    padding: clamp(0.3rem, 1vw, 0.5rem) clamp(0.6rem, 1.5vw, 0.8rem);
    background:#ff661f;
    border: none;
    border-radius: 18px;
    color: white;
    font-weight: 600;
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

/* Advanced Mobile Toggle */
.fixed-nav .mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #1e3c72;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    cursor: pointer;
    transition: var(--transition);
    padding: clamp(0.3rem, 1vw, 0.5rem);
    border-radius: 5px;
    flex-shrink: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #000000  0%, #000000  100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    margin: 0;
}

.header-top {
    background-color: #ff661f;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    width: 100%;
    margin: 0;
}

.header-top-content {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    box-sizing: border-box;
}

.social-links a {
    color: white;
    margin-left: 1rem;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ffd700;
}

.date {
    color: #ffffff;
}

.main-header {
    width: 100%;
    margin: 0;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-inline-start: 16px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff661f;
    margin: 2px 0;
}

.logo .subtitle {
    padding-top: 5px;
    font-size: 1rem;
    color: #ffffff;
    font-weight: 300;
}

.search-box {
    display: flex;
    gap: 0.5rem;
}

.search-box form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.search-box input {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    width: 300px;
    font-family: 'Noto Kufi Arabic', sans-serif;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
    transform: scale(1.02);
}

.search-box button {
    padding: 0.5rem 1.5rem;
    background-color: #ff661f;
    border: none;
    border-radius: 25px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Noto Kufi Arabic', sans-serif;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

/* Navigation Styles */
.nav {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
    border-bottom: 1px solid #e9ecef;
    width: 100%;
}

.nav-content {
    width: 100%;
    margin: 0;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    box-sizing: border-box;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
    justify-content: center;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-list::-webkit-scrollbar {
    display: none;
}

.nav-list li {
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 1rem 1.2rem;
    border-radius: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    height: 100%;
    min-height: 60px;
    box-sizing: border-box;
}

.nav-list a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #ff661f;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-list a:hover::before {
    width: 100%;
}

.nav-list a:hover {
    background-color: #f8f9fa;
    color: #ff661f;
    transform: translateY(-2px);
}

.nav-list a.active {
    color: #ff661f;
    background-color: #f8f9fa;
    border-bottom-color: #ff661f;
}

.nav-list a.active::before {
    width: 100%;
}

/* Mobile Navigation Toggle for Main Nav */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #1e3c72;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 5px;
    flex-shrink: 0;
}

.mobile-nav-toggle:hover {
    color: #2a5298;
    background-color: #f8f9fa;
    transform: scale(1.1);
}

.mobile-nav-toggle:active {
    transform: scale(0.95);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 1001; /* Higher than fixed nav */
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-header {
    background-color: #ff661f;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-nav-close:hover {
    color: #ffd700;
    transform: scale(1.1);
}

.mobile-nav-list {
    list-style: none;
    padding: 1rem 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid #eee;
}

.mobile-nav-list a {
    display: block;
    padding: 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.mobile-nav-list a:hover {
    background-color: #f5f5f5;
}

.mobile-nav-list a.active {
    background-color: #1e3c72;
    color: white;
    border-right: 4px solid #ffd700;
}

/* Breaking News Ticker Styles - Pure CSS Animation */
.breaking-news-ticker {
    background: #ff661f;
    border: 2px solid #ffd700;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 2rem auto;
    max-width: 1200px;
    position: relative;
    min-height: 60px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(30, 60, 114, 0.3);
    overflow: hidden;
}

.breaking-news-ticker .urgent-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1e3c72;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-left: 1rem;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

.breaking-news-ticker .urgent-btn:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.6);
}

.breaking-news-ticker .news-content {
    flex: 1;
    overflow: hidden;
    margin: 0 1rem;
    background-color: transparent;
    position: relative;
}

.breaking-news-ticker .news-scroll {
    display: flex;
    align-items: center;
    gap: 3rem;
    animation: scrollNews 25s linear infinite;
    will-change: transform;
    transform: translateX(-100%);
    white-space: nowrap;
}

.breaking-news-ticker .news-scroll:hover {
    animation-play-state: paused;
}

.breaking-news-ticker .news-item {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    text-decoration: none;
    display: inline-block;
}

.breaking-news-ticker .news-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    color: #ffd700;
}

.breaking-news-ticker .news-separator {
    background: #ffd700;
    color: #1e3c72;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.breaking-news-ticker .close-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 10;
}

.breaking-news-ticker .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Enhanced CSS Animation for News Scrolling */
@keyframes scrollNews {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Pulse Animation for Separator */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 16px rgba(255, 215, 0, 0.6);
    }
}

/* Responsive Breaking News Ticker */
@media (max-width: 768px) {
    .breaking-news-ticker {
        margin: 1rem;
        padding: 0.8rem 1rem;
        min-height: 50px;
    }
    
    .breaking-news-ticker .news-scroll {
        animation-duration: 20s;
        gap: 2rem;
    }
    
    .breaking-news-ticker .news-item {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .breaking-news-ticker .urgent-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        margin-left: 0.5rem;
    }
}

@media (max-width: 576px) {
    .breaking-news-ticker {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.8rem;
    }
    
    .breaking-news-ticker .news-scroll {
        animation-duration: 15s;
        gap: 1.5rem;
    }
    
    .breaking-news-ticker .news-item {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Show Ticker Button */
.show-ticker-btn {
    background: #ff661f;
    color: white;
    border: 2px solid #ffd700;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem auto;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
}

.show-ticker-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.show-ticker-btn:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
    border-color: #ffed4e;
}

.show-ticker-btn i {
    transition: transform 0.3s ease;
}

.show-ticker-btn:hover i {
    transform: translateY(2px);
}

/* News Sections - Enhanced Professional Design */
.news-sections {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.news-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.news-section h2 {
    color: #495057;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e9ecef;
}

.news-section h2::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-radius: 2px;
}

.news-section-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.news-section-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 120px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.news-section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #dee2e6;
}

.news-section-card .card-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 1rem;
    border-radius: 8px;
}

.news-section-card .card-image i {
    font-size: 1.8rem;
    color: #6c757d;
}

.news-section-card .card-content {
    flex: 1;
    padding: 0.8rem 1rem 0.8rem 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.news-section-card .card-title {
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5rem;
}

.news-section-card .card-time {
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.news-section-card .card-time::before {
    font-size: 0.7rem;
}

.show-more-btn {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    text-decoration: none;
}

.show-more-btn:hover {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

.show-more-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.show-more-btn:hover i {
    transform: translateY(2px);
}

/* Main Content Styles */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.breaking-news {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.breaking-news h3 {
    color: #856404;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breaking-news .news-item {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-right: 4px solid #ffd700;
    transition: all 0.3s ease;
}

.breaking-news .news-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-grid .news-card {
    height: 100%;
    min-height: 450px;
}

.news-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e9ecef;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #1e3c72;
}

.news-image {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.news-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover .news-image::before {
    opacity: 1;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: white;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-category {
    background: #ff661f;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(30, 60, 114, 0.3);
}

.news-category:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.4);
}

.news-date {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
    background: #f8f9fa;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #2c3e50;
    line-height: 1.5;
    transition: color 0.3s ease;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 1.3rem;
}

.news-card:hover .news-title {
    color: #1e3c72;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.85rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 1rem -1.5rem -1.5rem -1.5rem;
    padding: 1.5rem 1.5rem;
    border-radius: 0 0 12px 12px;
}

.news-time {
    color: #495057;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.news-time::before {
    font-size: 0.7rem;
}

.news-author {
    color: #1e3c72;
    font-weight: 600;
    background: rgba(30, 60, 114, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.sidebar {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
}

.sidebar h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ffd700;
}

.sidebar-news {
    margin-bottom: 1.5rem;
}

.sidebar-news-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.sidebar-news-item:hover {
    background-color: #f8f9fa;
    padding-right: 1rem;
    border-radius: 5px;
}

.sidebar-news-item:last-child {
    border-bottom: none;
}

.sidebar-news-title {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
    transition: color 0.3s ease;
}

.sidebar-news-item:hover .sidebar-news-title {
    color: #1e3c72;
}

.sidebar-news-time {
    color: #666;
    font-size: 0.8rem;
}

.live-section {
    background-color: #e8f5e8;
    border: 1px solid #c8e6c9;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.live-section h3 {
    color: #2e7d32;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-news-item {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-right: 4px solid #4caf50;
    transition: all 0.3s ease;
}

.live-news-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.footer {
    background-color: #000;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    position: relative; /* ensure not fixed */
    z-index: 1;
}

.footer-content {
    width: 100%;
    margin: 0;
    padding: 0 1rem;
    text-align: center;
    box-sizing: border-box;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffd700;
}

.copyright {
    color: #ffffff;
    border-top: 1px solid #ff661f;
    padding-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem auto;
    }
    
    .news-sections {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-section-grid {
        grid-template-columns: 1fr; /* 1 card per row on mobile */
    }
    
    .nav-list {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .header-top-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .main-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .search-box {
        justify-content: center;
    }
    
    .breaking-news-ticker {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
        padding: 0.4rem;
        margin: 0.6rem;
        min-height: 45px;
    }
    
    .breaking-news-ticker .news-content {
        width: 100%;
    }
    
    .breaking-news-ticker .urgent-btn {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 576px) {
    .search-box input {
        width: 150px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .news-slider {
        margin: 1rem;
    }
    
    .main-content {
        padding: 0 0.5rem;
    }
    
    .news-grid {
        gap: 1rem;
    }
    
    .news-card {
        margin-bottom: 1rem;
    }
    
    .breaking-news-ticker {
        margin: 0.4rem;
        padding: 0.3rem;
        min-height: 40px;
    }
    
    .breaking-news-ticker .urgent-btn {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }
    
    .news-sections {
        padding: 0 0.5rem;
    }
    
    .news-section {
        padding: 1rem;
    }
    
    .news-section h2 {
        font-size: 1.5rem;
    }
    
    .news-section-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .news-section-card {
        height: 180px;
    }
    
    .news-section-card .card-image {
        height: 80px;
        font-size: 1.5rem;
    }
    
    .news-section-card .card-title {
        font-size: 0.85rem;
    }
}

/* Responsive Design for Fixed Nav */
@media (max-width: 1200px) {
    .fixed-nav-content {
        padding: 0 0.8rem;
        gap: 0.8rem;
    }
    
    .fixed-nav-logo h2 {
        font-size: 1.3rem;
        max-width: 240px;
    }
    
    .fixed-nav-logo .subtitle {
        font-size: 0.65rem;
        max-width: 110px;
    }
    
    .fixed-nav-list {
        max-width: 600px;
        gap: 0;
    }
    
    .fixed-nav-list a {
        font-size: 0.75rem;
        padding: 0.7rem 0.9rem;
    }
}

@media (max-width: 992px) {
    .fixed-nav-content {
        padding: 0 0.6rem;
        gap: 0.6rem;
        height: 60px;
    }
    
    .fixed-nav-logo h2 {
        font-size: 1.2rem;
        max-width: 140px;
    }
    
    .fixed-nav-logo .subtitle {
        font-size: 0.6rem;
        max-width: 100px;
    }
    
    .fixed-nav-list {
        gap: 0;
        max-width: 500px;
    }
    
    .fixed-nav-list a {
        font-size: 0.7rem;
        padding: 0.6rem 0.8rem;
        white-space: nowrap;
    }
    
    .fixed-nav-search input {
        width: 140px;
        max-width: 140px;
        font-size: 0.75rem;
    }
    
    .fixed-nav-search input:focus {
        width: 160px;
        max-width: 160px;
    }
    
    .fixed-nav-search button {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .fixed-nav-content {
        height: 55px;
        padding: 0 0.8rem 0 0.8rem;
        gap: 0;
        justify-content: space-between;
        position: relative;
        align-items: center;
        max-width: 100%;
        overflow: hidden;
    }
    
    .fixed-nav-logo {
        flex: 0 0 auto;
        min-width: 0;
        justify-content: flex-start;
        margin-right: auto;
        max-width: 60%;
        overflow: hidden;
    }
    
    .fixed-nav-logo h2 {
        font-size: clamp(1rem, 3vw, 1.2rem);
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .fixed-nav-logo .subtitle {
        display: none;
    }
    
    .fixed-nav-list {
        display: none;
    }
    
    .fixed-nav-search {
        display: none;
    }
    
    .fixed-nav .mobile-nav-toggle {
        display: block;
        flex-shrink: 0;
        position: absolute;
        right: 0.8rem;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        z-index: 10;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .fixed-nav-content {
        height: clamp(45px, 6vw, 55px);
        padding: 0 0.6rem 0 0.6rem;
        gap: 0;
        position: relative;
        align-items: center;
        max-width: 100%;
        overflow: hidden;
    }
    
    .fixed-nav-logo {
        flex: 0 0 auto;
        justify-content: flex-start;
        margin-right: auto;
        max-width: 65%;
        overflow: hidden;
    }
    
    .fixed-nav-logo h2 {
        font-size: clamp(0.9rem, 2.8vw, 1.1rem);
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .mobile-nav-toggle {
        font-size: clamp(1.1rem, 3.2vw, 1.3rem);
        right: 0.6rem;
        width: 36px;
        height: 36px;
    }
    
    .fixed-nav .mobile-nav-toggle {
        font-size: clamp(1.1rem, 3.2vw, 1.3rem);
        right: 0.6rem;
        z-index: 10;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .fixed-nav-content {
        padding: 0 0.5rem 0 0.5rem;
        gap: 0;
        position: relative;
        align-items: center;
        height: clamp(40px, 5vw, 50px);
        max-width: 100%;
        overflow: hidden;
        min-width: 0;
    }
    
    .fixed-nav-logo {
        max-width: 70%;
    }
    
    .fixed-nav-logo h2 {
        font-size: clamp(0.8rem, 2.5vw, 1rem);
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .mobile-nav-toggle {
        font-size: clamp(1rem, 3vw, 1.2rem);
        right: 0.5rem;
        width: 32px;
        height: 32px;
    }
    
    .fixed-nav .mobile-nav-toggle {
        font-size: clamp(1rem, 3vw, 1.2rem);
        right: 0.5rem;
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 400px) {
    .fixed-nav-content {
        padding: 0 0.4rem 0 0.4rem;
        gap: 0;
        height: clamp(35px, 4.5vw, 45px);
        position: relative;
        align-items: center;
        max-width: 100%;
        overflow: hidden;
        min-width: 0;
    }
    
    .fixed-nav-logo {
        max-width: 75%;
        overflow: hidden;
    }
    
    .fixed-nav-logo h2 {
        font-size: clamp(0.7rem, 2.2vw, 0.9rem);
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .mobile-nav-toggle {
        font-size: clamp(0.9rem, 2.8vw, 1.1rem);
        right: 0.4rem;
        width: 30px;
        height: 30px;
    }
    
    .fixed-nav .mobile-nav-toggle {
        font-size: clamp(0.9rem, 2.8vw, 1.1rem);
        right: 0.4rem;
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 360px) {
    .fixed-nav-content {
        padding: 0 clamp(0.08rem, 0.5vw, 0.15rem);
        min-height: clamp(30px, 4vw, 40px);
        gap: 0;
        position: relative;
        align-items: center;
    }
    
    .fixed-nav-logo {
        max-width: 80%;
    }
    
    .fixed-nav-logo h2 {
        font-size: clamp(0.6rem, 2vw, 0.8rem);
        max-width: 100%;
    }
    
    .mobile-nav-toggle {
        font-size: clamp(0.8rem, 2.5vw, 1rem);
        right: clamp(0.1rem, 0.8vw, 0.2rem);
    }
    
    .fixed-nav .mobile-nav-toggle {
        font-size: clamp(0.8rem, 2.5vw, 1rem);
        right: clamp(0.1rem, 0.8vw, 0.2rem);
    }
}

@media (max-width: 320px) {
    .fixed-nav-content {
        padding: 0 clamp(0.05rem, 0.4vw, 0.1rem);
        min-height: clamp(25px, 3.5vw, 35px);
        gap: 0;
        position: relative;
        align-items: center;
    }
    
    .fixed-nav-logo {
        max-width: 85%;
    }
    
    .fixed-nav-logo h2 {
        font-size: clamp(0.5rem, 1.8vw, 0.7rem);
        max-width: 100%;
    }
    
    .mobile-nav-toggle {
        font-size: clamp(0.7rem, 2.2vw, 0.9rem);
        right: clamp(0.08rem, 0.6vw, 0.15rem);
    }
    
    .fixed-nav .mobile-nav-toggle {
        font-size: clamp(0.7rem, 2.2vw, 0.9rem);
        right: 0.25rem;
        width: 26px;
        height: 26px;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1e3c72;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Focus States for Accessibility */
button:focus,
input:focus,
a:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .nav,
    .mobile-nav,
    .footer {
        display: none;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        margin: 0;
    }
    
    .news-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
} 

/* Responsive Design for News Sections */
@media (max-width: 768px) {
    .news-sections {
        padding: 0 0.8rem;
        margin: 1.5rem auto;
    }
    
    .news-section {
        padding: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .news-section h2 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .news-section-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1rem;
    }
    
    .news-section-card {
        height: 100px;
    }
    
    .news-section-card .card-image {
        width: 70px;
        height: 70px;
        margin: 0 0.8rem;
    }
    
    .news-section-card .card-image i {
        font-size: 1.5rem;
    }
    
    .news-section-card .card-content {
        padding: 0.6rem 0.8rem 0.6rem 0;
    }
    
    .news-section-card .card-title {
        font-size: 0.85rem;
        min-height: 2.3rem;
    }
    
    .news-section-card .card-time {
        font-size: 0.7rem;
    }
    
    .show-more-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .news-sections {
        padding: 0 0.5rem;
        margin: 1rem auto;
    }
    
    .news-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .news-section h2 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .news-section-card {
        height: 90px;
    }
    
    .news-section-card .card-image {
        width: 60px;
        height: 60px;
        margin: 0 0.6rem;
    }
    
    .news-section-card .card-image i {
        font-size: 1.3rem;
    }
    
    .news-section-card .card-content {
        padding: 0.5rem 0.6rem 0.5rem 0;
    }
    
    .news-section-card .card-title {
        font-size: 0.8rem;
        min-height: 2.1rem;
    }
    
    .news-section-card .card-time {
        font-size: 0.65rem;
    }
    
    .show-more-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
} 

/* Politics and Economy Sections Side by Side */
.politics-economy-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.politics-section,
.economy-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.politics-section h3,
.economy-section h3 {
    color: #495057;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e9ecef;
}

.politics-section h3::before,
.economy-section h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-radius: 2px;
}

.politics-news,
.economy-news {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.politics-news-row,
.economy-news-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.politics-news-item,
.economy-news-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.politics-news-item:hover,
.economy-news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #dee2e6;
}

.politics-news-item .news-image,
.economy-news-item .news-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    position: relative;
}

.politics-news-item .news-image img,
.economy-news-item .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.politics-news-item:hover .news-image img,
.economy-news-item:hover .news-image img {
    transform: scale(1.05);
}

.politics-news-item .news-content,
.economy-news-item .news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
}

.politics-news-item .news-content h4,
.economy-news-item .news-content h4 {
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.8rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5rem;
}

.politics-news-item .news-time,
.economy-news-item .news-time {
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.politics-news-item .news-time::before,
.economy-news-item .news-time::before {
    font-size: 0.7rem;
}

/* Responsive Design for Politics and Economy Sections */
@media (max-width: 768px) {
    .politics-economy-sections {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .politics-section,
    .economy-section {
        padding: 1.2rem;
    }
    
    .politics-section h3,
    .economy-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .politics-news-row,
    .economy-news-row {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .politics-news-item .news-image,
    .economy-news-item .news-image {
        height: 100px;
    }
    
    .politics-news-item .news-content,
    .economy-news-item .news-content {
        padding: 0.8rem;
    }
    
    .politics-news-item .news-content h4,
    .economy-news-item .news-content h4 {
        font-size: 0.9rem;
        min-height: 2.4rem;
        margin-bottom: 0.6rem;
    }
    
    .politics-news-item .news-time,
    .economy-news-item .news-time {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .politics-economy-sections {
        gap: 1rem;
    }
    
    .politics-section,
    .economy-section {
        padding: 1rem;
    }
    
    .politics-section h3,
    .economy-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .politics-news-row,
    .economy-news-row {
        gap: 0.6rem;
    }
    
    .politics-news-item .news-image,
    .economy-news-item .news-image {
        height: 80px;
    }
    
    .politics-news-item .news-content,
    .economy-news-item .news-content {
        padding: 0.6rem;
    }
    
    .politics-news-item .news-content h4,
    .economy-news-item .news-content h4 {
        font-size: 0.85rem;
        min-height: 2.2rem;
        margin-bottom: 0.5rem;
    }
    
    .politics-news-item .news-time,
    .economy-news-item .news-time {
        font-size: 0.7rem;
    }
} 

/* Featured News Section */
.featured-news-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

/* Featured Article */
.featured-article {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.featured-image {
    flex-shrink: 0;
    width: 300px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-article:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.featured-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-time {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    align-self: flex-end;
    margin-top: 1rem;
}

/* News Grid Section */
.news-grid-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.news-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #dee2e6;
}

.news-item .news-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-item .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.1);
}

.news-item .news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-item .news-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5rem;
}

.news-item .news-time {
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 500;
    align-self: flex-end;
}

/* Responsive Design for Featured News Section */
@media (max-width: 768px) {
    .featured-news-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .featured-article {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .featured-image {
        width: 100%;
        height: 200px;
    }
    
    .featured-title {
        font-size: 1.2rem;
        -webkit-line-clamp: 4;
    }
    
    .news-grid-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .news-column {
        gap: 1rem;
    }
    
    .news-item {
        padding: 0.8rem;
    }
    
    .news-item .news-image {
        width: 70px;
        height: 70px;
    }
    
    .news-item .news-title {
        font-size: 0.85rem;
        min-height: 2.3rem;
    }
    
    .news-item .news-time {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .featured-news-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .featured-article {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }
    
    .featured-image {
        height: 180px;
    }
    
    .featured-title {
        font-size: 1.1rem;
        -webkit-line-clamp: 5;
    }
    
    .news-item {
        padding: 0.6rem;
    }
    
    .news-item .news-image {
        width: 60px;
        height: 60px;
    }
    
    .news-item .news-title {
        font-size: 0.8rem;
        min-height: 2.1rem;
    }
    
    .news-item .news-time {
        font-size: 0.65rem;
    }
} 

/* Responsive Design for News Grid */
@media (max-width: 768px) {
    .news-content {
        padding: 1.2rem;
    }
    
    .news-category {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
        margin-bottom: 0.8rem;
    }
    
    .news-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .news-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.8rem;
        margin: 0.8rem -1.2rem -1.2rem -1.2rem;
        padding: 0.6rem 1.2rem;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-top: 1px solid #e9ecef;
        border-radius: 0 0 12px 12px;
        width: calc(100% + 2.4rem);
        box-sizing: border-box;
    }
    
    .news-time,
    .news-author {
        font-size: 0.75rem;
        font-weight: 600;
    }
    
    .news-time {
        color: #495057;
    }
    
    .news-author {
        color: #1e3c72;
        background: rgba(30, 60, 114, 0.1);
        padding: 0.2rem 0.6rem;
        border-radius: 12px;
    }
}

@media (max-width: 576px) {
    .news-content {
        padding: 1rem;
    }
    
    .news-category {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
        margin-bottom: 0.6rem;
    }
    
    .news-title {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .news-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.75rem;
        margin: 0.6rem -1rem -1rem -1rem;
        padding: 1.5rem 1rem;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-top: 1px solid #e9ecef;
        border-radius: 0 0 12px 12px;
        width: calc(100% + 2rem);
        box-sizing: border-box;
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .news-time,
    .news-author {
        font-size: 0.7rem;
        font-weight: 600;
    }
    
    .news-time {
        color: #495057;
    }
    
    .news-author {
        color: #1e3c72;
        background: rgba(30, 60, 114, 0.1);
        padding: 0.15rem 0.5rem;
        border-radius: 10px;
    }
} 
.breaking-news-ticker .news-content{

    padding: 0.3rem;
}

/* Responsive Design for Navigation */
@media (max-width: 1200px) {
    .nav-content,
    .fixed-nav-content {
        padding: 0 clamp(0.5rem, 2vw, 1rem);
        gap: clamp(0.5rem, 1.5vw, 1rem);
    }
    
    .nav-list,
    .fixed-nav-list {
        gap: 0;
        max-width: 65%;
    }
    
    .nav-list a,
    .fixed-nav-list a {
        padding: clamp(0.7rem, 1.8vw, 1rem) clamp(0.9rem, 2.2vw, 1.2rem);
        font-size: clamp(0.75rem, 1.8vw, 0.9rem);
    }
    
    .fixed-nav-logo {
        max-width: 25%;
    }
    
    .fixed-nav-search {
        max-width: 20%;
    }
}

@media (max-width: 992px) {
    .nav-content,
    .fixed-nav-content {
        padding: 0 clamp(0.4rem, 1.5vw, 0.8rem);
        gap: clamp(0.4rem, 1.2vw, 0.8rem);
        height: clamp(55px, 8vw, 65px);
    }
    
    .nav-list,
    .fixed-nav-list {
        gap: 0;
        max-width: 70%;
    }
    
    .nav-list a,
    .fixed-nav-list a {
        padding: clamp(0.6rem, 1.5vw, 0.8rem) clamp(0.8rem, 1.8vw, 1rem);
        font-size: clamp(0.7rem, 1.6vw, 0.8rem);
        white-space: nowrap;
    }
    
    .fixed-nav-logo {
        max-width: 25%;
    }
    
    .fixed-nav-search {
        max-width: 20%;
    }
    
    .fixed-nav-search input {
        width: clamp(100px, 18vw, 160px);
        max-width: 100%;
    }
    
    .fixed-nav-search input:focus {
        width: clamp(120px, 22vw, 180px);
        max-width: 100%;
    }
    
    .fixed-nav-search button {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .nav-content {
        justify-content: center;
        padding: 0 clamp(0.3rem, 1.2vw, 0.6rem);
        min-height: clamp(50px, 7vw, 60px);
    }
    
    .nav-list {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
        position: absolute;
        right: clamp(0.5rem, 2vw, 1rem);
        top: 50%;
        transform: translateY(-50%);
    }
    
    .fixed-nav-content {
        height: clamp(50px, 7vw, 60px);
        padding: 0 clamp(0.3rem, 1.2vw, 0.6rem);
        gap: 0;
        justify-content: space-between;
        position: relative;
        align-items: center;
    }
    
    .fixed-nav-logo {
        flex: 0 0 auto;
        min-width: 0;
        justify-content: flex-start;
        margin-right: auto;
        max-width: 60%;
    }
    
    .fixed-nav-logo h2 {
        font-size: clamp(1rem, 3vw, 1.2rem);
        max-width: 100%;
    }
    
    .fixed-nav-logo .subtitle {
        display: none;
    }
    
    .fixed-nav-list {
        display: none;
    }
    
    .fixed-nav-search {
        display: none;
    }
    
    .fixed-nav .mobile-nav-toggle {
        display: block;
        flex-shrink: 0;
        position: absolute;
        right: clamp(0.5rem, 2vw, 0.8rem);
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        z-index: 10;
    }
}

@media (max-width: 576px) {
    .nav-content {
        padding: 0 clamp(0.2rem, 1vw, 0.4rem);
        min-height: clamp(45px, 6vw, 55px);
    }
    
    .fixed-nav-content {
        height: clamp(45px, 6vw, 55px);
        padding: 0 clamp(0.2rem, 1vw, 0.4rem);
        gap: 0;
        position: relative;
        align-items: center;
    }
    
    .fixed-nav-logo {
        flex: 0 0 auto;
        justify-content: flex-start;
        margin-right: auto;
        max-width: 65%;
    }
    
    .fixed-nav-logo h2 {
        font-size: clamp(0.9rem, 2.8vw, 1.1rem);
        max-width: 100%;
    }
    
    .mobile-nav-toggle {
        font-size: clamp(1.1rem, 3.2vw, 1.3rem);
        right: 0.6rem;
        width: 36px;
        height: 36px;
    }
    
    .fixed-nav .mobile-nav-toggle {
        font-size: clamp(1.1rem, 3.2vw, 1.3rem);
        right: 0.6rem;
        z-index: 10;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .nav-content {
        padding: 0 clamp(0.15rem, 0.8vw, 0.3rem);
        min-height: clamp(40px, 5vw, 50px);
    }
    
    .fixed-nav-content {
        padding: 0 clamp(0.15rem, 0.8vw, 0.3rem);
        gap: 0;
        position: relative;
        align-items: center;
        height: clamp(40px, 5vw, 50px);
    }
    
    .fixed-nav-logo {
        max-width: 70%;
    }
    
    .fixed-nav-logo h2 {
        font-size: clamp(0.8rem, 2.5vw, 1rem);
        max-width: 100%;
    }
    
    .mobile-nav-toggle {
        font-size: clamp(1rem, 3vw, 1.2rem);
        right: 0.5rem;
        width: 32px;
        height: 32px;
    }
    
    .fixed-nav .mobile-nav-toggle {
        font-size: clamp(1rem, 3vw, 1.2rem);
        right: 0.5rem;
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 400px) {
    .nav-content {
        padding: 0 clamp(0.1rem, 0.6vw, 0.2rem);
        min-height: clamp(35px, 4.5vw, 45px);
    }
    
    .fixed-nav-content {
        padding: 0 clamp(0.1rem, 0.6vw, 0.2rem);
        gap: 0;
        height: clamp(35px, 4.5vw, 45px);
        position: relative;
        align-items: center;
    }
    
    .fixed-nav-logo {
        max-width: 75%;
    }
    
    .fixed-nav-logo h2 {
        font-size: clamp(0.7rem, 2.2vw, 0.9rem);
        max-width: 100%;
    }
    
    .mobile-nav-toggle {
        font-size: clamp(0.9rem, 2.8vw, 1.1rem);
        right: 0.4rem;
        width: 30px;
        height: 30px;
    }
    
    .fixed-nav .mobile-nav-toggle {
        font-size: clamp(0.9rem, 2.8vw, 1.1rem);
        right: 0.4rem;
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 360px) {
    .nav-content {
        padding: 0 clamp(0.08rem, 0.5vw, 0.15rem);
        min-height: clamp(30px, 4vw, 40px);
    }
    
    .fixed-nav-content {
        padding: 0 clamp(0.08rem, 0.5vw, 0.15rem);
        gap: 0;
        height: clamp(30px, 4vw, 40px);
        position: relative;
        align-items: center;
    }
    
    .fixed-nav-logo {
        max-width: 80%;
    }
    
    .fixed-nav-logo h2 {
        font-size: clamp(0.6rem, 2vw, 0.8rem);
        max-width: 100%;
    }
    
    .mobile-nav-toggle {
        font-size: clamp(0.8rem, 2.5vw, 1rem);
        right: clamp(0.1rem, 0.8vw, 0.2rem);
    }
    
    .fixed-nav .mobile-nav-toggle {
        font-size: clamp(0.8rem, 2.5vw, 1rem);
        right: clamp(0.1rem, 0.8vw, 0.2rem);
    }
}

@media (max-width: 320px) {
    .nav-content {
        padding: 0 clamp(0.05rem, 0.4vw, 0.1rem);
        min-height: clamp(25px, 3.5vw, 35px);
        gap: 0;
        position: relative;
        align-items: center;
    }
    
    .fixed-nav-logo {
        max-width: 85%;
    }
    
    .fixed-nav-logo h2 {
        font-size: clamp(0.5rem, 1.8vw, 0.7rem);
        max-width: 100%;
    }
    
    .mobile-nav-toggle {
        font-size: clamp(0.7rem, 2.2vw, 0.9rem);
        right: clamp(0.08rem, 0.6vw, 0.15rem);
    }
    
    .fixed-nav .mobile-nav-toggle {
        font-size: clamp(0.7rem, 2.2vw, 0.9rem);
        right: 0.25rem;
        width: 26px;
        height: 26px;
    }
}

/* Responsive Design for Breaking News */
@media (max-width: 768px) {
    .breaking-news-ticker {
        margin: 1rem;
        padding: 1.2rem;
        min-height: auto;
        flex-direction: row;
        gap: 0;
        text-align: right;
        border-radius: 15px;
        position: relative;
        align-items: center;
    }
    
    .breaking-news-ticker .urgent-btn {
        margin: 0;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        border-radius: 20px;
        order: 1;
        flex-shrink: 0;
        min-width: 60px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .breaking-news-ticker .news-content {
        margin: 0 0 0 1rem;
        order: 2;
        flex: 1;
        padding: 0;
        background: none;
        border: none;
        backdrop-filter: none;
    }
    
    .breaking-news-ticker .news-scroll {
        gap: 1rem;
        animation: scrollNews 25s linear infinite;
        padding: 0;
        height: 35px;
        align-items: center;
    }
    
    .breaking-news-ticker .news-item {
        font-size: 0.9rem;
        line-height: 1.3;
        padding: 0.3rem 0.8rem;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        height: 28px;
        display: flex;
        align-items: center;
        white-space: nowrap;
    }
    
    .breaking-news-ticker .news-separator {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
        flex-shrink: 0;
    }
    
    .breaking-news-ticker .close-btn {
        width: 28px;
        height: 28px;
        font-size: 1rem;
        order: 3;
        flex-shrink: 0;
        margin-right: 0;
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .show-ticker-btn {
        padding: 0.7rem 1.3rem;
        font-size: 0.85rem;
        margin: 1rem;
        border-radius: 25px;
    }
}

@media (max-width: 576px) {
    .breaking-news-ticker {
        margin: 0.8rem;
        padding: 1rem;
        gap: 0;
    }
    
    .breaking-news-ticker .urgent-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        min-width: 55px;
        height: 32px;
    }
    
    .breaking-news-ticker .news-content {
        margin: 0 0 0 0.8rem;
    }
    
    .breaking-news-ticker .news-scroll {
        gap: 0.8rem;
        animation: scrollNews 20s linear infinite;
        height: 32px;
    }
    
    .breaking-news-ticker .news-item {
        font-size: 0.8rem;
        padding: 0.25rem 0.6rem;
        border-radius: 5px;
        height: 25px;
    }
    
    .breaking-news-ticker .news-separator {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
    }
    
    .breaking-news-ticker .close-btn {
        width: 26px;
        height: 26px;
        font-size: 0.9rem;
        top: 0.4rem;
        right: 0.4rem;
    }
    
    .show-ticker-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        margin: 0.8rem;
    }
}

@media (max-width: 480px) {
    .breaking-news-ticker {
        margin: 0.6rem;
        padding: 0.8rem;
    }
    
    .breaking-news-ticker .urgent-btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.7rem;
        min-width: 50px;
        height: 30px;
    }
    
    .breaking-news-ticker .news-content {
        margin: 0 0 0 0.6rem;
    }
    
    .breaking-news-ticker .news-scroll {
        gap: 0.6rem;
        animation: scrollNews 18s linear infinite;
        height: 30px;
    }
    
    .breaking-news-ticker .news-item {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
        border-radius: 4px;
        height: 23px;
    }
    
    .breaking-news-ticker .news-separator {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }
    
    .breaking-news-ticker .close-btn {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
        top: 0.3rem;
        right: 0.3rem;
    }
    
    .show-ticker-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        margin: 0.6rem;
    }
}

@media (max-width: 360px) {
    .breaking-news-ticker {
        margin: 0.5rem;
        padding: 0.7rem;
    }
    
    .breaking-news-ticker .urgent-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
        min-width: 45px;
        height: 28px;
    }
    
    .breaking-news-ticker .news-content {
        margin: 0 0 0 0.5rem;
    }
    
    .breaking-news-ticker .news-scroll {
        gap: 0.5rem;
        animation: scrollNews 16s linear infinite;
        height: 28px;
    }
    
    .breaking-news-ticker .news-item {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
        border-radius: 3px;
        height: 21px;
    }
    
    .breaking-news-ticker .news-separator {
        width: 18px;
        height: 18px;
        font-size: 0.55rem;
    }
    
    .breaking-news-ticker .close-btn {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
        top: 0.25rem;
        right: 0.25rem;
    }
    
    .show-ticker-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        margin: 0.5rem;
    }
}

/* Fix for mobile devices */
@media (max-width: 768px) {
    .fixed-nav {
        width: 100vw;
        left: 0;
        right: 0;
        margin: 0;
        padding: 0;
    }
    
    .fixed-nav-content {
        width: 100%;
        margin: 0;
        padding: 0 0.8rem;
        gap: 0;
        justify-content: space-between;
        position: relative;
        align-items: center;
        max-width: 100%;
        overflow: hidden;
        min-width: 0;
    }
}

/* Advanced Mobile Responsive Design */
@media (max-width: 1200px) {
    .fixed-nav-content {
        padding: 0 0.8rem;
        gap: 0.8rem;
    }
    
    .fixed-nav-logo {
        max-width: 25%;
    }
    
    .fixed-nav-list {
        max-width: 55%;
    }
    
    .fixed-nav-search {
        max-width: 20%;
    }
}

@media (max-width: 992px) {
    .fixed-nav-content {
        padding: 0 0.6rem;
        gap: 0.6rem;
        height: 55px;
    }
    
    .fixed-nav-logo h2 {
        font-size: clamp(0.9rem, 2.2vw, 1.2rem);
    }
    
    .fixed-nav-logo .subtitle {
        font-size: clamp(0.5rem, 1.3vw, 0.7rem);
    }
    
    .fixed-nav-list a {
        font-size: clamp(0.65rem, 1.5vw, 0.8rem);
        padding: clamp(0.5rem, 1.2vw, 0.8rem) clamp(0.7rem, 1.6vw, 1rem);
    }
    
    .fixed-nav-search input {
        width: clamp(100px, 18vw, 160px);
        font-size: clamp(0.65rem, 1.4vw, 0.8rem);
    }
    
    .fixed-nav-search button {
        font-size: clamp(0.65rem, 1.4vw, 0.8rem);
        padding: clamp(0.25rem, 0.8vw, 0.5rem) clamp(0.5rem, 1.2vw, 0.8rem);
    }
}

@media (max-width: 768px) {
    .fixed-nav {
        height: var(--header-height-mobile);
    }
    
    .fixed-nav-content {
        height: 100%;
        padding: 0 0.8rem;
        gap: 0;
        justify-content: space-between;
        position: relative;
        align-items: center;
        max-width: 100%;
        overflow: hidden;
        min-width: 0;
        flex-wrap: nowrap;
    }
    
    .fixed-nav-logo {
        flex: 0 0 auto;
        min-width: 0;
        justify-content: flex-start;
        margin-right: auto;
        max-width: 60%;
        overflow: hidden;
    }
    
    .fixed-nav-logo h2 {
        font-size: clamp(1rem, 3vw, 1.2rem);
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 1;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }
    
    .fixed-nav-logo .subtitle {
        display: none;
    }
    
    .fixed-nav-list {
        display: none;
    }
    
    .fixed-nav-search {
        display: none;
    }
    
    .fixed-nav .mobile-nav-toggle {
        display: flex;
        flex-shrink: 0;
        position: absolute;
        right: 0.8rem;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        z-index: 10;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        background: rgba(248, 249, 250, 0.8);
        border-radius: 8px;
        border: 1px solid #e9ecef;
        transition: var(--transition);
    }
    
    .fixed-nav .mobile-nav-toggle:hover {
        background: rgba(248, 249, 250, 1);
        transform: translateY(-50%) scale(1.05);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
}

@media (max-width: 576px) {
    .fixed-nav {
        height: var(--header-height-small);
    }
    
    .fixed-nav-content {
        height: 100%;
        padding: 0 0.6rem;
        gap: 0;
        position: relative;
        align-items: center;
        max-width: 100%;
        overflow: hidden;
        min-width: 0;
    }
    
    .fixed-nav-logo {
        flex: 0 0 auto;
        justify-content: flex-start;
        margin-right: auto;
        max-width: 65%;
        overflow: hidden;
    }
    
    .fixed-nav-logo h2 {
        font-size: clamp(0.9rem, 2.8vw, 1.1rem);
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 1;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }
    
    .fixed-nav .mobile-nav-toggle {
        width: 36px;
        height: 36px;
        right: 0.6rem;
        font-size: clamp(1.1rem, 3.2vw, 1.3rem);
    }
}

@media (max-width: 480px) {
    .fixed-nav {
        height: var(--header-height-xs);
    }
    
    .fixed-nav-content {
        height: 100%;
        padding: 0 0.5rem;
        gap: 0;
        position: relative;
        align-items: center;
        max-width: 100%;
        overflow: hidden;
        min-width: 0;
    }
    
    .fixed-nav-logo {
        max-width: 70%;
        overflow: hidden;
    }
    
    .fixed-nav-logo h2 {
        font-size: clamp(0.8rem, 2.5vw, 1rem);
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 1;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }
    
    .fixed-nav .mobile-nav-toggle {
        width: 32px;
        height: 32px;
        right: 0.5rem;
        font-size: clamp(1rem, 3vw, 1.2rem);
    }
}

@media (max-width: 400px) {
    .fixed-nav-content {
        height: 100%;
        padding: 0 0.4rem;
        gap: 0;
        height: var(--header-height-xs);
        position: relative;
        align-items: center;
        max-width: 100%;
        overflow: hidden;
        min-width: 0;
    }
    
    .fixed-nav-logo {
        max-width: 75%;
        overflow: hidden;
    }
    
    .fixed-nav-logo h2 {
        font-size: clamp(0.7rem, 2.2vw, 0.9rem);
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 1;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }
    
    .fixed-nav .mobile-nav-toggle {
        width: 30px;
        height: 30px;
        right: 0.4rem;
        font-size: clamp(0.9rem, 2.8vw, 1.1rem);
    }
}

@media (max-width: 360px) {
    .fixed-nav-content {
        height: 100%;
        padding: 0 0.3rem;
        gap: 0;
        position: relative;
        align-items: center;
        max-width: 100%;
        overflow: hidden;
        min-width: 0;
    }
    
    .fixed-nav-logo {
        max-width: 80%;
        overflow: hidden;
    }
    
    .fixed-nav-logo h2 {
        font-size: clamp(0.6rem, 2vw, 0.8rem);
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 1;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }
    
    .fixed-nav .mobile-nav-toggle {
        width: 28px;
        height: 28px;
        right: 0.3rem;
        font-size: clamp(0.8rem, 2.5vw, 1rem);
    }
}

@media (max-width: 320px) {
    .fixed-nav-content {
        height: 100%;
        padding: 0 0.25rem;
        gap: 0;
        position: relative;
        align-items: center;
        max-width: 100%;
        overflow: hidden;
        min-width: 0;
    }
    
    .fixed-nav-logo {
        max-width: 85%;
        overflow: hidden;
    }
    
    .fixed-nav-logo h2 {
        font-size: clamp(0.5rem, 1.8vw, 0.7rem);
        max-width: 100%;
    }
    
    .mobile-nav-toggle {
        font-size: clamp(0.7rem, 2.2vw, 0.9rem);
        right: clamp(0.08rem, 0.6vw, 0.15rem);
    }
    
    .fixed-nav .mobile-nav-toggle {
        font-size: clamp(0.7rem, 2.2vw, 0.9rem);
        right: 0.25rem;
        width: 26px;
        height: 26px;
    }
}

/* Landscape Mobile Support */
@media (max-height: 500px) and (orientation: landscape) {
    .fixed-nav {
        height: 40px;
    }
    
    .fixed-nav-content {
        height: 100%;
        padding: 0 0.5rem;
    }
    
    .fixed-nav-logo h2 {
        font-size: clamp(0.8rem, 2vw, 1rem);
    }
    
    .fixed-nav .mobile-nav-toggle {
        width: 32px;
        height: 32px;
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .fixed-nav {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .fixed-nav-list a {
        min-height: 44px;
        padding: 0.8rem 1rem;
    }
    
    .fixed-nav .mobile-nav-toggle {
        min-height: 44px;
        min-width: 44px;
    }
    
    .fixed-nav-search input,
    .fixed-nav-search button {
        min-height: 44px;
    }
    
    /* Ensure proper touch scrolling */
    html, body {
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        overscroll-behavior: auto;
    }
    
    /* Fix for iOS Safari */
    .main-content,
    .news-sections,
    .news-grid,
    .sidebar {
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }
    
    /* Prevent horizontal scrolling issues */
    .header,
    .nav,
    .footer,
    .fixed-nav {
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }
}

/* Global Fix for Full Width Layout */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background-color: #f5f5f5;
    min-height: 100%;
    overscroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* Container Fixes */
.header-top,
.header,
.nav,
.footer {
    width: 100vw;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Content Containers */
.header-top-content,
.main-header,
.nav-content,
.footer-content {
    width: 100%;
    margin: 0;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Responsive Padding */
@media (max-width: 768px) {
    .header-top-content,
    .main-header,
    .nav-content,
    .footer-content {
        padding: 0 0.8rem;
    }
}

@media (max-width: 576px) {
    .header-top-content,
    .main-header,
    .nav-content,
    .footer-content {
        padding: 0 0.6rem;
    }
}

@media (max-width: 480px) {
    .header-top-content,
    .main-header,
    .nav-content,
    .footer-content {
        padding: 0 0.5rem;
    }
}

@media (max-width: 360px) {
    .header-top-content,
    .main-header,
    .nav-content,
    .footer-content {
        padding: 0 0.4rem;
    }
}

/* Top Articles - Structured Section */
.top-articles-section {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.top-articles-card {
	background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.top-articles-title {
	color: #495057;
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 1.2rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding-bottom: 0.8rem;
	border-bottom: 2px solid #e9ecef;
}

.top-articles-title::before {
	content: '';
	width: 4px;
	height: 20px;
	background: #ff661f;
	border-radius: 2px;
}

.top-articles-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.2rem;
}

@media (max-width: 992px) {
	.top-articles-grid { grid-template-columns: 1fr; }
}

/* Disable time icon globally */
.news-time::before,
.politics-news-item .news-time::before,
.economy-news-item .news-time::before {
	content: '' !important;
}

/* Latest Articles - Professional Card Design (refinements) */
.latest-article-item {
	cursor: pointer;
	border-color: #e6ebf1;
}
.latest-article-item:hover {
	border-color: #d6dee8;
}
.latest-article-item:focus-within {
	outline: 2px solid #ffd700;
	outline-offset: 2px;
}

/* Subtle gradient overlay on images for better text contrast */
.latest-article-image::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0) 60%);
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}
.latest-article-item:hover .latest-article-image::after { opacity: .35; }

/* Title accent on hover */
.latest-article-title {
	transition: color 0.25s ease, transform 0.2s ease;
}
.latest-article-item:hover .latest-article-title {
	color: #1e3c72;
	transform: translateY(-1px);
}

/* Meta icons and tidy layout */
.latest-article-time::before {
	content: '🗓';
	margin-inline-start: .2rem;
	margin-inline-end: .2rem;
}
.latest-article-author::before {
	content: '👤';
	font-size: 9px;
}
.latest-article-meta span { white-space: nowrap; }
.latest-article-meta { flex-wrap: wrap; row-gap: .2rem; }

@media (max-width: 768px) {
	.latest-articles-grid { gap: 1rem; }
	.latest-article-content { padding: 0.75rem 0.9rem 0.9rem; }
	.latest-article-item { height: 350px; }
	.latest-article-image { height: 190px; }
	
	.latest-articles-section .latest-section-title {
		margin-bottom: 1.8rem;
		margin-top: 0.8rem;
		padding-bottom: 0.9rem;
		font-size: 1.2rem;
	}
}

/* Latest Articles - Professional Card Design */
.latest-articles-section {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.latest-articles-section .latest-section-title {
	color: #495057;
	font-size: 1.3rem;
	font-weight: 800;
	margin-bottom: 2rem;
	margin-top: 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid #e9ecef;
	justify-content: center;
	text-align: center;
}

.latest-articles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.2rem;
}

.latest-article-item {
	background: #ffffff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0,0,0,0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	display: flex;
	flex-direction: column;
	height: 380px;
}

.latest-article-item:hover {
	transform: translateY(-6px);
	box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.latest-article-image {
	position: relative;
	aspect-ratio: 16/9;
	background: #fff;
	overflow: hidden;
	height: 220px;
}

.latest-article-image img {
	width: 100%;
	height: 100%;
	object-fit: cover !important;
	display: block;
	transition: transform 0.35s ease;
	background-color: #fff;
}

.latest-article-item:hover .latest-article-image img {
	transform: scale(1.02);
}

.latest-article-content {
	padding: 0.8rem 0.9rem 0.9rem !important;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	flex: initial;
	align-items: flex-start;
	text-align: right;
	inline-size: 100%;
}

.latest-article-category {
	align-self: flex-end;
	background: #ff661f;
	color: #fff;
	padding: 0.2rem 0.5rem;
	border-radius: 8px;
	font-size: 0.65rem;
	font-weight: 700;
}

.latest-article-title {
	color: #2c3e50;
	font-weight: 800;
	font-size: 0.95rem;
	line-height: 1.45;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-align: right;
	min-height: 34px;
}

.latest-article-excerpt {
	color: #7f8c8d;
	font-size: 10px;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
}

.latest-article-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 6px;
	border-top: 1px solid #f1f3f4;
}

.latest-article-author {
	color: #7f8c8d;
	font-size: 10px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 3px;
}

.latest-article-author::before {
	content: '👤';
	font-size: 9px;
}

.latest-article-time {
	color: #7f8c8d;
	font-size: 10px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 3px;
	margin-top: auto;
}

.latest-article-time::before {
	font-size: 2px;
}

@media (max-width: 576px) {
	.latest-articles-grid {
		grid-template-columns: 1fr;
		gap: 0.9rem;
	}
	.latest-article-title { font-size: 0.9rem; }
	.latest-article-excerpt { -webkit-line-clamp: 2; }
	.latest-article-item { height: 320px; }
	.latest-article-image { height: 160px; }
	.latest-article-content { padding: 0.6rem 0.7rem 0.7rem !important; }
	
	.latest-articles-section .latest-section-title {
		margin-bottom: 1.5rem;
		margin-top: 0.6rem;
		padding-bottom: 0.8rem;
		font-size: 1.1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.latest-article-item,
	.latest-article-image img { transition: none; }
}

/* Slider: make slide-category a bit larger */
.news-slider .slide-category {
    font-size: clamp(0.9rem, 2.4vw, 1.1rem);
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
}

/* Floating category badges over images */
.news-slider .swiper-slide .slide-image { position: relative; }
.news-slider .slide-category {
	position: absolute !important;
	top: 10px !important;
	right: 10px !important;
	z-index: 100 !important;
	background: #ff661f;
	color: #fff;
	padding: 0.35rem 0.8rem;
	border-radius: 12px;
	font-weight: 700;
	font-size: clamp(0.9rem, 2.4vw, 1.1rem);
	white-space: nowrap;
	text-shadow: 0 1px 2px rgba(0,0,0,0.5);
	box-shadow: 0 0 0 3px rgba(255,255,255,0.85); /* outline to keep text readable */
}

/* Ensure slider category badge remains visible on small/medium screens */
@media (max-width: 992px) {
    .news-swiper { overflow: visible !important; }
    .news-slider .swiper-slide { overflow: visible !important; }
    .news-slider .swiper-slide .slide-image { overflow: visible !important; }
    .news-slider .slide-category { top: 32px !important; right: 12px !important; }
}

@media (max-width: 768px) {
    .news-swiper { overflow: visible !important; }
    .news-slider .swiper-slide { overflow: visible !important; }
    .news-slider .slide-category { top: 44px !important; right: 12px !important; }
}

@media (max-width: 576px) {
    .news-swiper { overflow: visible !important; }
    .news-slider .swiper-slide { overflow: visible !important; }
    .news-slider .slide-category { top: 56px !important; right: 12px !important; }
}

.latest-article-image { position: relative; }
.latest-article-image .latest-article-category,
.latest-article-item .latest-article-category {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
}

/* Featured article floating category */
.featured-article { position: relative; }
.featured-article .featured-category {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	background: #ff661f;
	color: #fff;
	padding: 0.3rem 0.7rem;
	border-radius: 12px;
	font-size: 0.8rem;
	font-weight: 800;
}

/* Top articles cards */
.top-articles-section .news-card .news-image { position: relative; }
.top-articles-section .news-card .news-category {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	background: #ff661f;
	color: #fff;
	padding: 0.25rem 0.6rem;
	border-radius: 10px;
	font-weight: 700;
}

/* Ensure proper anchor for slider badges */
.news-slider .swiper-slide { position: relative; }
.news-slider .slide-content { position: relative; }

/* Ensure latest article badge anchors to card */
.latest-article-item { position: relative; }

/* Reduce extra white space under title when no excerpt */
.latest-article-title + .latest-article-meta { margin-top: 0.45rem; }

/* Reset: remove any enforced min-height on latest article title */
.latest-article-title { min-height: 0; }

/* Force remove min-height under latest article title */
.latest-articles-section .latest-article-item .latest-article-title {
	min-height: 0 !important;
}

/* Latest Articles: fill image area and enhance meta clarity */
.latest-article-image img {
	object-fit: cover !important; /* fill the visual area fully */
}

/* Slightly larger card so meta isn't glued to the bottom */
.latest-article-item {
	min-height: 240px;
}

/* Clearer date/author and proper alignment */
.latest-article-meta {
	justify-content: space-between !important;
	margin-top: 0.3rem;
}
.latest-article-time,
.latest-article-author {
	color: #2c3e50;
	font-weight: 700;
	font-size: 10px;
}
@media (max-width: 576px) {
	.latest-article-time,
	.latest-article-author { font-size: 0.85rem; }
}

/* Ensure no icon before the date */
.latest-article-time::before { content: none !important; }

/* Slider: force category badge over image (top-right) */
.news-slider .swiper-slide { position: relative; }
.news-slider .slide-content { position: static !important; }
.news-slider .swiper-slide .slide-image { position: relative; overflow: visible !important; }
.news-slider .slide-category {
	position: absolute !important;
	top: 10px !important;
	right: 10px !important;
	z-index: 10 !important;
	margin: 0 !important;
}

/* Ensure category badge is visible while keeping meta inside card */
@media (max-width: 992px) {
    .news-slider .swiper-slide { overflow: visible !important; }
    .news-slider .swiper-slide .slide-image { overflow: visible !important; }
    .news-slider .slide-image-link { overflow: visible !important; }
    .news-slider .slide-content { overflow: hidden !important; }
    .news-slider .slide-category { top: 32px !important; right: 12px !important; }
}

@media (max-width: 768px) {
    .news-slider .swiper-slide { overflow: visible !important; }
    .news-slider .swiper-slide .slide-image { overflow: visible !important; }
    .news-slider .slide-image-link { overflow: visible !important; }
    .news-slider .slide-content { overflow: hidden !important; }
    .news-slider .slide-category { top: 44px !important; right: 12px !important; }
}

@media (max-width: 576px) {
    .news-slider .swiper-slide { overflow: visible !important; }
    .news-slider .swiper-slide .slide-image { overflow: visible !important; }
    .news-slider .slide-image-link { overflow: visible !important; }
    .news-slider .slide-content { overflow: hidden !important; }
    .news-slider .slide-category { top: 56px !important; right: 12px !important; }
}

/* News Grid: bigger image and floating category badge */
.news-grid .news-card .news-image { height: 260px !important; }
.news-grid .news-card { position: relative; }
.news-grid .news-card .news-category {
	position: absolute !important;
	top: 10px !important;
	right: 10px !important;
	z-index: 3 !important;
	padding: 0.2rem 0.5rem !important; /* smaller badge */
	font-size: 0.7rem !important;
	border-radius: 10px !important;
	background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
	color: #fff !important;
}

/* News Grid: ensure category badge overlays even if placed inside content */
.news-grid .news-card .news-image { position: relative !important; }
.news-grid .news-card { position: relative !important; }
.news-grid .news-card .news-content { position: static !important; }
.news-grid .news-card .news-image .news-category,
.news-grid .news-card .news-content .news-category {
	position: absolute !important;
	top: 10px !important;
	right: 10px !important;
	z-index: 4 !important;
}

/* News Grid: force category badge top-right on image or card root */
.news-grid .news-card { position: relative !important; }
.news-grid .news-card > .news-category { /* if badge is a direct child of card */
	position: absolute !important;
	top: 8px !important;
	right: 8px !important;
	z-index: 5 !important;
	padding: 0.2rem 0.5rem !important;
	font-size: 0.7rem !important;
	border-radius: 10px !important;
	background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
	color: #fff !important;
}
.news-grid .news-card .news-image { position: relative !important; }
.news-grid .news-card .news-image .news-category { /* if badge is inside image */
	position: absolute !important;
	top: 8px !important;
	right: 8px !important;
	z-index: 5 !important;
}

/* News Grid: meta on one line (date right, author left) */
.news-grid .news-card {
	position: relative;
}

/* جعل news-card نسبي للميتا المطلقة */
.news-card {
	position: relative !important;
}

/* تصميم احترافي لـ news-card */
.news-card {
	position: relative !important;
	background: #ffffff !important;
	border: 1px solid #e9ecef !important;
	border-radius: 12px !important;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
	transition: all 0.3s ease !important;
	overflow: hidden !important;
	height: 100% !important;
	display: flex !important;
	flex-direction: column !important;
}

.news-card:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}



/* News Grid SECTION (two-column list) specific fixes */
.news-grid-section .news-item { 
	position: relative !important; 
	background: #ffffff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	overflow: hidden;
}

.news-grid-section .news-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0,0,0,0.12);
	border-color: #1e3c72;
}

.news-grid-section .news-item .news-image { 
	width: 100px !important; 
	height: 100px !important; 
}

/* Ensure the image wrapper can hold the floating badge */
.news-grid-section .news-item .news-image { 
	position: relative !important; 
	overflow: hidden; 
	border-radius: 6px; 
	transition: transform 0.3s ease;
}

.news-grid-section .news-item:hover .news-image {
	transform: scale(1.02);
}

/* Place the category badge on top-right whether it's inside image, content, or direct child */
.news-grid-section .news-item > .news-category,
.news-grid-section .news-item .news-image .news-category,
.news-grid-section .news-item .news-content .news-category {
	position: absolute !important;
	top: 6px !important;
	right: 6px !important;
	z-index: 5 !important;
	padding: 0.18rem 0.45rem !important;
	font-size: 0.68rem !important; /* slightly smaller */
	border-radius: 10px !important;
	background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
	color: #fff !important;
}

/* ميتا مقالات شبكة الأخبار - احترافية ومتجاوبة */
.news-grid-section .news-item .news-time { 
	position: absolute;
	right: 0.8rem;
	bottom: 0.8rem;
	font-weight: 700; 
	color: #495057;
	background: rgba(73, 80, 87, 0.1);
	padding: 0.3rem 0.8rem;
	border-radius: 15px;
	font-size: 0.8rem;
	z-index: 15;
}

.news-grid-section .news-item .news-author { 
	position: absolute;
	left: 0.8rem;
	bottom: 0.8rem;
	font-weight: 700; 
	color: #1e3c72;
	background: rgba(30, 60, 114, 0.1);
	padding: 0.3rem 0.8rem;
	border-radius: 15px;
	font-size: 0.8rem;
	z-index: 15;
}



.news-grid-section .news-item .news-content::after { 
	content: ""; 
	display: table; 
	clear: both; 
}

/* ميتا تغطي الفوتر بالكامل */
.news-grid-section .news-item .news-meta {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 60px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-radius: 0 0 12px 12px;
	z-index: 1;
}



/* Remove any date icon in this section */
.news-grid-section .news-item .news-time::before { content: none !important; }

/* Latest News Item: targeted fixes */
.latest-news-item { position: relative !important; }
.latest-news-item .news-image { height: 260px !important; position: relative !important; overflow: hidden; border-radius: 10px; }
.latest-news-item .news-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Category badge on top-right of the image/card */
.latest-news-item .news-category {
	position: absolute !important;
	top: 8px !important;
	right: 8px !important;
	z-index: 6 !important;
	padding: 0.2rem 0.5rem !important;
	font-size: 0.7rem !important;
	border-radius: 10px !important;
	background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
	color: #fff !important;
}
/* Meta row: date right, author left */
.latest-news-item .news-meta { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: .5rem; flex-wrap: nowrap !important; }
.latest-news-item .news-time, .latest-news-item .news-author { color: #2c3e50; font-weight: 700; }
.latest-news-item .news-time::before { content: none !important; }

/* Latest News (exact selectors) */
.latest-news-item { position: relative !important; }
.latest-news-image { width: 110px !important; height: 110px !important; position: relative !important; overflow: hidden; border-radius: 8px; }
.latest-news-image img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block; }
/* Badge on top-right of the card (or image) */
.latest-news-category {
	position: absolute !important;
	top: 8px !important;
	right: 8px !important;
	z-index: 6 !important;
	padding: 0.18rem 0.5rem !important;
	font-size: 0.68rem !important;
	border-radius: 10px !important;
	background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
	color: #fff !important;
}
/* Featured list grid + polished styling */
.featured-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.2rem; }
.featured-article { position: relative; background: #fff; border: 1px solid #e9ecef; border-radius: 12px; padding: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.featured-image { width: 100% !important; height: 220px !important; border-radius: 10px; overflow: hidden; }
.featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.featured-article:hover .featured-image img { transform: scale(1.03); }
/* Floating category on image */
.featured-article .featured-category { position: absolute; top: 10px; right: 10px; z-index: 2; background: #ff661f;; color:#fff; padding:.3rem .6rem; border-radius:12px; font-weight:800; font-size:.8rem; }
/* Meta: date right, author left */
.featured-meta {
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:nowrap;
    width:100%;
    min-width:0;
    gap:.6rem;
    margin-top:.8rem;
}
.featured-meta .featured-time,
.featured-meta .featured-author{
    flex:0 0 auto;           /* لا تسمح بالتمدد أو الالتفاف */
    white-space:nowrap;      /* إبقاء المحتوى في سطر واحد */
    display:inline-flex;     /* محاذاة محتوى الليبل عموديًا */
    align-items:center;      /* توسيط عمودي دقيق */
    line-height:1;           /* منع اختلاف الارتفاع بسبب line-height */
    margin-top:0;            /* إزالة أي انزياح للأعلى */
    margin-bottom:0;         /* توحيد المحاذاة */
}
.featured-meta .featured-time,
.featured-meta .featured-author {
    display:inline-flex;
    align-items:center;
    gap:.35rem;
    padding:.35rem .7rem;
    border-radius:999px;
    font-size:.85rem;
    font-weight:600;
    line-height:1;
    white-space:nowrap;
}
.featured-meta .featured-time {
    color:#495057;
    background:rgba(73,80,87,.10);
    border:1px solid rgba(73,80,87,.20);
}
.featured-meta .featured-author {
    color:#1e3c72;
    background:rgba(30,60,114,.10);
    border:1px solid rgba(30,60,114,.20);
}
@media (max-width: 576px){
    .featured-meta .featured-time,
    .featured-meta .featured-author{ font-size:.8rem; padding:.3rem .6rem; }
}
.featured-time::before { content: none !important; }

/* Featured cards: force vertical layout and tidy spacing */
.featured-article {
	display: flex !important;
	flex-direction: column !important;
	gap: 0.75rem !important;
	border-bottom: none !important;
	margin-bottom: 0 !important;
	padding-bottom: 1rem !important;
}
.featured-content { display: flex; flex-direction: column; gap: 0.5rem; }
.featured-title { margin: 0.5rem 0 0; font-weight: 800; font-size: 1.2rem; line-height: 1.5; color: #2c3e50; text-align: right; }
.featured-excerpt { color: #6c757d; line-height: 1.6; }
@media (max-width: 768px) { .featured-list { grid-template-columns: 1fr; } }

/* Featured section spacing refinements */
.featured-news-section h3 { margin-bottom: 0.9rem !important; }
.featured-list { margin-bottom: 0.9rem !important; }
.featured-news-section .show-more-btn {
	display: inline-flex;
	margin-top: 0.6rem !important;
	margin-inline: auto;
}

/* Center all 'Show More' buttons */
.latest-show-more-container,
.latest-news-show-more,
.category-show-more-container { display: flex; justify-content: center; }

.latest-show-more-btn,
.latest-news-btn,
.category-show-more-btn,
.featured-news-section .show-more-btn { 
    display: inline-flex; 
    margin-inline: auto; 
    text-decoration: none;
}

/* Force center for Featured section Show More button */
.featured-news-section .show-more-btn {
	display: block !important;
	margin: 0.8rem auto 0 !important;
	width: fit-content;
}

/* Force Latest Articles Card Size - Override all other rules */
.latest-articles-section .latest-article-item,
.latest-article-item {
    height: 380px !important;
    min-height: 380px !important;
    max-height: 380px !important;
}

/* Enhanced spacing for very small screens */
@media (max-width: 480px) {
    .latest-articles-section .latest-section-title {
        margin-bottom: 1.3rem;
        margin-top: 0.5rem;
        padding-bottom: 0.7rem;
        font-size: 1rem;
    }
}

/* Force Latest Section Title Spacing - Override all other rules */
.latest-section-title,
.latest-articles-section .latest-section-title {
    margin-bottom: 2.5rem !important;
    margin-top: 1.5rem !important;
    padding-bottom: 1.2rem !important;
}

/* Force Slider Title and Excerpt Spacing - Override all other rules */
.news-slider .slide-title {
    min-height: 40px !important;
    max-height: 55px !important;
    margin-bottom: 8px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
}

.news-slider .slide-excerpt {
    min-height: 30px !important;
    max-height: 40px !important;
    margin-bottom: 8px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

.news-slider .slide-content {
    gap: 8px !important;
    justify-content: flex-start !important;
}

@media (max-width: 768px) {
    .latest-section-title,
    .latest-articles-section .latest-section-title {
        margin-bottom: 2rem !important;
        margin-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .news-slider .slide-title {
        min-height: 36px !important;
        max-height: 48px !important;
        margin-bottom: 6px !important;
    }
    
    .news-slider .slide-excerpt {
        min-height: 26px !important;
        max-height: 36px !important;
        margin-bottom: 6px !important;
    }
    
    .news-slider .slide-content {
        gap: 6px !important;
    }
}

@media (max-width: 576px) {
    .latest-section-title,
    .latest-articles-section .latest-section-title {
        margin-bottom: 1.8rem !important;
        margin-top: 0.8rem !important;
        padding-bottom: 0.9rem !important;
    }
    
    .news-slider .slide-title {
        min-height: 32px !important;
        max-height: 44px !important;
        margin-bottom: 5px !important;
    }
    
    .news-slider .slide-excerpt {
        min-height: 24px !important;
        max-height: 32px !important;
        margin-bottom: 5px !important;
    }
    
    .news-slider .slide-content {
        gap: 5px !important;
    }
}

@media (max-width: 480px) {
    .latest-section-title,
    .latest-articles-section .latest-section-title {
        margin-bottom: 1.5rem !important;
        margin-top: 0.6rem !important;
        padding-bottom: 0.8rem !important;
    }
    
    .news-slider .slide-title {
        min-height: 30px !important;
        max-height: 40px !important;
        margin-bottom: 4px !important;
    }
    
    .news-slider .slide-excerpt {
        min-height: 22px !important;
        max-height: 28px !important;
        margin-bottom: 4px !important;
    }
    
    .news-slider .slide-content {
        gap: 4px !important;
    }
}

.latest-articles-section .latest-article-image,
.latest-article-image {
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    width: 100% !important;
    flex-shrink: 0 !important;
}

/* Force image inside latest-article-image to be larger */
.latest-articles-section .latest-article-image img,
.latest-article-image img {
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    width: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Mobile Responsive Override */
@media (max-width: 768px) {
    .latest-articles-section .latest-article-item,
    .latest-article-item {
        height: 350px !important;
        min-height: 350px !important;
        max-height: 350px !important;
    }
    
    .latest-articles-section .latest-article-image,
    .latest-article-image {
        height: 190px !important;
        min-height: 190px !important;
        max-height: 190px !important;
    }
    
    .latest-articles-section .latest-article-image img,
    .latest-article-image img {
        height: 190px !important;
        min-height: 190px !important;
        max-height: 190px !important;
    }
}

@media (max-width: 576px) {
    .latest-articles-section .latest-article-item,
    .latest-article-item {
        height: 320px !important;
        min-height: 320px !important;
        max-height: 320px !important;
    }
    
    .latest-articles-section .latest-article-image,
    .latest-article-image {
        height: 160px !important;
        min-height: 160px !important;
        max-height: 160px !important;
    }
    
    .latest-articles-section .latest-article-image img,
    .latest-article-image img {
        height: 160px !important;
        min-height: 160px !important;
        max-height: 160px !important;
    }
}

/* Latest Articles Show More Button */
.latest-show-more-btn {
    background: #ff661f;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.latest-show-more-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    color: white;
    text-decoration: none;
}

.latest-show-more-btn:active {
    transform: translateY(0);
}

.latest-show-more-btn i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.latest-show-more-btn:hover i {
    transform: translateY(2px);
}

/* Latest News Show More Button */
.latest-news-btn {
    background: #ff661f;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.latest-news-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    color: white;
    text-decoration: none;
}

.latest-news-btn:active {
    transform: translateY(0);
}

.latest-news-btn i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.latest-news-btn:hover i {
    transform: translateY(2px);
}

/* Sidebar: Professional carded list (respects layout settings) */
.sidebar .sidebar-news { display: flex; flex-direction: column; gap: 0.6rem; }

/* Grid layout: thumbnail + content; auto fallback when no image */
.sidebar .sidebar-news-item {
	display: grid;
	grid-template-columns: 84px 1fr;
	grid-auto-rows: min-content;
	column-gap: 0.75rem;
	row-gap: 0.35rem;
	align-items: start;
	padding: 0.6rem 0;
	border-bottom: 1px solid #eee;
	transition: background 0.2s ease, transform 0.15s ease;
	border-radius: 8px;
}
.sidebar .sidebar-news-item:hover { background: #f8f9fa; transform: translateY(-1px); }

/* Thumbnail */
.sidebar .sidebar-news-thumb {
	grid-column: 1;
	grid-row: 1 / span 2;
	width: 84px; height: 84px;
	border-radius: 10px;
	object-fit: cover;
	display: block;
	box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Title */
.sidebar .sidebar-news-title {
	grid-column: 2;
	color: #2c3e50;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.4;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-width: 0;
}
.sidebar .sidebar-news-item:hover .sidebar-news-title { color: #1e3c72; }

/* Meta row: date right, author left */
.sidebar .sidebar-news-meta {
	grid-column: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	font-size: 0.82rem;
	color: #6c757d;
	margin-top: 0.15rem;
	width: 100%;
}
.sidebar .sidebar-news-author {
 color: #2c3e50;
 font-weight: 700;
 font-size: 10px;
  }
.sidebar .sidebar-news-time { color: #2c3e50; font-weight: 700; font-size: 10px; }
.sidebar .sidebar-news-time::before { content: none !important; }

/* Fallback when no image is shown by settings: make content full-width */
.sidebar .sidebar-news-item:not(:has(.sidebar-news-thumb)) { grid-template-columns: 1fr; }
.sidebar .sidebar-news-item:not(:has(.sidebar-news-thumb)) .sidebar-news-title,
.sidebar .sidebar-news-item:not(:has(.sidebar-news-thumb)) .sidebar-news-meta { grid-column: 1; }

/* Sidebar excerpt */
.sidebar .sidebar-news-excerpt {
	grid-column: 2;
	color: #6c757d;
	font-size: 0.85rem;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
/* If no thumbnail, make excerpt full width */
.sidebar .sidebar-news-item:not(:has(.sidebar-news-thumb)) .sidebar-news-excerpt { grid-column: 1; }

/* Sidebar category badge floating top-right */
.sidebar .sidebar-news-item { position: relative; }
.sidebar .sidebar-news-category {
	position: absolute !important;
	top: 6px !important;
	right: 6px !important;
	z-index: 5 !important;
	background: #ff661f;
	color: #fff;
	padding: 0.18rem 0.5rem;
	font-size: 0.68rem;
	border-radius: 10px;
	font-weight: 800;
}
/* If image exists, keep badge on image corner; if not, still top-right of card */
.sidebar .sidebar-news-thumb { position: relative; }

/* Prevent sidebar category badge from covering the title */
.sidebar .sidebar-news-item:has(.sidebar-news-category) .sidebar-news-title {
	padding-top: 0.6rem;
}
/* Make the badge non-interactive to avoid hover/click blocking */
.sidebar .sidebar-news-category { pointer-events: none; }

/* Article detail page */
.article-page {
	max-width: 1000px;
	margin: 3rem auto;
	padding: 0 1.5rem;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.08);
	overflow: hidden;
}

.article-header {
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	padding: 3rem 2rem 2rem;
	text-align: center;
	border-bottom: 1px solid #e9ecef;
	position: relative;
}

.article-header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #1e3c72 0%, #2a5298 50%, #e74c3c 100%);
}

.article-category {
	display: inline-block;
	background: #ff661f;
	color: #ffffff;
	padding: 0.6rem 1.2rem;
	border-radius: 25px;
	font-weight: 700;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 1.5rem;
	box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
	transition: all 0.3s ease;
}

.article-category:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
}

.article-title {
	color: #2c3e50;
	font-size: clamp(1.8rem, 4vw, 2.5rem);
	font-weight: 800;
	line-height: 1.3;
	margin: 0 0 2rem;
	text-align: center;
	position: relative;
}

.article-title::after {
	content: '';
	position: absolute;
	bottom: -0.8rem;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 3px;
	background: linear-gradient(90deg, #e74c3c, #f39c12);
	border-radius: 2px;
}

.article-meta {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 2rem;
	margin-top: 2rem;
	flex-wrap: wrap;
}

.article-date,
.article-author {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8rem 1.2rem;
	background: #ffffff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	color: #495057;
	font-weight: 600;
	font-size: 0.95rem;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	transition: all 0.3s ease;
}

.article-date::before {
	content: '🗓';
	font-size: 1rem;
	color: #e74c3c;
}

.article-author::before {
	content: '👤';
	font-size: 1rem;
	color: #1e3c72;
}

.article-date:hover,
.article-author:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	border-color: #1e3c72;
}

.article-hero {
	margin: 0;
	border-radius: 0;
	overflow: hidden;
	position: relative;
}

.article-hero img {
	width: 100%;
	height: 500px;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.article-hero:hover img {
	transform: scale(1.02);
}

.article-content {
	padding: 2.5rem;
	line-height: 1.8;
	color: #2c3e50;
	font-size: 1.05rem;
	background: #ffffff;
}

.article-content h2,
.article-content h3,
.article-content h4 {
	color: #1e3c72;
	font-weight: 700;
	margin: 2rem 0 1rem;
	position: relative;
	padding-right: 1rem;
}

.article-content h2::before,
.article-content h3::before,
.article-content h4::before {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 20px;
	background: #ff661f;
	border-radius: 2px;
}

.article-content p {
	margin: 1rem 0;
	text-align: justify;
}

.article-content ul,
.article-content ol {
	margin: 1rem 0 1rem 2rem;
}

.article-content li {
	margin: 0.5rem 0;
}

.article-content blockquote {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-right: 4px solid #1e3c72;
	padding: 1.5rem;
	margin: 2rem 0;
	border-radius: 8px;
	font-style: italic;
	color: #495057;
}

.article-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
	margin: 1.5rem 0;
}

.article-footer {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 2px solid #e9ecef;
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	margin: 2rem -2.5rem -2.5rem;
	padding: 2rem 2.5rem;
}

.article-share {
	display: flex;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	padding: 0;
	border-radius: 50%;
	font-weight: 700;
	font-size: 1.1rem;
	color: #ffffff;
	text-decoration: none;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.share-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.share-fb {
	background: linear-gradient(135deg, #1877f2 0%, #0d6efd 100%);
}

.share-wa {
	background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.share-x {
	background: linear-gradient(135deg, #000000 0%, #333333 100%);
}

/* ========================================
   ??????? ???????? ????? ???????
   ======================================== */

@media (max-width: 768px) {
	.article-page {
		margin: 2rem auto;
		padding: 0 1rem;
		border-radius: 12px;
	}
	
	.article-header {
		padding: 2rem 1.5rem 1.5rem;
	}
	
	.article-title {
		font-size: clamp(1.5rem, 5vw, 2rem);
		margin-bottom: 1.5rem;
	}
	
	.article-title::after {
		width: 60px;
		height: 2px;
		bottom: -0.6rem;
	}
	
	.article-meta {
		gap: 1rem;
		margin-top: 1.5rem;
	}
	
	.article-date,
	.article-author {
		padding: 0.6rem 1rem;
		font-size: 0.9rem;
	}
	
	.article-hero img {
		height: 300px;
	}
	
	.article-content {
		padding: 1.5rem;
		font-size: 1rem;
	}
	
	.article-content h2,
	.article-content h3,
	.article-content h4 {
		margin: 1.5rem 0 0.8rem;
	}
	
	.article-footer {
		margin: 1.5rem -1.5rem -1.5rem;
		padding: 1.5rem;
	}
	
	.share-btn {
		width: 45px;
		height: 45px;
		font-size: 1rem;
	}
}

@media (max-width: 576px) {
	.article-page {
		margin: 1rem auto;
		border-radius: 8px;
	}
	
	.article-header {
		padding: 1.5rem 1rem 1rem;
	}
	
	.article-title {
		font-size: clamp(1.3rem, 6vw, 1.8rem);
		margin-bottom: 1rem;
	}
	
	.article-title::after {
		width: 50px;
		height: 2px;
		bottom: -0.5rem;
	}
	
	.article-category {
		padding: 0.5rem 1rem;
		font-size: 0.8rem;
		margin-bottom: 1rem;
	}
	
	.article-meta {
		flex-direction: column;
		gap: 0.8rem;
		margin-top: 1rem;
	}
	
	.article-date,
	.article-author {
		padding: 0.5rem 0.8rem;
		font-size: 0.85rem;
		width: 100%;
		justify-content: center;
	}
	
	.article-hero img {
		height: 250px;
	}
	
	.article-content {
		padding: 1rem;
		font-size: 0.95rem;
		line-height: 1.7;
	}
	
	.article-content h2,
	.article-content h3,
	.article-content h4 {
		margin: 1.2rem 0 0.6rem;
		font-size: 1.1rem;
	}
	
	.article-content p {
		margin: 0.8rem 0;
	}
	
	.article-content ul,
	.article-content ol {
		margin: 0.8rem 0 0.8rem 1.5rem;
	}
	
	.article-content li {
		margin: 0.3rem 0;
	}
	
	.article-content blockquote {
		padding: 1rem;
		margin: 1.5rem 0;
	}
	
	.article-content img {
		margin: 1rem 0;
	}
	
	.article-footer {
		margin: 1rem -1rem -1rem;
		padding: 1rem;
	}
	
	.share-btn {
		width: 40px;
		height: 40px;
		font-size: 0.9rem;
	}
}

/* ========================================
   ??????? ?????? ???????
   ======================================== */

.article-content strong {
	color: #1e3c72;
	font-weight: 700;
}

.article-content em {
	color: #e74c3c;
	font-style: italic;
}

.article-content a {
	color: #1e3c72;
	text-decoration: none;
	border-bottom: 1px solid #1e3c72;
	transition: all 0.3s ease;
}

.article-content a:hover {
	color: #e74c3c;
	border-bottom-color: #e74c3c;
}

.article-content code {
	background: #f8f9fa;
	color: #e74c3c;
	padding: 0.2rem 0.4rem;
	border-radius: 4px;
	font-family: 'Courier New', monospace;
	font-size: 0.9rem;
}

.article-content pre {
	background: #2c3e50;
	color: #ecf0f1;
	padding: 1rem;
	border-radius: 8px;
	overflow-x: auto;
	margin: 1.5rem 0;
}

.article-content pre code {
	background: none;
	color: inherit;
	padding: 0;
}

/* ????? ??? ??????? */
.article-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-content th,
.article-content td {
	padding: 0.8rem;
	text-align: right;
	border-bottom: 1px solid #e9ecef;
}

.article-content th {
	background: #ff661f;
	color: #ffffff;
	font-weight: 700;
}

.article-content tr:nth-child(even) {
	background: #f8f9fa;
}

.article-content tr:hover {
	background: #e9ecef;
}

/* Related articles below the article */
.related-articles { max-width: 1100px; margin: 1.6rem auto 0; padding: 0 1rem; }
.related-title { color:#495057; font-weight:800; font-size:1.2rem; margin-bottom: .9rem; border-bottom:2px solid #e9ecef; padding-bottom:.5rem; text-align:right; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.related-grid .news-card .news-image { display:block; }

/* Make slider/title links inherit colors */
.slide-title a, .latest-article-title a, .latest-news-headline a, .news-title a, .featured-title a, .category-article-title a, .sidebar .sidebar-news-title a { color: inherit; text-decoration: none; }
.slide-title a:hover, .latest-article-title a:hover, .latest-news-headline a:hover, .news-title a:hover, .featured-title a:hover, .category-article-title a:hover, .sidebar .sidebar-news-title a:hover { color: #1e3c72; }

/* Linked background images preserve dimensions */
.slide-image-link { display: block; }

/* Slider image link should not change dimensions */
.news-slider .slide-image-link { display:block; }

/* Add space below related articles to avoid sticking to footer */
.related-articles { margin-bottom: 2rem; }

/* Article two-column layout */
.article-layout { max-width: 1200px; margin: 1.5rem auto; padding: 0 1rem; display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: start; }
.article-main { min-width: 0; }
.article-sidebar { position: sticky; top: 80px; height: fit-content; }
@media (max-width: 992px) { .article-layout { grid-template-columns: 1fr; } .article-sidebar { position: static; } }

/* Article content: smaller font and tighter line-height */
.article-content { font-size: 0.92rem; line-height: 1.6; }
.article-content p { margin: 0.4rem 0; }
.article-content h2, .article-content h3, .article-content h4 { margin: 0.8rem 0 0.4rem; }
.article-content ul, .article-content ol { margin: 0.4rem 1.2rem; }

/* Share buttons under the title */
.article-share { display: flex; gap: 0.5rem; justify-content: center; margin-top: 0.6rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.share-btn { display: inline-block; padding: 0.35rem 0.7rem; border-radius: 10px; font-weight: 800; font-size: 0.8rem; color: #fff; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.share-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.share-fb { background: #1877f2; }
.share-wa { background: #25D366; }
.share-x { background: #111; }

/* Article content footer */
.article-footer { margin-top: 0.8rem; padding-top: 0.6rem; border-top: 1px solid #e9ecef; }

/* Smaller typography inside article content */
.article-content { font-size: 0.9rem !important; line-height: 1.55 !important; }
.article-content p { margin: 0.35rem 0 !important; }
.article-content ul, .article-content ol { margin: 0.35rem 1.1rem !important; }

/* Sidebar: remove extra hover padding shift and fix gap when no image */
.sidebar .sidebar-news-item:hover { padding-right: 0 !important; background: #f8f9fa; transform: translateY(-1px); }
.sidebar .sidebar-news-item:not(:has(.sidebar-news-thumb)) { grid-template-columns: 1fr; row-gap: 0.35rem; }
.sidebar .sidebar-news-item:not(:has(.sidebar-news-thumb)) .sidebar-news-title { margin-top: 0.2rem; }

/* Share buttons: left aligned in article footer */
.article-footer .article-share { justify-content: flex-start; }
.article-footer .share-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; }
.article-footer .share-btn i { font-size: 16px; line-height: 1; }

/* Article footer: compact size and align share to left (RTL) */
.article-footer { display: flex; align-items: center; margin-top: 0.5rem !important; padding-top: 0.4rem !important; border-top: 1px solid #e9ecef; }
.article-footer .article-share { margin-inline-start: auto; gap: 0.4rem !important; }
.article-footer .share-btn { width: 30px !important; height: 30px !important; padding: 0 !important; }
.article-footer .share-btn i { font-size: 14px !important; }

/* Sidebar compact fixes: image spans all rows and tighter spacing */
.sidebar .sidebar-news-thumb { grid-row: 1 / -1 !important; }
.sidebar .sidebar-news-excerpt { margin-top: 0.1rem !important; }
.sidebar .sidebar-news-item:has(.sidebar-news-category) .sidebar-news-title { padding-top: 0.3rem !important; }

/* Sidebar text block placed in single cell next to thumbnail */
.sidebar .sidebar-news-text { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 0.2rem; }
.sidebar .sidebar-news-title { margin: 0 !important; }
.sidebar .sidebar-news-excerpt { margin: 0 !important; }

/* When no thumbnail, full width */
s .sidebar .sidebar-news-item:not(:has(.sidebar-news-thumb)) .sidebar-news-text { grid-column: 1; }

/* Sidebar: tighten row gap */
.sidebar .sidebar-news-item { row-gap: 0.2rem !important; }

/* Sidebar meta under text block in second row */
.sidebar .sidebar-news-meta { grid-column: 2; grid-row: 2; margin-top: 0.1rem !important; }

/* When no thumbnail, full width for text block */
.sidebar .sidebar-news-item:not(:has(.sidebar-news-thumb)) .sidebar-news-text { grid-column: 1; }

/* Separator between article title and the body content */
.article-content { border-top: 1px solid #e9ecef; margin-top: 0.7rem !important; padding-top: 0.7rem !important; }

/* Article footer: even more compact */
.article-footer { margin-top: 0.35rem !important; padding-top: 0.3rem !important; }
.article-footer .article-share { gap: 0.3rem !important; }
.article-footer .share-btn { width: 26px !important; height: 26px !important; }
.article-footer .share-btn i { font-size: 13px !important; }

/* Slider excerpt */
.news-slider .slide-excerpt { color:#f1f3f5; font-size: .9rem; line-height: 1.5; margin: .4rem 0 .2rem; max-width: 70ch; }

/* Reset: remove any enforced min-height on latest article title */
.latest-article-title { min-height: 0; }

/* Force remove min-height under latest article title */
.latest-articles-section .latest-article-item .latest-article-title {
	min-height: 0 !important;
}

/* Latest Articles: fill image area and enhance meta clarity */
.latest-article-image img {
	object-fit: cover !important;
}

/* Reduce extra white space under title when no excerpt */
.latest-article-title + .latest-article-meta { margin-top: 0.2rem; }

/* Slider excerpt */
.news-slider .slide-excerpt { color:#f1f3f5; font-size: .9rem; line-height: 1.5; margin: .4rem 0 .2rem; max-width: 70ch; }

/* Main slider: tighten title-excerpt gap and show more excerpt lines */
.news-slider .slide-title { 
    margin: 0.2rem 0 0.2rem !important;
    line-height: 1.3 !important;
}
.news-slider .slide-excerpt {
    margin: 0.2rem 0 0.4rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important; /* allow up to 3 lines */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
.news-slider .slide-meta {
    margin-top: .4rem !important;
}

/* Ensure excerpt is not hidden behind absolute meta at bottom */
.news-slider .slide-content {
    position: static !important;
    padding-bottom: 72px !important; /* reserve space for fixed meta */
}
@media (max-width: 576px) {
    .news-slider .slide-content {
        padding-bottom: 72px !important;
    }
}

/* Latest Articles - Final Override */
.latest-articles-section .latest-article-item {
	height: 240px !important;
}

.latest-articles-section .latest-article-image {
	height: 120px !important;
}

.latest-articles-section .latest-article-category {
	background: #ff661f !important;
	color: white !important;
	padding: 4px 10px !important;
	border-radius: 15px !important;
	font-size: 10px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.3px !important;
	align-self: flex-start !important;
	box-shadow: 0 1px 4px rgba(231, 76, 60, 0.3) !important;
}

.latest-articles-section .latest-article-title {
	min-height: 34px !important;
	font-size: 12px !important;
	-webkit-line-clamp: 2 !important;
	margin-bottom: 6px !important;
}

.latest-articles-section .latest-article-excerpt {
	font-size: 10px !important;
	margin-bottom: 8px !important;
}

/* NEW: Date on LEFT, Author on RIGHT - LIKE SLIDER */
.latest-articles-section .latest-article-meta {
	flex-direction: row !important;
}

.latest-articles-section .latest-article-time {
	font-size: 10px !important;
	order: 1 !important;
}

.latest-articles-section .latest-article-author {
	font-size: 10px !important;
	order: 2 !important;
}

/* Override any conflicting styles with maximum specificity - LIKE SLIDER */
.latest-articles-section .latest-article-item .latest-article-meta {
	flex-direction: row !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
}

.latest-articles-section .latest-article-item .latest-article-time {
	order: 1 !important;
}

.latest-articles-section .latest-article-item .latest-article-author {
	order: 2 !important;
}

/* Additional specificity to override any conflicts */
.latest-articles-section .latest-article-item .latest-article-content .latest-article-meta {
	flex-direction: row !important;
}

.latest-articles-section .latest-article-item .latest-article-content .latest-article-time {
	order: 1 !important;
}

.latest-articles-section .latest-article-item .latest-article-content .latest-article-author {
	order: 2 !important;
}

/* ========================================
   Latest News Meta - نفس تصميم latest-article-meta
   ======================================== */

/* ميتا مشابهة للـ latest-article-meta */
.latest-news-meta {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100% !important;
	margin-top: auto !important;
	padding: 12px 0 0 0 !important;
	border-top: 1px solid #e9ecef !important;
	position: relative !important;
	box-sizing: border-box !important;
	min-height: 40px !important;
	gap: 20px !important; /* مسافة ثابتة بين الكاتب والتاريخ */
}

/* فاصل واضح بين الكاتب والتاريخ */
.latest-news-meta::after {
	content: '' !important;
	position: absolute !important;
	left: 50% !important;
	top: 50% !important;
	transform: translate(-50%, -50%) !important;
	width: 1px !important;
	height: 20px !important;
	background: #e9ecef !important;
	z-index: 5 !important;
}

.latest-news-meta::before {
	content: '' !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	height: 1px !important;
	background: linear-gradient(90deg, transparent, #667eea, transparent) !important;
}

/* الكاتب مشابه للـ latest-article-author - order: 1 */
.latest-news-author {
	color: #6c757d !important;
	font-size: 10px !important;
	font-weight: 500 !important;
	display: flex !important;
	align-items: center !important;
	gap: 4px !important;
	padding: 4px 8px !important;
	background: #f8f9fa !important;
	border-radius: 12px !important;
	border: 1px solid #e9ecef !important;
	white-space: nowrap !important;
	overflow: visible !important;
	max-width: none !important;
	box-sizing: border-box !important;
	order: 1 !important; /* الكاتب في اليسار */
	flex-shrink: 0 !important;
	width: auto !important;
	min-width: fit-content !important;
	margin-right: auto !important; /* يدفع الكاتب إلى أقصى اليسار */
}

.latest-news-author::before {
	content: '👤' !important;
	font-size: 10px !important;
	flex-shrink: 0 !important;
}

/* التاريخ مشابه للـ latest-article-time - order: 3 */
.latest-news-time {
	color: #6c757d !important;
	font-size: 10px !important;
	font-weight: 500 !important;
	display: flex !important;
	align-items: center !important;
	gap: 4px !important;
	padding: 4px 8px !important;
	background: #f8f9fa !important;
	border-radius: 12px !important;
	border: 1px solid #e9ecef !important;
	white-space: nowrap !important;
	overflow: visible !important;
	max-width: none !important;
	box-sizing: border-box !important;
	order: 3 !important; /* التاريخ في اليمين */
	flex-shrink: 0 !important;
	width: auto !important;
	min-width: fit-content !important;
	margin-left: auto !important; /* يدفع التاريخ إلى أقصى اليمين */
}

.latest-news-time::before {
	content: '🕒' !important;
	font-size: 10px !important;
	flex-shrink: 0 !important;
}

/* تحسين المحتوى */
.latest-news-content {
	display: flex !important;
	flex-direction: column !important;
	height: 100% !important;
	padding: 16px !important;
	box-sizing: border-box !important;
	overflow: hidden !important;
}

/* قسم المقالة فوق على اليمين */
.latest-news-category {
	position: absolute !important;
	top: 8px !important;
	right: 8px !important;
	background: #667eea !important;
	color: white !important;
	padding: 3px 6px !important;
	border-radius: 8px !important;
	font-size: 9px !important;
	font-weight: 500 !important;
	z-index: 10 !important;
	text-decoration: none !important;
	transition: all 0.2s ease !important;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.latest-news-category:hover {
	background: #5a67d8 !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

/* جعل الصورة relative لتكون القسم فوقها */
.latest-news-image {
	position: relative !important;
}

/* جعل العنوان في المنتصف */
.latest-news-headline {
	text-align: center !important;
	margin-bottom: 8px !important;
}

.latest-news-headline a {
	color: #2c3e50 !important;
	text-decoration: none !important;
	transition: color 0.2s ease !important;
}

.latest-news-headline a:hover {
	color: #667eea !important;
}

/* جعل الملخص في المنتصف */
.latest-news-excerpt {
	text-align: center !important;
	color: #6c757d !important;
	margin-bottom: 12px !important;
	line-height: 1.5 !important;
}

/* التأكد من أن عناصر الفوتر مرئية بالكامل */
.latest-news-meta .latest-news-time,
.latest-news-meta .latest-news-author {
	text-overflow: visible !important;
	overflow: visible !important;
	white-space: nowrap !important;
	min-width: fit-content !important;
}

/* تأثيرات hover */
.latest-news-time:hover,
.latest-news-author:hover {
	background: #e9ecef !important;
	border-color: #667eea !important;
	transform: translateY(-1px) !important;
	transition: all 0.2s ease !important;
}

/* ========================================
   ?????? ??? ??? - ??? ????? ??? ???? ????????
   ======================================== */

.related-top-section {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.related-top-card {
	background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.related-top-title {
	color: #495057;
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 1.2rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding-bottom: 0.8rem;
	border-bottom: 2px solid #e9ecef;
}

.related-top-title::before {
	content: '';
	width: 4px;
	height: 20px;
	background: #ff661f;
	border-radius: 2px;
}

.related-top-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.2rem;
}

@media (max-width: 992px) {
	.related-top-grid { 
		grid-template-columns: 1fr; 
	}
}

/* ????? ???? ???????? - ????? ?????? ???? ???????? */
.related-article-card {
	background: #ffffff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.related-article-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.12);
	border-color: #1e3c72;
}

.related-article-image {
	height: 200px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	transition: transform 0.3s ease;
}

.related-article-card:hover .related-article-image {
	transform: scale(1.02);
}

.related-article-category {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #ff661f;
	color: #fff;
	padding: 0.25rem 0.6rem;
	border-radius: 10px;
	font-size: 0.7rem;
	font-weight: 700;
	z-index: 2;
}

.related-article-content {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.related-article-title {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.5;
	color: #2c3e50;
	transition: color 0.3s ease;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 1.3rem;
}

.related-article-card:hover .related-article-title {
	color: #1e3c72;
}

.related-article-title a {
    font-size: 12px;
	color: inherit;
	text-decoration: none;
}

.related-article-excerpt {
    font-size: 12px;
    line-height: 1.5;
    color: #6c757d;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

/* ?????? - ??? ????? ??? ???? ???????? */
.related-article-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #666;
	font-size: 0.85rem;
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid #e9ecef;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	margin: 1rem -1rem -1rem -1rem;
	padding: 1rem;
	border-radius: 0 0 12px 12px;
}

.related-article-time {
    font-size: 10px;
	color: #495057;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.related-article-time::before {
	font-size: 0.7rem;
}

.related-article-author {
	color: #1e3c72;
	font-weight: 600;
	background: rgba(30, 60, 114, 0.1);
	padding: 0.3rem 0.8rem;
	border-radius: 15px;
	font-size: 10px;
}

@media (max-width: 576px) {
	.related-article-time,
	.related-article-author { 
		font-size: 10px; 
	}
	
	.related-article-excerpt {
		font-size: 10px;
	}
}

/* ========================================
   ???? ?????
   ======================================== */

.search-section {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.search-form {
	background: #ffffff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 2rem;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
	margin-bottom: 2rem;
}

.search-input-group {
	display: flex;
	gap: 1rem;
	max-width: 600px;
	margin: 0 auto;
}

.search-input {
	flex: 1;
	padding: 0.75rem 1rem;
	border: 2px solid #e9ecef;
	border-radius: 8px;
	font-size: 1rem;
	transition: border-color 0.3s ease;
}

.search-input:focus {
	outline: none;
	border-color: #1e3c72;
}

.search-btn {
	background: #ff661f;
	color: white;
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.search-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
}

.search-results {
	background: #ffffff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-results-title {
	color: #495057;
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 1.2rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding-bottom: 0.8rem;
	border-bottom: 2px solid #e9ecef;
}

.search-results-title::before {
	content: '';
	width: 4px;
	height: 20px;
	background: #ff661f;
	border-radius: 2px;
}

.search-results-count {
	color: #6c757d;
	font-size: 1rem;
	margin-bottom: 1.5rem;
}

.search-results-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
}

.search-no-results {
	text-align: center;
	padding: 3rem 1rem;
	color: #6c757d;
}

.search-no-results h3 {
	color: #495057;
	margin-bottom: 1rem;
}

/* ========================================
   ???? ??? ??????
   ======================================== */

.more-articles-section {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.more-articles-card {
	background: #ffffff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.more-articles-title {
	color: #495057;
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 1.2rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding-bottom: 0.8rem;
	border-bottom: 2px solid #e9ecef;
}

.more-articles-title::before {
	content: '';
	width: 4px;
	height: 20px;
	background: #ff661f;
	border-radius: 2px;
}

.category-filters {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
}

.category-filter-btn {
	background: #f8f9fa;
	color: #495057;
	border: 1px solid #e9ecef;
	padding: 0.5rem 1rem;
	border-radius: 20px;
	font-size: 0.9rem;
	text-decoration: none;
	transition: all 0.3s ease;
}

.category-filter-btn:hover,
.category-filter-btn.active {
	background: #1e3c72;
	color: white;
	border-color: #1e3c72;
}

.more-articles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
}

/* ========================================
   ???? ?????
   ======================================== */

.category-show-section {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.category-show-card {
	background: #ffffff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.category-show-header {
	text-align: center;
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 2px solid #e9ecef;
}

.category-show-name {
	color: #1e3c72;
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.category-show-description {
	color: #6c757d;
	font-size: 1.1rem;
	line-height: 1.6;
	max-width: 600px;
	margin: 0 auto;
}

.category-show-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
}

/* ========================================
   ????? ???? ???????? ????????
   ======================================== */

.article-card {
	background: #ffffff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.article-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.12);
	border-color: #1e3c72;
}

.article-image {
	position: relative;
	height: 200px;
	overflow: hidden;
}

.article-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
	transform: scale(1.02);
}

.article-category {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #ff661f;
	color: #fff;
	padding: 0.25rem 0.6rem;
	border-radius: 10px;
	font-size: 0.7rem;
	font-weight: 700;
	z-index: 2;
}

.article-content {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.article-title {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.5;
	color: #2c3e50;
	transition: color 0.3s ease;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 1.3rem;
}

.article-card:hover .article-title {
	color: #1e3c72;
}

.article-title a {
	color: inherit;
	text-decoration: none;
}

.article-excerpt {
	color: #666;
	font-size: 0.85rem;
	line-height: 1.5;
	margin: 0 0 1rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.article-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #666;
	font-size: 0.85rem;
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid #e9ecef;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	margin: 1rem -1rem -1rem -1rem;
	padding: 1rem;
	border-radius: 0 0 12px 12px;
}

.article-time {
	color: #495057;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.article-time::before {
	font-size: 0.7rem;
}

.article-author {
	color: #1e3c72;
	font-weight: 600;
	background: rgba(30, 60, 114, 0.1);
	padding: 0.3rem 0.8rem;
	border-radius: 15px;
	font-size: 0.8rem;
}

/* ========================================
   ??????? ????????
   ======================================== */

@media (max-width: 768px) {
	.search-input-group {
		flex-direction: column;
	}
	
	.search-results-grid,
	.more-articles-grid,
	.category-show-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
	
	.category-filters {
		justify-content: center;
	}
}

@media (max-width: 576px) {
	.search-section,
	.more-articles-section,
	.category-show-section {
		padding: 0 0.5rem;
	}
	
	.search-form,
	.more-articles-card,
	.category-show-card {
		padding: 1rem;
	}
	
	.category-show-name {
		font-size: 1.5rem;
	}
	
	.article-time,
	.article-author,
	.related-article-time,
	.related-article-author { 
		font-size: 10px; 
	}
	
	.article-excerpt,
	.related-article-excerpt {
		font-size: 10px;
	}
}

/* ========================================
   ???? ??? ????? - ?? ?????? ???
   ======================================== */

.category-show-section {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.category-show-card {
	background: #ffffff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.category-show-header {
	text-align: center;
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 2px solid #e9ecef;
}

.category-show-name {
	color: #1e3c72;
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.category-show-description {
	color: #6c757d;
	font-size: 1.1rem;
	line-height: 1.6;
	max-width: 600px;
	margin: 0 auto;
}

/* ????? ??????? ?? ?????? ??? */
.category-content-layout {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 2rem;
	align-items: start;
}

/* ???????? ???????? */
.category-articles-main {
	min-width: 0;
}

.category-articles-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	margin-bottom: 2rem;
}

/* ????? ???????? - ??? ??? ???? ???????? */
.category-articles-main .news-card {
	background: #ffffff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.category-articles-main .news-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.12);
	border-color: #1e3c72;
}

.category-articles-main .news-image {
	position: relative;
	height: 200px;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.category-articles-main .news-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.category-articles-main .news-card:hover .news-image img {
	transform: scale(1.02);
}

.category-articles-main .news-category {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #ff661f;
	color: #fff;
	padding: 0.25rem 0.6rem;
	border-radius: 10px;
	font-size: 0.7rem;
	font-weight: 700;
	z-index: 2;
}

.category-articles-main .news-content {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.category-articles-main .news-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.category-articles-main .news-date {
	color: #6c757d;
	font-size: 0.8rem;
	font-weight: 500;
	background: #f8f9fa;
	padding: 0.3rem 0.8rem;
	border-radius: 15px;
	border: 1px solid #e9ecef;
}

.category-articles-main .news-title {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.5;
	color: #2c3e50;
	transition: color 0.3s ease;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 1.3rem;
}

.category-articles-main .news-card:hover .news-title {
	color: #1e3c72;
}

.category-articles-main .news-title a {
	color: inherit;
	text-decoration: none;
}

.category-articles-main .news-excerpt {
	color: #666;
	font-size: 0.85rem;
	line-height: 1.5;
	margin: 0 0 1rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.category-articles-main .news-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #666;
	font-size: 0.85rem;
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid #e9ecef;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	margin: 1rem -1rem -1rem -1rem;
	padding: 1rem;
	border-radius: 0 0 12px 12px;
}

.category-articles-main .news-time {
	color: #495057;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.category-articles-main .news-time::before {
	font-size: 0.7rem;
}

.category-articles-main .news-author {
	color: #1e3c72;
	font-weight: 600;
	background: rgba(30, 60, 114, 0.1);
	padding: 0.3rem 0.8rem;
	border-radius: 15px;
	font-size: 0.8rem;
}

/* ????????? ?????? */
.pagination-container {
	margin-top: 2rem;
	padding: 1.5rem;
	background: #f8f9fa;
	border-radius: 12px;
	border: 1px solid #e9ecef;
}

.pagination-info {
	text-align: center;
	color: #6c757d;
	font-size: 0.9rem;
	margin-bottom: 1rem;
}

.pagination-links {
	display: flex;
	justify-content: center;
}

.pagination-links .pagination {
	margin: 0;
}

.pagination-links .page-link {
	color: #1e3c72;
	border-color: #e9ecef;
	padding: 0.5rem 0.75rem;
	margin: 0 0.2rem;
	border-radius: 6px;
	transition: all 0.3s ease;
}

.pagination-links .page-link:hover {
	background: #1e3c72;
	color: #ffffff;
	border-color: #1e3c72;
}

.pagination-links .page-item.active .page-link {
	background: #1e3c72;
	border-color: #1e3c72;
	color: #ffffff;
}

.pagination-links .page-item.disabled .page-link {
	color: #6c757d;
	background: #f8f9fa;
	border-color: #e9ecef;
}

/* ????? ?? ???? ?????? */
.no-articles {
	text-align: center;
	padding: 3rem 1rem;
	color: #6c757d;
	background: #ffffff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.no-articles-icon {
	font-size: 4rem;
	margin-bottom: 1rem;
}

.no-articles h3 {
	color: #495057;
	margin-bottom: 1rem;
	font-size: 1.5rem;
}

.no-articles p {
	margin-bottom: 1.5rem;
	font-size: 1.1rem;
}

.back-home-btn {
	display: inline-block;
	background: #ff661f;
	color: #ffffff;
	padding: 0.8rem 1.5rem;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
}

.back-home-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
	color: #ffffff;
}

/* ========================================
   ??????? ????????
   ======================================== */

@media (max-width: 992px) {
	.category-content-layout {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

@media (max-width: 768px) {
	.category-show-section {
		padding: 0 0.8rem;
		margin: 1.5rem auto;
	}
	
	.category-show-name {
		font-size: 1.8rem;
	}
	
	.category-articles-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
	
	.category-articles-main .news-content {
		padding: 0.8rem;
	}
	
	.category-articles-main .news-title {
		font-size: 1rem;
	}
}

@media (max-width: 576px) {
	.category-show-section {
		padding: 0 0.5rem;
		margin: 1rem auto;
	}
	
	.category-show-name {
		font-size: 1.5rem;
	}
	
	.category-show-description {
		font-size: 1rem;
	}
	
	.category-articles-main .news-content {
		padding: 0.6rem;
	}
	
	.category-articles-main .news-title {
		font-size: 0.95rem;
	}
	
	.category-articles-main .news-excerpt {
		font-size: 0.8rem;
	}
	
	.category-articles-main .news-meta {
		font-size: 0.8rem;
	}
	
	.pagination-container {
		padding: 1rem;
	}
	
	.pagination-info {
		font-size: 0.8rem;
	}
}

/* ========================================
   ?????? ??? ??? - ?????? ?????
   ======================================== */

.related-articles-section {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.related-articles-card {
	background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.related-articles-title {
	color: #495057;
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 1.2rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding-bottom: 0.8rem;
	border-bottom: 2px solid #e9ecef;
}

.related-articles-title::before {
	content: '';
	width: 4px;
	height: 20px;
	background: #ff661f;
	border-radius: 2px;
}

.related-articles-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.2rem;
}

@media (max-width: 992px) {
	.related-articles-grid { 
		grid-template-columns: 1fr; 
	}
}

/* ????? ???? ???????? - ????? ?????? ???? ???????? */
.related-article-card {
	background: #ffffff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.related-article-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.12);
	border-color: #1e3c72;
}

.related-article-image {
	height: 200px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	transition: transform 0.3s ease;
	cursor: pointer;
}

.related-article-card:hover .related-article-image {
	transform: scale(1.02);
}

/* ???? ????? ??? ?????? */
.related-article-category {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #ff661f;
	color: #fff;
	padding: 0.25rem 0.6rem;
	border-radius: 10px;
	font-size: 0.7rem;
	font-weight: 700;
	z-index: 2;
	box-shadow: 0 2px 8px rgba(30, 60, 114, 0.3);
}

.related-article-content {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.related-article-title {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.5;
	color: #2c3e50;
	transition: color 0.3s ease;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 1.3rem;
}

.related-article-card:hover .related-article-title {
	color: #1e3c72;
}

.related-article-title a {
	color: inherit;
	text-decoration: none;
}

.related-article-excerpt {
	color: #666;
	font-size: 0.85rem;
	line-height: 1.5;
	margin: 0 0 1rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.related-article-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #666;
	font-size: 0.85rem;
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid #e9ecef;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	margin: 1rem -1rem -1rem -1rem;
	padding: 1rem;
	border-radius: 0 0 12px 12px;
}

.related-article-time {
	color: #495057;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.related-article-time::before {
	font-size: 0.7rem;
}

.related-article-author {
	color: #1e3c72;
	font-weight: 600;
	background: rgba(30, 60, 114, 0.1);
	padding: 0.3rem 0.8rem;
	border-radius: 15px;
	font-size: 0.8rem;
}

@media (max-width: 576px) {
	.related-article-time,
	.related-article-author { 
		font-size: 10px; 
	}
	
	.related-article-excerpt {
		font-size: 10px;
	}
}

/* ========================================
   ?????? ????? - ?????? ?????
   ======================================== */

.category-articles-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.2rem;
	margin-bottom: 2rem;
}

@media (max-width: 992px) {
	.category-articles-grid { 
		grid-template-columns: 1fr; 
	}
}

/* ????? ???? ???????? - ????? ?????? ???? ???????? */
.category-article-card {
	background: #ffffff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.category-article-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.12);
	border-color: #1e3c72;
}

.category-article-image {
	height: 200px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	transition: transform 0.3s ease;
	cursor: pointer;
}

.category-article-card:hover .category-article-image {
	transform: scale(1.02);
}

/* ???? ????? ??? ?????? */
.category-article-category {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #ff661f;
	color: #fff;
	padding: 0.25rem 0.6rem;
	border-radius: 10px;
	font-size: 0.7rem;
	font-weight: 700;
	z-index: 2;
	box-shadow: 0 2px 8px rgba(30, 60, 114, 0.3);
}

.category-article-content {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.category-article-title {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.5;
	color: #2c3e50;
	transition: color 0.3s ease;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 1.3rem;
}

.category-article-card:hover .category-article-title {
	color: #1e3c72;
}

.category-article-title a {
	color: inherit;
	text-decoration: none;
}

.category-article-excerpt {
	color: #666;
	font-size: 0.85rem;
	line-height: 1.5;
	margin: 0 0 1rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.category-article-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #666;
	font-size: 0.85rem;
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid #e9ecef;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	margin: 1rem -1rem -1rem -1rem;
	padding: 1rem;
	border-radius: 0 0 12px 12px;
}

.category-article-time {
	color: #495057;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.category-article-time::before {
	font-size: 0.7rem;
}

.category-article-author {
	color: #1e3c72;
	font-weight: 600;
	background: rgba(30, 60, 114, 0.1);
	padding: 0.3rem 0.8rem;
	border-radius: 15px;
	font-size: 0.8rem;
}

@media (max-width: 576px) {
	.category-article-time,
	.category-article-author { 
		font-size: 10px; 
	}
	
	.category-article-excerpt {
		font-size: 10px;
	}
}

/* Show More Button for Category Sections - Simple */
.category-show-more-container {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #f1f3f4;
}

.category-show-more-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.category-show-more-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    color: white;
    text-decoration: none;
}

.category-show-more-btn:active {
    transform: translateY(0);
}

.category-show-more-btn i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.category-show-more-btn:hover i {
    transform: translateY(2px);
}

/* Top Articles - Show More Button */
.top-articles-show-more { 
	display: flex; 
	justify-content: center; 
	margin-top: 12px; 
}

.top-articles-btn {
	background: linear-gradient(135deg, #3498db, #2980b9);
	color: white;
	border: none;
	padding: 12px 30px;
	border-radius: 25px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
}

.top-articles-btn:hover {
	background: linear-gradient(135deg, #2980b9, #1f5f8b);
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
	color: white;
	text-decoration: none;
}

.top-articles-btn:active { transform: translateY(0); }
.top-articles-btn i { font-size: 10px; transition: transform 0.3s ease; }
.top-articles-btn:hover i { transform: translateY(2px); }

/* More Articles grid: 3 -> 2 -> 1 columns */
.more-articles-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.2rem;
	margin-bottom: 2rem;
}

@media (max-width: 1200px) {
	.more-articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	.more-articles-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* Featured Show More button: match other blue buttons */
.featured-news-section .show-more-btn {
	background: #ff661f !important;
	color: #fff !important;
	border: none !important;
	padding: 12px 30px !important;
	border-radius: 25px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3) !important;
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	text-decoration: none !important;
}

.featured-news-section .show-more-btn:hover {
	background: #ff661f !important;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4) !important;
	color: #fff !important;
	text-decoration: none !important;
}

.featured-news-section .show-more-btn:active { transform: translateY(0); }
.featured-news-section .show-more-btn i { font-size: 10px; transition: transform 0.3s ease; }
.featured-news-section .show-more-btn:hover i { transform: translateY(2px); }

/* FINAL override: center Featured section Show More button */
.featured-news-section .show-more-btn {
	display: block !important;
	margin: 0.8rem auto 0 !important;
	width: fit-content;
}

/* ABSOLUTE FINAL: hard-center Featured Show More button regardless of conflicts */
body .featured-news-section .show-more-btn {
	display: block !important;
	margin-left: auto !important;
	margin-right: auto !important;
	width: -moz-fit-content !important;
	width: fit-content !important;
	float: none !important;
	text-align: center !important;
}

/* Active states for fixed and mobile navs */
.fixed-nav-list a.active {
    color: #ff661f;
    background-color: #eef3fb;
    border-bottom: 2px solid #ff661f;
}

.mobile-nav-list a.active {
    color: #1e3c72;
    background-color: #f1f5fb;
    border-right: 3px solid #1e3c72;
}

.more-articles-section {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.more-articles-card {
	background: #ffffff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Contact page specific spacing to avoid footer overlap */
.contact-page {
	padding-bottom: clamp(6rem, 12vh, 10rem);
}
.contact-page .more-articles-card {
	margin-bottom: 1.5rem;
}

/* Article meta professional category badge */
.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
}
.article-meta .article-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: #ff661f;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(30, 60, 114, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.article-meta .article-category-badge i {
  font-size: 0.95rem;
  margin-left: 0.4rem;
}
.article-meta .article-category-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(30, 60, 114, 0.3);
  opacity: 0.95;
}

/* Enhanced Contact Page Footer Protection */
.contact-page {
    padding-bottom: clamp(6rem, 12vh, 10rem) !important;
    margin-bottom: 2rem;
}

.contact-page .more-articles-card {
    margin-bottom: 2rem;
}

/* Ensure footer doesn't overlap */
.footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
}

/* Additional spacing for mobile */
@media (max-width: 768px) {
    .contact-page {
        padding-bottom: 5rem !important;
    }
    
    body {
        padding-bottom: 0; /* remove extra space below footer on mobile */
    }
}

@media (max-width: 480px) {
    .contact-page {
        padding-bottom: 4rem !important;
    }
}

/* ===== YouTube Videos Professional Styling ===== */

/* Main video container */
.youtube-video-container {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
    border: 1px solid #f0f0f0;
}

/* Video embed styling */
.youtube-video-container .video-embed {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.youtube-video-container .video-embed iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
    transition: transform 0.3s ease;
}

.youtube-video-container .video-embed:hover iframe {
    transform: scale(1.02);
}

/* Video description styling */
.youtube-video-container .video-description {
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.youtube-video-container .video-description p {
    color: #374151;
    line-height: 1.8;
    font-size: 1.1rem;
    margin: 0;
    text-align: justify;
    direction: rtl;
}

/* Responsive video container */
@media (max-width: 768px) {
    .youtube-video-container {
        margin: 1.5rem 0;
        border-radius: 12px;
    }
    
    .youtube-video-container .video-embed iframe {
        height: 300px;
    }
    
    .youtube-video-container .video-description {
        padding: 1.5rem;
    }
    
    .youtube-video-container .video-description p {
        font-size: 1rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .youtube-video-container {
        margin: 1rem 0;
        border-radius: 8px;
    }
    
    .youtube-video-container .video-embed iframe {
        height: 250px;
    }
    
    .youtube-video-container .video-description {
        padding: 1rem;
    }
    
    .youtube-video-container .video-description p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* Video loading state */
.youtube-video-container .video-embed::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1e3c72;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

.youtube-video-container .video-embed iframe {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.youtube-video-container .video-embed iframe[src] {
    opacity: 1;
}

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

/* Video hover effects */
.youtube-video-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

/* Video title enhancement */
.youtube-video-container .video-title {
    padding: 1.5rem 2rem 0;
    background: #ff661f;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    direction: rtl;
}

/* Video metadata */
.youtube-video-container .video-meta {
    padding: 1rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    direction: rtl;
}

.youtube-video-container .video-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.youtube-video-container .video-meta .meta-item i {
    color: #1e3c72;
    font-size: 1rem;
}

/* Enhanced video controls */
.youtube-video-container .video-controls {
    padding: 1rem 2rem;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.youtube-video-container .video-controls .control-btn {
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.youtube-video-container .video-controls .control-btn:hover {
    background: #1e3c72;
    color: white;
    border-color: #1e3c72;
    transform: translateY(-1px);
}

/* Video playlist styling */
.youtube-video-container.playlist {
    border-left: 4px solid #1e3c72;
}

.youtube-video-container.playlist .playlist-header {
    background: #ff661f;
    color: white;
    padding: 1rem 2rem;
    text-align: center;
    font-weight: 600;
}

/* Video error state */
.youtube-video-container.error .video-embed {
    background: #fef2f2;
    border: 2px dashed #ef4444;
}

.youtube-video-container.error .video-embed::before {
    content: '⚠️ خطأ في تحميل الفيديو';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    z-index: 2;
}

/* Video fullscreen enhancement */
.youtube-video-container.fullscreen .video-embed iframe {
    height: 80vh;
}

/* Video accessibility */
.youtube-video-container .video-embed:focus-within {
    outline: 3px solid #1e3c72;
    outline-offset: 2px;
}

/* Video print styles */
@media print {
    .youtube-video-container {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .youtube-video-container .video-embed iframe {
        display: none;
    }
    
    .youtube-video-container .video-description {
        background: white;
    }
}

/* Enhanced video animations */
.youtube-video-container {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Video thumbnail hover effect */
.youtube-video-container .video-embed::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.youtube-video-container.playlist::before {
    content: '📺';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 1rem;
    z-index: 2;
}

/* Slider: make slide-category a bit larger */
.news-slider .slide-category {
    font-size: clamp(0.9rem, 2.4vw, 1.1rem);
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
}

/* Floating category badges over images */
.news-slider .swiper-slide .slide-image { position: relative; }
.news-slider .slide-category {
	position: absolute !important;
	top: 10px !important;
	right: 10px !important;
	z-index: 10 !important;
	background: #ff661f;
	color: #fff;
	padding: 0.3rem 0.7rem;
	border-radius: 12px;
	font-weight: 700;
	font-size: clamp(0.9rem, 2.4vw, 1.1rem);
}

/* Slide image link overlay */
.news-slider .slide-image-link {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 5;
	cursor: pointer;
}

/* جعل الكارد نسبي للميتا المطلقة */
.news-slider .swiper-slide {
	position: relative;
}

.news-slider .slide-image-link:hover {
	background: rgba(0, 0, 0, 0.1);
}

/* ميتا السلايدر - نفس تصميم مقالات ذات صلة */
.news-slider .slide-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #666;
	font-size: 0.85rem;
	padding: .75rem 1rem;
	border-top: 1px solid #e9ecef;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	position: absolute !important;
	left: 0; right: 0; bottom: 0;
	border-radius: 0 0 12px 12px;
	width: 100%;
	box-sizing: border-box;
	gap: 0; 
	margin: 0; 
	z-index: 6;
}

/* Fix author/date alignment and prevent extra whitespace */
.news-slider .slide-meta .slide-time,
.news-slider .slide-meta .slide-author {
	flex: 0 0 auto;
	white-space: nowrap;
	margin: 0 !important;
}
.news-slider .slide-time { order: 1; }
.news-slider .slide-author { order: 2; }

.news-slider .slide-time {
	color: #495057;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.news-slider .slide-time::before {
	font-size: 0.7rem;
}

.news-slider .slide-author {
	color: #1e3c72;
	font-weight: 600;
	background: rgba(30, 60, 114, 0.1);
	padding: 0.3rem 0.8rem;
	border-radius: 15px;
	font-size: 0.8rem;
}

@media (max-width: 576px) {
	.news-slider .slide-time,
	.news-slider .slide-author { 
		font-size: 10px; 
	}
}

/* ========================================
   ?????? ??? ??? - ??? ????? ??? ???? ????????
   ======================================== */

.related-top-section {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.related-top-card {
	background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.related-top-title {
	color: #495057;
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 1.2rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding-bottom: 0.8rem;
	border-bottom: 2px solid #e9ecef;
}

.related-top-title::before {
	content: '';
	width: 4px;
	height: 20px;
	background: #ff661f;
	border-radius: 2px;
}

.related-top-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.2rem;
}

@media (max-width: 992px) {
	.related-top-grid { 
		grid-template-columns: 1fr; 
	}
}

/* ????? ???? ???????? - ????? ?????? ???? ???????? */
.related-article-card {
	background: #ffffff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.related-article-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.12);
	border-color: #1e3c72;
}

.related-article-image {
	height: 200px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	transition: transform 0.3s ease;
	cursor: pointer;
}

.related-article-card:hover .related-article-image {
	transform: scale(1.02);
}

/* ???? ????? ??? ?????? */
.related-article-category {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #ff661f;
	color: #fff;
	padding: 0.25rem 0.6rem;
	border-radius: 10px;
	font-size: 0.7rem;
	font-weight: 700;
	z-index: 2;
	box-shadow: 0 2px 8px rgba(30, 60, 114, 0.3);
}

.related-article-content {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.related-article-title {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.5;
	color: #2c3e50;
	transition: color 0.3s ease;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 1.3rem;
}

.related-article-card:hover .related-article-title {
	color: #1e3c72;
}

.related-article-title a {
	color: inherit;
	text-decoration: none;
}

.related-article-excerpt {
	color: #666;
	font-size: 0.85rem;
	line-height: 1.5;
	margin: 0 0 1rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.related-article-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #666;
	font-size: 0.85rem;
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid #e9ecef;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	margin: 1rem -1rem -1rem -1rem;
	padding: 1rem;
	border-radius: 0 0 12px 12px;
}

.related-article-time {
	color: #495057;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.related-article-time::before {
	font-size: 0.7rem;
}

.related-article-author {
	color: #1e3c72;
	font-weight: 600;
	background: rgba(30, 60, 114, 0.1);
	padding: 0.3rem 0.8rem;
	border-radius: 15px;
	font-size: 0.8rem;
}

@media (max-width: 576px) {
	.related-article-time,
	.related-article-author { 
		font-size: 10px; 
	}
	
	.related-article-excerpt {
		font-size: 10px;
	}
}

/* ========================================
   ?????? ????? - ?????? ?????
   ======================================== */

.category-articles-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.2rem;
	margin-bottom: 2rem;
}

@media (max-width: 992px) {
	.category-articles-grid { 
		grid-template-columns: 1fr; 
	}
}

/* ????? ???? ???????? - ????? ?????? ???? ???????? */
.category-article-card {
	background: #ffffff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.category-article-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.12);
	border-color: #1e3c72;
}

.category-article-image {
	height: 200px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	transition: transform 0.3s ease;
	cursor: pointer;
}

.category-article-card:hover .category-article-image {
	transform: scale(1.02);
}

/* ???? ????? ??? ?????? */
.category-article-category {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #ff661f;
	color: #fff;
	padding: 0.25rem 0.6rem;
	border-radius: 10px;
	font-size: 0.7rem;
	font-weight: 700;
	z-index: 2;
	box-shadow: 0 2px 8px rgba(30, 60, 114, 0.3);
}

.category-article-content {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.category-article-title {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.5;
	color: #2c3e50;
	transition: color 0.3s ease;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 1.3rem;
}

.category-article-card:hover .category-article-title {
	color: #1e3c72;
}

.category-article-title a {
	color: inherit;
	text-decoration: none;
}

.category-article-excerpt {
	color: #666;
	font-size: 0.85rem;
	line-height: 1.5;
	margin: 0 0 1rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.category-article-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #666;
	font-size: 0.85rem;
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid #e9ecef;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	margin: 1rem -1rem -1rem -1rem;
	padding: 1rem;
	border-radius: 0 0 12px 12px;
}

.category-article-time {
	color: #495057;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.category-article-time::before {
	font-size: 0.7rem;
}

.category-article-author {
	color: #1e3c72;
	font-weight: 600;
	background: rgba(30, 60, 114, 0.1);
	padding: 0.3rem 0.8rem;
	border-radius: 15px;
	font-size: 0.8rem;
}

@media (max-width: 576px) {
	.category-article-time,
	.category-article-author { 
		font-size: 10px; 
	}
	
	.category-article-excerpt {
		font-size: 10px;
	}
}

/* Show More Button for Category Sections - Simple */
.category-show-more-container {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #f1f3f4;
}

.category-show-more-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.category-show-more-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    color: white;
    text-decoration: none;
}

.category-show-more-btn:active {
    transform: translateY(0);
}

.category-show-more-btn i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.category-show-more-btn:hover i {
    transform: translateY(2px);
}

/* Top Articles - Show More Button */
.top-articles-show-more { 
	display: flex; 
	justify-content: center; 
	margin-top: 12px; 
}

.top-articles-btn {
	background: linear-gradient(135deg, #3498db, #2980b9);
	color: white;
	border: none;
	padding: 12px 30px;
	border-radius: 25px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
}

.top-articles-btn:hover {
	background: linear-gradient(135deg, #2980b9, #1f5f8b);
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
	color: white;
	text-decoration: none;
}

.top-articles-btn:active { transform: translateY(0); }
.top-articles-btn i { font-size: 10px; transition: transform 0.3s ease; }
.top-articles-btn:hover i { transform: translateY(2px); }

/* More Articles grid: 3 -> 2 -> 1 columns */
.more-articles-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.2rem;
	margin-bottom: 2rem;
}

@media (max-width: 1200px) {
	.more-articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	.more-articles-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* Featured Show More button: match other blue buttons */
.featured-news-section .show-more-btn {
	background: #ff661f;
	color: #fff !important;
	border: none !important;
	padding: 12px 30px !important;
	border-radius: 25px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3) !important;
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	text-decoration: none !important;
}

.featured-news-section .show-more-btn:hover {
	background: #ff661f;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4) !important;
	color: #fff !important;
	text-decoration: none !important;
}

.featured-news-section .show-more-btn:active { transform: translateY(0); }
.featured-news-section .show-more-btn i { font-size: 10px; transition: transform 0.3s ease; }
.featured-news-section .show-more-btn:hover i { transform: translateY(2px); }

/* FINAL override: center Featured section Show More button */
.featured-news-section .show-more-btn {
	display: block !important;
	margin: 0.8rem auto 0 !important;
	width: fit-content;
}

/* ABSOLUTE FINAL: hard-center Featured Show More button regardless of conflicts */
body .featured-news-section .show-more-btn {
	display: block !important;
	margin-left: auto !important;
	margin-right: auto !important;
	width: -moz-fit-content !important;
	width: fit-content !important;
	float: none !important;
	text-align: center !important;
}

/* ========================================
   ?????? ??? ??? - ??? ????? ??? ???? ????????
   ======================================== */

.related-top-section {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.related-top-card {
	background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.related-top-title {
	color: #495057;
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 1.2rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding-bottom: 0.8rem;
	border-bottom: 2px solid #e9ecef;
}

.related-top-title::before {
	content: '';
	width: 4px;
	height: 20px;
	background: #ff661f;
	border-radius: 2px;
}

.related-top-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.2rem;
}

@media (max-width: 992px) {
	.related-top-grid { 
		grid-template-columns: 1fr; 
	}
}

/* ????? ???? ???????? - ????? ?????? ???? ???????? */
.related-article-card {
	background: #ffffff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.related-article-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.12);
	border-color: #1e3c72;
}

.related-article-image {
	height: 200px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	transition: transform 0.3s ease;
	cursor: pointer;
}

.related-article-card:hover .related-article-image {
	transform: scale(1.02);
}

/* ???? ????? ??? ?????? */
.related-article-category {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #ff661f;
	color: #fff;
	padding: 0.25rem 0.6rem;
	border-radius: 10px;
	font-size: 0.7rem;
	font-weight: 700;
	z-index: 2;
	box-shadow: 0 2px 8px rgba(30, 60, 114, 0.3);
}

.related-article-content {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.related-article-title {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.5;
	color: #2c3e50;
	transition: color 0.3s ease;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 1.3rem;
}

.related-article-card:hover .related-article-title {
	color: #1e3c72;
}

.related-article-title a {
	color: inherit;
	text-decoration: none;
}

.related-article-excerpt {
	color: #666;
	font-size: 0.85rem;
	line-height: 1.5;
	margin: 0 0 1rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.related-article-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #666;
	font-size: 0.85rem;
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid #e9ecef;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	margin: 1rem -1rem -1rem -1rem;
	padding: 1rem;
	border-radius: 0 0 12px 12px;
}

.related-article-time {
	color: #495057;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.related-article-time::before {
	font-size: 0.7rem;
}

.related-article-author {
	color: #1e3c72;
	font-weight: 600;
	background: rgba(30, 60, 114, 0.1);
	padding: 0.3rem 0.8rem;
	border-radius: 15px;
	font-size: 0.8rem;
}

@media (max-width: 576px) {
	.related-article-time,
	.related-article-author { 
		font-size: 10px; 
	}
	
	.related-article-excerpt {
		font-size: 10px;
	}
}

/* ========================================
   ?????? ????? - ?????? ?????
   ======================================== */

.category-articles-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.2rem;
	margin-bottom: 2rem;
}

@media (max-width: 992px) {
	.category-articles-grid { 
		grid-template-columns: 1fr; 
	}
}

/* ????? ???? ???????? - ????? ?????? ???? ???????? */
.category-article-card {
	background: #ffffff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.category-article-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.12);
	border-color: #1e3c72;
}

.category-article-image {
	height: 200px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	transition: transform 0.3s ease;
	cursor: pointer;
}

.category-article-card:hover .category-article-image {
	transform: scale(1.02);
}

/* ???? ????? ??? ?????? */
.category-article-category {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #ff661f;
	color: #fff;
	padding: 0.25rem 0.6rem;
	border-radius: 10px;
	font-size: 0.7rem;
	font-weight: 700;
	z-index: 2;
	box-shadow: 0 2px 8px rgba(30, 60, 114, 0.3);
}

.category-article-content {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.category-article-title {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.5;
	color: #2c3e50;
	transition: color 0.3s ease;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 1.3rem;
}

.category-article-card:hover .category-article-title {
	color: #1e3c72;
}

.category-article-title a {
	color: inherit;
	text-decoration: none;
}

.category-article-excerpt {
	color: #666;
	font-size: 0.85rem;
	line-height: 1.5;
	margin: 0 0 1rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.category-article-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #666;
	font-size: 0.85rem;
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid #e9ecef;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	margin: 1rem -1rem -1rem -1rem;
	padding: 1rem;
	border-radius: 0 0 12px 12px;
}

.category-article-time {
	color: #495057;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.category-article-time::before {
	font-size: 0.7rem;
}

.category-article-author {
	color: #1e3c72;
	font-weight: 600;
	background: rgba(30, 60, 114, 0.1);
	padding: 0.3rem 0.8rem;
	border-radius: 15px;
	font-size: 0.8rem;
}

@media (max-width: 576px) {
	.category-article-time,
	.category-article-author { 
		font-size: 10px; 
	}
	
	.category-article-excerpt {
		font-size: 10px;
	}
}

/* Show More Button for Category Sections - Simple */
.category-show-more-container {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #f1f3f4;
}

.category-show-more-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.category-show-more-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    color: white;
    text-decoration: none;
}

.category-show-more-btn:active {
    transform: translateY(0);
}

.category-show-more-btn i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.category-show-more-btn:hover i {
    transform: translateY(2px);
}

/* Top Articles - Show More Button */
.top-articles-show-more { 
	display: flex; 
	justify-content: center; 
	margin-top: 12px; 
}

.top-articles-btn {
	background: linear-gradient(135deg, #3498db, #2980b9);
	color: white;
	border: none;
	padding: 12px 30px;
	border-radius: 25px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
}

.top-articles-btn:hover {
	background: linear-gradient(135deg, #2980b9, #1f5f8b);
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
	color: white;
	text-decoration: none;
}

.top-articles-btn:active { transform: translateY(0); }
.top-articles-btn i { font-size: 10px; transition: transform 0.3s ease; }
.top-articles-btn:hover i { transform: translateY(2px); }

/* More Articles grid: 3 -> 2 -> 1 columns */
.more-articles-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.2rem;
	margin-bottom: 2rem;
}

@media (max-width: 1200px) {
	.more-articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	.more-articles-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* Featured Show More button: match other blue buttons */
.featured-news-section .show-more-btn {
	background: #ff661f !important;
	color: #fff !important;
	border: none !important;
	padding: 12px 30px !important;
	border-radius: 25px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3) !important;
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	text-decoration: none !important;
}

.featured-news-section .show-more-btn:hover {
	background: #ff661f;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4) !important;
	color: #fff !important;
	text-decoration: none !important;
}

.featured-news-section .show-more-btn:active { transform: translateY(0); }
.featured-news-section .show-more-btn i { font-size: 10px; transition: transform 0.3s ease; }
.featured-news-section .show-more-btn:hover i { transform: translateY(2px); }

/* FINAL override: center Featured section Show More button */
.featured-news-section .show-more-btn {
	display: block !important;
	margin: 0.8rem auto 0 !important;
	width: fit-content;
}

/* ABSOLUTE FINAL: hard-center Featured Show More button regardless of conflicts */
body .featured-news-section .show-more-btn {
	display: block !important;
	margin-left: auto !important;
	margin-right: auto !important;
	width: -moz-fit-content !important;
	width: fit-content !important;
	float: none !important;
	text-align: center !important;
}

/* Active states for fixed and mobile navs */
.fixed-nav-list a.active {
    color: #ff661f;
    background-color: #eef3fb;
    border-bottom: 2px solid #ff661f;
}

.mobile-nav-list a.active {
    color: #ff661f;
    background-color: #f1f5fb;
    border-right: 3px solid #ff661f;
}

.more-articles-section {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.more-articles-card {
	background: #ffffff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Contact page specific spacing to avoid footer overlap */
.contact-page {
	padding-bottom: clamp(6rem, 12vh, 10rem);
}
.contact-page .more-articles-card {
	margin-bottom: 1.5rem;
}

/* Article meta professional category badge */
.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
}
.article-meta .article-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: #ff661f;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(30, 60, 114, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.article-meta .article-category-badge i {
  font-size: 0.95rem;
  margin-left: 0.4rem;
}
.article-meta .article-category-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(30, 60, 114, 0.3);
  opacity: 0.95;
}

/* Enhanced Contact Page Footer Protection */
.contact-page {
    padding-bottom: clamp(6rem, 12vh, 10rem) !important;
    margin-bottom: 2rem;
}

.contact-page .more-articles-card {
    margin-bottom: 2rem;
}

/* Ensure footer doesn't overlap */
.footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
}

/* Additional spacing for mobile */
@media (max-width: 768px) {
    .contact-page {
        padding-bottom: 5rem !important;
    }
    
    body {
        padding-bottom: 0; /* ensure no white gap below footer on mobile */
    }
}

@media (max-width: 480px) {
    .contact-page {
        padding-bottom: 4rem !important;
    }
}

/* ===== YouTube Videos Professional Styling ===== */

/* Main video container */
.youtube-video-container {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
    border: 1px solid #f0f0f0;
}

/* Video embed styling */
.youtube-video-container .video-embed {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.youtube-video-container .video-embed iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
    transition: transform 0.3s ease;
}

.youtube-video-container .video-embed:hover iframe {
    transform: scale(1.02);
}

/* Video description styling */
.youtube-video-container .video-description {
    padding: 2rem;
    background: linear-gradient(135deg, #f8afc 0%, #ffffff 100%);
}

.youtube-video-container .video-description p {
    color: #374151;
    line-height: 1.8;
    font-size: 1.1rem;
    margin: 0;
    text-align: justify;
    direction: rtl;
}

/* Responsive video container */
@media (max-width: 768px) {
    .youtube-video-container {
        margin: 1.5rem 0;
        border-radius: 12px;
    }
    
    .youtube-video-container .video-embed iframe {
        height: 300px;
    }
    
    .youtube-video-container .video-description {
        padding: 1.5rem;
    }
    
    .youtube-video-container .video-description p {
        font-size: 1rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .youtube-video-container {
        margin: 1rem 0;
        border-radius: 8px;
    }
    
    .youtube-video-container .video-embed iframe {
        height: 250px;
    }
    
    .youtube-video-container .video-description {
        padding: 1rem;
    }
    
    .youtube-video-container .video-description p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* Video loading state */
.youtube-video-container .video-embed::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1e3c72;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

.youtube-video-container .video-embed iframe {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.youtube-video-container .video-embed iframe[src] {
    opacity: 1;
}

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

/* Video hover effects */
.youtube-video-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

/* Video title enhancement */
.youtube-video-container .video-title {
    padding: 1.5rem 2rem 0;
    background: #ff661f;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    direction: rtl;
}

/* Video metadata */
.youtube-video-container .video-meta {
    padding: 1rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    direction: rtl;
}

.youtube-video-container .video-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.youtube-video-container .video-meta .meta-item i {
    color: #1e3c72;
    font-size: 1rem;
}

/* Enhanced video controls */
.youtube-video-container .video-controls {
    padding: 1rem 2rem;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.youtube-video-container .video-controls .control-btn {
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.youtube-video-container .video-controls .control-btn:hover {
    background: #1e3c72;
    color: white;
    border-color: #1e3c72;
    transform: translateY(-1px);
}

/* Video playlist styling */
.youtube-video-container.playlist {
    border-left: 4px solid #1e3c72;
}

.youtube-video-container.playlist .playlist-header {
    background: #ff661f;
    color: white;
    padding: 1rem 2rem;
    text-align: center;
    font-weight: 600;
}

/* Video error state */
.youtube-video-container.error .video-embed {
    background: #fef2f2;
    border: 2px dashed #ef4444;
}

.youtube-video-container.error .video-embed::before {
    content: '⚠️ خطأ في تحميل الفيديو';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    z-index: 2;
}

/* Video fullscreen enhancement */
.youtube-video-container.fullscreen .video-embed iframe {
    height: 80vh;
}

/* Video accessibility */
.youtube-video-container .video-embed:focus-within {
    outline: 3px solid #1e3c72;
    outline-offset: 2px;
}

/* Video print styles */
@media print {
    .youtube-video-container {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .youtube-video-container .video-embed iframe {
        display: none;
    }
    
    .youtube-video-container .video-description {
        background: white;
    }
}

/* Enhanced video animations */
.youtube-video-container {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Video thumbnail hover effect */
.youtube-video-container .video-embed::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.youtube-video-container.playlist::before {
    content: '📺';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 1rem;
    z-index: 2;
}

/* Slider: make slide-category a bit larger */
.news-slider .slide-category {
    font-size: clamp(0.9rem, 2.4vw, 1.1rem);
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
}

/* Floating category badges over images */
.news-slider .swiper-slide .slide-image { position: relative; }
.news-slider .slide-category {
	position: absolute !important;
	top: 10px !important;
	right: 10px !important;
	z-index: 10 !important;
	background: #ff661f;
	color: #fff;
	padding: 0.3rem 0.7rem;
	border-radius: 12px;
	font-weight: 700;
	font-size: clamp(0.9rem, 2.4vw, 1.1rem);
}

/* Slide image link overlay */
.news-slider .slide-image-link {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 5;
	cursor: pointer;
}

/* جعل الكارد نسبي للميتا المطلقة */
.news-slider .swiper-slide {
	position: relative;
}

.news-slider .slide-image-link:hover {
	background: rgba(0, 0, 0, 0.1);
}

/* ميتا السلايدر - نفس تصميم مقالات ذات صلة */
.news-slider .slide-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #666;
	font-size: 0.85rem;
	padding-top: 1rem;
	border-top: 1px solid #e9ecef;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 1rem;
	border-radius: 0 0 12px 12px;
	width: 100%;
	box-sizing: border-box;
}

.news-slider .slide-time {
	color: #495057;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.news-slider .slide-time::before {
	font-size: 0.7rem;
}

.news-slider .slide-author {
	color: #1e3c72;
	font-weight: 600;
	background: rgba(30, 60, 114, 0.1);
	padding: 0.3rem 0.8rem;
	border-radius: 15px;
	font-size: 0.8rem;
}

@media (max-width: 576px) {
	.news-slider .slide-time,
	.news-slider .slide-author { 
		font-size: 10px; 
	}
}

/* ========================================
   ?????? ??? ??? - ??? ????? ??? ???? ????????
   ======================================== */

.related-top-section {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.related-top-card {
	background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.related-top-title {
	color: #495057;
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 1.2rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding-bottom: 0.8rem;
	border-bottom: 2px solid #e9ecef;
}

.related-top-title::before {
	content: '';
	width: 4px;
	height: 20px;
	background: #ff661f;
	border-radius: 2px;
}

.related-top-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.2rem;
}

@media (max-width: 992px) {
	.related-top-grid { 
		grid-template-columns: 1fr; 
	}
}

/* ????? ???? ???????? - ????? ?????? ???? ???????? */
.related-article-card {
	background: #ffffff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.related-article-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.12);
	border-color: #1e3c72;
}

.related-article-image {
	height: 200px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	transition: transform 0.3s ease;
	cursor: pointer;
}

.related-article-card:hover .related-article-image {
	transform: scale(1.02);
}

/* ???? ????? ??? ?????? */
.related-article-category {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #ff661f;
	color: #fff;
	padding: 0.25rem 0.6rem;
	border-radius: 10px;
	font-size: 0.7rem;
	font-weight: 700;
	z-index: 2;
	box-shadow: 0 2px 8px rgba(30, 60, 114, 0.3);
}

.related-article-content {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.related-article-title {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.5;
	color: #2c3e50;
	transition: color 0.3s ease;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 1.3rem;
}

.related-article-card:hover .related-article-title {
	color: #1e3c72;
}

.related-article-title a {
	color: inherit;
	text-decoration: none;
}

.related-article-excerpt {
	color: #666;
	font-size: 0.85rem;
	line-height: 1.5;
	margin: 0 0 1rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.related-article-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #666;
	font-size: 0.85rem;
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid #e9ecef;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	margin: 1rem -1rem -1rem -1rem;
	padding: 1rem;
	border-radius: 0 0 12px 12px;
}

.related-article-time {
	color: #495057;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.related-article-time::before {
	font-size: 0.7rem;
}

.related-article-author {
	color: #1e3c72;
	font-weight: 600;
	background: rgba(30, 60, 114, 0.1);
	padding: 0.3rem 0.8rem;
	border-radius: 15px;
	font-size: 0.8rem;
}

@media (max-width: 576px) {
	.related-article-time,
	.related-article-author { 
		font-size: 10px; 
    }
}