/*
Theme Name: Cult Compass
Description: A clean, modern WordPress theme based on the Cult Compass WebUI design system. Features orange and white color scheme with responsive design and smooth animations.
Author: Cult Compass Team
Version: 1.0.0
License: GPL v2 or later
Tags: clean, modern, responsive, orange, white, assessment, tools
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* =============================================================================
   CSS VARIABLES - CULT COMPASS DESIGN SYSTEM
   ============================================================================= */
:root {
    /* Primary Colors */
    --primary-orange: #ff6b35;
    --light-orange: #ff8c5a;
    --dark-orange: #e55529;
    --accent-orange: #ffa366;
    
    /* Neutral Colors */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --text-dark: #333333;
    --text-light: #666666;
    
    /* Status Colors */
    --success-green: #28a745;
    --warning-yellow: #ffc107;
    --danger-red: #dc3545;
    
    /* Design System */
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(255, 107, 53, 0.1);
    --box-shadow-hover: 0 8px 25px rgba(255, 107, 53, 0.15);
    --transition: all 0.3s ease;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* =============================================================================
   RESET AND BASE STYLES
   ============================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--medium-gray) 100%);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
}

.container, 
.wp-block-group__inner-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================================================
   TYPOGRAPHY SYSTEM
   ============================================================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { 
    font-size: 2.5rem; 
    color: var(--primary-orange); 
    font-weight: 700;
}

h2 { 
    font-size: 2rem; 
    color: var(--text-dark); 
    font-weight: 600;
}

h3 { 
    font-size: 1.5rem; 
    color: var(--text-dark); 
}

h4 { 
    font-size: 1.25rem; 
    color: var(--primary-orange); 
    font-weight: 600;
}

h5 { 
    font-size: 1.125rem; 
}

h6 { 
    font-size: 1rem; 
}

p {
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--dark-orange);
    text-decoration: underline;
}

/* =============================================================================
   HEADER STYLES
   ============================================================================= */
.site-header {
    background: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-top: 4px solid var(--primary-orange);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Site Branding */
.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-orange);
    text-decoration: none;
    margin: 0;
    transition: var(--transition);
}

.site-title:hover {
    color: var(--dark-orange);
    text-decoration: none;
    transform: translateY(-1px);
}

.site-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.main-navigation a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
}

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

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

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--primary-orange);
    text-decoration: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: var(--primary-orange);
    color: var(--white);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: var(--dark-orange);
    transform: translateY(-1px);
}

/* =============================================================================
   BUTTON SYSTEM
   ============================================================================= */
.btn, 
.nav-btn, 
.action-btn,
input[type="submit"], 
.wp-block-button__link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    min-width: 120px;
    font-family: var(--font-family);
}

/* Primary Buttons */
.btn.primary, 
.nav-btn.primary, 
.action-btn,
input[type="submit"], 
.wp-block-button__link {
    background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
    color: var(--white);
    border-color: var(--primary-orange);
}

.btn.primary:hover, 
.nav-btn.primary:hover, 
.action-btn:hover,
input[type="submit"]:hover, 
.wp-block-button__link:hover {
    background: linear-gradient(135deg, var(--dark-orange), var(--primary-orange));
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* Secondary Buttons */
.btn.secondary, 
.nav-btn.secondary {
    background: var(--white);
    color: var(--primary-orange);
    border-color: var(--primary-orange);
}

.btn.secondary:hover, 
.nav-btn.secondary:hover {
    background: var(--primary-orange);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

/* Large Buttons */
.btn.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 25px;
}

/* Disabled State */
.btn:disabled,
.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* =============================================================================
   MAIN CONTENT LAYOUT
   ============================================================================= */
.site-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 3rem;
    display: grid;
    gap: 3rem;
}

.has-sidebar .site-main {
    grid-template-columns: 1fr 350px;
}

.no-sidebar .site-main {
    grid-template-columns: 1fr;
    max-width: 1000px;
}

