/*!
 * CMGOI Theme Stylesheet
 * Bootstrap 4.6.2 + Custom Theme Styles
 * Version: 1.0.0
 */

/* ==========================================================================
   CSS Custom Properties (overridable via Customizer)
   ========================================================================== */

:root {
    --cmgoi-primary: #0066CC;
    --cmgoi-secondary: #28a745;
    --cmgoi-accent: #ffc107;
    --cmgoi-dark: #1a1a2e;
    --cmgoi-light-bg: #f8f9fa;
    --cmgoi-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --cmgoi-font-heading: 'Poppins', 'Inter', sans-serif;
    --cmgoi-transition: 0.3s ease;
}

/* ==========================================================================
   Bootstrap 4.6.2 CDN import (using compiled CSS for simplicity)
   ========================================================================== */

@import url('https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.6.2/css/bootstrap.min.css');

/* ==========================================================================
   Typography
   ========================================================================== */

body {
    font-family: var(--cmgoi-font-body);
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--cmgoi-font-heading);
    font-weight: 700;
    color: var(--cmgoi-dark);
    line-height: 1.3;
}

h1, .h1 { font-size: 2.5rem; }
h2, .h2 { font-size: 2rem; }
h3, .h3 { font-size: 1.5rem; }
h4, .h4 { font-size: 1.25rem; }

@media (max-width: 767.98px) {
    h1, .h1 { font-size: 1.875rem; }
    h2, .h2 { font-size: 1.5rem; }
    h3, .h3 { font-size: 1.25rem; }
}

a {
    color: var(--cmgoi-primary);
    transition: color var(--cmgoi-transition);
}

a:hover {
    color: var(--cmgoi-dark);
    text-decoration: none;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.8;
}

/* ==========================================================================
   Buttons (Bootstrap overrides)
   ========================================================================== */

.btn {
    font-family: var(--cmgoi-font-body);
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 4px;
    transition: all var(--cmgoi-transition);
    letter-spacing: 0.025em;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.0625rem;
}

.btn-primary {
    background-color: var(--cmgoi-primary);
    border-color: var(--cmgoi-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #0052a3;
    border-color: #0052a3;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background-color: var(--cmgoi-secondary);
    border-color: var(--cmgoi-secondary);
}

.btn-outline-primary {
    color: var(--cmgoi-primary);
    border-color: var(--cmgoi-primary);
}

.btn-outline-primary:hover {
    background-color: var(--cmgoi-primary);
    border-color: var(--cmgoi-primary);
}

.btn-outline-light:hover {
    color: var(--cmgoi-primary);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
    position: relative;
    z-index: 1030;
}

.site-header.cmgoi-header--sticky {
    position: sticky;
    top: 0;
}

.site-header .navbar {
    padding: 0.75rem 0;
    transition: all var(--cmgoi-transition);
}

.site-header .navbar-brand {
    padding: 0;
    margin-right: 2rem;
}

.site-header .navbar-brand img {
    max-height: 50px;
    width: auto;
}

.site-header .navbar-brand .site-title {
    color: var(--cmgoi-dark);
}

.site-header .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: #555;
    transition: color var(--cmgoi-transition);
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: var(--cmgoi-primary);
}

.site-header .dropdown-menu {
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    padding: 0.5rem 0;
    margin-top: 0;
}

.site-header .dropdown-item {
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all var(--cmgoi-transition);
}

.site-header .dropdown-item:hover,
.site-header .dropdown-item.active {
    background-color: var(--cmgoi-light-bg);
    color: var(--cmgoi-primary);
}

/* Top bar */
.cmgoi-topbar {
    font-size: 0.8125rem;
}

.cmgoi-topbar a:hover {
    color: #fff !important;
}

/* ==========================================================================
   Sections (Full-width + Container)
   ========================================================================== */

.cmgoi-section {
    position: relative;
    width: 100%;
    padding: 80px 0;
}

@media (max-width: 767.98px) {
    .cmgoi-section {
        padding: 50px 0;
    }
}

.cmgoi-section--has-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cmgoi-section__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.cmgoi-section > .container {
    position: relative;
    z-index: 2;
}

