/*
Theme Name: Mission News Custom
Theme URI: https://competethemes.com/mission-news/
Author: Antigravity AI
Author URI: https://github.com/google-deepmind
Description: A professional retro newspaper-style theme mimicking 1940s Saigon press layout with structured blocks, double-borders, and column dividers.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: missionnews
*/

/* --- Warm Newsprint Color Scheme & Fonts --- */
body {
    font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
    background-color: #f9f8f6; /* Brighter classy American newsprint */
    color: #1a1a1a;
    overflow-x: hidden;
}

/* --- Layout Grid --- */
.news-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .news-container {
        padding: 0 25px !important;
    }
}

h1, h2, h3, h4, h5, h6, .serif-font {
    font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
    font-weight: 900;
    color: #000000;
    letter-spacing: -0.5px;
}

a {
    color: #000000;
    text-decoration: none;
    transition: opacity 0.2s;
}
a:hover {
    opacity: 0.7;
    color: #000000;
}

/* --- Retro Layout Borders --- */
.newspaper-double-border {
    border-top: 4px double #000000;
    border-bottom: 4px double #000000;
}

.newspaper-single-border {
    border-top: 1px solid #000000;
    border-bottom: 1px solid #000000;
}

.col-divider {
    border-right: 1px solid rgba(0, 0, 0, 0.2) !important;
}

@media (max-width: 991px) {
    .col-divider {
        border-right: none !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.2) !important;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
}

/* Justified newspaper print text */
.newspaper-text {
    text-align: justify;
    text-justify: inter-word;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1a1a1a;
}

/* Section Title - Classical header box */
.newspaper-block-title {
    font-size: 1.15rem;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    border: 1px solid #000000;
    padding: 6px 12px;
    margin-bottom: 1.5rem;
    background-color: #000000;
    color: #f9f8f6;
    letter-spacing: 1.5px;
}

/* Dropcap for article lead-in */
.dropcap {
    float: left;
    font-size: 3.2rem;
    line-height: 0.8;
    margin: 4px 6px 0 0;
    font-weight: 900;
    color: #000000;
}

/* --- Retro 3-Box Header Styling --- */
.retro-header-box {
    border: 1px solid #000000;
    padding: 10px 14px;
    height: 95px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #f9f8f6;
    position: relative;
}

.retro-header-box::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 1px solid rgba(0, 0, 0, 0.7);
    pointer-events: none;
}

.retro-header-box.right-box {
    text-align: right;
}

.box-header-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 1.2px;
    color: #000000;
    line-height: 1.2;
    z-index: 1;
}

.box-divider {
    height: 1px;
    background: #000000;
    margin: 4px 0;
    z-index: 1;
}

.box-content-text {
    font-size: 0.65rem;
    line-height: 1.3;
    z-index: 1;
}

.text-serif-italic {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    color: #1a1a1a;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.2px;
}

.box-subtext {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.58rem;
    letter-spacing: 0.5px;
    margin-top: 2px;
    color: #000000;
}

.retro-header-box.right-box .box-content-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.6rem;
    letter-spacing: 0.4px;
}