/* =============================================================================
   CONTENT CARDS
   ============================================================================= */
.content-card, 
.post, 
.page {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.content-card:hover,
.post:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--light-orange);
}

/* Entry Header */
.entry-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
}

.entry-title {
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.entry-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.entry-title a:hover {
    color: var(--dark-orange);
    text-decoration: none;
}

.entry-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.entry-meta a {
    color: var(--text-light);
    transition: var(--transition);
}

.entry-meta a:hover {
    color: var(--primary-orange);
}

/* Post Thumbnail */
.post-thumbnail {
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.post-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 53, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.post-thumbnail:hover::before {
    opacity: 1;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.post-thumbnail:hover img {
    transform: scale(1.05);
}

/* =============================================================================
   SIDEBAR STYLES
   ============================================================================= */
.widget-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 100px;
}

.widget {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    border-left: 4px solid var(--primary-orange);
    transition: var(--transition);
}

.widget:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-2px);
}

.widget-title {
    color: var(--primary-orange);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.widget li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
    transition: var(--transition);
}

.widget li:last-child {
    border-bottom: none;
}

.widget li:hover {
    padding-left: 0.5rem;
    background: var(--light-gray);
    border-radius: 4px;
}

.widget a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.widget a:hover {
    color: var(--primary-orange);
}

/* =============================================================================
   FRONT PAGE STYLES
   ============================================================================= */
.front-page-wrapper {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--medium-gray) 100%);
}

.front-page.no-sidebar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: block;
}

.homepage-actions {
    padding: 3rem 0;
}

.homepage-actions .container {
    max-width: 100%;
    margin: 0;
    width: 100%;
}

/* Homepage CTA Top */
.homepage-cta-top {
    background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
    color: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.homepage-cta-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.homepage-cta-top:hover::before {
    opacity: 1;
}

.homepage-cta-top h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.homepage-cta-top p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.homepage-cta-top .btn {
    background: var(--white);
    color: var(--primary-orange);
    border: 2px solid var(--white);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

.homepage-cta-top .btn:hover {
    background: transparent;
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Intro Section */
.intro-section {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.intro-section h2 {
    color: var(--primary-orange);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.intro-section p {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Action Buttons Grid */
.action-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.action-button-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.action-button-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-orange), var(--light-orange));
    border-radius: 16px 16px 0 0;
}

.action-button-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 107, 53, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-button-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.2);
    border-color: var(--light-orange);
}

.action-button-card:hover::after {
    opacity: 1;
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    position: relative;
    z-index: 1;
}

.action-button-card h3 {
    color: var(--primary-orange);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.action-button-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Homepage Info Section */
.homepage-info {
    margin-bottom: 4rem;
}

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

.info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--light-orange);
}

.info-card h4 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.info-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* =============================================================================
   FORM STYLES
   ============================================================================= */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    font-family: var(--font-family);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input[type="search"] {
    flex: 1;
    margin-bottom: 0;
}

.search-form input[type="submit"] {
    flex-shrink: 0;
    min-width: auto;
}

/* =============================================================================
   PAGINATION
   ============================================================================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1rem;
    background: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.pagination a:hover,
.pagination .current {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* =============================================================================
   ARCHIVE AND PAGE HEADERS
   ============================================================================= */
.archive-header,
.page-header {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    border-top: 4px solid var(--primary-orange);
}

.archive-title,
.page-title {
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.archive-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* =============================================================================
   COMMENTS SECTION
   ============================================================================= */
.comments-area {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-top: 2rem;
    border-left: 4px solid var(--primary-orange);
}

.comments-title {
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

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

.comment {
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    font-weight: 600;
    color: var(--text-dark);
}

.comment-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.comment-content p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.reply {
    margin-top: 0.5rem;
}

.reply a {
    font-size: 0.9rem;
    color: var(--primary-orange);
    font-weight: 500;
}

/* =============================================================================
   FOOTER STYLES
   ============================================================================= */
.site-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 2rem;
}

.footer-widget {
    color: var(--white);
}

.footer-widget .widget-title {
    color: var(--white);
    border-bottom: 2px solid var(--primary-orange);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-widget a:hover {
    color: var(--primary-orange);
}

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-gray);
    color: rgba(255, 255, 255, 0.6);
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.site-info a {
    color: var(--primary-orange);
}

/* =============================================================================
   LOADING AND ERROR STATES
   ============================================================================= */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--medium-gray);
    border-top: 4px solid var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Error 404 Page */
