/*
Theme Name: TopVelocity
Theme URI: https://topvelocity.net
Author: TopVelocity
Author URI: https://topvelocity.net
Description: A modern, high-converting theme for TopVelocity baseball training platform. Features a sales-focused homepage with dual-audience targeting (Players & Organizations), embedded videos, correct pricing tiers, and customizer integration.
Version: 2.1.2
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: topvelocity
Tags: one-column, two-columns, custom-colors, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, theme-options, blog
*/

/* ==========================================================================
   CSS Variables - TopVelocity Brand Colors
   ========================================================================== */
:root {
    /* Primary: Red from logo */
    --tv-primary: #c41e3a;
    --tv-primary-dark: #a01830;
    --tv-primary-light: #fde8eb;
    
    /* Secondary: Black/Dark from logo */
    --tv-secondary: #1a1a1a;
    --tv-secondary-dark: #000000;
    
    /* Accent: Orange/flame color */
    --tv-accent: #ff6b35;
    --tv-accent-dark: #e55a2b;
    
    /* Text colors */
    --tv-text: #1a1a1a;
    --tv-text-light: #4a4a4a;
    --tv-text-lighter: #6b6b6b;
    
    /* Background colors */
    --tv-bg: #f5f5f5;
    --tv-white: #ffffff;
    --tv-border: #e0e0e0;
    
    /* Status colors */
    --tv-success: #16a34a;
    --tv-error: #dc2626;
    --tv-warning: #f59e0b;
    
    /* Layout */
    --tv-radius: 12px;
    --tv-radius-sm: 8px;
    --tv-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --tv-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --tv-transition: all 0.2s ease;
    --tv-container: 1200px;
    --tv-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--tv-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--tv-text);
    background: var(--tv-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem 0;
    font-weight: 700;
    line-height: 1.2;
    color: var(--tv-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin: 0 0 1rem 0;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.tv-container {
    max-width: var(--tv-container);
    margin: 0 auto;
    padding: 0 20px;
}

.tv-container-narrow {
    max-width: 800px;
}

.tv-container-wide {
    max-width: 1400px;
}

.tv-section {
    padding: 80px 0;
}

.tv-section-sm {
    padding: 40px 0;
}

.tv-section-lg {
    padding: 120px 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background: var(--tv-secondary);
    border-bottom: 3px solid var(--tv-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-branding a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.custom-logo {
    max-height: 70px;
    width: auto;
}

.custom-logo-link img {
    max-height: 70px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--tv-white);
}

.site-title a {
    color: inherit;
}

.site-title a:hover {
    color: var(--tv-primary);
}

.site-description {
    display: none;
}

/* Primary Navigation */
.primary-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.primary-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--tv-white);
    font-weight: 500;
    border-radius: var(--tv-radius-sm);
    transition: var(--tv-transition);
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
    background: var(--tv-primary);
    color: var(--tv-white);
}

/* Dropdown menus */
.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--tv-secondary);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--tv-radius-sm);
    box-shadow: var(--tv-shadow-lg);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--tv-transition);
    list-style: none;
}

.primary-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-menu .sub-menu a {
    padding: 10px 20px;
    border-radius: 0;
}

.primary-menu .sub-menu a:hover {
    background: var(--tv-primary);
    color: var(--tv-white);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    color: var(--tv-white);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.tv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--tv-primary);
    color: var(--tv-white);
    font-size: 14px;
    font-weight: 600;
    border: 2px solid var(--tv-primary);
    border-radius: var(--tv-radius-sm);
    cursor: pointer;
    transition: var(--tv-transition);
    text-decoration: none;
}

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

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

.tv-btn-secondary:hover {
    background: var(--tv-secondary-dark);
    border-color: var(--tv-secondary-dark);
}

.tv-btn-outline {
    background: transparent;
    color: var(--tv-primary);
}

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

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

.tv-btn-white:hover {
    background: var(--tv-bg);
    border-color: var(--tv-bg);
}

.tv-btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.tv-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.tv-btn-block {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.tv-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #c41e3a 100%);
    overflow: hidden;
}

.tv-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.tv-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.tv-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--tv-white);
    padding: 60px 20px;
    max-width: 800px;
}

.tv-hero-content h1 {
    font-size: 3.5rem;
    color: var(--tv-white);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tv-hero-content p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 30px;
}

.tv-hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page hero (smaller) */
.tv-page-hero {
    min-height: 300px;
}

