/*
Theme Name: Badass Blog Theme
Theme URI: https://badassnetwork.com
Author: Aron & Sharon
Author URI: https://aronandsharon.com
Description: A modern, reader-focused blog theme with built-in opt-in forms and widgets. Perfect for bloggers who want to grow their audience, share their stories, and build a community through the Badass Network.
Version: 1.3.2
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: badass-blog
Tags: blog, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, sticky-post, theme-options, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    /* Primary Colors */
    --primary-teal: #4A9FBD;
    --primary-teal-dark: #3A7F9D;
    --primary-teal-light: #5FA9CA;

    /* Accent Colors */
    --accent-coral: #C13838;
    --accent-coral-dark: #A02828;
    --accent-green: #7AB800;
    --accent-green-light: #9FCC3D;

    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F9F9F9;
    --gray-100: #F5F5F5;
    --gray-200: #E8E8E8;
    --gray-300: #DCDCDC;
    --gray-400: #CCCCCC;
    --gray-500: #999999;
    --gray-600: #666666;
    --gray-700: #333333;

    /* Text */
    --text-dark: #2C2C2C;
    --text-medium: #555555;
    --text-light: #888888;

    /* Typography */
    --font-primary: 'Helvetica Neue', 'Arial', sans-serif;
    --font-size-10: 10px;
    --font-size-12: 12px;
    --font-size-13: 13px;
    --font-size-14: 14px;
    --font-size-16: 16px;
    --font-size-18: 18px;
    --font-size-20: 20px;
    --font-size-24: 24px;
    --font-size-28: 28px;
    --font-size-32: 32px;
    --font-size-36: 36px;

    --font-weight-normal: 400;
    --font-weight-bold: 700;
    --font-weight-black: 900;

    /* Spacing */
    --space-4: 4px;
    --space-6: 6px;
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-20: 20px;
    --space-24: 24px;
    --space-28: 28px;
    --space-32: 32px;
    --space-40: 40px;
    --space-48: 48px;

    /* Border Radius */
    --radius-2: 2px;
    --radius-4: 4px;
    --radius-6: 6px;
    --radius-8: 8px;

    /* Shadows */
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-small: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-medium: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(to bottom, #F5F5F5 0%, #EBEBEB 50%, #E0E0E0 100%);
    background-attachment: fixed;
    position: relative;
    margin: 0;
    padding: 0;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(74, 159, 189, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 50% 100%, rgba(122, 184, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    color: var(--text-dark);
    margin-top: 0;
}

h1 {
    font-size: var(--font-size-36);
    font-weight: var(--font-weight-black);
    line-height: 1.15;
    margin-bottom: var(--space-20);
}

h2 {
    font-size: var(--font-size-28);
    line-height: 1.2;
    margin-bottom: var(--space-16);
}

h3 {
    font-size: var(--font-size-24);
    margin-bottom: var(--space-12);
}

h4 {
    font-size: var(--font-size-20);
    margin-bottom: var(--space-12);
}

p {
    font-size: var(--font-size-16);
    line-height: 1.6;
    color: var(--text-medium);
    margin-bottom: var(--space-16);
    margin-top: 0;
}

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

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

/* ============================================
   LAYOUT
   ============================================ */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-20);
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-32);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-20);
}

.fullwidth .content-area {
    grid-template-columns: 1fr;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn,
button.btn,
input[type="submit"],
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-12) var(--space-24);
    border: none;
    border-radius: var(--radius-6);
    font-family: var(--font-primary);
    font-size: var(--font-size-14);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    background-color: var(--primary-teal);
    color: var(--white);
}

.btn:hover,
button.btn:hover,
input[type="submit"]:hover {
    background-color: var(--primary-teal-dark);
    transform: translateY(-2px);
    color: var(--white);
}

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

.btn-secondary {
    background-color: var(--accent-coral);
}

.btn-secondary:hover {
    background-color: var(--accent-coral-dark);
}

