

/* --- CSS VARIABLES --- */
:root {
    --accent-main: #ff7e33; 
    --bg-main: #ffffff;
    --menu-bg: #1a1a1a;
    --text-dark: #000;
    --text-muted: #000;
    --container-width: 900px;
    --article-width: 720px;
    --radius: 12px;
    --transition: all 0.2s cubic-bezier(0.2, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    min-width: 360px;
}

.site-wrapper {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* --- LOGO --- */
.site-header {
    text-align: center;
    padding: 50px 0 40px;
}

.logo-container {
    display: inline-block;
    text-decoration: none;
}

.logo-main {
    font-family: 'Unbounded', sans-serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.logo-main span {
    color: var(--accent-main);
}

.logo-tagline {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 8px;
    color: var(--text-muted);
}

/* --- NAVIGATION --- */
.navigation-container {
    background: var(--menu-bg);
    border-radius: var(--radius);
    margin-bottom: 50px;
    position: relative; 
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    padding: 0 10px;
    justify-content: center;
}

.nav-item { 
    position: relative; 
    white-space: nowrap; 
}

.nav-link {
    display: block;
    padding: 16px 18px;
    color: #eee;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-link:hover { color: var(--accent-main); }

/* --- DESKTOP DROPDOWN --- */
.dropdown-menu {
    position: absolute;
    top: 100%; 
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #1a1a1a;
    min-width: 200px;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1100;
}

.nav-item::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px;
}

.nav-item:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item .nav-link {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #bbb;
    text-align: left;
    border-radius: 6px;
}

.dropdown-item .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--accent-main);
}

/* --- MOBILE TOGGLE --- */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    padding: 18px;
    font-weight: 800;
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    width: 100%;
    text-align: center;
    cursor: pointer;
    outline: none;
}

.toggle-icon {
    display: inline-block;
    margin-left: 10px;
    font-style: normal;
    font-size: 18px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

/* --- PAGE INTRO (Updated for Mobile) --- */
.page-intro {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 10px;
}

.main-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 40px;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.page-description {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
}

/* --- NEWS GRID --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: var(--transition);
}

.news-thumbnail-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 12px;
    background-color: #f5f5f5;
}

.news-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-thumbnail {
    transform: scale(1.08);
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    align-items: center;
}

.news-date { color: #888; }

.news-title-link {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-dark);
    text-decoration: none;
    display: -webkit-box;
    line-clamp: 4;
    -webkit-line-clamp: 4; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
}

.news-title-link:hover {
    color: var(--accent-main);
}

/* --- ACTIONS --- */
.action-area {
    text-align: center;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.btn-load-more {
    background: var(--text-dark);
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    transition: var(--transition);
}

.btn-load-more:hover {
    background: var(--accent-main);
    transform: scale(1.05);
}

.pagination { display: flex; gap: 12px; }

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    border-radius: 50%;
    transition: var(--transition);
}

.page-link.active { background: var(--accent-main); color: #fff; }
.page-link:hover:not(.active) { background: #fdf2e9; color: var(--accent-main); }

/* --- ARTICLE STYLES --- */
.article-container {
    max-width: var(--article-width);
    margin: 0 auto;
    text-align: center;
}

.breadcrumbs-nav { margin-bottom: 20px; }
.breadcrumbs { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; }
.breadcrumb-item { color: var(--text-muted); }
.breadcrumb-item a { text-decoration: none; color: var(--text-muted); transition: var(--transition); }
.breadcrumb-item a:hover { color: var(--accent-main); }
.breadcrumb-separator { margin: 0 6px; color: #ddd; }
.breadcrumb-item.active { color: var(--text-dark); }

.article-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap; 
}

.news-category-tag {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent-main);
    padding: 3px 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    white-space: nowrap;
}

.news-category-tag:hover {
    background: var(--accent-main);
    transform: translateY(-1px);
}

.article-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.article-date {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 30px;
    display: block;
}

.main-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 40px;
}

.article-content {
    text-align: left;
    font-size: 17px;
    color: #333;
}

.article-content p { margin-bottom: 25px; line-height: 1.6; }

.article-content a {
    color: var(--link-blue);
    text-decoration: none;
    transition: var(--transition);
}

.article-content a:hover {
    color: var(--accent-main);
}

.intro-bold {
    font-weight: 700;
    font-size: 19px;
    color: var(--text-dark);
    display: block;
    margin-bottom: 25px;
}

.article-content h2, .article-content h3, .article-content h4, .article-content h5, .article-content h6 {
    font-family: 'Unbounded', sans-serif;
    color: var(--text-dark);
    margin: 40px 0 20px;
    line-height: 1.3;
}

.article-content h2 { font-size: 26px; }
.article-content h3 { font-size: 22px; }
.article-content h4 { font-size: 18px; }

.article-content ul, .article-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.article-content li { margin-bottom: 10px; }

/* --- IMAGES & CAPTIONS --- */
.wp-caption {
    max-width: 100%;
    margin: 35px 0;
}

.article-content p img,
.wp-caption img {
    border-radius: var(--radius);
    height: auto;
    display: block;
    max-width: 100%;
}

.wp-caption-text { 
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
    font-weight: 500;
    text-align: center;
    line-height: 1.4 !important;
}


/* --- NEWS AUTO LOADING --- */
.news-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 80px 0 40px 0;
    font-size: 10px;
    font-weight: 800;
    color: #ccc;
    letter-spacing: 2px;
    text-transform: uppercase;
    gap: 20px;
}

