
/*
Theme Name: Computer Repair Elementor
Theme URI: https://webxthemes.com/product/free-computer-repair-wordpress-theme/
Author: patrickoslo
Author URI: https://webxthemes.com
Description: Computer Repair WordPress Theme customized for Y2Q Secure.
Version: 1.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: computer-repair-elementor
Tags: blog, custom-background, custom-logo, custom-menu
*/

/* ==========================================
   1. RESET AND BASIC STYLES
========================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #007bff;
    text-decoration: underline;
}

a:hover {
    color: #0056b3;
    text-decoration: none;
}

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

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pce-home-page {
    overflow: hidden;
}

/* ==========================================
   2. WORDPRESS IMAGE CAPTIONS
========================================== */

.wp-caption {
    max-width: 100%;
    margin-bottom: 1em;
    text-align: center;
    background: #f9f9f9;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.wp-caption img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.wp-caption-text {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

.gallery-caption {
    font-size: 14px;
    color: #777;
    text-align: center;
    margin-top: 5px;
}

.bypostauthor {
    border-left: 3px solid #0073aa;
    padding-left: 10px;
}

.alignright {
    float: right;
    margin-left: 15px;
    margin-bottom: 10px;
}

.alignleft {
    float: left;
    margin-right: 15px;
    margin-bottom: 10px;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

/* ==========================================
   3. PAGINATION
========================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    font-size: 16px;
    color: #000;
    background-color: #fff;
    border: 1px solid #007bff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
}

.pagination .page-numbers.current {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
}

.pagination .page-numbers:not(.current):hover {
    background-color: #007bff;
    color: #fff;
}

.pagination .prev,
.pagination .next {
    display: none;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    overflow: visible;
}

/* ==========================================
   4. Y2Q SECURE PREMIUM HEADER
========================================== */

#masthead {
    position: relative;
    z-index: 9999;
    width: 100%;
    background: rgba(8, 11, 18, 0.94) !important;
    border-bottom: 2px solid #E32636 !important;
    padding: 0;

    /* Glass effect */
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);

    /* Premium shadow */
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.35),
        0 2px 12px rgba(227, 38, 54, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    transition: all 0.3s ease;
}

/* Header top highlight */

#masthead::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.35),
        rgba(227,38,54,0.65),
        transparent
    );
    pointer-events: none;
}

#masthead .container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    min-height: 82px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

#masthead a {
    text-decoration: none;
}

/* ==========================================
   5. LOGO AND SITE BRANDING
========================================== */

.site-branding {
    display: flex;
    align-items: center;
    padding: 5px 0 !important;
    margin: 0;
    min-height: 0 !important;
    flex-shrink: 0;
}

.site-branding .site-logo,
.site-branding .site-details {
    display: inline-block;
    vertical-align: middle;
}

.site-branding .site-logo {
    margin-right: 12px;
}

.site-branding img {
    display: block;
    width: auto !important;
    height: 55px !important;
    max-width: 180px !important;
    object-fit: contain !important;
}

.site-branding .site-title,
.site-branding .site-title a {
    margin-bottom: 0;
    font-size: 26px;
    font-weight: 600;
    color: #FFFFFF !important;
}

.site-description {
    margin: 0;
    color: #FFFFFF !important;
}

/* ==========================================
   6. DESKTOP NAVIGATION
========================================== */

.main-navigation {
    display: flex;
    align-items: center;
    float: none !important;
    margin: 0 !important;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu li {
    position: relative;
    list-style: none;
    transition: background 0.3s ease;
}

.nav-menu > li {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 12px 11px !important;
    color: #FFFFFF !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.2px;
    text-transform: capitalize;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-menu li a {
    color: #FFFFFF !important;
}

/* Navigation hover and active */

.nav-menu > li > a:hover,
.nav-menu li.current-menu-item > a,
.nav-menu li.current_page_item > a,
.nav-menu li.current-menu-ancestor > a {
    color: #E32636 !important;
}

/* Dropdown arrow */

.main-navigation > ul > li.menu-item-has-children > a:after {
    content: "";
    border-style: solid;
    border-width: 0 1px 1px 0;
    border-color: #FFFFFF;
    height: 6px;
    width: 6px;
    display: inline-block;
    transform: rotate(45deg);
    margin-left: 9px;
    margin-top: -4px;
}

/* ==========================================
   7. DROPDOWN MENU
========================================== */

.nav-menu ul {
    position: absolute;
    left: -9999px;
}

.nav-menu li > ul {
    padding: 12px 0;
    margin: 0;
    background: #080B12 !important;
    min-width: 220px;
    z-index: 1000;
    border: 1px solid #333333;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.nav-menu li:hover > ul,
.nav-menu li.focus > ul {
    left: auto;
}

.main-navigation ul ul li {
    display: block;
    margin: 0;
    padding: 0;
}

.main-navigation ul ul li a {
    display: block;
    padding: 10px 18px;
    color: #FFFFFF !important;
    font-size: 14px;
    background: transparent !important;
    white-space: normal;
}

.main-navigation ul ul li a:hover {
    color: #E32636 !important;
    background: #191919 !important;
}

.main-navigation ul ul li.menu-item-has-children > a:after {
    content: "";
    position: absolute;
    top: 18px;
    right: 12px;
    width: 7px;
    height: 7px;
    border-right: 1px solid #FFFFFF;
    border-bottom: 1px solid #FFFFFF;
    transform: rotate(-45deg);
}

.main-navigation li > ul ul {
    top: 0;
    left: 100%;
    margin: 0;
}

.nav-menu > li.menu-item-has-children > ul {
    opacity: 0;
    visibility: hidden;
    margin-top: 10px;
    transition: all 0.25s ease;
}

.nav-menu > li.menu-item-has-children:hover > ul,
.nav-menu > li.menu-item-has-children.focus > ul {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

.attr-nav {
    float: right;
}

.attr-nav .submenu-button:after {
    content: none;
}

.attr-nav > ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: inline-block;
    vertical-align: top;
}

.attr-nav > ul:last-child {
    margin-left: 25px;
}

/* ==========================================
   8. NAVIGATION PAGINATION
========================================== */

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
    margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
    display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
    flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
    text-align: end;
    flex: 1 0 50%;
}

/* ==========================================
   9. DESKTOP AND STICKY HEADER
========================================== */

@media screen and (min-width: 1024px) {

    .menu-sticky #masthead {
        position: sticky;
        top: 0;
        background: rgba(8, 11, 18, 0.94) !important;
    }

    .customize-support.menu-sticky #masthead {
        top: 32px;
    }

    .blog-archive .entry-title {
        font-size: 32px;
    }

    .single .entry-title {
        font-size: 62px;
    }
}

