/*
Theme Name: All In Solutions Theme
Theme URI: https://allin-solutions.com
Author: All In Solutions
Author URI: https://allin-solutions.com
Description: Custom theme for All In Solutions - Integrated IT Solutions
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ais-theme
*/

/* =====================================================
   CSS Variables
   ===================================================== */
:root {
    --primary-blue: #3f83be;
    --primary-blue-dark: #365886;
    --primary-blue-light: #e8f4f9;
    --accent-cyan: #29aae2;
    --accent-gold: #ffd958;
    --accent-gold-dark: #fcbb17;
    --accent-green: #7fb64b;
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-lg: 33px;
}

/* =====================================================
   Reset & Base
   ===================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-white);
    overflow-x: hidden;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-blue-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

/* =====================================================
   Layout
   ===================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--background-light);
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* =====================================================
   Notification Banner
   ===================================================== */
.notification-banner {
    background: var(--primary-blue);
    color: var(--background-white);
    padding: 12px 20px;
    text-align: center;
    position: relative;
    z-index: 1001;
}

.notification-banner.urgent {
    background: #dc2626;
}

.notification-banner.success {
    background: var(--accent-green);
}

.notification-banner p {
    margin: 0;
    font-size: 0.95rem;
}

.notification-banner a {
    color: var(--accent-gold);
    font-weight: 600;
    text-decoration: underline;
}

.notification-banner .close-banner {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--background-white);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.notification-banner .close-banner:hover {
    opacity: 1;
}

/* =====================================================
   Header & Navigation
   ===================================================== */