.news-separator::before,
.news-separator::after {
    content: "";
    flex: 1;
    height: 2px;
    background: linear-gradient(to var(--direction, right), transparent, #eee);
}

.news-separator::after {
    --direction: left;
}

#infinite-handle {
    padding: 40px 0;
    text-align: center;
    min-height: 100px;
}
.loader {
    display: none;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--accent-main);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }



.clearfix::after { content: ""; clear: both; display: table; }

/* --- AUTHOR BLOCK --- */
.author-block {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: var(--radius);
    margin-top: 40px;
    text-align: left;
}
.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    background: #eee;
}
.author-info h5 { font-family: 'Unbounded', sans-serif; font-size: 14px; margin: 0 0 4px; color: var(--text-dark); }
.author-meta { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; display: block; }
.author-desc { font-size: 13px; color: #666; line-height: 1.4; margin: 0 !important; }

.sources-list {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.sources-list h6 { font-size: 12px; text-transform: uppercase; color: #aaa; margin-bottom: 10px; font-family: 'Manrope', sans-serif; }
.sources-list ul { list-style: none; padding: 0; margin: 0 0 0 15px; }
.sources-list li { font-size: 12px; line-height: 1.8; margin: 0; }
.sources-list a { color: #888; text-decoration: none; }
.sources-list a:hover { color: var(--accent-main); }



/* --- FOOTER --- */
.site-footer {
    padding: 60px 0;
    margin-top: 40px;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    margin: 25px 0;
}

.footer-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--accent-main);
}

/* --- MOBILE STYLES --- */
@media (max-width: 850px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }

    .nav-item:hover > .dropdown-menu {
        transform: none;
    }
}


@media (max-width: 600px) {
    /* Mobile Page Intro Enhancements */
    .page-intro {
        margin-bottom: 40px;
    }
    .main-title {
        font-size: 28px; /* Smaller title for mobile */
        margin-bottom: 15px;
    }
    .page-description {
        font-size: 15px; /* Smaller description for mobile */
    }

    .news-grid { grid-template-columns: 1fr; }
    
    .navigation-container {
        border-radius: 16px;
        overflow: hidden;
        margin-bottom: 30px;
    }

    .mobile-toggle { 
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(to right, #1a1a1a, #252525);
    }
    
    .nav-menu { 
        display: none; 
        flex-direction: column; 
        padding: 0;
        width: 100%;
        border-top: 1px solid #333;
        background-color: #1a1a1a;
    }
    
    .nav-menu.is-active { 
        display: flex; 
        animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .nav-item { width: 100%; }

    .dropdown-menu { 
        position: static; 
        opacity: 1; 
        visibility: visible; 
        transform: none; 
        box-shadow: none; 
        display: none; 
        background: #111;
        border-radius: 0;
        border: none;
        width: 100%;
        min-width: unset;
        padding: 5px 0;
    }
    
    .nav-item.is-open .dropdown-menu { display: block; }

    .dropdown-item .nav-link {
        text-align: center;
        color: #888;
        padding: 12px;
    }

    .nav-link {
        padding: 18px;
        border-bottom: 1px solid #252525;
        text-align: center;
        font-size: 14px;
    }

    .nav-menu > .nav-item:last-child .nav-link { border-bottom: none; }

    .dropdown-item .nav-link:last-child { border-bottom: none; }

    
    .article-title { font-size: 24px; }
    .article-content { font-size: 16px; }
    .author-block { padding: 15px; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}












/**
 * Frontend Styles for YouTube Video Embed
 *
 * Responsive 16:9 aspect ratio video container.
 * No borders, no shadows, clean minimal design with 12px border-radius.
 *
 * @package YourTheme
 * @since 1.0.0
 */

/* ============================================
   YOUTUBE VIDEO WRAPPER
   ============================================ */

/**
 * Outer wrapper - controls max-width and centering
 * Uses CSS custom properties for easy customization
 */
.theme-youtube-wrapper {
    --video-border-radius: 12px;
    --video-aspect-ratio: 16 / 9;
    
    width: 100%;
    max-width: 100%;
    margin: 1.5rem 0;
    box-sizing: border-box;
}

/* ============================================
   VIDEO CONTAINER - ASPECT RATIO MAGIC
   ============================================ */

/**
 * Container maintains 16:9 aspect ratio using padding-bottom technique
 * This works in all browsers including legacy ones
 */
.theme-youtube-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 ratio = 9/16 = 0.5625 = 56.25% */
    overflow: hidden;
    border-radius: var(--video-border-radius);
    background-color: #000; /* Fallback while loading */
}

/* ============================================
   IFRAME STYLING
   ============================================ */

/**
 * iframe fills the container completely
 * position: absolute removes it from flow and fills padded container
 */
.theme-youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--video-border-radius);
    display: block;
}

/* ============================================
   ACCESSIBILITY & PRINT
   ============================================ */

/* Hide videos when printing to save ink */
@media print {
    .theme-youtube-wrapper {
        display: none;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .theme-youtube-container iframe {
        /* No autoplay for users who prefer reduced motion */
        /* This is handled server-side, but good for CSS reference */
    }
}

/* ============================================
   EDITOR STYLES (OPTIONAL)
   ============================================ */

/* Style shortcode representation in editor if needed */
.wpview-wrap[data-wpview-text*="theme_youtube"] {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
}

.wpview-wrap[data-wpview-text*="theme_youtube"]:before {
    content: "🎬 YouTube Video";
    color: #666;
    font-style: italic;
}