/*
Theme Name: GM Monish
Theme URI: https://gmmonish.in
Author: GM Monish
Author URI: https://gmmonish.in
Description: A refined editorial news-magazine WordPress theme built for gmmonish.in — covering Fintech, Education (JenIAS), Daily Gold Rates, Writings, Books, Thoughts & Reviews. Features a breaking-news ticker, multi-vertical category blocks, featured stories, author bio, and a full magazine-grade reading experience.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gmmonish
Tags: magazine, news, blog, editorial, finance, education, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments
*/

/* =========================================================
   GM Monish — Editorial Magazine Theme
   Table of Contents
   1.  Design Tokens (root variables)
   2.  Reset & Base
   3.  Typography
   4.  Layout helpers
   5.  Buttons & badges
   6.  Top utility bar
   7.  Site header & branding
   8.  Breaking news ticker
   9.  Main navigation + dropdowns
   10. Section headings
   11. Cards (post cards)
   12. Footer
   13. Page banner / breadcrumb
   14. Pagination
   15. Widgets / sidebar
   16. Back-to-top & utilities
   17. Responsive
   ========================================================= */

/* ---------------------------------------------------------
   1. Design Tokens
   --------------------------------------------------------- */
:root {
    --gm-navy:        #15243f;   /* primary deep navy */
    --gm-navy-2:      #1e3257;   /* lighter navy */
    --gm-navy-deep:   #0e1a30;   /* darkest navy */
    --gm-gold:        #c89b3c;   /* editorial gold accent */
    --gm-gold-soft:   #e3c87f;   /* soft gold */
    --gm-crimson:     #d63447;   /* breaking / highlight */
    --gm-cream:       #f7f6f2;   /* page background */
    --gm-paper:       #ffffff;   /* card surface */
    --gm-ink:         #1c2434;   /* main text */
    --gm-ink-soft:    #4a5568;   /* secondary text */
    --gm-muted:       #8b93a3;   /* muted text */
    --gm-line:        #e7e4dc;   /* hairline border */
    --gm-line-2:      #d8d4c8;

    --gm-font-head: 'Lora', Georgia, 'Times New Roman', serif;
    --gm-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --gm-shadow-sm: 0 2px 8px rgba(21, 36, 63, 0.06);
    --gm-shadow:    0 8px 28px rgba(21, 36, 63, 0.10);
    --gm-shadow-lg: 0 18px 50px rgba(21, 36, 63, 0.16);

    --gm-radius:    10px;
    --gm-radius-lg: 16px;
    --gm-container: 1240px;
    --gm-transition: all 0.3s ease;
}

/* ---------------------------------------------------------
   2. Reset & Base
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--gm-font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gm-ink);
    background: var(--gm-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--gm-navy); text-decoration: none; transition: var(--gm-transition); }
a:hover { color: var(--gm-gold); }

ul, ol { margin: 0; padding: 0; }

/* ---------------------------------------------------------
   3. Typography
   --------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--gm-font-head);
    color: var(--gm-navy);
    line-height: 1.25;
    margin: 0 0 0.5em;
    font-weight: 700;
}

p { margin: 0 0 1.2em; }

blockquote {
    border-left: 4px solid var(--gm-gold);
    margin: 1.5em 0;
    padding: 0.5em 0 0.5em 1.5em;
    font-style: italic;
    color: var(--gm-ink-soft);
    font-family: var(--gm-font-head);
    font-size: 1.15rem;
}

/* ---------------------------------------------------------
   4. Layout helpers
   --------------------------------------------------------- */
.gm-container {
    max-width: var(--gm-container);
    margin: 0 auto;
    padding: 0 24px;
}

.gm-wrap {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 50px;
    align-items: start;
}

.gm-main-col { min-width: 0; }

section { position: relative; }

.gm-section { padding: 50px 0; }

/* ---------------------------------------------------------
   5. Buttons & badges
   --------------------------------------------------------- */
.gm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gm-navy);
    color: #fff;
    padding: 12px 26px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    border: 2px solid var(--gm-navy);
    cursor: pointer;
    transition: var(--gm-transition);
}
.gm-btn:hover {
    background: var(--gm-gold);
    border-color: var(--gm-gold);
    color: var(--gm-navy-deep);
    transform: translateY(-2px);
}
.gm-btn-outline {
    background: transparent;
    color: var(--gm-navy);
}
.gm-btn-outline:hover {
    background: var(--gm-navy);
    color: #fff;
}