.cmgoi-section--sm {
    padding: 50px 0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.cmgoi-hero {
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 550px;
    padding: 100px 0;
}

.cmgoi-hero--small {
    min-height: 350px;
    padding: 80px 0;
}

.cmgoi-hero--medium {
    min-height: 550px;
}

.cmgoi-hero--large {
    min-height: 700px;
}

.cmgoi-hero--fullscreen {
    min-height: 100vh;
}

@media (max-width: 767.98px) {
    .cmgoi-hero {
        min-height: 400px;
        padding: 60px 0;
    }
    .cmgoi-hero--small {
        min-height: 250px;
    }
    .cmgoi-hero--fullscreen {
        min-height: 80vh;
    }
}

.cmgoi-hero__title {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cmgoi-hero__subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 767.98px) {
    .cmgoi-hero__title {
        font-size: 2rem;
    }
    .cmgoi-hero__subtitle {
        font-size: 1rem;
    }
}

/* Page hero (used on inner pages) */
.cmgoi-page-hero {
    background-color: var(--cmgoi-dark);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
    border: none;
    border-radius: 8px;
    transition: all var(--cmgoi-transition);
    overflow: hidden;
}

.card.shadow-sm:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px);
}

.card-img-top {
    object-fit: cover;
}

.card-title a {
    color: var(--cmgoi-dark);
    text-decoration: none;
}

.card-title a:hover {
    color: var(--cmgoi-primary);
}

/* ==========================================================================
   Service Cards
   ========================================================================== */

.cmgoi-service-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    transition: all var(--cmgoi-transition);
    background: #fff;
}

.cmgoi-service-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.cmgoi-service-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(0, 102, 204, 0.1);
    color: var(--cmgoi-primary);
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.cmgoi-service-card__title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.cmgoi-service-card__text {
    color: #666;
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Products
   ========================================================================== */

.cmgoi-product-card {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: all var(--cmgoi-transition);
}

.cmgoi-product-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.cmgoi-product-card__image {
    position: relative;
    overflow: hidden;
}

.cmgoi-product-card__image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--cmgoi-transition);
}

.cmgoi-product-card:hover .cmgoi-product-card__image img {
    transform: scale(1.05);
}

.cmgoi-product-card__body {
    padding: 1.25rem;
}

.cmgoi-product-card__title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.cmgoi-product-card__title a {
    color: var(--cmgoi-dark);
}

.cmgoi-product-card__title a:hover {
    color: var(--cmgoi-primary);
}

.cmgoi-product-card__excerpt {
    color: #666;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.cmgoi-product-card__category {
    font-size: 0.8125rem;
    color: var(--cmgoi-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Product filters */
.cmgoi-product-filters {
    margin-bottom: 2.5rem;
}

.cmgoi-product-filters .btn {
    margin: 0 0.25rem 0.5rem;
}

/* Single product */
.cmgoi-product-gallery {
    margin-bottom: 2rem;
}

.cmgoi-product-gallery__main {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.cmgoi-product-gallery__main img {
    width: 100%;
    height: auto;
}

.cmgoi-product-gallery__thumbs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cmgoi-product-gallery__thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--cmgoi-transition);
}

.cmgoi-product-gallery__thumb:hover,
.cmgoi-product-gallery__thumb.active {
    opacity: 1;
}

.cmgoi-product-specs {
    margin-bottom: 2rem;
}

.cmgoi-product-specs table {
    width: 100%;
}

.cmgoi-product-specs th,
.cmgoi-product-specs td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    font-size: 0.9375rem;
}

.cmgoi-product-specs th {
    font-weight: 600;
    color: var(--cmgoi-dark);
    width: 40%;
}

/* ==========================================================================
   Blog
   ========================================================================== */

.cmgoi-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: #888;
    margin-bottom: 1rem;
}

.cmgoi-post-meta a {
    color: #888;
}

.cmgoi-post-meta a:hover {
    color: var(--cmgoi-primary);
}

.cmgoi-post-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.cmgoi-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.cmgoi-post-content blockquote {
    border-left: 4px solid var(--cmgoi-primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--cmgoi-light-bg);
    border-radius: 0 4px 4px 0;
}

/* Author bio */
.cmgoi-author-bio {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--cmgoi-light-bg);
    border-radius: 8px;
    margin: 2rem 0;
}

.cmgoi-author-bio__avatar {
    flex-shrink: 0;
}

.cmgoi-author-bio__avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

/* Post navigation */
.cmgoi-post-nav {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 2rem 0;
}