.btn-block {
    width: 100%;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.nav-bar {
    background-color: var(--white);
    box-shadow: var(--shadow-small);
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Admin bar adjustments */
.admin-bar .nav-bar {
    top: 32px;
}

/* Below 782px, hide admin bar on mobile so sticky header works correctly */
@media screen and (max-width: 782px) {
    html #wpadminbar {
        margin-top: -46px;
    }

    .admin-bar .nav-bar {
        top: 0;
    }
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-20) var(--space-20);
    gap: var(--space-20);
}

.nav-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Custom Logo Styles */
.custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.custom-logo {
    max-height: 60px;
    width: auto;
    height: auto;
    transition: opacity 0.3s ease;
}

.custom-logo:hover {
    opacity: 0.8;
}

.blog-title {
    font-size: var(--font-size-24);
    font-weight: var(--font-weight-bold);
    color: var(--primary-teal);
    letter-spacing: 0.5px;
    margin: 0;
}

.blog-title a {
    color: var(--primary-teal);
}

.blog-tagline {
    font-size: var(--font-size-12);
    color: var(--text-light);
    font-weight: var(--font-weight-normal);
    margin: 0;
    margin-top: var(--space-4);
}

.nav-links {
    display: flex;
    list-style-type: none;
    gap: var(--space-24);
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--primary-teal);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-14);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-coral);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: var(--space-4);
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-8);
}

.hamburger span {
    width: 24px;
    height: 3px;
    background-color: var(--primary-teal);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, rgba(74, 159, 189, 0.1) 0%, rgba(122, 184, 0, 0.05) 100%);
    padding: var(--space-48) var(--space-20);
    margin-bottom: var(--space-32);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: var(--font-size-36);
    font-weight: var(--font-weight-black);
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: var(--space-20);
}

.hero-subtitle {
    font-size: var(--font-size-18);
    color: var(--text-medium);
    margin-bottom: var(--space-32);
    line-height: 1.6;
}

.hero-form {
    background: var(--white);
    padding: var(--space-32);
    border-radius: var(--radius-8);
    box-shadow: var(--shadow-medium);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-16);
    margin-bottom: var(--space-16);
}

.form-input {
    padding: var(--space-12) var(--space-16);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-6);
    font-family: var(--font-primary);
    font-size: var(--font-size-14);
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(74, 159, 189, 0.1);
}

.form-submit,
button.form-submit,
.hero-form button[type="submit"] {
    padding: var(--space-12) var(--space-24);
    background-color: var(--accent-coral);
    color: var(--white);
    border: none;
    border-radius: var(--radius-6);
    font-size: var(--font-size-14);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-submit:hover,
button.form-submit:hover,
.hero-form button[type="submit"]:hover {
    background-color: var(--accent-coral-dark);
    transform: translateY(-2px);
}

.form-disclaimer {
    color: var(--text-light);
    font-size: var(--font-size-13);
    text-align: center;
    margin-top: var(--space-12);
    margin-bottom: 0;
}

/* Subtitle inside form (when headline is above columns) */
.form-subtitle {
    text-align: center;
    margin-bottom: var(--space-20);
    font-size: var(--font-size-16);
    color: var(--text-medium);
    margin-top: 0;
}

.hero-form-vertical .form-subtitle {
    text-align: left;
}

/* ============================================
   HERO LAYOUT VARIATIONS
   ============================================ */

/* Hero Container for all layouts */
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-20);
}

/* Single Column Layout (default) */
.hero-layout-single-column .hero-container {
    max-width: 900px;
}

.hero-layout-single-column .hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Two Column Layouts with Video - Base Styles */
.hero-layout-video-left-half .hero-columns,
.hero-layout-video-left-wide .hero-columns,
.hero-layout-video-left-narrow .hero-columns,
.hero-layout-video-right-half .hero-columns,
.hero-layout-video-right-wide .hero-columns,
.hero-layout-video-right-narrow .hero-columns {
    display: grid;
    gap: var(--space-48);
    align-items: center;
}

/* 50/50 Layouts */
.hero-layout-video-left-half .hero-columns,
.hero-layout-video-right-half .hero-columns {
    grid-template-columns: 1fr 1fr;
}