.email-info {
    font-size: 0.58rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.email-link {
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    word-break: break-all;
}

.email-link:hover, .url-link:hover {
    color: #555555;
    text-decoration: none;
}

.url-link {
    color: #000000;
    text-decoration: none;
    font-weight: 700;
}

.search-trigger-wrap {
    margin-top: 2px;
}

.header-search-link {
    display: inline-block;
    color: #000000;
    font-weight: 700;
    border: 1px solid #000000;
    padding: 2px 8px;
    font-size: 0.58rem;
    letter-spacing: 0.8px;
    background: transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}

.header-search-link:hover {
    background: #000000;
    color: #f9f8f6 !important;
    opacity: 1 !important;
}

@media (max-width: 768px) {
    .retro-header-box {
        height: auto !important;
        min-height: 95px;
        padding: 8px 10px;
    }
    .box-header-title {
        font-size: 0.58rem;
        letter-spacing: 0.5px;
    }
    .box-content-text {
        font-size: 0.55rem;
    }
    .box-subtext {
        font-size: 0.5rem;
    }
    .retro-header-box.right-box .box-content-text {
        font-size: 0.52rem;
    }
    .email-info {
        font-size: 0.52rem;
    }
    .header-search-link {
        font-size: 0.5rem;
        padding: 1px 4px;
    }
}

.site-title-retro {
    font-size: 4.8rem;
    font-weight: 900;
    letter-spacing: -2px;
    text-transform: uppercase;
    line-height: 0.85;
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
}

@media (max-width: 768px) {
    .site-title-retro {
        font-size: 3rem;
    }
}

.site-description-retro {
    font-size: 1.1rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 900;
    margin-top: 10px;
    display: inline-block;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 4px 20px;
}

/* --- Breaking News Ticker (sepia-styled) --- */
.breaking-ticker-wrap {
    background-color: #000000;
    color: #f7f4eb;
    overflow: hidden;
    white-space: nowrap;
    padding: 8px 15px;
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.ticker-label {
    background-color: #f9f8f6;
    color: #000000;
    padding: 2px 8px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.7rem;
    margin-right: 15px;
    letter-spacing: 1px;
    display: inline-block;
    border-radius: 1px;
}

.ticker-content-slide {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-slide 25s linear infinite;
}

.ticker-content-slide a {
    color: #f9f8f6;
    margin-right: 40px;
    text-decoration: none;
}

@keyframes ticker-slide {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* --- Navigation --- */
.navbar-custom {
    background-color: #f9f8f6 !important;
    padding: 0 !important;
}

.navbar-custom .navbar-nav .nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 10px 15px !important;
    color: #000000 !important;
}

.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .current-menu-item > a {
    text-decoration: underline;
}

/* --- Card blocks --- */
.newspaper-card-classic {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(0,0,0,0.3);
}

.newspaper-card-classic:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.newspaper-card-classic img {
    width: 100%;
    height: auto;
    border-radius: 0;
    border: 1px solid #000;
    margin-bottom: 12px;
}

.post-meta-retro {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 6px;
}

.post-title-retro {
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 8px;
}

/* --- Video Script Block --- */
.video-script-container {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 0;
    margin-top: 3rem;
}

.video-script-header {
    background: #000000;
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 0;
}

.video-script-body {
    padding: 20px;
}

.voiceover-script-box {
    background-color: #fcfbfa;
    border: 1px solid #000;
    padding: 12px;
    font-family: monospace;
    font-size: 0.9rem;
    color: #1a1a1a;
}

/* --- Chatbot Box --- */
#gemini-chatbot-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 0;
    border: 2px solid #000;
    background: #f9f8f6;
    color: #000;
    box-shadow: 4px 4px 0px #000;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 360px;
    height: 480px;
    max-height: calc(100vh - 120px);
    background: #f9f8f6;
    border-radius: 0;
    border: 2px solid #000;
    box-shadow: 6px 6px 0px #000;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    transform: translateY(15px);
    opacity: 0;
    pointer-events: none;
}

.chatbot-window.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    #gemini-chatbot-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
        box-shadow: 3px 3px 0px #000;
    }
    .chatbot-window {
        bottom: 80px;
        right: 20px;
        left: 20px;
        width: auto;
        max-height: calc(100vh - 120px);
        box-shadow: 4px 4px 0px #000;
    }
}


.chatbot-header {
    background: #000;
    color: #f9f8f6;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #ffffff;
    border-bottom: 1px solid #000;
}

.chat-msg {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    border: 1px solid #000;
}

.chat-msg.bot {
    background-color: #f9f8f6;
    color: #000;
    align-self: flex-start;
}

.chat-msg.user {
    background-color: #000;
    color: #f9f8f6;
    align-self: flex-end;
}

.chatbot-input-area {
    padding: 10px;
    background: #f9f8f6;
    display: flex;
    gap: 8px;
}

.chatbot-input-area input {
    flex-grow: 1;
    border: 1px solid #000;
    border-radius: 0;
    padding: 6px 12px;
    font-size: 0.85rem;
    outline: none;
    background-color: #fff;
}

.chatbot-input-area button {
    background-color: #000;
    color: #f9f8f6;
    border: 1px solid #000;
    border-radius: 0;
    padding: 6px 12px;
    cursor: pointer;
}