.cmgoi-post-nav__label {
    font-size: 0.8125rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.cmgoi-testimonial-card {
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    position: relative;
}

.cmgoi-testimonial-card__quote {
    font-size: 1.0625rem;
    font-style: italic;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 2rem;
}

.cmgoi-testimonial-card__quote::before {
    content: '\201C';
    font-size: 3rem;
    color: var(--cmgoi-primary);
    position: absolute;
    left: 0;
    top: -0.5rem;
    line-height: 1;
    font-family: Georgia, serif;
}

.cmgoi-testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cmgoi-testimonial-card__photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.cmgoi-testimonial-card__name {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0;
}

.cmgoi-testimonial-card__role {
    font-size: 0.8125rem;
    color: #888;
}

/* Star rating */
.cmgoi-stars {
    color: var(--cmgoi-accent);
    font-size: 0.875rem;
}

/* ==========================================================================
   Stats/Counter Section
   ========================================================================== */

.cmgoi-stat-item {
    text-align: center;
    padding: 1.5rem;
}

.cmgoi-stat-item__number {
    font-family: var(--cmgoi-font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.cmgoi-stat-item__label {
    font-size: 0.9375rem;
    opacity: 0.85;
}

.cmgoi-stat-item__icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

/* ==========================================================================
   Partners/Logos
   ========================================================================== */

.cmgoi-partner-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.cmgoi-partner-logos img {
    max-height: 60px;
    width: auto;
    transition: all var(--cmgoi-transition);
}

.cmgoi-partner-logos--grayscale img {
    filter: grayscale(100%);
    opacity: 0.6;
}

.cmgoi-partner-logos--grayscale img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

.cmgoi-contact-info {
    margin-bottom: 2rem;
}

.cmgoi-contact-info__item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cmgoi-contact-info__icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 204, 0.1);
    color: var(--cmgoi-primary);
    border-radius: 50%;
    font-size: 1rem;
}

.cmgoi-contact-info__text h6 {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.cmgoi-contact-info__text p {
    font-size: 0.9375rem;
    color: #666;
    margin-bottom: 0;
}

/* Google Maps embed */
.cmgoi-map-embed {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.cmgoi-map-embed iframe {
    width: 100%;
    height: 350px;
    border: 0;
}

/* ==========================================================================
   Forms (CF7 compatibility)
   ========================================================================== */

.wpcf7-form .form-group {
    margin-bottom: 1.25rem;
}

.wpcf7-form label {
    font-weight: 500;
    font-size: 0.9375rem;
    margin-bottom: 0.375rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9375rem;
    transition: border-color var(--cmgoi-transition);
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    border-color: var(--cmgoi-primary);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
}

.wpcf7-form input[type="submit"] {
    background-color: var(--cmgoi-primary);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--cmgoi-transition);
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #0052a3;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ok {
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1rem;
}

/* ==========================================================================
   About Page - Team Members
   ========================================================================== */

.cmgoi-team-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    background: #fff;
    transition: all var(--cmgoi-transition);
}

.cmgoi-team-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.cmgoi-team-card__photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.25rem;
}