.gm-cat-badge {
    display: inline-block;
    background: var(--gm-gold);
    color: var(--gm-navy-deep);
    font-family: var(--gm-font-body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 4px;
}
.gm-cat-badge:hover { color: var(--gm-navy-deep); background: var(--gm-gold-soft); }

/* ---------------------------------------------------------
   6. Top utility bar
   --------------------------------------------------------- */
.gm-topbar {
    background: var(--gm-navy-deep);
    color: #c3cad8;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.gm-topbar .gm-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 42px;
    gap: 16px;
}
.gm-topbar-date { display: flex; align-items: center; gap: 8px; }
.gm-topbar-date i { color: var(--gm-gold); }
.gm-topbar-links { display: flex; align-items: center; gap: 18px; }
.gm-topbar-links a { color: #c3cad8; }
.gm-topbar-links a:hover { color: var(--gm-gold); }
.gm-topbar-social { display: flex; gap: 12px; }
.gm-topbar-social a {
    width: 26px; height: 26px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    color: #c3cad8;
    font-size: 0.78rem;
}
.gm-topbar-social a:hover { background: var(--gm-gold); color: var(--gm-navy-deep); }
.gm-jenview-btn {
    background: var(--gm-crimson);
    color: #fff !important;
    padding: 4px 14px;
    border-radius: 4px;
    font-weight: 600;
}
.gm-jenview-btn:hover { background: #b8283a; color: #fff !important; }

/* ---------------------------------------------------------
   7. Site header & branding
   --------------------------------------------------------- */
.gm-header { background: var(--gm-paper); border-bottom: 1px solid var(--gm-line); }
.gm-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    gap: 30px;
}
.gm-branding { display: flex; align-items: center; gap: 16px; }
.gm-logo-img { width: 60px; height: 60px; object-fit: contain; }
.custom-logo { max-height: 60px; width: auto; }
.gm-site-title {
    font-family: var(--gm-font-head);
    font-size: 2.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    letter-spacing: -0.01em;
}
.gm-site-title a { color: var(--gm-navy); }
.gm-site-desc { font-size: 0.85rem; color: var(--gm-muted); margin: 4px 0 0; letter-spacing: 0.02em; }

.gm-header-ad {
    font-size: 0.78rem;
    color: var(--gm-muted);
    text-align: center;
    border: 1px dashed var(--gm-line-2);
    padding: 14px 40px;
    border-radius: var(--gm-radius);
}

/* ---------------------------------------------------------
   8. Breaking news ticker
   --------------------------------------------------------- */
.gm-ticker {
    background: var(--gm-paper);
    border-bottom: 1px solid var(--gm-line);
    overflow: hidden;
}
.gm-ticker .gm-container { display: flex; align-items: center; min-height: 48px; gap: 0; }
.gm-ticker-label {
    background: var(--gm-crimson);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 14px 18px;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.gm-ticker-label::after {
    content: '';
    position: absolute;
    right: -12px; top: 0;
    border-width: 24px 0 24px 12px;
    border-style: solid;
    border-color: transparent transparent transparent var(--gm-crimson);
}
.gm-ticker-label i { animation: gm-pulse 1.4s infinite; }
@keyframes gm-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.gm-ticker-track { overflow: hidden; flex: 1; margin-left: 22px; }
.gm-ticker-slide { display: flex; gap: 40px; white-space: nowrap; animation: gm-marquee 32s linear infinite; }
.gm-ticker:hover .gm-ticker-slide { animation-play-state: paused; }
.gm-ticker-slide a {
    color: var(--gm-ink);
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.gm-ticker-slide a::before { content: '\f111'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.4rem; color: var(--gm-gold); }
.gm-ticker-slide a:hover { color: var(--gm-gold); }
@keyframes gm-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------------------------------------------------------
   9. Main navigation + dropdowns
   --------------------------------------------------------- */
.gm-nav {
    background: var(--gm-navy);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: var(--gm-shadow-sm);
}
.gm-nav .gm-container { display: flex; align-items: center; justify-content: space-between; }
.gm-menu { display: flex; flex-wrap: wrap; list-style: none; }
.gm-menu li { position: relative; }
.gm-menu > li > a {
    display: block;
    color: #e8ecf3;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 16px 18px;
    letter-spacing: 0.01em;
}
.gm-menu > li > a:hover,
.gm-menu > li.current-menu-item > a,
.gm-menu > li:hover > a { color: var(--gm-gold); background: rgba(255,255,255,0.04); }
.gm-menu li.menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    margin-left: 6px;
    opacity: 0.7;
}
/* Sub menu */
.gm-menu ul.sub-menu {
    position: absolute;
    top: 100%; left: 0;
    background: var(--gm-paper);
    min-width: 210px;
    list-style: none;
    box-shadow: var(--gm-shadow);
    border-top: 3px solid var(--gm-gold);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--gm-transition);
    z-index: 300;
}
.gm-menu li:hover > ul.sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.gm-menu ul.sub-menu li { border-bottom: 1px solid var(--gm-line); }
.gm-menu ul.sub-menu li:last-child { border-bottom: none; }
.gm-menu ul.sub-menu a {
    display: block;
    color: var(--gm-ink);
    font-size: 0.86rem;
    font-weight: 500;
    padding: 11px 18px;
}
.gm-menu ul.sub-menu a:hover { background: var(--gm-cream); color: var(--gm-gold); padding-left: 24px; }
.gm-menu ul.sub-menu ul.sub-menu { top: 0; left: 100%; }

.gm-nav-search { color: #e8ecf3; background: none; border: none; cursor: pointer; font-size: 1rem; padding: 16px; }
.gm-nav-search:hover { color: var(--gm-gold); }

.gm-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 14px 0;
}

/* ---------------------------------------------------------
   10. Section headings
   --------------------------------------------------------- */
.gm-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
    border-bottom: 2px solid var(--gm-line-2);
    padding-bottom: 0;
}
.gm-section-head h2 {
    position: relative;
    font-size: 1.5rem;
    margin: 0;
    padding: 0 0 14px;
}
.gm-section-head h2::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%; height: 3px;
    background: var(--gm-gold);
}
.gm-section-head .gm-viewall { font-size: 0.82rem; font-weight: 600; color: var(--gm-ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.gm-section-head .gm-viewall:hover { color: var(--gm-gold); }

/* ---------------------------------------------------------
   11. Cards
   --------------------------------------------------------- */
.gm-card {
    background: var(--gm-paper);
    border-radius: var(--gm-radius);
    overflow: hidden;
    box-shadow: var(--gm-shadow-sm);
    transition: var(--gm-transition);
    border: 1px solid var(--gm-line);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.gm-card:hover { box-shadow: var(--gm-shadow); transform: translateY(-4px); }
.gm-card-thumb { position: relative; overflow: hidden; aspect-ratio: 16/10; background: var(--gm-navy-2); }
.gm-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gm-card:hover .gm-card-thumb img { transform: scale(1.06); }
.gm-card-thumb .gm-cat-badge { position: absolute; top: 12px; left: 12px; }
.gm-card-thumb-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--gm-navy), var(--gm-navy-2));
    color: rgba(255,255,255,0.25);
    font-size: 2.4rem;
    font-family: var(--gm-font-head);
}
.gm-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.gm-card-title { font-size: 1.12rem; line-height: 1.35; margin: 8px 0 10px; }
.gm-card-title a { color: var(--gm-navy); }
.gm-card-title a:hover { color: var(--gm-gold); }
.gm-card-excerpt { font-size: 0.9rem; color: var(--gm-ink-soft); margin: 0 0 14px; flex: 1; }
.gm-meta { display: flex; align-items: center; gap: 14px; font-size: 0.78rem; color: var(--gm-muted); margin-top: auto; }
.gm-meta span { display: inline-flex; align-items: center; gap: 5px; }
.gm-meta i { color: var(--gm-gold); }
.gm-meta a { color: var(--gm-muted); }
.gm-meta a:hover { color: var(--gm-gold); }