/* 66/33 Layouts (Wide Video) */
.hero-layout-video-left-wide .hero-columns {
    grid-template-columns: 2fr 1fr;
}

.hero-layout-video-right-wide .hero-columns {
    grid-template-columns: 1fr 2fr;
}

/* 33/66 Layouts (Narrow Video) */
.hero-layout-video-left-narrow .hero-columns {
    grid-template-columns: 1fr 2fr;
}

.hero-layout-video-right-narrow .hero-columns {
    grid-template-columns: 2fr 1fr;
}

/* Hero Header (Headline Above Columns) */
.hero-header {
    width: 100%;
    margin-bottom: var(--space-32);
}

.hero-header .hero-title {
    margin-bottom: 0;
}

/* Hero Header Alignment - use high specificity to override video layout styles */
.hero-section .hero-header-align-left,
.hero-section .hero-header-align-left .hero-title {
    text-align: left !important;
}

.hero-section .hero-header-align-center,
.hero-section .hero-header-align-center .hero-title {
    text-align: center !important;
}

.hero-section .hero-header-align-right,
.hero-section .hero-header-align-right .hero-title {
    text-align: right !important;
}

/* Video Left layouts: Video in first column, content in second */
.hero-layout-video-left-half .hero-video-column,
.hero-layout-video-left-wide .hero-video-column,
.hero-layout-video-left-narrow .hero-video-column {
    grid-column: 1;
    grid-row: 1;
}

.hero-layout-video-left-half .hero-content,
.hero-layout-video-left-wide .hero-content,
.hero-layout-video-left-narrow .hero-content {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    max-width: none;
}

/* Video Right layouts: Content in first column, video in second */
.hero-layout-video-right-half .hero-content,
.hero-layout-video-right-wide .hero-content,
.hero-layout-video-right-narrow .hero-content {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
    max-width: none;
}

.hero-layout-video-right-half .hero-video-column,
.hero-layout-video-right-wide .hero-video-column,
.hero-layout-video-right-narrow .hero-video-column {
    grid-column: 2;
    grid-row: 1;
}

/* Text alignment for all video layouts */
.hero-layout-video-left-half .hero-title,
.hero-layout-video-left-wide .hero-title,
.hero-layout-video-left-narrow .hero-title,
.hero-layout-video-right-half .hero-title,
.hero-layout-video-right-wide .hero-title,
.hero-layout-video-right-narrow .hero-title {
    text-align: left;
}

.hero-layout-video-left-half .hero-subtitle,
.hero-layout-video-left-wide .hero-subtitle,
.hero-layout-video-left-narrow .hero-subtitle,
.hero-layout-video-right-half .hero-subtitle,
.hero-layout-video-right-wide .hero-subtitle,
.hero-layout-video-right-narrow .hero-subtitle {
    text-align: left;
}

/* Video Column */
.hero-video-column {
    width: 100%;
}

/* Video Wrapper */
.hero-video-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--radius-8);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-dark) 100%);
}

/* Video Thumbnail */
.hero-video-thumbnail {
    position: relative;
    cursor: pointer;
}

.hero-video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Video Placeholder (no thumbnail) */
.hero-video-placeholder {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-dark) 100%);
    cursor: pointer;
}

/* Play Button */
.hero-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 2;
}

.hero-video-placeholder .hero-video-play-btn {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
}

.hero-video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.hero-video-placeholder .hero-video-play-btn:hover {
    transform: scale(1.1);
}

