/*
Theme Name: GeneratePress Child - Word Puzzle Style
Theme URI: https://wordunscambler.org
Description: GeneratePress child theme styled for wordunscambler.org - Word puzzle companion site with blue/gold color scheme, sticky navigation, card layouts, alert bars, and ticker.
Author: Developer
Author URI: https://wordunscambler.org
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: generatepress-child
*/

/* ==========================================================================
   CSS DESIGN SYSTEM - wordunscambler.org Style
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
    /* Primary Colors */
    --g-blue: #0B3D91;
    --g-blue-d: #072d6e;
    --g-blue-l: #1a52b0;
    --g-blue-xl: #e8f0fd;

    /* Accent Colors */
    --g-gold: #f9a825;
    --g-gold-dark: #b8860b;
    --g-red: #c62828;
    --g-red-l: #ffebee;
    --g-green: #2e7d32;
    --g-green-l: #e8f5e9;
    --g-orange: #e65100;

    /* Neutrals */
    --g-white: #ffffff;
    --g-bg: #f4f6f9;
    --g-card: #ffffff;
    --g-border: #d0d7e3;
    --g-text: #1a1a2e;
    --g-muted: #4a5568;
    --g-link: #0B3D91;

    /* Typography */
    --g-font: 'Noto Sans Devanagari', 'Hind', 'Noto Sans', Verdana, Arial, sans-serif;

    /* Layout */
    --g-radius: 3px;
    --g-shadow: 0 1px 4px rgba(11, 61, 145, .12);
    --g-max: 1100px;
}

/* --------------------------------------------------------------------------
   2. Base / Reset Overrides
   -------------------------------------------------------------------------- */
body {
    font-family: var(--g-font) !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    color: var(--g-text) !important;
    background: var(--g-bg) !important;
    overflow-x: hidden;
}

a {
    color: var(--g-link) !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

a:hover {
    text-decoration: underline !important;
    color: var(--g-blue-d) !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --------------------------------------------------------------------------
   3. GeneratePress Layout Overrides
   -------------------------------------------------------------------------- */
.grid-container,
.site-content .content-area,
.inside-header,
.inside-navigation {
    max-width: var(--g-max) !important;
}

.site-content {
    max-width: var(--g-max);
    margin: 12px auto !important;
    padding: 0 12px !important;
}

/* Content Area - Main + Sidebar Grid */
#content {
    display: grid !important;
    grid-template-columns: 1fr 260px !important;
    gap: 14px !important;
    align-items: start !important;
}

.content-area {
    min-width: 0 !important;
    overflow: hidden;
    word-break: normal;
    overflow-wrap: break-word;
    width: 100% !important;
}

.is-right-sidebar {
    width: 100% !important;
    min-width: 0 !important;
    position: sticky;
    top: 56px;
}

/* Separate containers styling */
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation {
    background: var(--g-card) !important;
    border: 1px solid var(--g-border) !important;
    border-top: 3px solid var(--g-blue) !important;
    border-radius: var(--g-radius) !important;
    box-shadow: var(--g-shadow) !important;
    padding: 0 !important;
    overflow: hidden;
}

.separate-containers .inside-article {
    margin-bottom: 14px !important;
}

/* --------------------------------------------------------------------------
   4. Top Bar
   -------------------------------------------------------------------------- */
.top-bar {
    background: var(--g-blue-d) !important;
    color: rgba(255, 255, 255, .92) !important;
    font-size: 12px !important;
    padding: 5px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .1) !important;
}

.inside-top-bar {
    max-width: var(--g-max) !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    padding: 0 12px !important;
}

.top-bar a {
    color: rgba(255, 255, 255, .92) !important;
}

.top-bar a:hover {
    color: #fff !important;
    text-decoration: none !important;
}

/* Top bar tag/badge */
.g-topbar-tag {
    background: var(--g-gold);
    color: #1a1a1a;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: .5px;
    display: inline-block;
}

/* Top bar buttons */
.g-topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, .92) !important;
    font-size: 11px;
    padding: 2px 8px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 2px;
    text-decoration: none !important;
    transition: all .15s;
}