/* ---------------------------------------------------------
   12. Footer
   --------------------------------------------------------- */
.gm-footer { background: var(--gm-navy-deep); color: #aeb7c6; margin-top: 60px; }
.gm-footer-top { padding: 60px 0 40px; }
.gm-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
.gm-footer h4 {
    color: #fff;
    font-size: 1.05rem;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gm-gold);
    display: inline-block;
}
.gm-footer p { font-size: 0.9rem; line-height: 1.8; color: #aeb7c6; }
.gm-footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.gm-footer-brand img { width: 48px; height: 48px; object-fit: contain; }
.gm-footer-brand strong { color: #fff; font-family: var(--gm-font-head); font-size: 1.4rem; }
.gm-footer ul { list-style: none; }
.gm-footer ul li { padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.gm-footer ul li a { color: #aeb7c6; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px; }
.gm-footer ul li a::before { content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--gm-gold); font-size: 0.8rem; }
.gm-footer ul li a:hover { color: var(--gm-gold); padding-left: 5px; }
.gm-footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.gm-footer-social a {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 0.95rem;
}
.gm-footer-social a:hover { background: var(--gm-gold); color: var(--gm-navy-deep); transform: translateY(-3px); }
.gm-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 22px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #8b93a3;
}
.gm-footer-bottom a { color: var(--gm-gold); }

/* ---------------------------------------------------------
   13. Page banner / breadcrumb
   --------------------------------------------------------- */
.gm-page-banner {
    background: linear-gradient(135deg, var(--gm-navy-deep), var(--gm-navy-2));
    color: #fff;
    padding: 54px 0;
    position: relative;
    overflow: hidden;
}
.gm-page-banner::after {
    content: '';
    position: absolute;
    right: -80px; top: -80px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(200,155,60,0.18) 0%, transparent 70%);
}
.gm-page-banner h1 { color: #fff; font-size: 2.5rem; margin: 0 0 10px; position: relative; z-index: 1; }
.gm-breadcrumb { font-size: 0.88rem; color: var(--gm-gold-soft); position: relative; z-index: 1; }
.gm-breadcrumb a { color: #cdd4e0; }
.gm-breadcrumb a:hover { color: var(--gm-gold); }
.gm-breadcrumb .sep { margin: 0 8px; opacity: 0.5; }

/* ---------------------------------------------------------
   14. Pagination
   --------------------------------------------------------- */
.gm-pagination { margin: 45px 0 10px; }
.gm-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px; height: 44px;
    padding: 0 12px;
    margin: 0 4px;
    border-radius: 8px;
    background: var(--gm-paper);
    border: 1px solid var(--gm-line);
    color: var(--gm-navy);
    font-weight: 600;
    font-size: 0.9rem;
}
.gm-pagination .page-numbers.current,
.gm-pagination .page-numbers:hover { background: var(--gm-navy); color: #fff; border-color: var(--gm-navy); }

/* ---------------------------------------------------------
   15. Widgets / sidebar
   --------------------------------------------------------- */
.gm-sidebar .widget,
.gm-widget {
    background: var(--gm-paper);
    border: 1px solid var(--gm-line);
    border-radius: var(--gm-radius);
    padding: 24px 22px;
    margin-bottom: 28px;
    box-shadow: var(--gm-shadow-sm);
}
.gm-widget-title,
.gm-sidebar .widget-title,
.gm-sidebar .widgettitle {
    font-family: var(--gm-font-head);
    font-size: 1.15rem;
    color: var(--gm-navy);
    margin: 0 0 18px;
    padding-bottom: 12px;
    position: relative;
}
.gm-widget-title::after,
.gm-sidebar .widget-title::after,
.gm-sidebar .widgettitle::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 46px; height: 3px;
    background: var(--gm-gold);
}
.gm-sidebar .widget ul { list-style: none; }
.gm-sidebar .widget ul li {
    padding: 9px 0;
    border-bottom: 1px solid var(--gm-line);
    font-size: 0.9rem;
}
.gm-sidebar .widget ul li:last-child { border-bottom: none; }
.gm-sidebar .widget ul li a { color: var(--gm-ink-soft); }
.gm-sidebar .widget ul li a:hover { color: var(--gm-gold); }

/* search form */
.gm-search-form { display: flex; }
.gm-search-form input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--gm-line-2);
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-family: var(--gm-font-body);
    font-size: 0.9rem;
    outline: none;
}
.gm-search-form input[type="search"]:focus { border-color: var(--gm-gold); }
.gm-search-form button {
    background: var(--gm-navy);
    color: #fff;
    border: none;
    padding: 0 18px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
}
.gm-search-form button:hover { background: var(--gm-gold); color: var(--gm-navy-deep); }

