/*
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.1.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
*/

body {
    font-family: 'Rubik', sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
}

/* 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: 'Inter', 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);
}

/* ============================
   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;
}

/* ============================
   Comment Field
   ============================ */

.comment-list li:target > .bg-white,
#comments .bg-white:target {
    border-color: #4db2ec;
    box-shadow: 0 0 0 3px rgba(77, 178, 236, 0.2);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.comment-form .logged-in-as {
    font-size: 0.75rem;
    color: #64748b;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    padding: 0.65rem 1rem;
    border-radius: 0.6rem;
    margin: 0;
}

.comment-form .logged-in-as a {
    color: #218ac8;
    font-weight: 700;
    text-decoration: none;
}

.comment-form .logged-in-as a:hover {
    text-decoration: underline;
}

.comment-form .required-field-message {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.7rem;
    color: #94a3b8;
}

.comment-form .required-field-message .required {
    color: #ef4444;
    text-decoration: none;
}

.comment-form-comment {
    margin: 0;
}

.comment-form-comment label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.5rem;
}

.comment-form-comment label .required {
    color: #ef4444;
}

.comment-form textarea#comment {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    color: #0f172a;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.6rem;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form textarea#comment:focus {
    outline: none;
    border-color: #4db2ec;
    box-shadow: 0 0 0 3px rgba(77, 178, 236, 0.15);
}

.comment-form .form-submit {
    margin: 0;
}

.comment-form .form-submit .submit {
    background-color: #4db2ec;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8125rem;
    padding: 0.7rem 1.75rem;
    border: none;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px -2px rgba(77, 178, 236, 0.4);
}

.comment-form .form-submit .submit:hover {
    background-color: #218ac8;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px -3px rgba(33, 138, 200, 0.5);
}

.comment-form .form-submit .submit:active {
    transform: translateY(0);
}
/* Highlight the comment the visitor was redirected to */
.comment-list li:target > .bg-white,
#comments .bg-white:target {
    border-color: #4db2ec;
    box-shadow: 0 0 0 3px rgba(77, 178, 236, 0.2);
}

/* ============================
   Comment Form: Name / Email / URL / Consent Fields
   ============================ */
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin: 0;
}

.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.5rem;
}

.comment-form-author label .required,
.comment-form-email label .required {
    color: #ef4444;
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    color: #0f172a;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.6rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
    outline: none;
    border-color: #4db2ec;
    box-shadow: 0 0 0 3px rgba(77, 178, 236, 0.15);
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    padding: 0.65rem 1rem;
    border-radius: 0.6rem;
}

.comment-form-cookies-consent input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    margin: 0;
    accent-color: #4db2ec;
    border: 1px solid #cbd5e1;
    border-radius: 0.25rem;
    cursor: pointer;
}

.comment-form-cookies-consent label {
    margin: 0;
    cursor: pointer;
}


/* ============================
   Comment List: Individual Comments
   ============================ */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .comment-body {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-list .comment-meta {
    margin-bottom: 0.75rem;
}

.comment-list .comment-author.vcard {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.comment-list .comment-author.vcard img.avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.comment-list .comment-author.vcard .fn {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    font-style: normal;
}

.comment-list .comment-author.vcard .fn a {
    color: inherit;
    text-decoration: none;
}

.comment-list .comment-author.vcard .fn a:hover {
    color: #218ac8;
}

.comment-list .comment-author.vcard .says {
    display: none;
}

.comment-list .comment-metadata {
    margin-left: 2.9rem;
    margin-top: -0.4rem;
}

.comment-list .comment-metadata a {
    font-size: 0.7rem;
    color: #94a3b8;
    text-decoration: none;
}

.comment-list .comment-metadata a:hover {
    color: #4db2ec;
    text-decoration: underline;
}

.comment-list .comment-content {
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.6;
    margin-left: 2.9rem;
}

.comment-list .comment-content p {
    margin: 0 0 0.5rem;
}

.comment-list .comment-content p:last-child {
    margin-bottom: 0;
}

.comment-list .reply {
    margin-left: 2.9rem;
    margin-top: 0.75rem;
}

.comment-list .comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #218ac8;
    background-color: #eef8ff;
    border: 1px solid #dbeefd;
    padding: 0.35rem 0.85rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.comment-list .comment-reply-link:hover {
    background-color: #4db2ec;
    border-color: #4db2ec;
    color: #ffffff;
}

/* Nested / threaded replies */
.comment-list .children {
    list-style: none;
    margin-top: 1rem;
    padding-left: 1.5rem;
    border-left: 2px solid #eef8ff;
}

/* Post-author badge */
.comment-list .bypostauthor .comment-author .fn::after {
    content: "Author";
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #ffffff;
    background-color: #4db2ec;
    padding: 0.1rem 0.45rem;
    border-radius: 0.3rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Highlighted / targeted comment (matches existing rule, kept for consistency) */
.comment-list li:target > .comment-body {
    border-color: #4db2ec;
    box-shadow: 0 0 0 3px rgba(77, 178, 236, 0.2);
}


/* ============================
   CTA : Call To Action
   ============================ */
.gean-cta {
    position: relative;
    border-radius: 16px;
    background-color: #0b1929;
    padding: 2.5rem 1.5rem;
    margin: 2.5rem 0;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid #4db2ec;
}

.gean-cta__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #4db2ec;
    position: relative;
    z-index: 1;
}

.gean-cta__title {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 0 0 0.6rem;
    position: relative;
    z-index: 1;
}

.gean-cta__text {
    color: white !important;
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto 1.75rem;
    position: relative;
    z-index: 1;
}

.gean-cta__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    position: relative;
    z-index: 1;
}

.gean-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.gean-cta__btn--primary {
    background-color: #4db2ec;
    color: #ffffff;
}

.gean-cta__btn--primary:hover {
    background-color: #218ac8;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -6px rgba(77, 178, 236, 0.55);
}

.gean-cta__btn--ghost {
    background-color: transparent;
    color: #eef8ff;
    border: 1px solid rgba(238, 248, 255, 0.35);
}

.gean-cta__btn--ghost:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(238, 248, 255, 0.6);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .gean-cta { padding: 2rem 1.25rem; }
    .gean-cta__title { font-size: 1.25rem; }
    .gean-cta__actions { flex-direction: column; }
    .gean-cta__btn { width: 100%; justify-content: center; }
}