.g-topbar-btn:hover {
    background: rgba(255, 255, 255, .15);
    color: #fff !important;
}

.g-topbar-btn.wa {
    border-color: #25d366;
}

.g-topbar-btn.tg {
    border-color: #0088cc;
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
    background: var(--g-blue) !important;
    padding: 12px 0 10px !important;
    border-bottom: 3px solid var(--g-gold) !important;
}

.inside-header {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    max-width: var(--g-max) !important;
    margin: 0 auto !important;
    padding: 0 12px !important;
}

/* Logo Styling */
.site-logo img,
.header-image {
    width: 68px !important;
    height: 68px !important;
    border-radius: 50% !important;
    border: 3px solid rgba(255, 255, 255, .7) !important;
    object-fit: cover !important;
    background: rgba(255, 255, 255, .1) !important;
    flex-shrink: 0;
}

.site-logo {
    flex-shrink: 0;
}

/* Site Title */
.main-title,
.main-title a {
    color: #fff !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .2) !important;
    font-family: 'Noto Sans Devanagari', 'Hind', 'Noto Sans', Arial, sans-serif !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.main-title a:hover {
    color: #fff !important;
    text-decoration: none !important;
}

/* Site Tagline */
.site-description {
    color: rgba(255, 255, 255, .8) !important;
    font-size: 12px !important;
    font-style: italic !important;
    margin-top: 2px !important;
}

/* Site Branding */
.site-branding {
    flex: 1;
}

/* Header Widget (right side - clock, search) */
.header-widget {
    margin-left: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 6px !important;
}

/* Disclaimer badge */
.g-disclaimer-badge {
    font-size: 10px;
    color: var(--g-gold);
    border: 1px solid var(--g-gold);
    padding: 2px 7px;
    border-radius: 2px;
    margin-top: 3px;
    display: inline-block;
    font-weight: 600;
    letter-spacing: .2px;
}

/* Live Clock in Header */
.g-live-clock {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.g-clock-time {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}

.g-clock-date {
    color: rgba(255, 255, 255, .8);
    font-size: 12px;
}

/* Header Search */
.g-header-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 3px;
    overflow: hidden;
}

.g-header-search input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    padding: 6px 12px;
    font-size: 13px;
    width: 190px;
    font-family: var(--g-font);
}

.g-header-search input::placeholder {
    color: rgba(255, 255, 255, .6);
}

.g-header-search button {
    background: var(--g-gold);
    color: #222;
    border: none;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.15s;
}

.g-header-search button:hover {
    background: #ffc107;
}

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.main-navigation {
    background: var(--g-blue-d) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3) !important;
    border-bottom: none !important;
}

.main-navigation,
.main-navigation ul ul {
    background-color: var(--g-blue-d) !important;
}