/* author card */
.gm-author-card { text-align: center; }
.gm-author-card .gm-author-avatar {
    width: 96px; height: 96px;
    border-radius: 50%;
    margin: 0 auto 14px;
    border: 4px solid var(--gm-gold);
    object-fit: cover;
    background: var(--gm-navy);
}
.gm-author-card h4 { font-size: 1.2rem; margin: 0 0 6px; }
.gm-author-card p { font-size: 0.88rem; color: var(--gm-ink-soft); margin: 0 0 14px; }

/* tag cloud */
.gm-tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.gm-tagcloud a,
.gm-sidebar .tagcloud a {
    display: inline-block;
    background: var(--gm-cream);
    color: var(--gm-ink-soft) !important;
    padding: 6px 13px;
    border-radius: 50px;
    font-size: 0.8rem !important;
    border: 1px solid var(--gm-line);
}
.gm-tagcloud a:hover,
.gm-sidebar .tagcloud a:hover { background: var(--gm-gold); color: var(--gm-navy-deep) !important; border-color: var(--gm-gold); }

/* mini list (recent posts) */
.gm-mini-post { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--gm-line); }
.gm-mini-post:last-child { border-bottom: none; }
.gm-mini-thumb { width: 74px; height: 64px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--gm-navy-2); }
.gm-mini-body h5 { font-size: 0.92rem; line-height: 1.4; margin: 0 0 5px; font-family: var(--gm-font-body); font-weight: 600; }
.gm-mini-body h5 a { color: var(--gm-navy); }
.gm-mini-body h5 a:hover { color: var(--gm-gold); }
.gm-mini-date { font-size: 0.76rem; color: var(--gm-muted); }