.hero-video-play-btn svg {
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.hero-video-play-btn .play-bg {
    transition: fill 0.3s ease;
}

.hero-video-play-btn:hover .play-bg {
    fill: var(--accent-coral-dark);
}

/* Video Iframe Container */
.hero-video-iframe {
    aspect-ratio: 16 / 9;
}

.hero-video-iframe iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Video is playing state */
.hero-video-wrapper.is-playing .hero-video-thumbnail,
.hero-video-wrapper.is-playing .hero-video-placeholder {
    display: none;
}

.hero-video-wrapper.is-playing .hero-video-iframe {
    display: block !important;
}

/* Vertical Form for Video Layouts */
.hero-form-vertical {
    padding: var(--space-24);
}

.hero-form-vertical .form-row {
    grid-template-columns: 1fr;
    gap: var(--space-12);
}

.hero-form-vertical .form-submit {
    width: 100%;
    padding: var(--space-16) var(--space-24);
}

.hero-form-vertical .form-disclaimer {
    text-align: left;
}

/* Responsive Design for Hero Layouts */
@media (max-width: 968px) {
    .hero-layout-video-left-half .hero-columns,
    .hero-layout-video-left-wide .hero-columns,
    .hero-layout-video-left-narrow .hero-columns,
    .hero-layout-video-right-half .hero-columns,
    .hero-layout-video-right-wide .hero-columns,
    .hero-layout-video-right-narrow .hero-columns {
        grid-template-columns: 1fr;
        gap: var(--space-32);
    }

    /* On mobile, always show video on top */
    .hero-layout-video-left-half .hero-video-column,
    .hero-layout-video-left-wide .hero-video-column,
    .hero-layout-video-left-narrow .hero-video-column,
    .hero-layout-video-right-half .hero-video-column,
    .hero-layout-video-right-wide .hero-video-column,
    .hero-layout-video-right-narrow .hero-video-column {
        grid-column: 1;
        grid-row: 1;
    }

    .hero-layout-video-left-half .hero-content,
    .hero-layout-video-left-wide .hero-content,
    .hero-layout-video-left-narrow .hero-content,
    .hero-layout-video-right-half .hero-content,
    .hero-layout-video-right-wide .hero-content,
    .hero-layout-video-right-narrow .hero-content {
        grid-column: 1;
        grid-row: 2;
        text-align: center;
    }

    .hero-layout-video-left-half .hero-title,
    .hero-layout-video-left-wide .hero-title,
    .hero-layout-video-left-narrow .hero-title,
    .hero-layout-video-right-half .hero-title,
    .hero-layout-video-right-wide .hero-title,
    .hero-layout-video-right-narrow .hero-title,
    .hero-layout-video-left-half .hero-subtitle,
    .hero-layout-video-left-wide .hero-subtitle,
    .hero-layout-video-left-narrow .hero-subtitle,
    .hero-layout-video-right-half .hero-subtitle,
    .hero-layout-video-right-wide .hero-subtitle,
    .hero-layout-video-right-narrow .hero-subtitle {
        text-align: center;
    }

    .hero-form-vertical .form-disclaimer {
        text-align: center;
    }

    .hero-header {
        margin-bottom: var(--space-24);
    }
}

@media (max-width: 768px) {
    .hero-container {
        padding: 0 var(--space-16);
    }

    .hero-video-play-btn svg {
        width: 54px;
        height: 38px;
    }
}

/* ============================================
   MAIN CONTENT - POSTS
   ============================================ */
.main-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
}

.post,
.page {
    background: var(--white);
    padding: var(--space-24);
    border-radius: var(--radius-8);
    box-shadow: var(--shadow-small);
    transition: all 0.3s ease;
}

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

.post-title {
    font-size: var(--font-size-28);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-12);
    color: var(--text-dark);
}

.post-title a {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--accent-coral);
}

.post-meta {
    color: var(--text-light);
    font-size: var(--font-size-13);
    margin-bottom: var(--space-16);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid var(--gray-200);
}

.post-meta span {
    margin-right: var(--space-20);
}

.post-excerpt {
    margin-bottom: var(--space-16);
    line-height: 1.8;
    color: var(--text-medium);
}

.read-more {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-teal);
    color: var(--white);
    padding: var(--space-12) var(--space-24);
    text-decoration: none;
    border-radius: var(--radius-6);
    font-weight: var(--font-weight-bold);
    transition: all 0.3s ease;
    font-size: var(--font-size-14);
}

.read-more:hover {
    background-color: var(--primary-teal-dark);
    transform: translateX(4px);
    color: var(--white);
}

