/*
Theme Name:     Surma Times
Template:       foxiz
Theme URI:      https://surmatimes.com
Author:         Surma Times
Author URI:     https://surmatimes.com
Description:    Surma Times child theme built on the Foxiz newspaper framework. A Bangla regional news portal for Sylhet, Bangladesh — featuring green/red branding, Hind Siliguri typography, breaking news ticker, multi-column news layout, video gallery, and e-paper widget.
Version:        1.0.0
Requires at least: 6.0
Tested up to:   6.5
Requires PHP:   7.4
License:        Themeforest Licence
License URI:    https://themeforest.net/licenses/standard
Text Domain:    surma-times
Tags:           news, newspaper, bangla, magazine, blog, custom-header, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   SURMA TIMES — CHILD THEME OVERRIDES
   Loaded after Foxiz parent styles via wp_enqueue_scripts.
   ============================================================ */

/* ------------------------------------------------------------
   1. BRAND COLOR TOKENS
   ------------------------------------------------------------ */
:root {
    --theme-color:              #1a7c3e;
    --theme-color-hover:        #145f2f;
    --theme-color-2:            #c8102e;
    --theme-color-2-hover:      #a00d25;

    --header-bg:                #ffffff;
    --header-border:            #1a7c3e;

    --nav-bg:                   #1a7c3e;
    --nav-text:                 #ffffff;
    --nav-hover-bg:             #145f2f;
    --nav-hover-text:           #ffffff;
    --nav-dropdown-bg:          #145f2f;
    --nav-dropdown-text:        #ffffff;
    --nav-dropdown-hover-bg:    #0f4a23;

    --breaking-label-bg:        #c8102e;
    --breaking-label-text:      #ffffff;
    --breaking-ticker-bg:       #ffffff;
    --breaking-ticker-text:     #1a1a1a;

    --heading-border:           #c8102e;
    --heading-bg:               #c8102e;
    --heading-text:             #ffffff;

    --footer-bg:                #111111;
    --footer-text:              #cccccc;
    --footer-heading:           #ffffff;
    --footer-border:            #2a2a2a;
    --footer-bottom-bg:         #000000;
    --footer-link:              #5dd68a;

    --body-bg:                  #f4f4f4;
    --content-bg:               #ffffff;

    --body-font:                'Hind Siliguri', 'SolaimanLipi', Arial, sans-serif;
    --heading-font:             'Hind Siliguri', 'SolaimanLipi', Arial, sans-serif;
    --meta-font:                'Hind Siliguri', Arial, sans-serif;
}

/* ------------------------------------------------------------
   2. BASE TYPOGRAPHY
   ------------------------------------------------------------ */
body {
    font-family: var(--body-font);
    background-color: var(--body-bg);
}

h1, h2, h3, h4, h5, h6,
.post-title, .entry-title,
.rb-title, .rb-heading {
    font-family: var(--heading-font);
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--theme-color);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--theme-color);
    outline-offset: 2px;
}

/* ------------------------------------------------------------
   3. TOP BAR
   ------------------------------------------------------------ */
.rb-topbar,
.rb-top-bar {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    font-size: 12px;
    font-family: var(--meta-font);
}

.rb-topbar .rb-date,
.rb-top-bar .rb-date {
    color: #555;
}

.rb-topbar .rb-epaper-link a,
.rb-top-bar .epaper-link a {
    color: var(--theme-color-2);
    font-weight: 700;
}

/* ------------------------------------------------------------
   4. SITE HEADER
   ------------------------------------------------------------ */
#rb-header,
.rb-header-inner {
    background: var(--header-bg);
    border-bottom: 3px solid var(--header-border);
}

.rb-site-logo img,
.rb-logo img {
    max-height: 70px;
    width: auto;
}

/* ------------------------------------------------------------
   5. PRIMARY NAVIGATION
   ------------------------------------------------------------ */
