/*
Theme Name: GEANTECHNOLOGY
Theme URI: https://example.com/geantechnology
Author: GEAN Tech Studio
Author URI: https://example.com
Description: A crisp, professional tech news & cybersecurity blog theme in #4db2ec and white with responsive navigation, dropdown menus, terminal post cards, and full WP core compatibility.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: news, blog, tech, two-columns, custom-menu, featured-images, responsive-layout
Text Domain: geantechnology
*/

/* ============================
   Typography (IT / developer look)
   Body:     IBM Plex Sans
   Headings: Space Grotesk
   Code:     JetBrains Mono
   ============================ */
body {
    font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Headings, logo, card titles, pills: tech-style display font */
h1, h2, h3, h4, h5,
.gean-header a > span:first-child,
.category-pill,
.book-card__title,
.book-section-title,
.gean-unit__title,
.gean-modal__head h2 {
    font-family: 'Space Grotesk', 'IBM Plex Sans', system-ui, sans-serif;
    letter-spacing: -0.01em;
}

/* Code in blog posts (How-To articles, scripts, commands) */
.prose code,
.prose pre,
.prose kbd,
.prose samp {
    font-family: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    font-feature-settings: "calt" 1, "liga" 1;
}

.prose :not(pre) > code {
    background: #eef8ff;
    color: #0e5f91;
    padding: 0.12rem 0.4rem;
    border-radius: 0.35rem;
    font-size: 0.85em;
    border: 1px solid #cfe8f8;
}

.prose pre {
    background: #0b1929;
    color: #d6ecfa;
    padding: 1.1rem 1.25rem;
    border-radius: 0.75rem;
    border-left: 4px solid #4db2ec;
    overflow-x: auto;
    font-size: 0.82rem;
    line-height: 1.7;
    margin: 1.25rem 0;
}

.prose pre code {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.prose kbd {
    background: #0b1929;
    color: #ffffff;
    padding: 0.1rem 0.45rem;
    border-radius: 0.3rem;
    font-size: 0.8em;
    border-bottom: 2px solid #4db2ec;
}

/* Primary Navigation Styles for WordPress wp_nav_menu */
.primary-menu-container {
    position: relative;
    z-index: 40;
}

.primary-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    position: relative;
    margin: 0;
    padding: 0;
}

.primary-menu li a {
    display: flex;
    align-items: center;
    padding: 0.65rem 1rem;
    color: #334155;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.primary-menu li a:hover,
.primary-menu li.current-menu-item > a,
.primary-menu li.current-menu-ancestor > a {
    background-color: #eef8ff;
    color: #4db2ec;
}

/* Automatic Submenu Indicator Arrow */
.primary-menu li.menu-item-has-children > a::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 0.4rem;
    font-size: 0.7rem;
    opacity: 0.75;
}

/* Submenu Dropdowns */
.primary-menu li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    padding: 0.5rem;
    z-index: 100;
    list-style: none;
    margin: 0;
}

/* Show Dropdown on Hover & Keyboard Focus */
.primary-menu li:hover > ul.sub-menu,
.primary-menu li:focus-within > ul.sub-menu,
.primary-menu li.menu-item-has-children:hover > ul.sub-menu {
    display: block !important;
    animation: fadeIn 0.15s ease-in-out;
}

/* Nested Multi-level Dropdowns (2nd & 3rd level) */
.primary-menu ul.sub-menu li {
    width: 100%;
    position: relative;
}

.primary-menu ul.sub-menu ul.sub-menu {
    top: 0;
    left: 100%;
    margin-left: 0.25rem;
}

.primary-menu ul.sub-menu li a {
    padding: 0.5rem 0.85rem;
    font-size: 0.8125rem;
    color: #475569;
    border-radius: 0.25rem;
}

.primary-menu ul.sub-menu li a:hover {
    background-color: #f1f5f9;
    color: #4db2ec;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ============================
   Enhanced Pagination Styling
   ============================ */
.pagination,
.navigation.pagination {
    margin-top: 1rem;
}

.pagination .nav-links,
.navigation.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.pagination .page-numbers,
.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.9rem;
    font-size: 0.8125rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #334155;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    text-decoration: none;
    transition: all 0.18s ease;
}

.pagination a.page-numbers:hover,
.navigation.pagination a.page-numbers:hover {
    background-color: #eef8ff;
    border-color: #4db2ec;
    color: #218ac8;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px -4px rgba(77, 178, 236, 0.45);
}