.cmgoi-team-card__name {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.cmgoi-team-card__position {
    color: var(--cmgoi-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.cmgoi-team-card__bio {
    font-size: 0.9375rem;
    color: #666;
    margin-bottom: 1rem;
}

.cmgoi-team-card__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--cmgoi-light-bg);
    color: #666;
    margin: 0 0.25rem;
    transition: all var(--cmgoi-transition);
}

.cmgoi-team-card__social a:hover {
    background: var(--cmgoi-primary);
    color: #fff;
}

/* ==========================================================================
   Values Section
   ========================================================================== */

.cmgoi-value-card {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.cmgoi-value-card__icon {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 204, 0.1);
    color: var(--cmgoi-primary);
    border-radius: 8px;
    font-size: 1.25rem;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.cmgoi-breadcrumbs {
    padding: 0.75rem 0;
    background: var(--cmgoi-light-bg);
    font-size: 0.875rem;
}

.cmgoi-breadcrumbs a {
    color: #888;
}

.cmgoi-breadcrumbs a:hover {
    color: var(--cmgoi-primary);
}

.cmgoi-breadcrumbs .separator {
    margin: 0 0.5rem;
    color: #ccc;
}

.cmgoi-breadcrumbs .current {
    color: var(--cmgoi-dark);
    font-weight: 500;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.cmgoi-comments .comment-list {
    list-style: none;
    padding: 0;
}

.cmgoi-comments .comment-list .comment {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.cmgoi-comments .comment-list .children {
    list-style: none;
    padding-left: 2rem;
}

.cmgoi-comments .comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.cmgoi-comments .comment-author img {
    border-radius: 50%;
}

.cmgoi-comments .comment-respond .form-submit input {
    background-color: var(--cmgoi-primary);
    color: #fff;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.cmgoi-404 {
    text-align: center;
    padding: 100px 0;
}

.cmgoi-404__heading {
    font-size: 6rem;
    font-weight: 700;
    color: var(--cmgoi-primary);
    line-height: 1;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Social Links
   ========================================================================== */

.cmgoi-social-links {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.cmgoi-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: inherit;
    transition: all var(--cmgoi-transition);
    font-size: 0.875rem;
}

.cmgoi-social-link:hover {
    background: var(--cmgoi-primary);
    color: #fff;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.cmgoi-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    margin: 0 0.25rem;
    border-radius: 4px;
    font-weight: 500;
    color: #555;
    background: #fff;
    border: 1px solid #ddd;
    transition: all var(--cmgoi-transition);
    text-decoration: none;
}

.cmgoi-pagination .page-numbers:hover,
.cmgoi-pagination .page-numbers.current {
    background: var(--cmgoi-primary);
    border-color: var(--cmgoi-primary);
    color: #fff;
}

/* ==========================================================================
   Accordion / FAQ
   ========================================================================== */

.cmgoi-accordion .card {
    border: 1px solid #eee !important;
    border-radius: 4px !important;
    margin-bottom: 0.5rem;
}

.cmgoi-accordion .card-header {
    background: #fff;
    border-bottom: none;
    padding: 0;
}

.cmgoi-accordion .card-header button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--cmgoi-dark);
    text-decoration: none;
    position: relative;
    padding-right: 3rem;
}

.cmgoi-accordion .card-header button::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform var(--cmgoi-transition);
    font-size: 0.8125rem;
    color: var(--cmgoi-primary);
}

.cmgoi-accordion .card-header button[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(180deg);
}

.cmgoi-accordion .card-body {
    padding: 0 1.25rem 1.25rem;
    color: #666;
    line-height: 1.7;
}

/* ==========================================================================
   Skip Link
   ========================================================================== */

.skip-link:focus {
    clip: auto !important;
    clip-path: none !important;
    height: auto;
    width: auto;
    z-index: 100000;
    padding: 0.75rem 1.5rem;
    background: var(--cmgoi-primary);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    position: fixed;
    top: 5px;
    left: 5px;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.bg-primary {
    background-color: var(--cmgoi-primary) !important;
}

.text-primary {
    color: var(--cmgoi-primary) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.section-heading {
    margin-bottom: 0.75rem;
}

.section-subheading {
    color: #666;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.overlay-dark {
    background-color: rgba(0, 0, 0, 0.5);
}

img.alignleft {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
}

img.alignright {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
}

img.aligncenter {
    display: block;
    margin: 1rem auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #888;
    text-align: center;
    padding: 0.5rem 0;
}

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

.site-footer {
    color: rgba(255, 255, 255, 0.7);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--cmgoi-transition);
}

.site-footer a:hover {
    color: #fff;
}

.site-footer .widget-title {
    font-size: 1.0625rem;
}

.site-footer .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .widget ul li {
    padding: 0.375rem 0;
}

.footer-bottom {
    color: rgba(255, 255, 255, 0.5);
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    display: inline-block;
    margin-left: 1rem;
}

/* ==========================================================================
   Responsive Fixes
   ========================================================================== */

@media (max-width: 991.98px) {
    .site-header .navbar-collapse {
        padding: 1rem 0;
        border-top: 1px solid #eee;
        margin-top: 0.5rem;
    }

    .site-header .nav-link {
        padding: 0.625rem 0 !important;
    }

    .site-header .btn {
        margin-top: 0.5rem;
        margin-left: 0 !important;
    }
}

@media (max-width: 575.98px) {
    .cmgoi-author-bio {
        flex-direction: column;
        text-align: center;
    }

    .cmgoi-post-nav {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ==========================================================================
   WordPress Core Styles
   ========================================================================== */

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

.wp-block-image {
    margin-bottom: 1.5rem;
}

.wp-block-image img {
    border-radius: 4px;
}

/* Gallery */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.gallery-item {
    flex: 1 1 calc(33.333% - 0.5rem);
    max-width: calc(33.333% - 0.5rem);
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Screen reader text */
.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;
    width: 1px;
    word-wrap: normal !important;
}