.error-404 .page-content {
    text-align: center;
    padding: 3rem 0;
}

.error-404 h1 {
    font-size: 6rem;
    color: var(--primary-orange);
    margin-bottom: 1rem;
    font-weight: 700;
}

/* =============================================================================
   WORDPRESS SPECIFIC STYLES
   ============================================================================= */
.alignleft {
    float: left;
    margin: 0 1rem 1rem 0;
}

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

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

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

.wp-caption-text {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    padding: 0.5rem;
}

.sticky {
    border-left: 4px solid var(--primary-orange);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Block Editor Styles */
.wp-block-group {
    margin: 2rem 0;
}

.wp-block-quote {
    border-left: 4px solid var(--primary-orange);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.wp-block-pullquote {
    border-top: 4px solid var(--primary-orange);
    border-bottom: 4px solid var(--primary-orange);
    padding: 2rem 0;
    text-align: center;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-light);
}

.wp-block-code {
    background: var(--light-gray);
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 1rem;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

.wp-block-table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.wp-block-table th,
.wp-block-table td {
    border: 1px solid var(--medium-gray);
    padding: 0.75rem;
    text-align: left;
}

.wp-block-table th {
    background: var(--light-gray);
    font-weight: 600;
    color: var(--text-dark);
}

/* =============================================================================
   ACCESSIBILITY
   ============================================================================= */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    word-wrap: normal !important;
    border: 0;
    height: 1px;
    overflow: hidden;
    padding: 0;
    width: 1px;
}

.screen-reader-text:focus {
    background-color: var(--light-gray);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: var(--text-dark);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */
@media (max-width: 1024px) {
    .has-sidebar .site-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .widget-area {
        position: static;
        order: -1;
    }
    
    .action-buttons-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container, .wp-block-group__inner-container {
        padding: 0 15px;
    }
    
    /* Header Responsive */
    .header-inner {
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .menu-toggle {
        display: block;
        order: 3;
    }
    
    .main-navigation {
        display: none;
        width: 100%;
        order: 4;
    }
    
    .main-navigation.toggled {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        background: var(--white);
        box-shadow: var(--box-shadow);
        border-radius: var(--border-radius);
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .main-navigation li {
        border-bottom: 1px solid var(--light-gray);
    }
    
    .main-navigation li:last-child {
        border-bottom: none;
    }
    
    .main-navigation a {
        display: block;
        padding: 1rem 0;
    }
    
    /* Content Responsive */
    .site-main {
        padding: 0 15px 2rem;
    }
    
    .content-card, .post, .page {
        padding: 1.5rem;
    }
    
    /* Front Page Responsive */
    .front-page .site-main {
        padding: 0 15px;
    }
    
    .homepage-actions {
        padding: 2rem 0;
    }
    
    .intro-section {
        margin-bottom: 3rem;
    }
    
    .intro-section h2 {
        font-size: 2rem;
    }
    
    .intro-section p {
        font-size: 1rem;
    }
    
    .action-button-card {
        padding: 2rem;
    }
    
    .action-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .action-button-card h3 {
        font-size: 1.3rem;
    }
    
    .homepage-cta-top {
        padding: 2rem;
    }
    
    .homepage-cta-top h3 {
        font-size: 1.5rem;
    }
    
    /* Footer Responsive */
    .footer-widgets {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .site-info {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Typography Responsive */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.5rem;
    }
    
    .homepage-cta-top h3 {
        font-size: 1.4rem;
    }
    
    .homepage-cta-top p {
        font-size: 1rem;
    }
    
    .pagination {
        gap: 0.25rem;
    }
    
    .pagination a,
    .pagination span {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .action-button-card {
        padding: 1.5rem;
    }
}

/* =============================================================================
   PRINT STYLES
   ============================================================================= */
@media print {
    .site-header,
    .site-footer,
    .widget-area,
    .menu-toggle,
    .main-navigation {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .content-card, .post, .page {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* =============================================================================
   HIGH CONTRAST AND REDUCED MOTION SUPPORT
   ============================================================================= */
@media (prefers-contrast: high) {
    .action-button-card,
    .content-card,
    .post,
    .page {
        border-width: 3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .loading-spinner {
        animation: none;
        border: 4px solid var(--primary-orange);
    }
}

/* Fix pseudo-elements blocking clicks */
.action-button-card::before,
.action-button-card::after,
.homepage-cta-top::before,
.homepage-cta-top::after,
.post-thumbnail::before,
*::before,
*::after {
    pointer-events: none !important;
}

/* Ensure all buttons and links are clickable */
.btn,
.action-btn,
.nav-btn,
a,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 10;
}

/* Ensure button content is above pseudo-elements */
.action-button-card > *,
.homepage-cta-top > * {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

/* Specific fix for homepage buttons */
.homepage-cta-top .btn,
.action-button-card .action-btn {
    position: relative;
    z-index: 20;
    pointer-events: auto;
    cursor: pointer;
}

.homepage-cta-top .btn:hover,
.action-button-card .action-btn:hover {
    cursor: pointer;
}

.error-message {
    display: none;
}

/* Update Block Quote backgrounds */
.wp-block-quote {
    border-left: 4px solid var(--primary-orange);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
    background: linear-gradient(135deg, #fff8f5 0%, #fef7f3 100%);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

/* Update Code Block backgrounds */
.wp-block-code {
    background: linear-gradient(135deg, #fff8f5 0%, #fef7f3 100%);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: var(--border-radius);
    padding: 1rem;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

/* Update Table Header backgrounds */
.wp-block-table th {
    background: linear-gradient(135deg, #fff8f5 0%, #fef7f3 100%);
    font-weight: 600;
    color: var(--text-dark);
}

/* Update Widget hover states */
.widget li:hover {
    padding-left: 0.5rem;
    background: linear-gradient(135deg, #fff8f5 0%, #fef7f3 100%);
    border-radius: 4px;
}

/* Update any remaining light gray backgrounds */
.light-gray {
    background: linear-gradient(135deg, #fff8f5 0%, #fef7f3 100%);
}

/* For form focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    background-color: #fffbf9;
}

/* Update archive header backgrounds */
.archive-header,
.page-header {
    background: linear-gradient(135deg, #fff8f5 0%, #fef7f3 100%);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    border-top: 4px solid var(--primary-orange);
}

/* Also update these in assessment.css for consistency */
/* Classification details backgrounds */
.classification-details {
    background: linear-gradient(135deg, #fff8f5 0%, #fef7f3 100%);
    padding: 1rem;
    border-radius: 8px;
    text-align: left;
}

/* Section item hover states */
.section-item.current {
    background: linear-gradient(135deg, #fff8f5 0%, #fef7f3 100%);
    border-left: 4px solid var(--primary-orange);
}

/* Recommendations section */
.recommendations-section {
    background: linear-gradient(135deg, #fff8f5 0%, #fef7f3 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Info cards */
.info-card {
    background: linear-gradient(135deg, #fff8f5 0%, #fef7f3 100%);
}

/* General rule for any future gray backgrounds */
*[style*="background: #f8f9fa"],
*[style*="background: var(--light-gray)"],
*[style*="background-color: #f8f9fa"],
*[style*="background-color: var(--light-gray)"] {
    background: linear-gradient(135deg, #fff8f5 0%, #fef7f3 100%) !important;
}