.inside-navigation {
    max-width: var(--g-max) !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Navigation Links */
.main-navigation .main-nav ul li a {
    color: #fff !important;
    padding: 11px 13px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: .4px !important;
    white-space: nowrap !important;
    border-right: 1px solid rgba(255, 255, 255, .08) !important;
    transition: background .15s !important;
    text-decoration: none !important;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    background: var(--g-blue) !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Dropdown Menus */
.main-navigation ul ul {
    border: 1px solid #1a52b0 !important;
    border-top: 2px solid var(--g-gold) !important;
    min-width: 200px !important;
    box-shadow: 0 5px 12px rgba(0, 0, 0, .3) !important;
}

.main-navigation ul ul li a {
    display: block !important;
    color: rgba(255, 255, 255, .9) !important;
    padding: 9px 14px !important;
    font-size: 13px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
    text-transform: none !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    border-right: none !important;
}

.main-navigation ul ul li a:hover {
    background: var(--g-blue) !important;
    color: #fff !important;
}

/* Menu Toggle (Mobile) */
.menu-toggle,
button.menu-toggle {
    color: #fff !important;
    background: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 11px 14px !important;
}

.menu-toggle:hover,
button.menu-toggle:hover {
    color: #fff !important;
}

/* Menu bar items (search etc.) */
.main-navigation .menu-bar-items {
    color: #fff !important;
}

.main-navigation .menu-bar-item:hover > a,
.main-navigation .menu-bar-item.sfHover > a {
    color: #fff !important;
}

/* Dropdown arrow */
.main-navigation .main-nav ul li.menu-item-has-children .dropdown-menu-toggle svg {
    fill: rgba(255, 255, 255, .6) !important;
}

/* --------------------------------------------------------------------------
   7. Alert Bar (Red Breaking News Banner)
   -------------------------------------------------------------------------- */
.g-alert {
    background: var(--g-red);
    color: #fff;
    padding: 4px 0;
    font-size: 12px;
}

.g-alert-inner {
    max-width: var(--g-max);
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.g-alert-tag {
    background: #fff;
    color: #c62828;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.g-alert-text {
    font-size: 12px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    font-weight: 500;
}

.g-alert-text a {
    color: #fff !important;
    text-decoration: underline !important;
}

.g-alert-date {
    font-size: 11px;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --------------------------------------------------------------------------
   8. News Ticker / Marquee
   -------------------------------------------------------------------------- */
.g-ticker {
    background: var(--g-blue-xl);
    border-top: 1px solid var(--g-border);
    border-bottom: 2px solid var(--g-blue);
    display: flex;
    align-items: center;
    height: 33px;
    overflow: hidden;
}

.g-ticker-lbl {
    background: var(--g-blue);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.g-ticker-dot {
    width: 7px;
    height: 7px;
    background: var(--g-gold);
    border-radius: 50%;
    animation: gpulse 1.5s infinite;
}

.g-ticker-content {
    flex: 1;
    overflow: hidden;
}

.g-ticker-content marquee {
    font-size: 13px;
    color: var(--g-text);
    font-weight: 500;
    line-height: 33px;
}

.g-ticker-content marquee a {
    color: var(--g-blue) !important;
    margin: 0 20px;
    font-weight: 600;
    text-decoration: none !important;
}

.g-ticker-content marquee a:hover {
    text-decoration: underline !important;
}

/* --------------------------------------------------------------------------
   9. Hero Section
   -------------------------------------------------------------------------- */
.g-hero {
    background: linear-gradient(135deg, var(--g-blue) 0%, var(--g-blue-l) 100%);
    padding: 24px 0 20px;
    border-bottom: 4px solid var(--g-gold);
}

.g-hero-inner {
    max-width: var(--g-max);
    margin: 0 auto;
    padding: 0 12px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

.g-hero-title {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    margin-bottom: 8px;
    font-family: 'Noto Sans Devanagari', 'Noto Sans', Verdana, Arial, sans-serif;
    word-break: normal;
    overflow-wrap: break-word;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.g-hero-sub {
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.g-hero-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .3);
    padding: 6px 14px;
    border-radius: 3px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.g-hero-status .sdot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--g-gold);
    animation: gpulse 1.5s infinite;
}

/* Hero Buttons */
.g-hero-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.g-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--g-gold);
    color: #1a1a2e !important;
    padding: 10px 20px;
    border-radius: var(--g-radius);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    border: 2px solid transparent;
    transition: all .2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}

.g-btn-primary:hover {
    background: #ffc107;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
    color: #1a1a2e !important;
}

.g-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    color: #fff !important;
    padding: 9px 18px;
    border-radius: var(--g-radius);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    border: 2px solid rgba(255, 255, 255, .6);
    transition: all .2s;
}

.g-btn-outline:hover {
    background: rgba(255, 255, 255, .15);
    border-color: #fff;
    color: #fff !important;
}

/* Notice Card in Hero */
.g-notice-card {
    background: rgba(255, 255, 255, .97);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}

.g-nc-hd {
    background: var(--g-blue-d);
    color: #fff;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.g-nc-body {
    padding: 12px 14px;
}

/* Dates Table */
.g-dates-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.g-dates-table tr {
    border-bottom: 1px solid #eef1f7;
}

.g-dates-table tr:last-child {
    border-bottom: none;
}

.g-dates-table td {
    padding: 7px 4px;
    vertical-align: top;
}

.g-dates-table td:first-child {
    color: #555;
    width: 55%;
}

.g-dates-table td:last-child {
    font-weight: 700;
    color: var(--g-blue);
    text-align: right;
}

/* Status Badge */
.g-status-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--g-blue-xl);
    border: 1px solid var(--g-blue);
    border-radius: 3px;
    padding: 8px 12px;
    margin-bottom: 10px;
}