/* Post Featured Images (Archive/Listing) */
.post-thumbnail-link {
    display: block;
    margin-bottom: var(--space-16);
    border-radius: var(--radius-8);
    overflow: hidden;
}

.post-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.post-thumbnail-link:hover .post-thumbnail {
    transform: scale(1.02);
    opacity: 0.9;
}

/* Single Post Styles */
.post-content {
    background: var(--white);
    padding: var(--space-32);
    border-radius: var(--radius-8);
    box-shadow: var(--shadow-small);
}

/* Single Post Featured Image */
.post-featured-image {
    margin-bottom: var(--space-24);
    border-radius: var(--radius-8);
    overflow: hidden;
}

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

.post-header {
    margin-bottom: var(--space-24);
    padding-bottom: var(--space-20);
    border-bottom: 1px solid var(--gray-200);
}

/* Remove duplicate border from post-meta inside post-header on single posts */
.post-content .post-header .post-meta {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.post-title-single {
    font-size: var(--font-size-36);
    margin-bottom: var(--space-16);
    color: var(--text-dark);
    font-weight: var(--font-weight-black);
    line-height: 1.2;
}

/* Social Share Buttons */
.social-share {
    display: flex;
    gap: var(--space-12);
    margin: var(--space-20) 0;
    padding: var(--space-16) 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

/* Remove double border and extra spacing when social share directly follows post header (no featured image) */
.post-header:has(+ .social-share) {
    margin-bottom: 0;
}

.post-header + .social-share {
    border-top: none;
    margin-top: 0;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--gray-100);
    border-radius: var(--radius-6);
    color: var(--text-medium);
    text-decoration: none;
    font-size: var(--font-size-16);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.share-button:hover {
    background-color: var(--primary-teal);
    color: var(--white);
    transform: translateY(-2px);
}

/* Post Body Content */
.post-body,
.entry-content {
    margin: var(--space-24) 0;
    line-height: 1.8;
}

.post-body p,
.entry-content p {
    margin-bottom: var(--space-16);
}

.post-body h2,
.entry-content h2 {
    font-size: var(--font-size-28);
    margin-top: var(--space-32);
    margin-bottom: var(--space-16);
}

.post-body h3,
.entry-content h3 {
    font-size: var(--font-size-24);
    margin-top: var(--space-24);
    margin-bottom: var(--space-12);
}

.post-body strong,
.entry-content strong {
    color: var(--text-dark);
}

.post-body img,
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-8);
}

/* Author Bio */
.author-bio {
    background: var(--gray-50);
    padding: var(--space-24);
    border-radius: var(--radius-8);
    margin: var(--space-32) 0;
    display: flex;
    gap: var(--space-20);
}

.author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--primary-teal);
}

.author-info h4 {
    margin-top: 0;
}

.author-info p {
    font-size: var(--font-size-14);
    color: var(--text-medium);
}

/* Related Posts */
.related-posts {
    margin: var(--space-32) 0;
}

.related-posts h3 {
    margin-bottom: var(--space-20);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-20);
}

.related-post {
    background: var(--white);
    padding: var(--space-20);
    border-radius: var(--radius-8);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

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

.related-post h4 {
    font-size: var(--font-size-16);
    margin-bottom: var(--space-12);
}

.related-post h4 a {
    color: var(--text-dark);
}

.related-post h4 a:hover {
    color: var(--accent-coral);
}

.related-post p {
    font-size: var(--font-size-14);
    color: var(--text-medium);
    margin: 0;
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-area {
    margin: var(--space-32) 0;
}

.comments-title {
    margin-bottom: var(--space-20);
}

.comment-form {
    background: var(--gray-50);
    padding: var(--space-24);
    border-radius: var(--radius-8);
    margin-bottom: var(--space-24);
}

.comment-form h3 {
    margin-top: 0;
    margin-bottom: var(--space-16);
}

.comment-form-comment,
.comment-form-author,
.comment-form-email {
    margin-bottom: var(--space-16);
}

.comment-form label {
    display: block;
    margin-bottom: var(--space-8);
    font-weight: var(--font-weight-bold);
    color: var(--text-dark);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: var(--space-12) var(--space-16);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-6);
    font-family: var(--font-primary);
    font-size: var(--font-size-14);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(74, 159, 189, 0.1);
}

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

.comment-form input[type="submit"],
.comment-form .submit input[type="submit"],
.submit .comment-submit {
    background-color: var(--accent-coral);
    color: var(--white);
    padding: var(--space-12) var(--space-24);
    border: none;
    border-radius: var(--radius-6);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--font-size-14);
    font-family: var(--font-primary);
}

