/*
Theme Name: ComputaNetworksTheme
Theme URI: https://computanetworks.com
Author: deetronix
Author URI: https://computanetworks.com
Description: Custom WordPress theme built from scratch.
Version: 1.0
*/

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* ===== Main Navigation ===== */

article {
    padding: 10px 0 20px    0;
}
.main-menu  {
    
    list-style: none;   /* remove bullets */
    margin: 0;
    padding: 0;
    justify-content: center;
    display: flex;
    gap: 25px;
}
.main-menu ul {
    list-style: none;   /* remove bullets */
    margin: 0;
    padding: 0;

}

.main-menu li {
    margin: 0;
    padding: 0;
}

.main-menu li a {
    text-decoration: none;   /* remove underline */
    color: #f5f5ff; /* smoky white */
    font-weight: 600;
    font-size: 16px;
    padding: 6px 0;
    transition: color 0.2s ease;

}

.main-menu li a:hover {
    color: #38bdf8;
}

/* Active menu item */
.main-menu .current-menu-item > a {
    color: #38bdf8;
    border-bottom: 2px solid #38bdf8;
}
/* Header wrapper */
.site-header {
    background: rgb(72, 72, 72);
    border-bottom: 1px solid #eee;
}

/* Flex container for title + menu */
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #f5f5f5;
}

/* Title */
.site-title {
    font-size: 22px;
    font-weight: 700;
    color: #E0F2FE;
    text-decoration: none;
    white-space: nowrap;
    background: linear-gradient(180deg, rgb(245, 136, 58), chocolate, rgb(197, 91, 14));
    padding: 6px 12px;
    border-radius: 4px;
    
}

/* Do NOT change your menu flex here */
.site-nav {
    color: #f5f5f5  ; /* smoky white */
	display:flex;
}
.site-nav, .site-header
{
background: rgb(72, 72, 72);
}

/* Top stripe above menu */
.site-header::before {
    content: "";
    display: block;
    height: 6px;              /* stripe thickness */
    background: #f4f4f4;     /* your brand color */
}
/* Front page layout based on viewport height */

#computa-home {
    min-height: 100vh;
}

/* 20% white spaces */
.cq-space {
    height: 20vh;   /* 20% of viewport height */
    background: #ffffff;
}

/* 40% black stripe */
.cq-stripe {
    height: 40vh;   /* 40% of viewport height */
    background-color: #3f6d82;
    color: #f5f5f5;
    display: flex;
    flex-direction:column; 
    align-items:center; 
    justify-content:center; 
    text-align:center;
}

.cq-stripe h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

/* ===== Footer Styling ===== */

.site-footer {
    height: 10vh;
    background: chocolate;
    color: #f5f5f5; /* smoky white */
    
    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    font-size: 14px;
}

/* Front page template styling */
#computa-home {
    min-height: 100vh;
}

.wp-block-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wp-block-button__link {
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 4px;
}

.cq-top-space {
    height: 20vh !important;
}

.cq-bottom-space {
    height: 20vh !important;
}

.site-main {
    flex: 3;
    min-width: 0;
}


@media (max-width: 900px) {
    
    .site-nav {
        display: block; /* Disable sticky on mobile for better scrolling */
        width: 100%;
    }
}
/*===== Optimized Layout with Sticky Sidebars ===== */
.layout-both-sidebars {
    display: flex;
    gap: 30px; /* Increased gap for better breathing room */
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    align-items: flex-start; /* Required for sticky to work correctly */
}

.site-sidebar {
    flex: 0 0 280px; /* Fixed width basis for consistency */
    background: #fdfbfc;
    color: #0f0101;
    border-radius: 8px;
    padding: 15px;
    
    /* Make Sidebar Sticky */
    position: sticky;
    top: 20px; /* Distance from top of viewport when scrolling */
    height: fit-content;
}

.sidebar-search {
    margin-bottom: 25px;
}

/* Grouped shared list styles */
.cq-quiz-sidebar,
.latest-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Added gap between list items */
.cq-quiz-sidebar li,
.latest-post-list li, .C li {
    margin-bottom: 15px; /* Noticeable gap between items */
    line-height: 1;
}

.cq-quiz-sidebar a,
.latest-post-list a , .C a {
    text-decoration: none;
    color: rgb(72, 72, 72);
    font-size: 18px; /* Slightly reduced from 21px for better hierarchy */
    transition: color 0.2s ease;
}

.cq-quiz-sidebar a:hover,
.latest-post-list a:hover {
    color: #007bff; /* Visual feedback on hover */
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .layout-both-sidebars {
        flex-direction: column;
    }
    
    .site-sidebar {
        position: static; /* Disable sticky on mobile for better scrolling */
        flex: 1 1 auto;
        width: 100%;
    }
}

/* ===== Contact Page Layout ===== */
.contact-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Gutenberg intro content */
.contact-content {
    margin-bottom: 40px;
}

/* ===== Form Box ===== */
.contact-form-section {
    background: #fbfbfa; /* chocolate */
    padding: 35px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    color: #ca1010; /* smoky white */
}

.contact-form-section h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
    color: #1a0101;
}

/* ===== Form Fields ===== */
.contact-form p {
    margin-bottom: 18px;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #130101;

}

.contact-form input,
.contact-form textarea {
    width: 95%;
    padding: 12px 14px;
    border-radius: 6px;
    border: 2px solid #ddd;
    outline: none;
    font-size: 15px;
    background: #fff;
    color: #333;
    transition: box-shadow 0.2s ease;
  

}

.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
}

/* ===== Button ===== */
.contact-form button {
    background: #130d00; /* darker chocolate */
    color: #f3e7e7;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: #a0522d;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* ===== Response Message ===== */
.cf-response {
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
}



@media (max-width: 768px) {
        .contact-form-section {
        padding: 25px 20px;
    }
    .main-menu {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
        .cq-stripe h2 {
        font-size: 26px;
    }
}


/* ===== Blog List Styling ===== */
.blog-list-wrapper {
    max-width: 800px;
    margin: auto;
}

.blog-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.blog-title {
    margin-bottom: 5px;
}

.blog-title a {
    text-decoration: none;
    color: #222;
}

.blog-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.blog-meta span {
    margin-right: 12px;
}

.blog-excerpt {
    margin-bottom: 10px;
}

.read-more {
    color: #0073aa;
    font-weight: 600;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* ===== Single Post Styling ===== */

.single-post-wrapper {
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
}

.single-post-title {
    font-size: 32px;
    margin-bottom: 10px;
    line-height: 1.2;
    font-weight: 700;
}

.single-post-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 30px;
}

.single-post-meta span {
    margin-right: 15px;
}

.single-post-content {
    font-size: 18px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .single-post-wrapper {
        margin: 30px 15px;
    }

    .single-post-title {
        font-size: 26px;
    }

    .single-post-content {
        font-size: 16px;
    }
}



a:hover {
    color: #D2691E; /* Chocolate / lighter brown-red */
}
.site-branding a:hover{
    color: white; /* Chocolate / lighter brown-red */

}