/*
Theme Name: Crosslinks Consults
Theme URI: https://crosslinksconsults.com
Author: Arthur Kintu
Author URI: https://kintuarthur.com
Description: A modern professional consulting WordPress theme with blue tech color scheme, designed for Crosslinks Consults
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: crosslinks
Tags: consulting, business, responsive, custom-header, professional
*/

:root {
    --primary-blue: #0066CC;
    --dark-blue: #1e293b;
    --light-blue: #3399FF;
    --accent-blue: #0ea5e9;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --gray-bg: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar with Diagonal Accent */
.top-bar {
    background: var(--dark-blue);
    color: var(--white);
    padding: 12px 0;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

/* Diagonal Blue Accent - Slanting from right */
.top-bar-angle {
    position: absolute;
    top: 0;
    right: 0;
    width: 35%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    transform: skewX(-15deg);
    transform-origin: top right;
    z-index: 0;
}

/* Adjust for the skew effect */
.top-bar-angle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50px;
    width: 100px;
    height: 100%;
    background: inherit;
}

.top-bar .container {
    position: relative;
    z-index: 1;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-left {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-item i {
    color: var(--accent-blue);
}

.top-bar-item a {
    color: var(--white);
}

.top-bar-item a:hover {
    color: var(--accent-blue);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    font-size: 16px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-blue);
}

.language-selector {
    background: rgba(255,255,255,0.1);
    padding: 6px 15px;
    border-radius: 3px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.language-selector:hover {
    background: rgba(255,255,255,0.15);
}

/* Main Header */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-logo img {
    height: 60px;
    width: auto;
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-blue);
}

.logo-tagline {
    font-size: 12px;
    color: var(--text-light);
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 40px;
}

.main-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 10px 0;
    display: inline-block;
}

.main-menu > li > a:hover {
    color: var(--primary-blue);
}

.menu-item-has-children > a::after {
    content: '+';
    margin-left: 5px;
    font-weight: bold;
}

/* Dropdown Menu */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 10px 0;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li a {
    padding: 10px 20px;
    display: block;
    color: var(--text-dark);
}

.sub-menu li a:hover {
    background: var(--gray-bg);
    color: var(--primary-blue);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-icon, .cart-icon {
    font-size: 20px;
    cursor: pointer;
    color: var(--text-dark);
    position: relative;
}

.search-icon:hover, .cart-icon:hover {
    color: var(--primary-blue);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-blue);
    color: var(--white);
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* CTA Button - Standing Out */
.cta-button {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--primary-blue) 100%);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

/* Main Content */
.site-content {
    padding: 40px 0;
}

/* Content Layout */
.content-area {
    flex: 1;
    padding-right: 40px;
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
}

.site-content .container {
    display: flex;
    gap: 40px;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.post-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.post-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.post-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta i {
    color: var(--primary-blue);
}

.post-title {
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-title a {
    color: var(--text-dark);
}

.post-title a:hover {
    color: var(--primary-blue);
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more:hover {
    color: var(--dark-blue);
}

/* Single Post/Page */
.single-post, .single-page {
    background: var(--white);
    padding: 5px;
    border-radius: 8px;
}

.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.entry-content {
    line-height: 1.8;
    color: var(--text-dark);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin: 30px 0 15px;
    color: var(--text-dark);
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content img {
    border-radius: 8px;
    margin: 20px 0;
}

.entry-content ul,
.entry-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.entry-content li {
    margin-bottom: 10px;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 51, 122, 0.95);
    padding: 100px 20px;
    z-index: 9999;
}

.search-overlay .container {
    max-width: 800px;
    position: relative;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-field {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
}

.search-submit {
    background: var(--accent-blue);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
}

.search-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 2px solid var(--primary-blue);
    border-radius: 5px;
    color: var(--primary-blue);
    transition: all 0.3s;
}

.pagination a:hover,
.pagination .current {
    background: var(--primary-blue);
    color: var(--white);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--dark-blue);
    transform: translateY(-5px);
}

/* Widgets */
.widget {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-blue);
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-bg);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
}

.widget ul li a:hover {
    color: var(--primary-blue);
}

/* Footer */
.site-footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 0;  /* Remove all padding */
    margin-top: 0;  /* Remove top margin if you don't want the gap above */
    margin-bottom: 0;  /* Ensure no bottom margin */
}

.footer-widgets {
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-widget-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-widget {
    color: var(--white);
}

.footer-widget .widget-title {
    color: var(--white);
    border-color: var(--accent-blue);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.designer-credit a {
    color: var(--accent-blue);
    font-weight: 600;
}

.designer-credit a:hover {
    color: var(--light-blue);
}

/* Responsive */
@media (max-width: 1024px) {
    .main-menu {
        gap: 20px;
    }
    
    .header-content {
        gap: 20px;
    }
    
    .site-content .container {
        flex-direction: column;
    }
    
    .content-area {
        padding-right: 0;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .top-bar-angle {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .top-bar-left {
        flex-direction: column;
        gap: 10px;
    }
    
    .top-bar-angle {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        display: none;
    }
    
    .main-navigation.active {
        display: flex;
    }
    
    .main-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .main-menu li {
        width: 100%;
        border-bottom: 1px solid var(--gray-bg);
    }
    
    .main-menu li a {
        padding: 15px 10px;
        display: block;
    }
    
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--gray-bg);
        display: none;
    }
    
    .menu-item-has-children.active .sub-menu {
        display: block;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
        padding-top: 20px;
        border-top: 1px solid var(--gray-bg);
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .single-post, .single-page {
        padding: 20px;
    }
    
    .entry-title {
        font-size: 28px;
    }
}


/* Full Width Page Template */
.full-width-page {
    padding: 0;
    background: transparent;
}

.full-width-page .entry-content {
    width: 100%;
    max-width: 100%;
}

.full-width-page .entry-content > * {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Allow Elementor sections to be full-width */
.full-width-page .entry-content > .elementor,
.full-width-page .entry-content > .elementor-section-stretched {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}




.contact-info-widget {
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent black overlay for readability on patterned bg */
    backdrop-filter: blur(4px); /* Nice subtle blur effect – modern and elegant */
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Very subtle white border */
    margin-bottom: 20px;
}

.contact-info-widget .widget-title { /* Targets the title "Contact Info" */
    color: #ffffff;
    border-bottom: 2px solid #0073aa; /* Match your blue accent, or change to your primary color */
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 20px;
}

.contact-info-widget .contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-info-widget .contact-item {
    display: flex;
    align-items: flex-start;
    padding: 14px 0;
    color: #e0e0e0; /* Light gray text for good contrast */
    font-size: 15px;
    line-height: 1.7;
}

.contact-info-widget .contact-item:not(:last-child) {
    border-bottom: 1px dotted rgba(255, 255, 255, 0.2); /* Light dotted separator */
}

.contact-info-widget .contact-item i {
    font-size: 22px;
    width: 40px;
    color: #0073aa; /* Your blue accent – stands out nicely */
    flex-shrink: 0;
    margin-top: 4px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-info-widget .contact-item:hover i {
    color: #ffffff;
    transform: scale(1.1);
}

.contact-info-widget .contact-text {
    flex: 1;
    margin-left: 10px;
}

.contact-info-widget .contact-text a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-widget .contact-text a:hover {
    color: #ffffff;
    text-decoration: underline;
}


/* Footer Styling */
.site-footer a {
    color: #1ac6ff;
    text-decoration: none;
}
.site-footer a:hover {
    text-decoration: underline;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-menu li {
    display: inline-block;
    margin: 0 15px;
}
.footer-menu a {
    color: #ffffff;
    font-size: 14px;
}