/* calendar widget */
.gm-sidebar .widget_calendar table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.gm-sidebar .widget_calendar caption { font-weight: 700; color: var(--gm-navy); padding-bottom: 8px; font-family: var(--gm-font-head); }
.gm-sidebar .widget_calendar th { background: var(--gm-navy); color: #fff; padding: 6px; font-weight: 600; }
.gm-sidebar .widget_calendar td { text-align: center; padding: 6px; border: 1px solid var(--gm-line); }
.gm-sidebar .widget_calendar td a { color: var(--gm-gold); font-weight: 700; }

/* ---------------------------------------------------------
   16. Back-to-top & utilities
   --------------------------------------------------------- */
.gm-backtop {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 48px; height: 48px;
    background: var(--gm-navy);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    box-shadow: var(--gm-shadow);
    opacity: 0; visibility: hidden;
    transform: translateY(16px);
    transition: var(--gm-transition);
    z-index: 600;
}
.gm-backtop.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.gm-backtop:hover { background: var(--gm-gold); color: var(--gm-navy-deep); }

.gm-search-overlay {
    position: fixed; inset: 0;
    background: rgba(14,26,48,0.96);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.gm-search-overlay.active { display: flex; }
.gm-search-overlay-inner { width: 100%; max-width: 640px; }
.gm-search-overlay input[type="search"] {
    width: 100%;
    padding: 20px 24px;
    font-size: 1.3rem;
    border: none;
    border-bottom: 3px solid var(--gm-gold);
    background: transparent;
    color: #fff;
    outline: none;
    font-family: var(--gm-font-head);
}
.gm-search-overlay input::placeholder { color: rgba(255,255,255,0.5); }
.gm-search-close { position: absolute; top: 30px; right: 36px; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; }
.gm-search-close:hover { color: var(--gm-gold); }

.gm-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.gm-reveal.revealed { opacity: 1; transform: translateY(0); }

body.gm-menu-open { overflow: hidden; }

/* ---------------------------------------------------------
   17. Responsive
   --------------------------------------------------------- */
@media (max-width: 1080px) {
    .gm-wrap { grid-template-columns: 1fr; }
    .gm-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
    .gm-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .gm-header-ad { display: none; }
}

@media (max-width: 768px) {
    .gm-topbar-links .gm-topbar-extra { display: none; }
    .gm-menu-toggle { display: block; }
    .gm-nav .gm-container { flex-wrap: wrap; }
    .gm-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--gm-navy-deep);
        padding: 8px 0 14px;
    }
    .gm-menu.active { display: flex; }
    .gm-menu > li > a { padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .gm-menu ul.sub-menu {
        position: static;
        opacity: 1; visibility: visible; transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.2);
        border-top: none;
        padding-left: 14px;
        display: none;
    }
    .gm-menu li.gm-sub-open > ul.sub-menu { display: block; }
    .gm-menu ul.sub-menu a { color: #cdd4e0; }
    .gm-sidebar { grid-template-columns: 1fr; }
    .gm-footer-grid { grid-template-columns: 1fr; }
    .gm-page-banner h1 { font-size: 1.8rem; }
    .gm-site-title { font-size: 1.7rem; }
    .gm-section { padding: 36px 0; }
}