.g-status-badge .sdot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--g-gold);
    animation: gpulse 1.5s infinite;
}

.g-status-badge .st {
    font-size: 13px;
    font-weight: 600;
    color: var(--g-blue);
}

/* --------------------------------------------------------------------------
   10. Card Components
   -------------------------------------------------------------------------- */
.g-card {
    background: var(--g-card);
    border: 1px solid var(--g-border);
    border-top: 3px solid var(--g-blue);
    border-radius: var(--g-radius);
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: var(--g-shadow);
}

.g-card-hd {
    background: var(--g-blue);
    color: #fff;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.g-card-title {
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 7px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.g-card-more a {
    color: #fff !important;
    font-size: 11px;
    background: rgba(255, 255, 255, .2);
    padding: 3px 9px;
    border-radius: 2px;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    transition: background .15s;
    font-weight: 600;
}

.g-card-more a:hover {
    background: rgba(255, 255, 255, .35) !important;
}

/* --------------------------------------------------------------------------
   11. Post List (.g-plist)
   -------------------------------------------------------------------------- */
.g-plist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.g-plist li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 7px 12px;
    border-bottom: 1px solid #eef1f7;
    min-height: 36px;
    transition: background .1s;
}

.g-plist li:last-child {
    border-bottom: none;
}

.g-plist li:hover {
    background: var(--g-blue-xl);
}

.g-plist li .garr {
    flex-shrink: 0;
    color: var(--g-blue);
    margin-top: 3px;
    display: flex;
}

.g-plist li a {
    flex: 1;
    color: var(--g-text) !important;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none !important;
}

.g-plist li a:hover {
    color: var(--g-blue) !important;
    text-decoration: underline !important;
}

.g-plist li .gbadges {
    flex-shrink: 0;
    display: flex;
    gap: 3px;
    align-items: center;
}

/* Badges */
.b-new {
    background: var(--g-red);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 2px;
    text-transform: uppercase;
    animation: gpulse 1.2s infinite;
    white-space: nowrap;
}

.b-out {
    background: var(--g-green);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 2px;
    white-space: nowrap;
}

.b-soon {
    background: var(--g-orange);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 2px;
    white-space: nowrap;
}

.b-live {
    background: var(--g-red);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 2px;
    white-space: nowrap;
    animation: gpulse 1s infinite;
}

/* --------------------------------------------------------------------------
   12. Rating Bar
   -------------------------------------------------------------------------- */
.g-rating-bar {
    background: var(--g-blue-xl);
    border: 1px solid var(--g-border);
    border-radius: var(--g-radius);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.g-stars {
    display: flex;
    gap: 2px;
}

.gstar-f {
    color: var(--g-gold);
    font-size: 18px;
}

.gstar-e {
    color: #ccc;
    font-size: 18px;
}

.g-rating-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--g-blue);
}

.g-rating-text {
    font-size: 12px;
    color: #374151;
}

/* --------------------------------------------------------------------------
   13. Tool/Form Widget
   -------------------------------------------------------------------------- */
.g-tool-wrap {
    background: #fff;
    border: 2px solid var(--g-blue);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 3px 12px rgba(11, 61, 145, .15);
}

.g-tool-hd {
    background: var(--g-blue);
    color: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.g-tool-hd h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    flex: 1;
}

