/**
 * CCSOL Theme - Based on Underscores
 * Compatible with _s (Underscores) theme structure
 */

/* ==========================
   Import Underscores Base (if separate)
   ========================== */

body {
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* ==========================
   Typography
   ========================== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #222;
    clear: both;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus,
a:active {
    color: #004999;
}

/* ==========================
   Layout
   ========================== */

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#content {
    flex: 1;
}

.site-content {
    padding: 40px 0;
}

/* ==========================
   Top Bar
   ========================== */

.top-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 0;
    font-size: 14px;
}

.top-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.top-bar-left {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.top-bar-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.top-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.top-info i {
    color: #0066cc;
}

.top-info a {
    color: #666;
}

.top-info a:hover {
    color: #0066cc;
}

.top-bar-right a {
    color: #666;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.top-bar-right a:hover {
    color: #fff;
    background-color: #0066cc;
}

/* ==========================
   Header
   ========================== */

.site-header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    min-height: 80px;
}

/* ==========================
   Site Branding
   ========================== */

.site-branding {
    flex-shrink: 0;
    max-width: 300px;
}

.site-branding .custom-logo-link {
    display: inline-block;
}

.site-branding .custom-logo {
    max-height: 60px;
    width: auto;
    display: block;
}

.site-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.site-title a {
    color: #333;
    text-decoration: none;
}

.site-title a:hover,
.site-title a:focus {
    color: #0066cc;
}

.site-description {
    margin: 5px 0 0;
    font-size: 14px;
    color: #666;
}

/* ==========================
   Main Navigation - Underscores Compatible
   ========================== */

.main-navigation {
    display: block;
    position: relative;
}

/* Remove default underscores button styling */
.main-navigation .menu-toggle {
    display: none;
}