#rb-nav,
.rb-nav-wrap,
.rb-main-nav {
    background: var(--nav-bg);
}

.rb-main-nav > ul > li > a,
#rb-nav ul li a {
    color: var(--nav-text);
    font-weight: 600;
    font-size: 13px;
    font-family: var(--body-font);
    padding: 9px 13px;
}

.rb-main-nav > ul > li > a:hover,
.rb-main-nav > ul > li.current-menu-item > a,
.rb-main-nav > ul > li.current-menu-ancestor > a {
    background: var(--nav-hover-bg);
    color: var(--nav-hover-text);
}

.rb-main-nav ul ul {
    background: var(--nav-dropdown-bg);
}

.rb-main-nav ul ul li a {
    color: var(--nav-dropdown-text);
    font-size: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.rb-main-nav ul ul li a:hover {
    background: var(--nav-dropdown-hover-bg);
}

/* ------------------------------------------------------------
   6. BREAKING NEWS TICKER
   ------------------------------------------------------------ */
.rb-breaking-news,
.rb-breaking-wrap {
    background: var(--breaking-ticker-bg);
    border-bottom: 2px solid var(--theme-color);
}

.rb-breaking-news .rb-breaking-label,
.rb-breaking-wrap .rb-label {
    background: var(--breaking-label-bg);
    color: var(--breaking-label-text);
    font-weight: 700;
    font-size: 11px;
    font-family: var(--body-font);
    padding: 0 14px;
}

.rb-breaking-news .rb-breaking-content a,
.rb-breaking-wrap .rb-ticker a {
    color: var(--breaking-ticker-text);
    font-size: 12.5px;
    font-family: var(--body-font);
}

.rb-breaking-news .rb-breaking-content a:hover,
.rb-breaking-wrap .rb-ticker a:hover {
    color: var(--theme-color);
}

/* ------------------------------------------------------------
   7. SECTION / BLOCK HEADINGS
   ------------------------------------------------------------ */
.rb-block-heading,
.rb-section-heading,
.rb-cat-heading,
.rb-heading-wrap {
    border-bottom: 2px solid var(--heading-border);
    margin-bottom: 10px;
}

.rb-block-heading .rb-title,
.rb-section-heading .rb-title,
.rb-heading-wrap .rb-title {
    background: var(--heading-bg);
    color: var(--heading-text);
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    font-family: var(--heading-font);
}

/* ------------------------------------------------------------
   8. POST TITLES & CARDS
   ------------------------------------------------------------ */
.rb-post-title a,
.entry-title a,
.post-title a {
    font-family: var(--heading-font);
    color: #1a1a1a;
    line-height: 1.45;
}

.rb-post-title a:hover,
.entry-title a:hover {
    color: var(--theme-color);
}

.rb-cat-label a,
.rb-meta .rb-cat a {
    background: var(--theme-color);
    color: #fff;
    font-size: 10px;
    padding: 1px 7px;
    border-radius: 2px;
    font-family: var(--meta-font);
}

.rb-cat-label a:hover,
.rb-meta .rb-cat a:hover {
    background: var(--theme-color-hover);
}

.rb-meta,
.rb-post-meta {
    font-size: 11px;
    color: #777;
    font-family: var(--meta-font);
}

.rb-readmore,
.rb-btn,
a.rb-readmore {
    background: var(--theme-color);
    color: #fff;
    border: none;
    font-family: var(--body-font);
    font-size: 12px;
    padding: 5px 14px;
    display: inline-block;
    transition: background 0.2s;
}

.rb-readmore:hover,
.rb-btn:hover {
    background: var(--theme-color-hover);
    color: #fff;
}

/* ------------------------------------------------------------
   9. SIDEBAR WIDGETS
   ------------------------------------------------------------ */
.rb-widget .widget-title,
.widget .widget-title,
.rb-widget-title {
    background: var(--theme-color-2);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    margin-bottom: 10px;
    font-family: var(--heading-font);
    border: none;
}

.rb-widget .rb-post-title a {
    font-size: 12px;
    line-height: 1.4;
}

/* ------------------------------------------------------------
   10. VIDEO SECTION
   ------------------------------------------------------------ */
.rb-video-section,
.rb-video-block {
    background: #111;
}

.rb-video-section .rb-block-heading .rb-title,
.rb-video-block .rb-block-heading .rb-title {
    background: var(--theme-color-2);
}

.rb-video-thumb .rb-play-btn,
.rb-play-icon {
    background: rgba(200, 16, 46, 0.85);
    border-radius: 50%;
}

/* ------------------------------------------------------------
   11. PAGINATION
   ------------------------------------------------------------ */
.rb-pagination .page-numbers,
.rb-pagination a {
    border: 1px solid var(--theme-color);
    color: var(--theme-color);
    font-family: var(--body-font);
}

.rb-pagination .page-numbers.current,
.rb-pagination a:hover {
    background: var(--theme-color);
    color: #fff;
    border-color: var(--theme-color);
}

/* ------------------------------------------------------------
   12. SINGLE POST PAGE
   ------------------------------------------------------------ */
.rb-single-title,
.single .entry-title {
    font-size: 1.6rem;
    line-height: 1.4;
    font-family: var(--heading-font);
    font-weight: 700;
}

/* ------------------------------------------------------------
   13. FOOTER
   ------------------------------------------------------------ */
#rb-footer,
.rb-footer-wrap {
    background: var(--footer-bg);
    color: var(--footer-text);
}

.rb-footer-widget .widget-title,
.rb-footer-widget .rb-widget-title {
    color: var(--footer-heading);
    background: transparent;
    border-bottom: 2px solid var(--theme-color);
    padding: 0 0 6px;
    margin-bottom: 12px;
}

.rb-footer-widget a,
.rb-footer-widget p {
    color: var(--footer-text);
    font-size: 12px;
    line-height: 1.7;
    font-family: var(--meta-font);
}

.rb-footer-widget a:hover {
    color: var(--footer-link);
}

.rb-footer-bottom,
.rb-copyright {
    background: var(--footer-bottom-bg);
    color: #888;
    font-size: 11px;
    text-align: center;
    padding: 8px 0;
    font-family: var(--meta-font);
}

.rb-footer-bottom a,
.rb-copyright a {
    color: var(--footer-link);
}

.rb-footer-social a {
    background: #2a2a2a;
    color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    margin-right: 4px;
    transition: background 0.2s;
}

.rb-footer-social a:hover {
    background: var(--theme-color);
    color: #fff;
}

/* ------------------------------------------------------------
   14. E-PAPER WIDGET
   ------------------------------------------------------------ */
.surma-epaper-widget img {
    width: 100%;
    border: 2px solid var(--theme-color);
    display: block;
}

.surma-epaper-widget .epaper-logo {
    padding: 8px;
    text-align: center;
    background: var(--theme-color);
}

.surma-epaper-widget .epaper-logo img {
    max-height: 40px;
    width: auto;
    margin: 0 auto;
    border: none;
}

/* ------------------------------------------------------------
   15. FOOTER CONTACT INFO
   ------------------------------------------------------------ */
.surma-footer-contact p {
    margin-bottom: 3px;
    font-size: 12px;
    color: var(--footer-text);
}

.surma-footer-contact strong {
    color: var(--footer-heading);
}

.surma-footer-contact a {
    color: var(--footer-link) !important;
}

/* ------------------------------------------------------------
   16. MOBILE / RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 768px) {
    .rb-site-logo img,
    .rb-logo img {
        max-height: 52px;
    }

    .rb-main-nav {
        background: var(--nav-bg);
    }

    .rb-mobile-nav-btn span,
    .rb-hamburger span {
        background: #fff;
    }
}