.comment-form input[type="submit"]:hover,
.comment-form .submit input[type="submit"]:hover,
.submit .comment-submit:hover {
    background-color: var(--accent-coral-dark);
    transform: translateY(-2px);
}

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

.comment {
    background: var(--white);
    padding: var(--space-20);
    border-radius: var(--radius-8);
    margin-bottom: var(--space-16);
    border-left: 4px solid var(--primary-teal);
}

.comment-author {
    font-weight: var(--font-weight-bold);
    color: var(--text-dark);
    margin-bottom: var(--space-4);
}

.comment-metadata {
    font-size: var(--font-size-12);
    color: var(--text-light);
    margin-bottom: var(--space-8);
}

.comment-content {
    color: var(--text-medium);
    font-size: var(--font-size-14);
}

/* ============================================
   SIDEBAR & WIDGETS
   ============================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
}

.widget {
    background: var(--white);
    padding: var(--space-24);
    border-radius: var(--radius-8);
    box-shadow: var(--shadow-small);
}

.widget img {
    max-width: 100%;
    height: auto;
}

.widget figure.wp-caption {
    max-width: 100% !important;
    width: auto !important;
}

.widget-title {
    font-size: var(--font-size-20);
    margin-bottom: var(--space-16);
    margin-top: 0;
    color: var(--text-dark);
    font-weight: var(--font-weight-bold);
}

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

.widget ul li {
    margin-bottom: var(--space-12);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--gray-200);
}

.widget ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget ul li a {
    color: var(--primary-teal);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: var(--font-weight-normal);
    font-size: var(--font-size-14);
}

.widget ul li a:hover {
    color: var(--accent-coral);
}

.widget select {
    width: 100%;
    padding: var(--space-8) var(--space-12);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-6);
}

/* Profile Widget */
.profile-widget {
    text-align: center;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto var(--space-16) auto;
    border: 3px solid var(--primary-teal);
    box-shadow: var(--shadow-small);
    display: block;
}

/* Opt-in Widget */
.optin-widget {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border: 2px solid var(--primary-teal);
}

.optin-widget .widget-title {
    color: var(--primary-teal);
}

.optin-input {
    width: 100%;
    padding: var(--space-12) var(--space-16);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-6);
    font-size: var(--font-size-14);
    font-family: var(--font-primary);
    transition: border-color 0.3s ease;
    margin-bottom: var(--space-12);
}

.optin-input:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(74, 159, 189, 0.1);
}

.optin-submit {
    width: 100%;
    padding: var(--space-12) var(--space-16);
    background-color: var(--accent-coral);
    color: var(--white);
    border: none;
    border-radius: var(--radius-6);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--font-size-14);
}

.optin-submit:hover {
    background-color: var(--accent-coral-dark);
    transform: translateY(-2px);
}

/* Video Banner Widget */
.free-video-banner {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-light) 100%);
    color: var(--white);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--radius-8);
    padding: var(--space-24);
}

.free-video-banner:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.free-video-banner h3 {
    font-size: var(--font-size-20);
    margin-bottom: var(--space-12);
    font-weight: var(--font-weight-bold);
    margin-top: 0;
    color: var(--white);
}

.free-video-banner p {
    font-size: var(--font-size-14);
    margin: 0;
    color: var(--white);
}

/* Blue Banner Widget */
.widget.blue-banner {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-light) 100%);
    color: var(--white);
}