.tv-page-hero .tv-hero-content h1 {
    font-size: 2.5rem;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.tv-card {
    background: var(--tv-white);
    border: 1px solid var(--tv-border);
    border-radius: var(--tv-radius);
    padding: 30px;
    transition: var(--tv-transition);
}

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

.tv-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.tv-card-image {
    margin: -30px -30px 25px -30px;
    height: 200px;
    background: linear-gradient(135deg, var(--tv-primary), var(--tv-secondary));
    background-size: cover;
    background-position: center;
    border-radius: var(--tv-radius) var(--tv-radius) 0 0;
}

.tv-card-icon {
    width: 60px;
    height: 60px;
    background: var(--tv-primary-light);
    border-radius: var(--tv-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.tv-card h3 {
    margin-bottom: 10px;
}

.tv-card p {
    color: var(--tv-text-light);
    margin-bottom: 0;
}

.tv-card-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--tv-border);
}

/* Card Grid */
.tv-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.tv-card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.tv-card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.tv-card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.tv-features {
    background: var(--tv-white);
}

.tv-section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.tv-section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 15px;
}

.tv-section-header p {
    color: var(--tv-text-light);
    font-size: 1.125rem;
}

.tv-feature-card {
    text-align: center;
    padding: 40px 30px;
}

.tv-feature-card .tv-card-icon {
    margin: 0 auto 20px auto;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.tv-cta {
    background: linear-gradient(135deg, #1a1a1a 0%, #c41e3a 100%);
    color: var(--tv-white);
    text-align: center;
}

.tv-cta h2 {
    color: var(--tv-white);
    font-size: 2.25rem;
    margin-bottom: 15px;
}

.tv-cta p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.tv-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.tv-stat-item {
    padding: 30px;
}

.tv-stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--tv-primary);
    line-height: 1;
    margin-bottom: 10px;
}

.tv-stat-label {
    font-size: 1rem;
    color: var(--tv-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.tv-testimonial {
    background: var(--tv-white);
    border-radius: var(--tv-radius);
    padding: 40px;
    border: 1px solid var(--tv-border);
}

.tv-testimonial-content {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 25px;
    color: var(--tv-text);
    line-height: 1.7;
}

.tv-testimonial-content::before {
    content: '"';
    font-size: 4rem;
    color: var(--tv-primary-light);
    line-height: 0;
    display: block;
    margin-bottom: -10px;
}

.tv-testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tv-testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--tv-primary-light);
}

.tv-testimonial-name {
    font-weight: 600;
    margin: 0;
}

.tv-testimonial-role {
    color: var(--tv-text-light);
    font-size: 0.875rem;
    margin: 0;
}

/* ==========================================================================
   Blog / Posts
   ========================================================================== */
.tv-post-card .tv-card-image {
    height: 220px;
}

.tv-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.875rem;
    color: var(--tv-text-light);
    margin-bottom: 15px;
}

.tv-post-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--tv-primary-light);
    color: var(--tv-primary-dark);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tv-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: var(--tv-primary);
    margin-top: 15px;
}

.tv-read-more:hover {
    gap: 10px;
}

/* Single Post */
.tv-single-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.tv-post-header {
    text-align: center;
    margin-bottom: 40px;
}

.tv-post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.tv-post-featured-image {
    margin: 0 -100px 40px -100px;
    border-radius: var(--tv-radius);
    overflow: hidden;
}

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

.tv-post-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.tv-post-content h2 {
    margin-top: 40px;
}

.tv-post-content h3 {
    margin-top: 30px;
}

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

.tv-post-content img {
    border-radius: var(--tv-radius-sm);
    margin: 30px 0;
}

.tv-post-content blockquote {
    margin: 30px 0;
    padding: 30px 40px;
    background: var(--tv-bg);
    border-left: 4px solid var(--tv-primary);
    border-radius: 0 var(--tv-radius-sm) var(--tv-radius-sm) 0;
    font-style: italic;
    font-size: 1.25rem;
}

.tv-post-content ul, .tv-post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.tv-post-content li {
    margin-bottom: 10px;
}

/* Post Navigation */
.tv-post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--tv-border);
}

.tv-post-nav-link {
    max-width: 45%;
}

.tv-post-nav-label {
    font-size: 0.875rem;
    color: var(--tv-text-light);
    margin-bottom: 5px;
}

.tv-post-nav-title {
    font-weight: 600;
    color: var(--tv-text);
}

.tv-post-nav-link:hover .tv-post-nav-title {
    color: var(--tv-primary);
}

/* ==========================================================================
   Page Templates
   ========================================================================== */
.tv-page-content {
    padding: 60px 0;
}

.tv-page-content .tv-container {
    max-width: 900px;
}

/* Full Width Template */
.page-template-full-width .tv-page-content .tv-container {
    max-width: var(--tv-container);
}

/* ==========================================================================
   Sidebar & Widgets
   ========================================================================== */
.tv-content-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.tv-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tv-widget {
    background: var(--tv-white);
    border: 1px solid var(--tv-border);
    border-radius: var(--tv-radius);
    padding: 25px;
}