@media screen and (min-width: 993px) {

    .main-navigation {
        float: none;
        margin: 0;
    }

    .nav-menu {
        display: flex !important;
    }

    .submenu-button,
    .main-navigation-toggle {
        display: none;
    }
}

/* ==========================================
   10. TABLET AND MOBILE NAVIGATION
========================================== */

@media screen and (max-width: 992px) {

    #masthead {
        background: rgba(8, 11, 18, 0.97) !important;
    }

    #masthead .container {
        min-height: 72px;
        padding: 0 15px;
        gap: 10px;
    }

    .site-branding {
        padding: 5px 0 !important;
    }

    .site-branding img {
        height: 48px !important;
        max-width: 155px !important;
    }

    .main-navigation {
        float: none;
        margin: 0;
    }

    /* Mobile menu toggle */

    .main-navigation-toggle {
        display: block;
        background: #E32636;
        width: 42px;
        height: 38px;
        padding: 0;
        border-radius: 4px;
        position: relative;
        cursor: pointer;
        z-index: 1001;
        border: none;
    }

    .main-navigation-toggle:hover,
    .main-navigation-toggle:focus {
        background-color: #B91C2C;
    }

    .main-navigation-toggle:after {
        content: "";
        position: absolute;
        top: 17px;
        right: 10px;
        height: 8px;
        width: 20px;
        border-top: 2px solid #FFFFFF;
        border-bottom: 2px solid #FFFFFF;
    }

    .main-navigation-toggle:before {
        content: "";
        position: absolute;
        top: 11px;
        right: 10px;
        height: 2px;
        width: 20px;
        background: #FFFFFF;
    }

    .main-navigation-toggle.menu-opened:after {
        top: 17px;
        border: 0;
        height: 2px;
        width: 19px;
        background: #FFFFFF;
        transform: rotate(45deg);
    }

    .main-navigation-toggle.menu-opened:before {
        top: 17px;
        width: 19px;
        transform: rotate(-45deg);
    }

    /* Mobile menu panel */

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 0 !important;
        margin: 0;
        background: #080B12 !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.3);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        z-index: 1000;
    }

    .nav-menu li {
        display: block;
        width: 100%;
        padding: 0;
        margin: 0;
        border-top: 1px solid #292929;
    }

    .nav-menu > li > a {
        display: block;
        width: 100%;
        min-height: 0;
        padding: 13px 20px !important;
        color: #FFFFFF !important;
        font-size: 15px;
    }

    .nav-menu > li > a:hover,
    .nav-menu li.current-menu-item > a {
        color: #E32636 !important;
    }

    /* Mobile dropdown */

    .nav-menu li > ul {
        display: none;
        position: relative;
        left: 0;
        top: auto;
        width: 100%;
        min-width: 0;
        padding: 0;
        margin: 0;
        opacity: 1;
        visibility: visible;
        background: #111722 !important;
        box-shadow: none;
        border: none;
    }

    .nav-menu li:hover > ul,
    .nav-menu li.focus > ul {
        left: 0;
    }

    .nav-menu ul li {
        border-top: 1px solid #292929;
    }

    .nav-menu ul li a {
        padding: 10px 30px;
        color: #FFFFFF !important;
    }

    .main-navigation li > ul ul {
        position: relative;
        left: 0;
        top: auto;
        margin: 0;
        width: 100%;
    }

    /* Submenu toggle */

    .nav-menu .submenu-button {
        position: absolute;
        z-index: 99;
        right: 0;
        top: 0;
        padding: 0;
        display: block;
        width: 45px;
        height: 47px;
        cursor: pointer;
        background-color: transparent;
        border: none;
    }

    .nav-menu .submenu-button:after {
        content: "";
        position: absolute;
        top: 22px;
        right: 17px;
        width: 8px;
        height: 2px;
        background: #FFFFFF;
    }

    .nav-menu .submenu-button:before {
        content: "";
        position: absolute;
        top: 19px;
        right: 20px;
        width: 2px;
        height: 8px;
        background: #FFFFFF;
    }

    .nav-menu .menu-item-has-children.active > .submenu-button:before {
        display: none;
    }

    .nav-menu .menu-item-has-children .menu-item-has-children .submenu-button {
        height: 47px;
    }

    .nav-menu .menu-item-has-children .menu-item-has-children .submenu-button:after {
        top: 22px;
    }

    .nav-menu .menu-item-has-children .menu-item-has-children .submenu-button:before {
        top: 19px;
    }

    .nav-menu ul ul ul li a {
        padding-left: 45px;
    }

    .nav-menu ul ul ul ul li a {
        padding-left: 55px;
    }
}