.g-tool-live {
    background: var(--g-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 2px;
    animation: gpulse 1s infinite;
    text-transform: uppercase;
    letter-spacing: .5px;
    border: 1px solid #a31515;
}

.g-tool-body {
    padding: 16px;
}

.g-tool-notice {
    background: #fff8e1;
    border: 1px solid var(--g-gold);
    border-radius: 3px;
    padding: 8px 12px;
    font-size: 12.5px;
    color: #555;
    margin-bottom: 14px;
    display: flex;
    gap: 7px;
    align-items: flex-start;
    line-height: 1.5;
}

.g-tool-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.g-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.g-field label {
    font-size: 12px;
    font-weight: 600;
    color: #444;
}

.g-tinput {
    border: 1.5px solid var(--g-border);
    border-radius: 3px;
    padding: 9px 11px;
    font-size: 13px;
    font-family: var(--g-font);
    outline: none;
    transition: border-color .15s;
    width: 100%;
    box-sizing: border-box;
}

.g-tinput:focus {
    border-color: var(--g-blue);
    box-shadow: 0 0 0 2px rgba(11, 61, 145, .1);
}

/* --------------------------------------------------------------------------
   14. Sidebar Widgets
   -------------------------------------------------------------------------- */
.sidebar .widget,
.widget-area .widget {
    background: var(--g-card) !important;
    border: 1px solid var(--g-border) !important;
    border-top: 3px solid var(--g-blue) !important;
    border-radius: var(--g-radius) !important;
    margin-bottom: 14px !important;
    overflow: hidden !important;
    box-shadow: var(--g-shadow) !important;
    padding: 0 !important;
}

.sidebar .widget .widget-title,
.widget-area .widget .widget-title {
    background: var(--g-blue) !important;
    color: #fff !important;
    padding: 9px 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    margin: 0 0 0 0 !important;
    text-transform: uppercase !important;
    letter-spacing: .4px !important;
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    border-bottom: none !important;
}

.sidebar .widget > *:not(.widget-title),
.widget-area .widget > div:not(:first-child) {
    padding: 10px 14px;
}

.sidebar .widget ul,
.widget-area .widget ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sidebar .widget ul li,
.widget-area .widget ul li {
    padding: 7px 12px !important;
    border-bottom: 1px solid #eef1f7 !important;
    font-size: 13px !important;
    transition: background .1s;
}

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

.sidebar .widget ul li:hover,
.widget-area .widget ul li:hover {
    background: var(--g-blue-xl) !important;
}

.sidebar .widget ul li a,
.widget-area .widget ul li a {
    color: var(--g-text) !important;
    text-decoration: none !important;
    font-size: 13px;
}

.sidebar .widget ul li a:hover,
.widget-area .widget ul li a:hover {
    color: var(--g-blue) !important;
    text-decoration: underline !important;
}

/* --------------------------------------------------------------------------
   15. Article / Entry Styling
   -------------------------------------------------------------------------- */
.entry-header {
    background: var(--g-blue);
    color: #fff;
    padding: 9px 14px;
    margin: 0;
}

.entry-header .entry-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.entry-header .entry-title a {
    color: #fff !important;
}

.entry-content,
.entry-summary {
    padding: 14px !important;
}

.entry-meta {
    padding: 5px 14px !important;
    font-size: 12px !important;
    color: var(--g-muted) !important;
    border-bottom: 1px solid #eef1f7;
}

/* Post navigation styling */
.paging-navigation {
    padding: 12px 14px !important;
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    margin-top: 14px;
}

.footer-widgets {
    background: var(--g-blue) !important;
    color: rgba(255, 255, 255, .9) !important;
}

.footer-widgets .widget-title {
    color: var(--g-gold) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .15) !important;
    padding-bottom: 8px !important;
    margin-bottom: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: .4px !important;
    background: transparent !important;
}

.footer-widgets a {
    color: rgba(255, 255, 255, .8) !important;
}

.footer-widgets a:hover {
    color: var(--g-gold) !important;
}

.footer-widgets .widget {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.site-info {
    background: var(--g-blue-d) !important;
    color: rgba(255, 255, 255, .7) !important;
    font-size: 12px !important;
    border-top: 1px solid rgba(255, 255, 255, .1) !important;
    padding: 10px 0 !important;
}

.site-info a {
    color: rgba(255, 255, 255, .8) !important;
}

.site-info a:hover {
    color: var(--g-gold) !important;
}

.inside-site-info {
    max-width: var(--g-max) !important;
    margin: 0 auto !important;
    padding: 0 12px !important;
}

/* --------------------------------------------------------------------------
   17. Buttons (General)
   -------------------------------------------------------------------------- */
button,
html input[type="button"],
input[type="reset"],
input[type="submit"],
a.button,
a.wp-block-button__link:not(.has-background) {
    background: var(--g-blue) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--g-radius) !important;
    padding: 9px 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: var(--g-font) !important;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none !important;
}