.tv-widget-title {
    font-size: 1.125rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--tv-primary);
}

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

.tv-widget li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--tv-border);
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--tv-secondary);
    color: var(--tv-white);
    padding: 80px 0 30px 0;
    border-top: 4px solid var(--tv-primary);
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-widget h4 {
    color: var(--tv-white);
    font-size: 1.125rem;
    margin-bottom: 25px;
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

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

.footer-widget li {
    margin-bottom: 12px;
}

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

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

.footer-logo {
    max-width: 250px;
    margin-bottom: 20px;
}

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

.footer-about p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--tv-transition);
}

.footer-social a:hover {
    background: var(--tv-primary);
    color: var(--tv-white);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--tv-white);
}

/* ==========================================================================
   Forms
   ========================================================================== */
.tv-form-group {
    margin-bottom: 20px;
}

.tv-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.tv-form-group input,
.tv-form-group textarea,
.tv-form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--tv-border);
    border-radius: var(--tv-radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--tv-transition);
}

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

.tv-form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.tv-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Contact Form */
.tv-contact-form {
    background: var(--tv-white);
    padding: 40px;
    border-radius: var(--tv-radius);
    border: 1px solid var(--tv-border);
}

/* ==========================================================================
   Search
   ========================================================================== */
.tv-search-form {
    display: flex;
    gap: 10px;
}

.tv-search-form input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--tv-border);
    border-radius: var(--tv-radius-sm);
    font-size: 1rem;
}

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

/* Search Results */
.search-results .tv-post-card {
    margin-bottom: 30px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.tv-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
}

.tv-pagination a,
.tv-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: var(--tv-white);
    border: 1px solid var(--tv-border);
    border-radius: var(--tv-radius-sm);
    font-weight: 500;
    transition: var(--tv-transition);
}

.tv-pagination a:hover {
    background: var(--tv-bg);
    border-color: var(--tv-primary);
    color: var(--tv-primary);
}

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

/* ==========================================================================
   Comments
   ========================================================================== */
.tv-comments {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--tv-border);
}

.tv-comments-title {
    margin-bottom: 30px;
}

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

.tv-comment {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--tv-border);
}

.tv-comment:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.tv-comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.tv-comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.tv-comment-author {
    font-weight: 600;
    margin: 0;
}

.tv-comment-date {
    font-size: 0.875rem;
    color: var(--tv-text-light);
}

.tv-comment-content p:last-child {
    margin-bottom: 0;
}

.tv-comment-reply {
    font-size: 0.875rem;
    font-weight: 600;
}

.tv-comment .children {
    list-style: none;
    margin: 30px 0 0 50px;
    padding: 0;
}

/* Comment Form */
.tv-comment-form {
    margin-top: 40px;
}

.tv-comment-form h3 {
    margin-bottom: 20px;
}

/* ==========================================================================
   404 Page
   ========================================================================== */
.tv-404 {
    text-align: center;
    padding: 100px 20px;
}

.tv-404 h1 {
    font-size: 8rem;
    color: var(--tv-primary);
    margin-bottom: 20px;
    line-height: 1;
}

.tv-404 h2 {
    margin-bottom: 20px;
}

.tv-404 p {
    color: var(--tv-text-light);
    font-size: 1.125rem;
    margin-bottom: 30px;
}

/* ==========================================================================
   Badges
   ========================================================================== */
.tv-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--tv-primary-light);
    color: var(--tv-primary-dark);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
}

.tv-badge-success {
    background: #dcfce7;
    color: #166534;
}

.tv-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.tv-badge-error {
    background: #fef2f2;
    color: #991b1b;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.my-0 { margin-top: 0; margin-bottom: 0; }

.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

.hidden { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .tv-card-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tv-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tv-content-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .header-inner {
        height: auto;
        flex-direction: column;
        padding: 15px 0;
        gap: 15px;
    }
    
    .primary-navigation {
        flex-direction: column;
        width: 100%;
    }
    
    .primary-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .primary-menu {
        display: none;
    }
    
    .primary-menu.toggled {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .tv-hero-content h1 {
        font-size: 2.25rem;
    }
    
    .tv-section {
        padding: 50px 0;
    }
    
    .tv-card-grid,
    .tv-card-grid-2,
    .tv-card-grid-3,
    .tv-card-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .tv-stats {
        grid-template-columns: 1fr;
    }
    
    .tv-form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .tv-post-featured-image {
        margin: 0 0 30px 0;
    }
    
    .tv-post-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .tv-post-nav-link {
        max-width: 100%;
    }
}

/* ==========================================================================
   WordPress Core Styles
   ========================================================================== */
.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

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

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

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--tv-text-light);
    text-align: center;
    margin-top: 10px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    border-radius: var(--tv-radius-sm);
}

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

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

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

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