/*
 * HostMeNow Custom Theme Styles
 * Overrides the default blog theme to match HostMeNow branding
 */

/* Blue Background Theme */
html {
    background: #2178EC !important;
}
body {
    background: #2178EC !important;
    background-color: #2178EC !important;
    color: #ffffff !important;
}

/* Header Styles */
.header {
    background: #ffffff !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

.header .name a {
    color: #000000 !important;
}

.header .desc {
    color: #666666 !important;
}

.header .navbar-nav > li > a {
    color: #333333 !important;
}

.header .navbar-nav > li > a:hover {
    color: #2178EC !important;
}

/* Logo Fixes - High Priority */
body .header .logo,
html .header .logo {
    width: auto !important;
    height: auto !important;
    border-radius: 0px !important;
    overflow: visible !important;
    margin-right: 20px !important;
    -webkit-border-radius: 0px !important;
    -moz-border-radius: 0px !important;
}

body .header .logo-image,
html .header .logo-image {
    width: auto !important;
    height: 50px !important;
    max-width: 200px !important;
    border-radius: 0px !important;
    -webkit-border-radius: 0px !important;
    -moz-border-radius: 0px !important;
}

/* Navigation and Button Layout Fixes */
.header .main-nav {
    display: flex !important;
    align-items: center !important;
}

.header .navbar-nav {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.header .navbar-nav > li {
    display: flex !important;
    align-items: center !important;
}

/* ULTRA HIGH PRIORITY - Button and Navigation Fixes */
body .header .navbar-nav > li .btn-cta-primary,
html .header .navbar-nav > li .btn-cta-primary,
.header .navbar-nav .btn-cta-primary,
.navbar-nav .btn-cta-primary,
a.btn-cta-primary,
.btn-cta-primary {
    background: #2178EC !important;
    background-color: #2178EC !important;
    border-color: #2178EC !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    margin-left: 10px !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    display: inline-block !important;
    line-height: 1.4 !important;
    vertical-align: middle !important;
    float: none !important;
    position: relative !important;
    top: 0px !important;
    transform: translateY(0px) !important;
    text-decoration: none !important;
}

/* Force text color for all button states */
.btn-cta-primary,
.btn-cta-primary:link,
.btn-cta-primary:visited,
.btn-cta-primary:active,
a.btn-cta-primary,
a.btn-cta-primary:link,
a.btn-cta-primary:visited,
a.btn-cta-primary:active {
    color: #ffffff !important;
}

body .header .navbar-nav > li .btn-cta-primary:hover,
html .header .navbar-nav > li .btn-cta-primary:hover,
.btn-cta-primary:hover,
a.btn-cta-primary:hover,
.btn-cta-primary:hover *,
a.btn-cta-primary:hover * {
    background: #1a5fb8 !important;
    border-color: #1a5fb8 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Content Sections */
.sections-wrapper {
    background: #2178EC !important;
}

.section {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
}

.section-inner {
    color: #333333 !important;
}

.section h1, .section h2, .section h3, .section h4, .section h5, .section h6 {
    color: #000000 !important;
}

.section .title a {
    color: #000000 !important;
}

.section .title a:hover {
    color: #2178EC !important;
}

.section .meta {
    color: #666666 !important;
}

.section .meta a {
    color: #2178EC !important;
}

.section .desc {
    color: #555555 !important;
}

/* Sidebar Styles */
.aside {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
}

.aside .heading {
    color: #000000 !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

.aside .content {
    color: #555555 !important;
}

.aside .content a {
    color: #2178EC !important;
}

.aside .content a:hover {
    color: #1a5fb8 !important;
}

.aside .item .title a {
    color: #000000 !important;
}

.aside .item .title a:hover {
    color: #2178EC !important;
}

.aside .more-link {
    color: #2178EC !important;
}

/* Navigation Tabs */
.nav-tabs {
    border-bottom: 1px solid #e0e0e0 !important;
}

.nav-tabs > li > a {
    color: #555555 !important;
    background: #f8f9fa !important;
    border: 1px solid #e0e0e0 !important;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    color: #ffffff !important;
    background: #2178EC !important;
    border: 1px solid #2178EC !important;
}

.nav-tabs > li > a:hover {
    background: rgba(33, 120, 236, 0.1) !important;
    border: 1px solid #2178EC !important;
}

/* Tag Cloud */
.tagcloud a {
    background: #f8f9fa !important;
    color: #555555 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    padding: 4px 8px !important;
    margin: 2px !important;
    display: inline-block !important;
    text-decoration: none !important;
}

.tagcloud a:hover {
    background: #2178EC !important;
    color: #ffffff !important;
    border-color: #2178EC !important;
}

/* Archive and Category Lists */
.archive ul, .category-list ul {
    list-style: none !important;
    padding: 0 !important;
}

.archive ul li, .category-list ul li {
    padding: 5px 0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

.archive ul li a, .category-list ul li a {
    color: #555555 !important;
    text-decoration: none !important;
}

.archive ul li a:hover, .category-list ul li a:hover {
    color: #2178EC !important;
}

/* Footer Styles - Using main website footer */

/* Search Box */
.searchbox {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
}

.searchbox .form-control {
    background: #f8f9fa !important;
    border: 1px solid #e0e0e0 !important;
    color: #333333 !important;
}

.searchbox .form-control:focus {
    background: #ffffff !important;
    border-color: #2178EC !important;
    color: #333333 !important;
}

.searchbox .btn-submit {
    background: #2178EC !important;
    border-color: #2178EC !important;
    color: #ffffff !important;
}

/* Pagination */
.pagination a {
    background: #f8f9fa !important;
    border: 1px solid #e0e0e0 !important;
    color: #555555 !important;
}

.pagination a:hover {
    background: #2178EC !important;
    border-color: #2178EC !important;
    color: #ffffff !important;
}

.pagination .current {
    background: #2178EC !important;
    border-color: #2178EC !important;
    color: #ffffff !important;
}

/* Social Sharing */
.share a {
    background: #f8f9fa !important;
    color: #555555 !important;
    border: 1px solid #e0e0e0 !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    margin: 0 5px !important;
    text-decoration: none !important;
}

.share a:hover {
    background: #2178EC !important;
    color: #ffffff !important;
    border-color: #2178EC !important;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .navbar-collapse {
        background: #ffffff !important;
        border: 1px solid #e0e0e0 !important;
        margin-top: 10px !important;
        border-radius: 6px !important;
    }

    .navbar-nav {
        margin: 0 !important;
        flex-direction: column !important;
    }

    .navbar-nav > li {
        width: 100% !important;
        flex-direction: column !important;
    }

    .navbar-nav > li > a {
        color: #333333 !important;
        padding: 15px 20px !important;
        border-bottom: 1px solid #e0e0e0 !important;
        width: 100% !important;
        text-align: left !important;
    }

    .navbar-nav > li:last-child > a {
        border-bottom: none !important;
    }

    .btn-cta-primary {
        margin: 10px 20px !important;
        display: block !important;
        text-align: center !important;
    }

    /* Logo adjustments for mobile */
    .header .logo-image {
        height: 40px !important;
    }
}

/* Form Elements */
input, textarea, select {
    background: #f8f9fa !important;
    border: 1px solid #e0e0e0 !important;
    color: #333333 !important;
}

input:focus, textarea:focus, select:focus {
    background: #ffffff !important;
    border-color: #2178EC !important;
    color: #333333 !important;
}

/* Code Blocks */
pre, code {
    background: #f8f9fa !important;
    color: #d63384 !important;
    border: 1px solid #e0e0e0 !important;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid #2178EC !important;
    background: #f8f9fa !important;
    color: #555555 !important;
}

/* Tables */
table {
    background: #ffffff !important;
    color: #333333 !important;
}

table th {
    background: #2178EC !important;
    color: #ffffff !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

table td {
    border-bottom: 1px solid #e0e0e0 !important;
}

/* Ensure text readability */
.text-muted {
    color: #666666 !important;
}

/* Featured content styling */
.featured img {
    border-radius: 8px !important;
    border: 1px solid #e0e0e0 !important;
}

/* Make all featured images same size on post listings */
.featured-image {
    width: 100%;
    max-width: 400px;
    height: 250px;
    overflow: hidden;
    display: block;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.featured-quote blockquote {
    background: #f0f6ff !important;
    border: 1px solid #2178EC !important;
    border-radius: 8px !important;
}

/* Button color overrides */
a.btn-cta-secondary,
.btn-cta-secondary {
    background: #2178EC !important;
    border: 1px solid #2178EC !important;
}

a.btn-cta-secondary:hover,
.btn-cta-secondary:hover {
    background: #1a65c9 !important;
    border: 1px solid #1a65c9 !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .footer .col-md-3 {
        margin-bottom: 2rem !important;
    }
}

/* Additional specific overrides for backgrounds */
.post.section {
    background: #ffffff !important;
}

.recent-posts.aside.section,
.archive.aside.section,
.category-list.aside.section,
.support.aside.section {
    background: #ffffff !important;
}

/* Override any remaining white or light backgrounds */
.content-wrapper,
.primary,
.secondary,
.container .section,
.item,
.tab-content,
.tab-pane {
    background: transparent !important;
}

/* Ensure cards and content blocks use the light background */
.card,
.panel,
.well,
.jumbotron {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    color: #333333 !important;
}

/* Override Bootstrap's default backgrounds */
.panel-default,
.panel-default > .panel-heading {
    background: #ffffff !important;
    border-color: #e0e0e0 !important;
    color: #333333 !important;
}

/* Make sure all text is visible */
.text-dark,
.text-primary {
    color: #333333 !important;
}

/* MOST IMPORTANT - Override any backgrounds */
* {
    --bs-body-bg: #2178EC !important;
}

/* Ultra high priority background overrides */
body .section,
html .section,
body .post.section,
html .post.section,
.section.post {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

body .aside,
html .aside,
.aside.section {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* Force override for sections */
.bg-white,
.bg-light {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* Override Bootstrap container backgrounds */
.container .section,
.container-fluid .section,
.row .section {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.container .aside,
.container-fluid .aside,
.row .aside {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* Make support icons blue */
.support-icon {
    background: #2178EC !important;
    background-color: #2178EC !important;
    border-color: #2178EC !important;
}

.support-icon.red,
.support-icon.blue,
.support-icon.orange {
    background: #2178EC !important;
    background-color: #2178EC !important;
    border-color: #2178EC !important;
}

/* Content area specific overrides */
.section .item {
    background: transparent !important;
}

.section .section-inner {
    background: transparent !important;
}

/* Pagination styling */
.pagination {
    background: transparent !important;
}

.pagination a,
.pagination span {
    background: #f8f9fa !important;
    color: #555555 !important;
    border: 1px solid #e0e0e0 !important;
}

.pagination a:hover,
.pagination .current {
    background: #2178EC !important;
    color: #ffffff !important;
    border-color: #2178EC !important;
}