.site-header {
    background: var(--background-white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: top 0.3s;
}

.has-notification .site-header {
    top: 44px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.site-logo {
    height: 115px;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-left: -65px;
}

.site-logo img {
    height: 210px;
    width: auto;
    margin-top: -18px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav a.current-menu-item::after {
    width: 100%;
}

.main-nav a.current-menu-item {
    color: var(--primary-blue);
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a::after {
    content: ' ▾';
    font-size: 0.8rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--background-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    padding: 0.5rem 0;
    margin-top: 10px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
}

.dropdown-menu a:hover {
    background: var(--primary-blue-light);
    color: var(--primary-blue);
}

.dropdown-menu a::after {
    display: none;
}

/* Contact Button - matches nav links */
.btn-contact {
    color: var(--text-primary) !important;
    font-weight: 500;
    transition: color 0.3s;
}

.btn-contact:hover {
    color: var(--primary-blue) !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-close {
    display: none;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
    background: linear-gradient(90deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
    color: var(--background-white);
    padding: 140px 0 100px;
    margin-top: 103px;
    position: relative;
    overflow: hidden;
}

.has-notification .hero {
    margin-top: 94px;
}

.hero-swoop-bottom {
    position: absolute;
    left: 0;
    bottom: -5%;
    height: 105%;
    width: auto;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.hero-swoop-top {
    position: absolute;
    right: 0;
    top: -5%;
    height: 105%;
    width: auto;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
    transform: scale(-1, -1);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo-wrapper {
    position: absolute;
    bottom: 2rem;
    right: 15rem;
    z-index: 1;
}

.hero-logo {
    width: 180px;
    height: auto;
}

@media (max-width: 900px) {
    .hero-logo-wrapper {
        display: none;
    }
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--background-white);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--background-white);
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--background-white);
    opacity: 0.85;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stat h3 {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.hero-stat p {
    font-size: 0.9rem;
    color: var(--background-white);
    opacity: 0.9;
    margin: 0;
}

/* =====================================================
   Page Header (Subpages)
   ===================================================== */
.page-header {
    background: linear-gradient(90deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
    color: var(--background-white);
    padding: 4rem 0;
    text-align: center;
}

.page-header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    color: var(--background-white);
    animation: fadeInUp 0.8s ease-out;
}

.page-header p {
    font-size: 1.1rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-cyan);
    color: var(--background-white);
}

.btn-primary:hover {
    background: #1e9acc;
    color: var(--background-white);
}

.btn-secondary {
    background: var(--primary-blue);
    color: var(--background-white);
}

.btn-secondary:hover {
    background: var(--primary-blue-dark);
    color: var(--background-white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--background-white);
}

/* =====================================================
   Certifications Bar
   ===================================================== */
.certifications-bar {
    background: var(--background-light);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cert-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.cert-logos img {
    height: 100px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.cert-logos img:hover {
    opacity: 1;
}

.cert-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--background-white);
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius);
    transition: all 0.3s;
}

.cert-badge:hover {
    border-color: var(--primary-blue-dark);
}

.cert-badge .cert-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-blue);
}

.cert-badge small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =====================================================
   Text Colors
   ===================================================== */
.text-green {
    color: var(--accent-green);
    font-weight: 700;
}

.text-blue {
    color: var(--accent-cyan);
    font-weight: 700;
}

.text-yellow {
    color: var(--accent-gold);
    font-weight: 700;
}

/* =====================================================
   Cards
   ===================================================== */
.card {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

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

/* Card Chip Style */
.card.card-chip {
    position: relative;
    padding-top: 3rem;
    padding-bottom: 3rem;
    text-align: center;
}

.card-chip-label {
    position: absolute;
    top: -1px;
    left: -1px;
    background: var(--primary-blue);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-lg) 0 var(--radius) 0;
}

.card-chip .card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: block;
}

/* Industry image cards */
.card.card-chip.card-chip-image {
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-chip-image .card-chip-label {
    z-index: 2;
    position: absolute;
    top: -1px;
    left: -1px;
}

.card-chip-image .card-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.card-chip-image .card-industry-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top;
}

.card-chip-image .card-text {
    padding: 1rem 1.5rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card-chip-image .card-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0 0 1rem;
    flex-grow: 1;
}

.card-chip-image .card-link {
    position: relative;
    bottom: auto;
    right: auto;
    margin: 0;
}

/* Featured card with side image */
.card-chip-featured-image {
    display: flex;
    padding: 0;
    overflow: hidden;
    min-height: 280px;
}

.card-chip-featured-image .featured-bg-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 350px;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.card-chip-featured-image .featured-content {
    flex: 1;
    padding: 2.5rem 2rem 1rem;
    margin-top: 0;
    margin-right: 350px;
}

.card-chip-featured-image .card-link {
    position: absolute;
    bottom: 1rem;
    right: auto;
    left: 2rem;
}

@media (max-width: 900px) {
    .card-chip-featured-image .featured-bg-image {
        display: none;
    }

    .card-chip-featured-image .featured-content {
        margin-right: 0;
    }
}

.card-chip p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.card-chip .card-link {
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    margin: 0;
}

/* Featured Card (Medical - Green & Larger) */
.card.card-chip-featured {
    grid-column: 1 / -1;
    padding: 2.5rem 2rem 3.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.card-chip-featured .card-chip-label {
    background: var(--accent-green);
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
}

.featured-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 1rem;
}

.featured-text {
    flex: 1;
}

.featured-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.featured-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.featured-highlight {
    background: var(--background-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.featured-highlight h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

.featured-highlight p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.featured-icon-wrapper {
    flex-shrink: 0;
}

.featured-icon {
    width: 140px;
    height: 140px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .featured-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .featured-highlights {
        grid-template-columns: 1fr;
    }

    .featured-icon {
        width: 100px;
        height: 100px;
    }
}

.card-highlight:hover {
    border-left-color: var(--accent-gold);
}

.card-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-cyan);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.card-link:hover {
    color: #1e9acc;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-secondary);
    margin: 0;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 1000px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

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

/* Two-column layouts */
.layout-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.layout-two-col-reverse {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.layout-two-col-reverse > :first-child {
    order: 2;
}

.layout-two-col-reverse > :last-child {
    order: 1;
}

/* Card grid variants */
.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .card-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .card-grid-3 {
        grid-template-columns: 1fr;
    }
}

.card-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 1000px) {
    .card-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .card-grid-4 {
        grid-template-columns: 1fr;
    }
}

.card-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1100px) {
    .card-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .card-grid-5 {
        grid-template-columns: 1fr;
    }
}

/* Specialized capabilities row - 3 columns centered */
.card-grid-specialized {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 2rem auto 0;
}

@media (max-width: 800px) {
    .card-grid-specialized {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* Centered text containers */
.text-center-narrow {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.text-center-narrow p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Card variants */
.card-highlight {
    border-left: 4px solid var(--accent-gold);
}

.card-highlight-green {
    border-left: 4px solid var(--accent-green);
}

.card-padded {
    padding: 2.5rem;
}

.card-centered {
    text-align: center;
}

/* Flex card (icon + content side by side) */
.card-flex {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2.5rem;
}

.card-flex .card-icon {
    flex-shrink: 0;
}

/* List styling */
.list-spaced {
    margin-top: 1.5rem;
    line-height: 2;
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.list-spaced li {
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    position: relative;
}

.list-spaced li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

.list-checkmark {
    line-height: 2.2;
    list-style: none;
    padding: 0;
}

.list-checkmark li {
    position: relative;
    padding-left: 1.5rem;
}

.list-checkmark li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

/* Icon sizes */
.icon-sm { width: 48px; height: 48px; }
.icon-md { width: 64px; height: 64px; }
.icon-lg { width: 80px; height: 80px; margin-bottom: 1.5rem; }
.icon-xl { width: 120px; height: 120px; }

/* Section utility classes */
.section-cta-wrapper {
    text-align: center;
    margin-top: 2rem;
}

/* Medical Feature Card - Full width spanning card */
.medical-feature-card {
    background: var(--background-white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-green);
}

.medical-feature-card .layout-two-col {
    gap: 2rem;
    grid-template-columns: 1fr auto;
}

.medical-feature-card h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.medical-feature-card > .layout-two-col > .contact-info > p:first-of-type {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Medical section icon container */
.medical-icon-container {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.medical-icon-container img {
    max-width: 150px;
    opacity: 0.9;
}

/* Medical section photo container */
.medical-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.medical-image-container img {
    max-width: 280px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Medical images gallery */
.medical-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.medical-image {
    position: relative;
    text-align: center;
}

.medical-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.medical-image .image-caption {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .medical-feature-card .layout-two-col {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .medical-feature-card .medical-icon-container,
    .medical-feature-card .medical-image-container,
    .medical-feature-card .medical-images {
        order: -1;
    }

    .medical-feature-card .medical-image-container img {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .medical-feature-card .medical-images {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 1.5rem;
    }

    .medical-feature-card .medical-image img {
        max-width: 250px;
    }

    .medical-feature-card .medical-highlights {
        justify-content: center;
    }
}

/* Client logo text styling */
.client-logo-text {
    font-weight: 700;
    color: var(--text-secondary);
}

/* Remove bottom margin */
.mb-0 {
    margin-bottom: 0 !important;
}

/* Agency/Partner circle badges */
.badge-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.badge-circle-sm {
    width: 60px;
    height: 60px;
    font-size: 0.75rem;
}

/* Agency-specific badge colors */
.badge-va {
    background: linear-gradient(135deg, #003f7f, #0066cc);
}

.badge-cms {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.badge-usaf {
    background: linear-gradient(135deg, #1e40af, #60a5fa);
}

/* Partner badge with custom color property */
.badge-circle[style*="--badge-color"] {
    background: var(--badge-color);
}

/* CTA Section (blue background) */
.section-cta {
    background: var(--primary-blue);
    color: white;
    text-align: center;
}

.section-cta h2 {
    color: white;
}

.section-cta p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.section-cta .btn-outline {
    border-color: white;
    color: white;
}

.section-cta .btn-outline:hover {
    background: white;
    color: var(--primary-blue);
}

/* Responsive adjustments for layout utilities */
@media (max-width: 992px) {
    .layout-two-col,
    .layout-two-col-reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .layout-two-col-reverse > :first-child {
        order: 2;
    }

    .layout-two-col-reverse > :last-child {
        order: 1;
    }
}

/* =====================================================
   Team/Leadership Grid
   ===================================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.team-card:hover {
    box-shadow: var(--shadow-lg);
}

.team-card-image {
    aspect-ratio: 1;
    overflow: hidden;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-content {
    padding: 1.5rem;
    text-align: center;
}

.team-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.team-card .title {
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.team-card .credentials {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Compact Team Grid (no photos) */
.team-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-card-compact {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    text-align: center;
}

.team-card-compact h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.team-card-compact .title {
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0;
}

/* =====================================================
   Careers Page - Benefits
   ===================================================== */
.benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.benefit-card {
    text-align: center;
    padding: 2rem;
}

.benefit-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-blue-light);
    border-radius: 50%;
    color: var(--primary-blue);
}

.benefit-icon svg {
    width: 36px;
    height: 36px;
}

/* Culture Checklist */
.culture-list {
    list-style: none;
    padding: 0;
    line-height: 2.2;
}

.culture-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.culture-list li::before {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Career List */
.career-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-secondary);
}

.career-list li {
    padding: 0.15rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.career-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-blue);
    border-radius: 50%;
}

/* Clickable Team Cards */
a.team-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

a.team-card-link:hover {
    transform: translateY(-5px);
}

a.team-card-link:hover .view-bio {
    color: var(--primary-blue);
}

.view-bio {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

/* =====================================================
   Clients Section
   ===================================================== */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: center;
}

@media (max-width: 900px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--background-white);
    border-radius: var(--radius);
    transition: all 0.3s;
}

.client-logo img {
    max-height: 75px;
    max-width: 100%;
    object-fit: contain;
}

/* Logo wrapper for centering */
.logo-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

/* Client card logos (clients page) */
.client-card-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

/* Partners grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--background-white);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.partner-logo img {
    max-height: 63px;
    max-width: 100%;
    object-fit: contain;
}

/* Certification cards grid */
.cert-logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .cert-logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cert-card {
    text-align: center;
    padding: 2rem;
    background: var(--background-white);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.cert-card img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.cert-card .logo-wrapper {
    margin-bottom: 1rem;
}

.cert-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Contract vehicle logos */
.contract-vehicle-logo {
    height: 75px;
    width: auto;
    object-fit: contain;
}

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

/* News Filters */
.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

/* Filter Chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.filter-chip.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--background-white);
}

.filter-chip .chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 0.4rem;
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.filter-chip.active .chip-count {
    background: rgba(255,255,255,0.2);
}

/* Search Input */
.filter-search {
    position: relative;
    min-width: 250px;
}

.filter-search input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 0.95rem;
    background: var(--background-white);
    transition: border-color 0.2s ease;
}

.filter-search input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.filter-search .search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* Filter Status */
.filter-status {
    margin-bottom: 1rem;
}

.filter-results {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.loading-indicator {
    color: var(--primary-blue);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .news-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-chips {
        justify-content: center;
    }

    .filter-search {
        min-width: 100%;
    }
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
}

.news-card {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
}

.news-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-content {
    padding: 1.5rem;
}

.news-card .category {
    display: inline-block;
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.news-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.news-card h3 a {
    color: var(--text-primary);
}

.news-card h3 a:hover {
    color: var(--primary-blue);
}

.news-card .excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.news-card .meta {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
}

.no-posts h2 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.no-posts p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.95rem;
    background: var(--background-white);
}

.pagination a:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.pagination .current {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--background-white);
}

.pagination .dots {
    border: none;
    background: none;
}

.pagination .prev,
.pagination .next {
    padding: 0 1rem;
}

/* =====================================================
   Social Media Feed Section
   ===================================================== */
.social-feed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.social-feed-item {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 400px;
}

.social-feed-item .feed-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.social-feed-item .feed-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.social-feed-item .feed-name {
    font-weight: 600;
    color: var(--text-primary);
}

.social-feed-item .feed-content {
    padding: 1rem;
    height: 350px;
    overflow-y: auto;
}

.social-feed-item .feed-content iframe {
    max-width: 100%;
}

.instagram-embed-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.instagram-embed-wrapper .instagram-media {
    margin: 0 !important;
    max-width: 100% !important;
}

@media (max-width: 1100px) {
    .social-feed-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 2rem auto;
    }
}

/* =====================================================
   Contact Section
   ===================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-details {
    display: grid;
    gap: 1.5rem;
}

.contact-item h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.contact-item p,
.contact-item a {
    color: var(--text-secondary);
}

/* Contact Form */
.contact-form {
    background: var(--background-light);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* =====================================================
   Footer
   ===================================================== */
.site-footer {
    background: var(--text-primary);
    color: var(--background-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .footer-logo {
    height: 80px;
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-column a {
    display: block;
    color: var(--background-white);
    opacity: 0.8;
    margin-bottom: 0.5rem;
    transition: opacity 0.3s;
}

.footer-column a:hover {
    opacity: 1;
    color: var(--background-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.6;
    font-size: 0.9rem;
}

.footer-certifications {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
}

.footer-certifications img {
    height: 50px;
}

/* =====================================================
   Utility Navigation (above header)
   ===================================================== */
.utility-nav {
    background: var(--primary-blue);
    color: var(--background-white);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

/* Match utility nav to page hero colors */
.page-template-page-medical-support .utility-nav {
    background: linear-gradient(135deg, var(--accent-green) 0%, #4d7300 100%);
}

.page-template-page-cyber-operations .utility-nav,
.page-template-page-intelligence-operations .utility-nav,
.page-template-page-software-development .utility-nav {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
}

.page-template-page-cyber-operations .utility-nav a,
.page-template-page-intelligence-operations .utility-nav a,
.page-template-page-software-development .utility-nav a {
    color: var(--text-primary);
}

.page-template-page-cyber-operations .utility-nav .separator,
.page-template-page-intelligence-operations .utility-nav .separator,
.page-template-page-software-development .utility-nav .separator {
    color: var(--text-primary);
}

.utility-nav .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.utility-nav a {
    color: var(--background-white);
    opacity: 0.9;
}

.utility-nav a:hover {
    opacity: 1;
    color: var(--accent-gold);
}

.utility-nav .separator {
    opacity: 0.5;
}

/* Adjust header position when utility nav is present */
.has-utility-nav .site-header {
    top: 36px;
}

.has-utility-nav.has-notification .site-header {
    top: 80px;
}

.has-utility-nav .hero,
.has-utility-nav .page-header {
    margin-top: 151px;
}

.has-utility-nav.has-notification .hero,
.has-utility-nav.has-notification .page-header {
    margin-top: 162px;
}

/* =====================================================
   Medical Support Section Styles
   ===================================================== */
.medical-hero {
    background: url('assets/images/heroes/medical.png');
    background-size: cover;
    background-position: center;
}

.cyber-hero {
    background: url('assets/images/heroes/cyber.png');
    background-size: cover;
    background-position: center;
}

.industry-hero {
    background: url('assets/images/heroes/industry.png');
    background-size: cover;
    background-position: center;
}

.yellow-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
}

.yellow-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.yellow-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(252, 187, 23, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.yellow-hero .container {
    position: relative;
    z-index: 1;
}

.yellow-hero .hero-title {
    color: var(--background-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.yellow-hero .hero-subtitle {
    color: var(--accent-gold);
}

/* Yellow chip cards */
.card-chip-yellow .card-chip-label {
    background: var(--accent-gold);
    color: var(--text-primary);
}

.page-header.medical-hero h1,
.page-header.medical-hero p {
    color: var(--background-white);
}

.medical-section {
    background: linear-gradient(180deg, var(--background-white) 0%, #f0f9e6 100%);
}

.medical-card {
    border-left: 4px solid var(--accent-green);
}

.medical-cta {
    background: var(--accent-green);
}

.medical-cta:hover {
    background: #557700;
}

.medical-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.medical-highlight {
    background: var(--background-white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    border-left: 3px solid var(--accent-green);
}

.medical-highlight h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.medical-highlight p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .medical-highlights {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   Resources/Downloads Section
   ===================================================== */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s;
}

.resource-card:hover {
    border-color: var(--primary-blue);
}

.resource-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-blue-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resource-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-blue);
}

.resource-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.resource-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.resource-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 0.9rem;
}

.resource-download:hover {
    text-decoration: underline;
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--background-white);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: left 0.3s;
        overflow-y: auto;
        z-index: 1000;
    }

    .mobile-menu-close {
        display: block;
        position: absolute;
        top: 2.5rem;
        right: 1rem;
        background: none;
        border: none;
        font-size: 2rem;
        cursor: pointer;
        color: var(--text-primary);
        padding: 0.5rem;
        line-height: 1;
    }

    .mobile-menu-close:hover {
        color: var(--primary-blue);
    }

    .main-nav.active {
        left: 0;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 1rem;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }

    .section {
        padding: 60px 0;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cert-logos {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .card {
        padding: 1.5rem;
    }
}

/* =====================================================
   Single Post / Article Page
   ===================================================== */
.single-post {
    margin: 0 auto;
}

.post-featured-image {
    float: left;
    max-width: 300px;
    margin: 0 2rem 1.5rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Clear float after content */
.post-footer {
    clear: both;
}

/* Post Content Typography */
.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-content h3 {
    font-size: 1.375rem;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.post-content h4 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-content a {
    color: var(--primary-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-content a:hover {
    color: var(--primary-blue-dark);
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-blue);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--background-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-primary);
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.post-content figure {
    margin: 2rem 0;
}

.post-content figcaption {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
}

.post-content pre,
.post-content code {
    font-family: 'Fira Code', 'Consolas', monospace;
    background: var(--background-light);
    border-radius: var(--radius);
}

.post-content code {
    padding: 0.2rem 0.4rem;
    font-size: 0.9em;
}

.post-content pre {
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content pre code {
    padding: 0;
    background: none;
}

.post-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2.5rem 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.post-content th,
.post-content td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.post-content th {
    background: var(--background-light);
    font-weight: 600;
    color: var(--text-primary);
}

/* Post Footer - Tags & Share */
.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.post-tags strong {
    color: var(--text-primary);
    font-weight: 600;
    margin-right: 0.25rem;
}

.post-tags a {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: var(--background-light);
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.post-tags a:hover {
    background: var(--primary-blue);
    color: var(--background-white);
}

.post-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-share strong {
    color: var(--text-primary);
    font-weight: 600;
}

.post-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--background-light);
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
}

.post-share a:hover {
    background: var(--primary-blue);
    color: var(--background-white);
    transform: translateY(-2px);
}

/* Related Posts */
.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.related-posts h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

/* Back to News Link */
.back-to-news {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.back-to-news:hover {
    color: var(--primary-blue-dark);
    gap: 0.75rem;
}

.back-to-news svg {
    width: 18px;
    height: 18px;
}

/* Article Header Category Badge */
.hero .category,
.page-header .category {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--text-primary);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-header .meta {
    margin-top: 1rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* =====================================================
   Team Member Profile Page
   ===================================================== */
.team-member-profile {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.team-member-image {
    flex-shrink: 0;
    width: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.team-member-image img {
    width: 100%;
    height: auto;
    display: block;
}

.team-member-info {
    flex: 1;
}

.team-member-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.team-member-title {
    font-size: 1.25rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.team-member-credentials {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.team-member-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.team-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: var(--background-light);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.team-link:hover {
    background: var(--primary-blue);
    color: var(--background-white);
    transform: translateY(-2px);
}

.team-link svg {
    width: 18px;
    height: 18px;
}

.team-member-bio {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.team-member-bio p {
    margin-bottom: 1.5rem;
}

.team-member-bio h3 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.team-member-bio ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.team-member-bio li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .team-member-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .team-member-image {
        width: 200px;
    }

    .team-member-links {
        justify-content: center;
    }

    .team-member-bio {
        text-align: left;
    }
}

/* Single Post Responsive */
@media (max-width: 768px) {
    .post-featured-image {
        float: none;
        max-width: 100%;
        margin: 0 0 1.5rem 0;
    }

    .post-content {
        font-size: 1rem;
    }

    .post-content h2 {
        font-size: 1.5rem;
    }

    .post-content h3 {
        font-size: 1.25rem;
    }

    .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .related-posts .news-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   WordPress Specific
   ===================================================== */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.aligncenter {
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Admin Bar Adjustment */
body.admin-bar .site-header {
    top: 32px;
}

body.admin-bar.has-notification .site-header {
    top: 76px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }

    body.admin-bar.has-notification .site-header {
        top: 90px;
    }
}

/* =====================================================
   Locations Map
   ===================================================== */
.locations-map-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 1.5rem;
    align-items: start;
    margin-top: 2rem;
}

/* Location Lists */
.locations-list {
    padding: 0;
    border-radius: var(--radius-lg);
    background: var(--background-white);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.locations-category {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg) 0 var(--radius) 0;
}

.locations-offices .locations-category {
    background: var(--accent-green);
    color: white;
}

.locations-clinics .locations-category {
    background: var(--accent-gold);
    color: var(--text-primary);
}

.locations-list-items {
    padding: 0.5rem;
}

.location-item {
    padding: 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.location-item:hover,
.location-item.highlighted {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.location-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.location-item .location-address {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.location-item .location-phone {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.location-item .location-phone a {
    color: var(--primary-blue);
    font-weight: 500;
}

/* SVG Map Container */
.locations-map-container {
    position: relative;
    background: var(--background-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.usa-map {
    width: 100%;
    max-width: 700px;
    height: auto;
}

.usa-outline {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 1;
}

.usa-fill {
    fill: var(--primary-blue-light);
    stroke: var(--primary-blue);
    stroke-width: 1.5;
}

/* Map Pins */
.map-pin {
    position: absolute;
    width: 28px;
    height: 40px;
    transform: translate(-50%, -100%);
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease;
}

.map-pin .pin-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.office-pin .pin-icon {
    fill: var(--accent-green);
}

.clinic-pin .pin-icon {
    fill: var(--accent-gold);
}

.map-pin:hover {
    z-index: 20;
}

/* Pin bounce animation */
.map-pin.bounce {
    animation: pin-bounce 0.5s ease infinite;
}

@keyframes pin-bounce {
    0%, 100% { transform: translate(-50%, -100%); }
    50% { transform: translate(-50%, -115%); }
}

/* Responsive Locations Map */
@media (max-width: 1100px) {
    .locations-map-wrapper {
        grid-template-columns: 1fr 1fr;
    }

    .locations-map-container {
        grid-column: 1 / -1;
        order: -1;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .locations-map-wrapper {
        grid-template-columns: 1fr;
    }

    .locations-map-container {
        min-height: 300px;
        padding: 1rem;
    }

    .map-pin {
        width: 22px;
        height: 32px;
    }
}