/* --- Professional Retro Sidebar Widgets & Search Styling --- */
.widget {
    background: transparent;
}

.widget ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}

.widget ul li {
    padding: 8px 0 !important;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.3) !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
}

.widget ul li:last-child {
    border-bottom: none !important;
}

.widget ul li a {
    color: #1a1a1a !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.widget ul li a:hover {
    color: #666 !important;
    text-decoration: underline !important;
}

/* Align categories and archives beautifully with count */
.widget_categories ul li, .widget_archive ul li {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Custom Search form inside widgets */
.widget_search form, .search-form {
    display: flex !important;
    width: 100% !important;
    margin-top: 10px !important;
}

.widget_search input[type="search"], 
.search-form input[type="search"], 
.widget_search input[type="text"] {
    flex-grow: 1 !important;
    border: 1px solid #000000 !important;
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    border-radius: 0 !important;
    background-color: #ffffff !important;
    outline: none !important;
    font-family: 'Poppins', sans-serif !important;
}

.widget_search button[type="submit"], 
.widget_search input[type="submit"], 
.search-form input[type="submit"] {
    background-color: #000000 !important;
    color: #f9f8f6 !important;
    border: 1px solid #000000 !important;
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    font-family: 'Poppins', sans-serif !important;
}

.widget_search button[type="submit"]:hover, 
.widget_search input[type="submit"]:hover,
.search-form input[type="submit"]:hover {
    background-color: #333333 !important;
    color: #ffffff !important;
}

/* Tag Cloud Widget */
.tagcloud, .widget_tag_cloud .tagcloud {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding-top: 8px !important;
}

.tagcloud a, .widget_tag_cloud a {
    display: inline-block !important;
    border: 1px solid #000000 !important;
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    color: #000000 !important;
    background: #f9f8f6 !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    font-family: 'Poppins', sans-serif !important;
}

.tagcloud a:hover, .widget_tag_cloud a:hover {
    background: #000000 !important;
    color: #f9f8f6 !important;
    text-decoration: none !important;
}

/* --- Professional Post Card Layout --- */
.news-post-card {
    border-bottom: 1px dashed rgba(0, 0, 0, 0.3) !important;
    padding-bottom: 20px !important;
    margin-bottom: 20px !important;
    transition: all 0.2s ease !important;
}

.news-post-card:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.news-post-card:hover {
    opacity: 0.85 !important;
}

.post-meta-details {
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    color: #666666 !important;
    margin-bottom: 6px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.meta-category-badge a {
    color: #000000 !important;
    border: 1px solid #000000 !important;
    padding: 1px 6px !important;
    font-size: 0.65rem !important;
    background: #eae7e2 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.meta-category-badge a:hover {
    background: #000000 !important;
    color: #f9f8f6 !important;
}

/* --- Retro Related Posts & Tags Styling --- */
.related-posts .card {
    background-color: #f9f8f6 !important;
    border: 1px solid #000000 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.related-posts .card:hover {
    box-shadow: 4px 4px 0px #000000 !important;
    transform: translate(-2px, -2px) !important;
}

.related-posts .card img {
    border-radius: 0 !important;
    border-bottom: 1px solid #000000 !important;
}

.related-posts .card-body {
    background: transparent !important;
}

.post-tags-footer a {
    border-radius: 0 !important;
    border: 1px solid #000000 !important;
    background: #f9f8f6 !important;
    color: #000000 !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
}

.post-tags-footer a:hover {
    background: #000000 !important;
    color: #f9f8f6 !important;
}

/* --- Professional Retro Pagination Styling --- */
.pagination {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 2rem !important;
}

.pagination .page-numbers {
    display: inline-block !important;
    border: 1px solid #000000 !important;
    padding: 6px 12px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #000000 !important;
    background: #f9f8f6 !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.pagination .page-numbers:hover {
    background: #000000 !important;
    color: #f9f8f6 !important;
}

.pagination .page-numbers.current {
    background: #000000 !important;
    color: #f9f8f6 !important;
    cursor: default !important;
}

.pagination .page-numbers.dots {
    border: none !important;
    background: transparent !important;
    color: #000000 !important;
    cursor: default !important;
}