/* ==========================================
   11. SMALL MOBILE SCREENS
========================================== */

@media screen and (max-width: 480px) {

    #masthead .container {
        min-height: 66px;
        padding: 0 12px;
    }

    .site-branding img {
        height: 43px !important;
        max-width: 135px !important;
    }

    .main-navigation-toggle {
        width: 40px;
        height: 36px;
    }
}

/* ==========================================
   12. ELEMENTOR HEADER COMPATIBILITY
========================================== */

.elementor-location-header {
    background-color: #080B12 !important;
    border-bottom: 2px solid #E32636 !important;
}

.elementor-location-header .elementor-nav-menu--main .elementor-item {
    color: #FFFFFF !important;
    transition: color 0.3s ease;
}

.elementor-location-header .elementor-nav-menu--main .elementor-item:hover,
.elementor-location-header .elementor-nav-menu--main .elementor-item.elementor-item-active {
    color: #E32636 !important;
}

.elementor-location-header .elementor-nav-menu--dropdown {
    background-color: #080B12 !important;
}

.elementor-location-header .elementor-nav-menu--dropdown a {
    color: #FFFFFF !important;
}

.elementor-location-header .elementor-nav-menu--dropdown a:hover {
    color: #E32636 !important;
}

/* ==========================================
   13. Y2Q SECURE – GLOBAL TEXT STYLING
========================================== */

/* Main headings */

body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
    color: #FFFFFF !important;
}

/* Paragraphs */

body p {
    color: #D1D5DB;
}

/* Lists */

body li {
    color: #D1D5DB;
}

/* General strong text */

body strong {
    color: #FFFFFF;
}

/* Main content links */

body .entry-content a {
    color: #FFFFFF;
}

body .entry-content a:hover {
    color: #E32636;
}

/* Blog content */

.entry-title,
.entry-title a,
.entry-content,
.entry-content p,
.entry-content li,
.entry-meta,
.entry-meta a {
    color: #FFFFFF !important;
}

/* Footer */

.site-footer,
.site-footer p,
.site-footer h2,
.site-footer h3,
.site-footer a {
    color: #FFFFFF !important;
}

/* Elementor content */

.elementor-widget-heading .elementor-heading-title {
    color: #FFFFFF !important;
}

.elementor-widget-text-editor,
.elementor-widget-text-editor p {
    color: #D1D5DB !important;
}

/* Form fields */

input,
textarea,
select {
    color: #FFFFFF !important;
}

/* ==========================================
   14. Y2Q SECURE – FINAL HEADER TEXT FIX
========================================== */

/* Header logo and title */

html body #masthead .site-title,
html body #masthead .site-title a,
html body #masthead .site-branding,
html body #masthead .site-branding a,
html body #masthead .site-description {
    color: #FFFFFF !important;
}

/* Header navigation */

html body #masthead .main-navigation .nav-menu > li > a,
html body #masthead .main-navigation .nav-menu li a {
    color: #FFFFFF !important;
}

/* Dropdown navigation */

html body #masthead .nav-menu li ul a {
    color: #FFFFFF !important;
}

/* Header hover and active links */

html body #masthead .nav-menu li > a:hover,
html body #masthead .nav-menu li.current-menu-item > a,
html body #masthead .nav-menu li.current_page_item > a,
html body #masthead .nav-menu li.current-menu-ancestor > a {
    color: #E32636 !important;
}

/* Dropdown arrows */

html body #masthead .menu-item-has-children > a:after {
    border-color: #FFFFFF !important;
}

/* Mobile toggle */

html body #masthead .main-navigation-toggle {
    color: #FFFFFF !important;
}

/* Elementor header text */

html body .elementor-location-header .elementor-nav-menu a {
    color: #FFFFFF !important;
}

html body .elementor-location-header .elementor-nav-menu a:hover {
    color: #E32636 !important;
}

/* ==========================================
   END OF Y2Q SECURE CUSTOM STYLES
========================================== */