/* Desktop Menu - Horizontal */
.main-navigation ul {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media screen and (min-width: 37.5em) {
    .main-navigation ul {
        display: flex;
    }
}

.main-navigation.toggled ul {
    display: block;
}

@media screen and (min-width: 993px) {
    /* Force horizontal on desktop */
    .main-navigation ul {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
    }
    
    .main-navigation li {
        position: relative;
        margin: 0 18px;
    }
    
    .main-navigation li:first-child {
        margin-left: 0;
    }
    
    .main-navigation li:last-child {
        margin-right: 0;
    }
    
    .main-navigation a {
        display: block;
        padding: 10px 0;
        color: #333;
        text-decoration: none;
        font-weight: 500;
        font-size: 16px;
        white-space: nowrap;
    }
    
    .main-navigation a:hover,
    .main-navigation a:focus,
    .main-navigation .current_page_item > a,
    .main-navigation .current-menu-item > a,
    .main-navigation .current_page_ancestor > a,
    .main-navigation .current-menu-ancestor > a {
        color: #0066cc;
    }
    
    /* Dropdown Menus */
    .main-navigation ul ul {
        position: absolute;
        top: 100%;
        left: 0;
        display: none;
        flex-direction: column;
        background-color: #fff;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        min-width: 220px;
        padding: 10px 0;
        border-radius: 4px;
        z-index: 99999;
    }
    
    .main-navigation ul ul ul {
        left: 100%;
        top: 0;
    }
    
    .main-navigation ul ul li {
        margin: 0;
        width: 100%;
    }
    
    .main-navigation ul ul a {
        padding: 10px 20px;
        font-size: 15px;
        width: 100%;
    }
    
    .main-navigation ul ul a:hover,
    .main-navigation ul ul a:focus {
        background-color: #f8f9fa;
        color: #0066cc;
        padding-left: 25px;
    }
    
    .main-navigation li:hover > ul,
    .main-navigation li.focus > ul {
        display: flex;
    }
}

/* ==========================
   Mobile Menu Toggle
   ========================== */

.mobile-menu-toggle {
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

@media screen and (min-width: 993px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .menu-icon span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .menu-icon span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .menu-icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================
   Mobile Menu Styles
   ========================== */

@media screen and (max-width: 992px) {
    .main-navigation ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 85%;
        height: 100vh;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .main-navigation ul.active {
        right: 0;
    }
    
    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid #eee;
        margin: 0;
    }
    
    .main-navigation a {
        display: block;
        padding: 15px 0;
        color: #333;
        text-decoration: none;
        font-weight: 500;
    }
    
    .main-navigation a:hover,
    .main-navigation a:focus {
        color: #0066cc;
    }
    
    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        display: none;
        padding-left: 20px;
        background-color: #f8f9fa;
        width: 100%;
    }
    
    .main-navigation ul ul.toggled-on {
        display: block;
    }
}

/* ==========================
   Posts and Pages
   ========================== */

.sticky {
    display: block;
}

.post,
.page {
    margin: 0 0 1.5em;
}

.updated:not(.published) {
    display: none;
}

.page-content,
.entry-content,
.entry-summary {
    margin: 1.5em 0 0;
}

.page-links {
    clear: both;
    margin: 0 0 1.5em;
}

/* ==========================
   Blog Layout
   ========================== */

.posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.post-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content-card {
    padding: 25px;
}

.entry-header .entry-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.entry-header .entry-title a {
    color: #222;
    text-decoration: none;
}

.entry-header .entry-title a:hover {
    color: #0066cc;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.entry-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    font-size: 14px;
}

.read-more {
    display: inline-block;
    padding: 10px 24px;
    background-color: #0066cc;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #004999;
    color: #fff;
}

/* ==========================
   Comments
   ========================== */

.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e9ecef;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.comment-body {
    margin-bottom: 30px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.comment-author .avatar {
    border-radius: 50%;
    float: left;
    margin-right: 15px;
}

.comment-metadata {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.comment-metadata a {
    color: #666;
}

.comment-metadata a:hover {
    color: #0066cc;
}

.reply a {
    display: inline-block;
    padding: 8px 20px;
    background-color: #0066cc;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
}

.reply a:hover {
    background-color: #004999;
}

.comment-respond {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

.comment-form p {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #0066cc;
}

.comment-form textarea {
    min-height: 150px;
}

.form-submit input {
    padding: 12px 30px;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.form-submit input:hover {
    background-color: #004999;
}

/* ==========================
   Widgets
   ========================== */

.widget {
    background-color: #f8f9fa;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0066cc;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* ==========================
   Footer
   ========================== */

.site-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 0;
    margin-top: 80px;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widgets .widget {
    background-color: transparent;
    padding: 0;
}

.footer-widgets .widget-title {
    color: #fff;
    border-bottom-color: #0066cc;
}

.footer-widgets .widget a {
    color: #ccc;
}

.footer-widgets .widget a:hover {
    color: #fff;
}

.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    text-align: center;
    color: #ccc;
    font-size: 14px;
}

.site-info a {
    color: #ccc;
}

.site-info a:hover {
    color: #fff;
}

/* ==========================
   Pagination
   ========================== */

.pagination,
.posts-pagination,
.post-navigation,
.paging-navigation {
    clear: both;
    margin: 40px 0;
    text-align: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background-color: #f8f9fa;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: #0066cc;
    color: #fff;
}

/* ==========================
   Back to Top
   ========================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #004999;
    transform: translateY(-3px);
}

/* ==========================
   Responsive
   ========================== */

@media screen and (max-width: 768px) {
    .posts-container {
        grid-template-columns: 1fr;
    }
    
    .site-title {
        font-size: 24px;
    }
    
    .top-bar-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================
   Accessibility
   ========================== */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================
   Clearings
   ========================== */

.clear::before,
.clear::after,
.entry-content::before,
.entry-content::after,
.comment-content::before,
.comment-content::after,
.site-header::before,
.site-header::after,
.site-content::before,
.site-content::after,
.site-footer::before,
.site-footer::after {
    content: "";
    display: table;
    table-layout: fixed;
}

.clear::after,
.entry-content::after,
.comment-content::after,
.site-header::after,
.site-content::after,
.site-footer::after {
    clear: both;
}
/* =========================================================
   CCSOL GLOBAL LAYOUT PATCH
========================================================= */

:root{
    --ccsol-bg:#021924;
    --ccsol-bg2:#031f30;
    --ccsol-text:#e7edf5;
    --ccsol-muted:#93a4b8;
    --ccsol-accent:#0ea5ff;
    --ccsol-container:1400px;
}

/* Base */

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    padding:0;
    background:var(--ccsol-bg)!important;
    color:var(--ccsol-text)!important;
    overflow-x:hidden;
    font-family:'Inter',sans-serif;
}

/* Container */

.container,
.ccsol-container,
.site-content,
.site-main{
    width:min(100% - 40px,var(--ccsol-container));
    margin-inline:auto;
}

/* Section spacing */

section{
    position:relative;
    padding:90px 0;
}

@media(max-width:768px){

section{
    padding:65px 0;
}

}

/* Headings */

h1{
    font-size:clamp(2rem,5vw,4rem);
}

h2{
    font-size:clamp(1.8rem,4vw,2.8rem);
}

h3{
    font-size:clamp(1.2rem,3vw,1.8rem);
}

p{
    line-height:1.8;
    color:var(--ccsol-muted);
}

/* Cards */

[class*="card"],
[class*="box"]{

    border-radius:18px;
    overflow:hidden;
    transition:.35s;
}

[class*="card"]:hover,
[class*="box"]:hover{

transform:translateY(-6px);

}
/* =========================================================
   CCSOL SAFE GLOBAL PATCH
========================================================= */

:root{
    --ccsol-container:1400px;
}

/* Base */

body{
    overflow-x:hidden;
}

/* Container only */

.container,
.ccsol-container{
    width:min(100% - 40px,var(--ccsol-container));
    margin-inline:auto;
}

/* Headings */

h1{
    font-size:clamp(2rem,5vw,4rem);
}

h2{
    font-size:clamp(1.8rem,4vw,2.8rem);
}

h3{
    font-size:clamp(1.2rem,3vw,1.8rem);
}

/* Remove aggressive section overrides */
section{
    padding:unset;
}

/* Remove generic card overrides */
[class*="card"],
[class*="box"]{
    transform:none;
}
/* =========================================================
   CCSOL GLOBAL BREADCRUMBS
   Shared page-level breadcrumb styling
========================================================= */

.ccsol-breadcrumbs {
    width:100%;
    background:#f5f8fc;
    border-bottom:1px solid #e4eaf2;
    padding:14px 0;
}

.ccsol-breadcrumbs .ccsol-container {
    width:100%;
    max-width:1400px;
    margin:0 auto;
    padding:0 1.5rem;
    box-sizing:border-box;
}

.ccsol-breadcrumbs .breadcrumb-list {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:0;
    margin:0;
    padding:0;
    list-style:none;
    font-size:14px;
    line-height:1.5;
}

.ccsol-breadcrumbs .breadcrumb-list li {
    display:flex;
    align-items:center;
}

.ccsol-breadcrumbs a {
    color:#0b5cff;
    text-decoration:none;
    font-weight:400;
}

.ccsol-breadcrumbs a:hover {
    color:#0847c7;
}

.ccsol-breadcrumbs .separator {
    margin:0 9px;
    color:#64748b;
}

.ccsol-breadcrumbs .current {
    color:#64748b;
    font-weight:400;
}

@media (max-width:767px) {

    .ccsol-breadcrumbs {
        padding:14px 0;
    }

    .ccsol-breadcrumbs .ccsol-container {
        padding:0 1rem;
    }

    .ccsol-breadcrumbs .breadcrumb-list {
        font-size:14px;
    }

    .ccsol-breadcrumbs .separator {
        margin:0 8px;
    }

}