.widget.blue-banner h4,
.widget.blue-banner h3,
.widget.blue-banner .widget-title {
    color: var(--white);
}

.widget.blue-banner p {
    color: var(--white);
}

.widget.blue-banner a {
    color: var(--white);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, rgba(74, 159, 189, 0.1) 0%, rgba(122, 184, 0, 0.05) 100%);
    padding: var(--space-48) var(--space-20);
    text-align: center;
    margin-top: var(--space-48);
    margin-bottom: 0;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h3 {
    font-size: var(--font-size-28);
    margin-bottom: var(--space-16);
    color: var(--text-dark);
}

.cta-content p {
    margin-bottom: var(--space-24);
    font-size: var(--font-size-16);
    color: var(--text-medium);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    background-color: var(--accent-coral);
    color: var(--white);
    padding: var(--space-12) var(--space-32);
    text-decoration: none;
    border-radius: var(--radius-6);
    font-weight: var(--font-weight-bold);
    transition: all 0.3s ease;
    font-size: var(--font-size-14);
}

.cta-button:hover {
    background-color: var(--accent-coral-dark);
    transform: translateY(-2px);
    color: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */
.footer-bar {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: var(--space-24) var(--space-20);
}

.footer-widgets {
    max-width: 1200px;
    margin: 0 auto var(--space-32) auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-32);
}

.footer-widgets .widget {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-20);
}

.footer-copyright {
    font-size: var(--font-size-13);
    color: var(--text-light);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: var(--space-24);
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    font-size: var(--font-size-13);
    color: var(--primary-teal);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-coral);
}

/* Footer Social Icons */
.footer-social {
    display: flex;
    gap: var(--space-12);
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-6);
    background-color: var(--gray-100);
    color: var(--text-medium);
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
    color: var(--white);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

/* Social Icon Brand Colors on Hover */
.social-icon-facebook:hover {
    background-color: #1877F2;
}

.social-icon-twitter:hover {
    background-color: #000000;
}

.social-icon-linkedin:hover {
    background-color: #0A66C2;
}

.social-icon-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon-youtube:hover {
    background-color: #FF0000;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    margin: var(--space-32) 0;
}

.pagination a,
.pagination span {
    padding: var(--space-8) var(--space-16);
    background: var(--white);
    border-radius: var(--radius-6);
    color: var(--primary-teal);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--primary-teal);
    color: var(--white);
}

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

/* ============================================
   WORDPRESS CORE STYLES
   ============================================ */
.alignleft {
    float: left;
    margin-right: var(--space-20);
    margin-bottom: var(--space-16);
}