button:hover,
html input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
a.button:hover,
a.wp-block-button__link:not(.has-background):hover {
    background: var(--g-blue-d) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* Special gold submit button */
.g-btn-submit {
    background: var(--g-gold) !important;
    color: #1a1a2e !important;
    font-weight: 700 !important;
    padding: 10px 24px !important;
    font-size: 14px !important;
    border-radius: var(--g-radius) !important;
    border: none !important;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

.g-btn-submit:hover {
    background: #ffc107 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}

/* --------------------------------------------------------------------------
   18. Forms
   -------------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
    border: 1.5px solid var(--g-border) !important;
    border-radius: var(--g-radius) !important;
    padding: 9px 11px !important;
    font-size: 13px !important;
    font-family: var(--g-font) !important;
    background: #fff !important;
    color: var(--g-text) !important;
    transition: border-color .15s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: var(--g-blue) !important;
    box-shadow: 0 0 0 2px rgba(11, 61, 145, .1) !important;
    outline: none !important;
}

/* --------------------------------------------------------------------------
   19. Back to Top Button
   -------------------------------------------------------------------------- */
a.generate-back-to-top {
    background: var(--g-blue) !important;
    color: #fff !important;
    border-radius: 3px !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2) !important;
    transition: all .2s !important;
}

a.generate-back-to-top:hover {
    background: var(--g-blue-d) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3) !important;
}

/* --------------------------------------------------------------------------
   20. Animations
   -------------------------------------------------------------------------- */
@keyframes gpulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: .3;
        transform: scale(.7);
    }
}

@keyframes gslide {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Pulse dot */
.g-pulse {
    width: 6px;
    height: 6px;
    background: var(--g-red);
    border-radius: 50%;
    animation: gpulse 2s ease-in-out infinite;
    display: inline-block;
}

/* --------------------------------------------------------------------------
   21. Search Form Overrides
   -------------------------------------------------------------------------- */
.search-form {
    display: flex;
    gap: 0;
}

.search-form .search-field {
    flex: 1;
}

.search-form .search-submit {
    flex-shrink: 0;
}

/* Navigation Search Override */
.navigation-search {
    background: rgba(255, 255, 255, .12) !important;
    border: 1px solid rgba(255, 255, 255, .3) !important;
    border-radius: 3px !important;
}

.navigation-search input[type="search"] {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-family: var(--g-font) !important;
}

.navigation-search input[type="search"]::placeholder {
    color: rgba(255, 255, 255, .6) !important;
}

/* --------------------------------------------------------------------------
   22. Comments Styling
   -------------------------------------------------------------------------- */
.comments-area {
    padding: 0 !important;
}

.comments-area .comments-title {
    background: var(--g-blue);
    color: #fff;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin: 0;
}

.comments-area .comment-list {
    padding: 14px;
}

/* --------------------------------------------------------------------------
   23. Page Header
   -------------------------------------------------------------------------- */
.page-header {
    padding: 0 !important;
}

.page-header .page-title {
    background: var(--g-blue);
    color: #fff;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin: 0;
}

/* --------------------------------------------------------------------------
   24. Custom Footer Sections
   -------------------------------------------------------------------------- */
.g-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.g-footer-section h4 {
    color: var(--g-gold);
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    padding-bottom: 8px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.g-footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.g-footer-section ul li {
    padding: 4px 0;
}

.g-footer-section ul li a {
    color: rgba(255, 255, 255, .8) !important;
    font-size: 13px;
    text-decoration: none !important;
    transition: color .15s;
}

.g-footer-section ul li a:hover {
    color: var(--g-gold) !important;
}

/* --------------------------------------------------------------------------
   25. Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .g-hero-inner {
        grid-template-columns: 1fr;
    }

    .g-hero-inner .g-notice-card {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    /* Body grid to single column */
    #content {
        grid-template-columns: 1fr !important;
    }

    .is-right-sidebar,
    .is-left-sidebar {
        width: 100% !important;
        position: static;
    }

    /* Header */
    .inside-header {
        flex-wrap: wrap !important;
        padding: 10px 12px !important;
    }

    .main-title,
    .main-title a {
        font-size: 18px !important;
    }

    .site-logo img,
    .header-image {
        width: 50px !important;
        height: 50px !important;
    }

    .header-widget {
        flex-basis: 100%;
    }

    /* Navigation */
    .main-navigation .menu-toggle,
    .sidebar-nav-mobile:not(#sticky-placeholder) {
        display: block !important;
    }

    .main-navigation ul,
    .gen-sidebar-nav,
    .main-navigation:not(.slideout-navigation):not(.toggled) .main-nav > ul {
        display: none;
    }

    /* Hero */
    .g-hero-inner {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .g-hero-title {
        font-size: 20px !important;
    }

    /* Top bar */
    .inside-top-bar {
        font-size: 11px !important;
        padding: 0 10px !important;
    }

    /* Ticker */
    .g-ticker {
        height: 28px;
    }

    .g-ticker-lbl {
        font-size: 10px;
        padding: 0 8px;
    }

    /* Articles */
    .separate-containers .inside-article {
        padding: 0 !important;
    }

    .entry-content,
    .entry-summary {
        padding: 12px !important;
    }

    /* Footer */
    .g-footer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Tool form */
    .g-tool-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .g-hero-title {
        font-size: 18px !important;
    }

    .g-hero-btns {
        flex-direction: column;
    }

    .g-btn-primary,
    .g-btn-outline {
        width: 100%;
        justify-content: center;
    }

    .g-topbar-btn {
        font-size: 10px;
        padding: 2px 6px;
    }

    .g-header-search input {
        width: 140px;
    }
}

/* --------------------------------------------------------------------------
   26. Print Styles
   -------------------------------------------------------------------------- */
@media print {
    .g-alert,
    .g-ticker,
    .top-bar,
    .main-navigation,
    .generate-back-to-top,
    .g-tool-wrap {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }

    .site-header {
        background: #fff !important;
        border-bottom: 2px solid #000 !important;
    }

    .main-title,
    .main-title a {
        color: #000 !important;
        text-shadow: none !important;
    }
}

/* --------------------------------------------------------------------------
   27. WP Block Editor Compatibility
   -------------------------------------------------------------------------- */
.wp-block-group {
    margin-bottom: 14px;
}

.wp-block-table table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
}