.pagination .page-numbers.current,
.navigation.pagination .page-numbers.current {
    background: linear-gradient(135deg, #4db2ec, #218ac8);
    border-color: #218ac8;
    color: #ffffff;
    box-shadow: 0 6px 16px -4px rgba(33, 138, 200, 0.5);
}

.pagination .page-numbers.dots,
.navigation.pagination .page-numbers.dots {
    background: transparent;
    border: none;
    box-shadow: none;
    color: #94a3b8;
    min-width: auto;
    padding: 0 0.35rem;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next,
.navigation.pagination .page-numbers.prev,
.navigation.pagination .page-numbers.next {
    padding: 0 1.15rem;
    font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.7rem;
    background-color: #0b1929;
    color: #ffffff;
    border-color: #0b1929;
}

.pagination .page-numbers.prev:hover,
.pagination .page-numbers.next:hover,
.navigation.pagination .page-numbers.prev:hover,
.navigation.pagination .page-numbers.next:hover {
    background-color: #218ac8;
    border-color: #218ac8;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ============================
   Footer Navigation Menu
   ============================ */
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.footer-menu li a::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f105";
    font-size: 9px;
    color: #38799e;
    transition: transform 0.2s ease, color 0.2s ease;
}

.footer-menu li a:hover {
    color: #ffffff;
}

.footer-menu li a:hover::before {
    color: #4db2ec;
    transform: translateX(2px);
}

/* ============================
   Category Strip
   ============================ */
.category-strip-wrap {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 3.5rem; /* matches the h-14 nav bar height so both stay pinned together */
    z-index: 29; /* just under the nav's z-30 so the nav always draws on top */
    box-shadow: 0 4px 6px -4px rgba(15, 23, 42, 0.08);
}

.category-strip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-strip::-webkit-scrollbar {
    display: none;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.category-pill i {
    font-size: 0.7rem;
    color: #4db2ec;
    transition: color 0.2s ease;
}

.category-pill:hover {
    background-color: #eef8ff;
    border-color: #4db2ec;
    color: #218ac8;
    transform: translateY(-1px);
}

.category-pill.is-active {
    background: linear-gradient(135deg, #4db2ec, #218ac8);
    border-color: #218ac8;
    color: #ffffff;
    box-shadow: 0 4px 10px -3px rgba(33, 138, 200, 0.45);
}

.category-pill.is-active i {
    color: #ffffff;
}

/* ============================
   Bookmark / Save Article
   ============================ */
.bookmark-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 20;
    width: 2.1rem;
    height: 2.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    color: #ffffff;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.bookmark-btn:hover {
    background-color: #4db2ec;
    border-color: #4db2ec;
    transform: scale(1.1);
}

.bookmark-btn.is-bookmarked {
    background-color: #4db2ec;
    border-color: #4db2ec;
}

.bookmark-btn-large {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bookmark-btn-large:hover {
    border-color: #4db2ec;
    color: #218ac8;
    background-color: #eef8ff;
}

.bookmark-btn-large.is-bookmarked {
    background-color: #eef8ff;
    border-color: #4db2ec;
    color: #218ac8;
}

/* ============================
   Academy pill (highlighted)
   ============================ */
.category-pill--academy {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    border-color: #f59e0b;
    background: linear-gradient(135deg, #f97316, #dc2626);
    box-shadow: 0 4px 14px -3px rgba(249, 115, 22, 0.6);
    animation: academyPulse 2.4s ease-in-out infinite;
}
.category-pill--academy i { color: #fde68a; }
.category-pill--academy:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #ef4444);
    transform: translateY(-2px) scale(1.04);
}
.category-pill--academy.is-active {
    background: linear-gradient(135deg, #f97316, #dc2626);
    border-color: #f59e0b;
}
/* Light sweep across the pill */
.category-pill--academy::after {
    content: "";
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-20deg);
    animation: academyShine 3.2s ease-in-out infinite;
}

/* Small "NEW" tag */
.academy-new {
    font-style: normal;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.12rem 0.4rem;
    border-radius: 9999px;
    background: #ffffff;
    color: #dc2626;
}

/* Force zero gap between custom template and footer */
body.home footer, 
body.home .site-footer {
    margin-top: 0 !important;
}

@keyframes academyShine {
    0%, 55% { left: -60%; }
    100%    { left: 130%; }
}
@keyframes academyPulse {
    0%, 100% { box-shadow: 0 4px 14px -3px rgba(249,115,22,.6); }
    50%      { box-shadow: 0 4px 22px 0 rgba(249,115,22,.95); }
}
@media (prefers-reduced-motion: reduce) {
    .category-pill--academy,
    .category-pill--academy::after { animation: none; }
}
/* Footer: deeper navy + bright top line, so it separates from the section above */
footer.gean-footer{
    background-image:
        radial-gradient(circle at 85% 0%, rgba(77,178,236,.14), transparent 45%),
        linear-gradient(180deg, #08131f 0%, #050d17 100%);
    border-top: 4px solid #4db2ec;
}