.alignright {
    float: right;
    margin-left: var(--space-20);
    margin-bottom: var(--space-16);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.wp-caption-text {
    font-size: var(--font-size-13);
    color: var(--text-light);
    text-align: center;
    padding: var(--space-8) 0;
}/* Add styles for sticky posts if desired */

.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;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-16);
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .cta-section {
        padding: var(--space-32) var(--space-16);
        margin-bottom: 0;
        margin-top: var(--space-32);
    }

    .cta-content h3 {
        font-size: var(--font-size-24);
    }

    .cta-content p {
        font-size: var(--font-size-14);
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--white);
        border-top: 1px solid var(--gray-200);
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: var(--space-16) var(--space-20);
        border-bottom: 1px solid var(--gray-200);
        display: block;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .blog-title {
        font-size: var(--font-size-20);
    }

    .custom-logo {
        max-height: 50px;
    }

    .content-area {
        grid-template-columns: 1fr;
        gap: var(--space-20);
        margin: var(--space-20) auto;
        padding: 0 var(--space-16);
    }

    .main-content {
        gap: var(--space-20);
    }

    .post {
        padding: var(--space-20);
    }

    .post-title {
        font-size: var(--font-size-24);
    }

    .hero-title {
        font-size: var(--font-size-28);
    }

    .hero-subtitle {
        font-size: var(--font-size-16);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    .hero-form {
        padding: var(--space-24);
    }

    .hero-section {
        padding: var(--space-24) var(--space-16);
        margin-bottom: var(--space-24);
    }

    .footer-bar {
        padding: var(--space-32) var(--space-16);
    }

    .post-content {
        padding: var(--space-20);
    }

    .post-title-single {
        font-size: var(--font-size-28);
    }

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

    .author-bio {
        flex-direction: column;
        text-align: center;
    }

    .author-image {
        margin: 0 auto var(--space-16) auto;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-content {
        padding: var(--space-16) var(--space-16);
    }

    .blog-title {
        font-size: var(--font-size-18);
    }

    .custom-logo {
        max-height: 40px;
    }

    .blog-tagline {
        display: none;
    }

    .container,
    .content-area {
        padding: 0 var(--space-12);
    }

    .post,
    .post-content {
        padding: var(--space-16);
    }

    .hero-form {
        padding: var(--space-16);
    }

    .hero-title {
        font-size: var(--font-size-24);
    }

    .sidebar {
        gap: var(--space-16);
    }

    .widget {
        padding: var(--space-16);
    }

    .social-share {
        gap: var(--space-8);
    }
}

/* ============================================
   CUSTOM WIDGET STYLES
   ============================================ */

/* Optin Widget Additional Styles */
.optin-description {
    margin-bottom: var(--space-12);
    color: var(--text-medium);
    font-size: var(--font-size-14);
}

.optin-privacy {
    font-size: var(--font-size-12);
    color: var(--text-light);
    text-align: center;
    margin-top: var(--space-8);
    margin-bottom: 0;
}

.optin-form {
    margin: 0;
}

.optin-form .optin-input {
    margin-bottom: var(--space-12);
}

/* Banner CTA Widget */
.banner-cta-content {
    text-align: center;
}

.banner-cta-button {
    display: inline-block;
    background: var(--accent-coral);
    color: var(--white);
    padding: var(--space-12) var(--space-20);
    text-decoration: none;
    border-radius: var(--radius-6);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-14);
    transition: all 0.3s ease;
}

.banner-cta-button:hover {
    background: var(--accent-coral-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.widget.blue-banner h4 {
    margin-bottom: var(--space-12);
}

.widget.blue-banner p {
    margin-bottom: var(--space-16);
}

/* Free Video Banner Widget */
.free-video-banner-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.free-video-banner-link:hover {
    color: inherit;
}

.free-video-banner h3,
.free-video-banner p {
    margin: 0;
}

.free-video-banner h3 {
    margin-bottom: var(--space-8);
}

/* Profile Widget */
.profile-widget-inner p {
    margin-bottom: 0;
    font-size: var(--font-size-14);
    line-height: 1.6;
}

.profile-image {
    display: block;
    object-fit: cover;
}

/* Widget List Enhancements */
.widget ul li a {
    display: block;
    transition: transform 0.2s ease;
}

.widget ul li a:hover {
    transform: translateX(4px);
}

/* ============================================
   HERO AND CTA SECTION DISABLED ADJUSTMENTS
   ============================================ */

/* When hero section is disabled, add top margin to site-content */
.hero-disabled .site-content {
    margin-top: var(--space-32);
}

/* When CTA section is disabled, ensure proper spacing before footer */
.cta-disabled .footer-bar {
    margin-top: var(--space-48);
}

/* Mobile adjustments for disabled sections */
@media (max-width: 768px) {
    .hero-disabled .site-content {
        margin-top: var(--space-24);
    }

    .cta-disabled .footer-bar {
        margin-top: var(--space-32);
    }
}

/* ============================================
   EMAIL INTEGRATION FORM MESSAGES
   ============================================ */

.form-message {
    margin-top: var(--space-16);
    padding: var(--space-12) var(--space-16);
    border-radius: var(--radius-6);
    font-size: var(--font-size-14);
    line-height: 1.5;
    text-align: center;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Optin form message (for widget) */
.optin-form .form-message {
    margin-top: var(--space-12);
}

/* Loading state for submit buttons */
.form-submit:disabled,
.optin-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