.wp-block-table td,
.wp-block-table th {
    padding: 7px 10px;
    border: 1px solid var(--g-border);
}

.wp-block-table thead {
    background: var(--g-blue);
    color: #fff;
}

.wp-block-table tbody tr:hover {
    background: var(--g-blue-xl);
}

/* --------------------------------------------------------------------------
   28. Utility Classes
   -------------------------------------------------------------------------- */
.g-wrap {
    max-width: var(--g-max);
    margin: 0 auto;
    padding: 0 12px;
}

.g-text-center {
    text-align: center;
}

.g-mt-1 { margin-top: 8px; }
.g-mt-2 { margin-top: 14px; }
.g-mb-1 { margin-bottom: 8px; }
.g-mb-2 { margin-bottom: 14px; }
.g-p-1 { padding: 8px; }
.g-p-2 { padding: 14px; }

.g-flex {
    display: flex;
    align-items: center;
    gap: 8px;
}

.g-hidden {
    display: none !important;
}

/* --------------------------------------------------------------------------
   29. GP Premium Overrides
   -------------------------------------------------------------------------- */
/* Override GP Premium's inline styles where needed */
.site-header .header-widget {
    padding: 0 !important;
}

/* Ensure the grid container respects our max-width */
.grid-container {
    max-width: var(--g-max) !important;
}

/* Navigation inside container */
.nav-below-header .main-navigation .inside-navigation.grid-container,
.nav-above-header .main-navigation .inside-navigation.grid-container {
    padding: 0 !important;
}

/* Content area padding reset */
.site-main .wp-block-group__inner-container {
    max-width: 100% !important;
    padding: 14px !important;
}

/* Separate containers override */
.separate-containers .paging-navigation {
    padding: 10px 14px !important;
    margin-bottom: 14px !important;
}
