/*
Theme Name: thisismyurl.com
Description: Premium Agency Skin (2025 Refine) - Focused on conversion & trust.
Version: 5.1 - Ultra Fidelity
*/

/* ==========================================================================
   0. IMPORTS & VARIABLES
   ========================================================================== */

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

:root {
    /* Brand Colors */
    --color-primary: ##123456;         /* Lakeview Blue */
    --color-primary-dark: #023e8a;    /* Richer Dark Blue */
    --color-primary-darker: #0f172a;  /* Nearly Black Blue (High Contrast) */
    
    /* Accents */
    --color-accent: #ffb703;          
    --color-accent-hover: #ffaa00;
    --color-accent-gradient: linear-gradient(135deg, #ffb703 0%, #fb8500 100%);
    
    /* Backgrounds */
    --color-bg-body: #ffffff;
    --color-bg-offset: #f8fafc;       /* Cool gray-white */
    --color-bg-dark: #0b1120;         /* Footer slate */

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --text-main: #334155;             /* Slate 700 */
    --text-light: #64748b;            /* Slate 500 */
    --text-muted: #94a3b8;            /* Slate 400 */

    /* Layout & Spacing */
    --width-container: 1280px;
    --spacing-section: 120px;
    --spacing-gutter: 24px;

    /* Modern UI Elements */
    --radius-sm: 8px;
    --radius-card: 20px;
    --radius-pill: 100px;
    
    /* Depth System */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01); 
    --shadow-hover: 0 25px 50px -12px rgba(0, 119, 182, 0.15);
    --shadow-glow: 0 0 20px rgba(255, 183, 3, 0.3); 
}

/* ==========================================================================
   1. RESET & BASE DEFAULTS
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.75;
    font-family: var(--font-primary);
    font-size: 17px;
    color: var(--text-main);
    background-color: var(--color-bg-body);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; padding: 0; }

ul, ol { list-style: none; margin: 0; padding: 0; }

ol { display: flow-root; }

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

input, button, textarea, select { font: inherit; }

a:not([class]) { text-decoration-skip-ink: auto; }

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html:focus-within { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   2. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary-darker);
    margin: 0 0 1.5rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.025em;
}

h1 { font-size: clamp(3rem, 6vw, 4.5rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(2.2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: 1.25rem; font-weight: 600; }

h2 strong, h3 strong { font-weight: inherit; }

p { margin-bottom: 1.5rem; color: var(--text-light); }

a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

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

/* ==========================================================================
   3. LAYOUT & CONTAINERS
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--width-container);
    margin: 0 auto;
    padding: 0 var(--spacing-gutter);
}

.wp-block-columns.is-layout-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.wp-block-column { flex-grow: 1; }

@media (max-width: 782px) {
    .wp-block-columns.is-layout-flex { flex-direction: column; }
    .wp-block-column { flex-basis: 100% !important; }
}

/* ==========================================================================
   4. NAVIGATION & HEADER
   ========================================================================== */

.header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: padding 0.3s ease;
}

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

.site-title {
    font-size: 1.5rem;
    margin: 0;
    color: var(--color-primary-darker);
    letter-spacing: -0.05em;
    font-weight: 800;
}

.site-tagline { display: none; } 

.main-navigation ul { display: flex; gap: 8px; }

.main-navigation a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
}

.main-navigation a:hover {
    background-color: var(--color-bg-offset);
    color: var(--color-primary);
}

.toggleMenu { display: none; background:none; border:none; cursor: pointer; }

/* ==========================================================================
   5. COMPONENTS (BUTTONS & CARDS)
   ========================================================================== */

/* The Primary Glow Button */
.button, .cta-button, .local-btn, .read-more.button, .wpforms-submit, #commentform .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-gradient);
    color: #0f172a;
    padding: 18px 36px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.button::after, .cta-button::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.button:hover::after, .cta-button:hover::after { left: 150%; }

.button:hover, .cta-button:hover, .local-btn:hover, #commentform .submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -5px rgba(255, 183, 3, 0.5);
}

/* Button Variants */
.button-outline {
    display: inline-flex;
    padding: 16px 34px;
    background: transparent;
    color: var(--color-primary-dark);
    border: 2px solid rgba(0, 119, 182, 0.2);
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: all 0.3s ease;
}

.button-outline:hover {
    border-color: var(--color-primary);
    background: rgba(0, 119, 182, 0.05);
    color: var(--color-primary);
    transform: translateY(-3px);
}

.cta-button-audit {
    display: inline-block;
    background-color: #3b82f6;
    color: #ffffff !important;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 20px 40px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    border: 2px solid #3b82f6;
}

.cta-button-audit:hover {
    background-color: transparent;
    color: #3b82f6 !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.6);
}

/* Standalone Donate Button */
.timu-donate-container { padding: 2.5rem 0; text-align: center; clear: both; }

.timu-donate-btn-large {
    display: inline-block;
    background-color: #2271b1;
    color: #ffffff !important;
    padding: 18px 36px;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.timu-donate-btn-large:hover {
    background-color: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.15);
}

/* Card System */
.service-card, .articles-box, .post-card-optimized {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-card:hover, .articles-box:hover, .post-card-optimized:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 119, 182, 0.1);
}

.main-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.category-link { position: relative; z-index: 2; }

/* ==========================================================================
   6. PAGE SECTIONS
   ========================================================================== */

/* Hero Section */
.home-hero {
    background: radial-gradient(circle at 10% 20%, rgb(240, 246, 252) 0%, rgb(255, 255, 255) 90%);
    padding: 140px 0 160px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(0,119,182,0.08) 0%, rgba(255,255,255,0) 70%);
    animation: pulse 10s infinite alternate;
}

@keyframes pulse { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }

/* Trust Bar */
.trust-bar { background: #fff; padding: 60px 0; border-bottom: 1px solid var(--color-bg-offset); }
.trust-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 60px; opacity: 0.8; }
.trust-item img { max-height: 35px; filter: grayscale(100%); opacity: 0.5; transition: 0.4s; }
.trust-item img:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }

/* Services & Blog Grids */
.services-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
}

/* FAQ Section */
.home-faq { background-color: var(--color-bg-offset); padding: var(--spacing-section) 0; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1000px; margin: 0 auto; }
.faq-item { background: #fff; padding: 40px; border-radius: var(--radius-card); border: 1px solid rgba(0,0,0,0.02); }

/* Local Signal */
.local-signal { background: var(--color-primary-darker); padding: 100px 0; text-align: center; color: #fff; position: relative; overflow: hidden; }
.city-link { color: #fff; background: rgba(255,255,255,0.08); padding: 12px 24px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.1); }
.city-link:hover { background: #fff; color: var(--color-primary-darker); transform: scale(1.05); }

/* Conversion CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--color-primary-darker) 0%, var(--color-primary) 100%);
    border-radius: 30px;
    padding: 80px 40px;
    text-align: center;
    color: #fff;
    position: relative;
    box-shadow: 0 30px 60px -15px rgba(0, 119, 182, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==========================================================================
   7. SINGLE POST CONTENT & AUTHOR
   ========================================================================== */

/* Single content specifically targets your unique layout requirements */
.single .entry-content p,
.single .entry-content ul,
.single .entry-content ol,
.single .entry-content h1, h2, h3, h4, h5, h6 {
    color: #123456;
    line-height: 125%;
    margin: 1em 35% .5em 0em; /* Audit note: Right margin is set to 35% */
}

.single .entry-content p { line-height: 1.75; }

.single .entry-content h2 { font-size: 200%; margin-right: 20%; }
.single .entry-content h3 { font-size: 150%; margin-right: 20%; color: #333333; }

.author-box {
    background: var(--bg-offset);
    border: 1px solid rgba(0, 119, 182, 0.1);
    border-radius: var(--card-radius);
    padding: 40px;
    display: flex;
    gap: 40px;
    align-items: center;
    position: relative;
    box-shadow: var(--shadow-sm);
	margin-bottom: 5em;
}

.author-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 6px; height: 100%;
    background: var(--color-primary);
}

/* ==========================================================================
   8. PLUGINS (RANKMATH & WPFORMS)
   ========================================================================== */


/* WPForms - Audit Form Styling */
#wpforms-100975 {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

div.wpforms-container-full .wpforms-form input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* ==========================================================================
   9. COMMENTS & RATINGS
   ========================================================================== */

.comment-body {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-card);
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.star-rating-selection {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
    font-size: 2rem;
}

.star-rating-selection label { cursor: pointer; color: #e2e8f0; }
.star-rating-selection label:hover,
.star-rating-selection label:hover ~ label,
.star-rating-selection input:checked ~ label { color: #ffb703; }






/* ==========================================================================
   TABLES (Lakeview Brands Traditional Refine)
   ========================================================================== */


/* 1. Wrapper: Handles the Margin and Subtle Shadow */
.wp-block-table {
    margin: 3.5rem 0; /* Decent spacing above and below */
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Very subtle, wide shadow */
    overflow: hidden; /* Clips the table corners to match the container radius */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 2. Table Core */
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    font-family: var(--font-primary);
    margin: 0; /* Reset default table margins */
}

/* 3. The Header (Forcing Dark Blue & White Text) */
.wp-block-table table thead {
    background-color: var(--color-primary-darker) !important;
	color: #ffffff;
	
}

.wp-block-table table thead th {
    background-color: var(--color-primary-darker) !important;
    color: #ffffff !important;
    padding: 18px 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    border: none;
}
.wp-block-table table thead td {
    padding: 5px 20px;
    line-height: 1.6;
}

/* 4. Body Cell Styling */
.wp-block-table table tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-main);
    line-height: 1.6;
}

/* 5. Zebra Striping */
.wp-block-table table tbody tr:nth-child(even) {
    background-color: var(--color-bg-offset);
}

/* 6. Hover State */
.wp-block-table table tbody tr:hover {
    background-color: rgba(0, 119, 182, 0.03);
}



/* ==========================================================================
   LISTS (Modern Professional Refine)
   ========================================================================== */

/* 1. Base Container Styling */
.entry-content ul,
.single .entry-content ul,
.entry-content ol,
.single .entry-content ol {
    margin: 2rem 35% 2rem 1.5rem; /* Adjusted to match your specific layout */
    padding-left: 1.5rem;
    color: var(--text-main);
}

/* 2. Unordered Lists (Custom Modern Bullets) */
.entry-content ul {
    list-style: none; /* Keep custom control */
}

.entry-content ul li {
    position: relative;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* High-End Geometric Bullet */
.entry-content ul li::before {
    content: '';
    position: absolute;
    left: -1.75rem;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 2px; /* Slightly rounded square */
    transform: rotate(45deg); /* Diamond shape */
}

/* 3. Ordered Lists (Clean Professional Numbering) */
.entry-content ol {
    list-style: decimal;
    counter-reset: custom-counter;
}

.entry-content ol li {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth, premium transition */
	margin-bottom: 1rem;
    padding-left: 0.5rem;
    line-height: 1.6;
}

/* 4. Nested List Indentation */
.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
    margin: 1rem 0 1rem 1rem;
    font-size: 0.95em;
}

/* 5. Mobile Adjustment (Reducing the 35% Right Margin) */
@media (max-width: 1024px) {
    .entry-content ul,
    .single .entry-content ul,
    .entry-content ol,
    .single .entry-content ol {
        margin-right: 0;
    }
}


/* 1. The Mouse-Over Effect */
.entry-content ul li:hover,
.entry-content ol li:hover {
    transform: translateX(8px); /* Subtle horizontal shift */
    color: var(--color-primary-dark); /* Shifts to your darker brand blue */
    background-color: rgba(0, 119, 182, 0.03); /* Very faint "ghost" highlight */
}

/* 2. Enhancing the Diamond Bullet on Hover */
.entry-content ul li:hover::before {
    background-color: var(--color-primary); /* Bullet turns blue on hover */
    transform: rotate(45deg) scale(1.2); /* Slight grow effect */
    transition: all 0.2s ease;
}

/* 3. Ordered List Numbering Adjustment */
/* This ensures the numbers stay visible and professional during the shift */
.entry-content ol {
    list-style-position: inside; 
}

.entry-content ol li:hover {
    font-weight: 500; /* Subtle weight increase for active list items */
}

/* ==========================================================================
   MATH BLOCKS (Ultra-Scale for Technical Authority)
   ========================================================================== */

.wp-block-math {
    margin: 3.5rem 0; /* Increased margin for greater visual focus */
    padding: 3rem 2rem;
    background-color: var(--color-bg-offset);
    border-radius: var(--radius-card);
    border-left: 6px solid var(--color-primary); /* Slightly thicker border for balance */
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: auto;
    position: relative;
    transition: all 0.3s ease;
}

/* 1. Twice the Size: Formula Typography */
.wp-block-math p,
.wp-block-math span,
.wp-block-math .latex-formula {
    font-family: 'Inter', serif;
    font-size: 2.7rem; /* Approximately twice the previous 1.35rem scale */
    color: var(--color-primary-darker);
    line-height: 1.2; /* Tighter line-height for large-scale characters */
    margin: 0;
    font-weight: 500; /* Medium weight improves clarity at large sizes */
    white-space: nowrap; /* Keeps equations on a single line with scrollbar */
}

/* 2. Responsive Scaling for Mobile Devices */
@media (max-width: 768px) {
    .wp-block-math p,
    .wp-block-math span {
        font-size: 1.8rem; /* Scales down gracefully on smaller screens */
    }
}

/* 3. Subtle Label Refine */
.wp-block-math::after {
    content: 'FORMULA';
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.6;
}
    line-height: 1.2; /* Tighter line-height for large-scale characters */
    margin: 0;
    font-weight: 500; /* Medium weight improves clarity at large sizes */
    white-space: nowrap; /* Keeps equations on a single line with scrollbar */
}

/* 2. Responsive Scaling for Mobile Devices */
@media (max-width: 768px) {
    .wp-block-math p,
    .wp-block-math span {
        font-size: 1.8rem; /* Scales down gracefully on smaller screens */
    }
}

/* 3. Subtle Label Refine */
.wp-block-math::after {
    content: 'FORMULA';
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.6;
}


/* ==========================================================================
   RANKMATH TOC (Isolated Version with Collapse Button)
   ========================================================================== */

.wp-block-rank-math-toc-block {
    margin: 3rem auto !important; 
    background: var(--color-bg-offset); 
    border-left: 6px solid var(--color-primary); 
    border-radius: var(--radius-sm);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

/* Header Wrapper for the Button */
.wp-block-rank-math-toc-block h2 {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-primary-darker);
    margin: 0 !important;
    display: flex;
    justify-content: space-between; /* Pushes button to the right */
    align-items: center;
}

/* The Collapse/Toggle Button */
.toc-toggle-btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.7rem;
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
    line-height: 1;
}

.toc-toggle-btn:hover {
    background: var(--color-primary-dark);
}

/* State management for the content */
.wp-block-rank-math-toc-block.is-collapsed nav {
    display: none !important;
}

.wp-block-rank-math-toc-block.is-collapsed {
    padding-bottom: 1.5rem; /* Tighter padding when collapsed */
}

/* Resetting the TOC inner list */
.wp-block-rank-math-toc-block nav ul {
    list-style: none !important;
    margin: 2rem 0 0 0 !important;
    padding: 0 !important;
    display: block !important;
}

.wp-block-rank-math-toc-block nav ul li {
    margin: 0 0 0.75rem 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.wp-block-rank-math-toc-block nav ul li::before {
    display: none !important; /* Ensures diamond bullets stay hidden in TOC */
}


/* ==========================================================================
   2. PREMIUM IMAGE ALIGNMENT (Lakeview Refine)
   ========================================================================== */

/* Base Image Styling: Matches your Table Shadow and Border */
.entry-content img,
.wp-block-image img {
    border: 1px solid rgba(0, 0, 0, 0.05); /* Subtle border to match table */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Matching table drop shadow */
    border-radius: var(--radius-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect: Adds Technical Authority feel */
.entry-content img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* WordPress Standard Alignment Classes */
.alignleft {
    float: left;
    margin: 0.5rem 2rem 2rem 0;
    max-width: 33%;
}

.alignright {
    float: right;
    margin: 0.5rem 0 2rem 2rem;
    max-width: 45%;
}

.aligncenter {
    display: block;
    margin: 3rem auto;
    clear: both;
}

/* Captions: Modern Minimalist */
figcaption,
.wp-element-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
    line-height: 1.4;
}

/* Mobile Reset: Ensures images don't break layout on small screens */
@media (max-width: 768px) {
    .alignleft, .alignright {
        float: none;
        margin: 2rem 0;
        max-width: 100%;
    }
}


/* ==========================================================================
   BLOCKQUOTES (Premium Agency Refine)
   ========================================================================== */

.entry-content blockquote,
.single .entry-content blockquote {
    /* 1. Layout & Alignment */
    margin: 4rem 15% 4rem 0; /* Creates an asymmetrical, modern look */
    padding: 3rem 3.5rem;
    position: relative;
    
    /* 2. Visual Branding */
    background: var(--color-bg-offset); /* Subtle offset to separate from prose */
    border-left: 8px solid var(--color-primary); /* Thick brand blue anchor */
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
    box-shadow: var(--shadow-sm);
    
    /* 3. Typography */
    font-style: italic;
    color: var(--color-primary-darker);
    line-height: 1.6;
}

/* Big Decorative Quote Mark */
.entry-content blockquote::before {
    content: '“';
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--color-primary);
    opacity: 0.15;
    line-height: 1;
}

/* Quote Text Content */
.entry-content blockquote p {
    font-size: 1.35rem; /* Larger than body text for emphasis */
    font-weight: 500;
    margin-bottom: 1.5rem !important;
    color: inherit !important;
}

/* Citation / Author Attribution */
.entry-content blockquote cite {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
}

.entry-content blockquote cite::before {
    content: '— ';
    color: var(--color-accent); /* Golden accent dash */
}

/* Mobile Reset */
@media (max-width: 768px) {
    .entry-content blockquote {
        margin: 3rem 0;
        padding: 2rem;
    }
    .entry-content blockquote p {
        font-size: 1.15rem;
    }
}

/* ==========================================================================
   ENTRY TAGS (Visibility Refine)
   ========================================================================== */

.entry-tags {
    margin: 4rem 35% 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--color-bg-offset);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.entry-tags a {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-bg-offset);
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

/* Hover State: Fixed Visibility */
.entry-tags a:hover {
    background-color: #123456;
    color: #ffffff !important; /* Forces white text on blue background */
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.entry-tags a::before {
    content: '#';
    margin-right: 4px;
    color: var(--color-accent);
    transition: color 0.3s ease;
}

/* Ensures the # also turns white/light on hover for visibility */
.entry-tags a:hover::before {
    color: rgba(255, 255, 255, 0.9) !important;
}

@media (max-width: 1024px) {
    .entry-tags { margin-right: 0; justify-content: center; }
}



/* ==========================================================================
   COMMENTS & REVIEWS (Lakeview Premium Refine)
   ========================================================================== */

#comments {
    padding: 6rem 0;
    background-color: var(--color-bg-offset); /* Subtle shift to focus the user */
}

/* 1. The Comment Respond Card */
#respond {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 4rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 119, 182, 0.05);
}

/* 2. Heading: High Impact */
#reply-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-primary-darker);
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#reply-title small a {
    font-size: 0.9rem;
    color: #d32f2f; /* Urgency/Cancel Red */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 3. Star Rating Interface */
.comment-form-rating {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-bg-offset);
}

.comment-form-rating label {
    display: block;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-primary-darker);
    margin-bottom: 12px;
}

.star-rating-selection label {
    font-size: 2.5rem !important; /* Larger for tactile mobile clicking */
    color: #e2e8f0 !important; /* Matches your light-grey UI */
    margin-right: 5px;
    transition: all 0.2s ease;
}

.star-rating-selection input:checked ~ label,
.star-rating-selection label:hover,
.star-rating-selection label:hover ~ label {
    color: var(--color-accent) !important; /* Lakeview Gold */
    transform: scale(1.1);
}

/* 4. Textarea & Inputs */
.comment-form-comment label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-primary-darker);
}

.comment-form-comment textarea {
    width: 100%;
    background-color: var(--color-bg-offset);
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 20px;
    min-height: 200px;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.2s ease;
    resize: vertical;
}

.comment-form-comment textarea:focus {
    background-color: #fff;
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.1);
}

/* 5. Submit Button (Glow Variation) */

.wp-block-button,
#commentform .submit {
    width: auto;
    min-width: 240px;
    background: var(--color-accent-gradient);
    color: var(--color-primary-darker);
    padding: 18px 45px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-block-button {
	margin: 3em auto 3em auto;
	display: block;
	max-width: 50%;
	text-align
}

.wp-block-button a:hover,
#commentform .submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px rgba(255, 183, 3, 0.5);
}

/* 6. Meta Information */
.logged-in-as, .form-allowed-tags {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.logged-in-as a {
    color: var(--color-primary);
    font-weight: 700;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    #respond {
        padding: 2.5rem 1.5rem;
    }
    .star-rating-selection label {
        font-size: 2rem !important;
    }
    #commentform .submit {
        width: 100%;
    }
}

/* ==========================================================================
   ACCESSIBILITY: Skip to Content Link
   ========================================================================== */

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

/* Make it "Pop" when focused (Tabbed into) */
.screen-reader-text:focus {
    background-color: var(--color-primary);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    clip: auto !important;
    clip-path: none;
    color: #ffffff;
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    height: auto;
    left: 20px;
    top: 20px;
    padding: 15px 25px;
    text-decoration: none;
    width: auto;
    z-index: 100000; /* Stays above the Glass Header */
}


/* ==========================================================================
   POST HEADERS (Gorgeous & Editorial)
   ========================================================================== */

/* 1. The Gorgeous H1 Title */
.single .entry-title,
.page .entry-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.2rem); /* Fluid typography for all devices */
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-primary-darker);
    margin-bottom: 2.5rem;
    letter-spacing: -0.04em; /* Tight, modern tracking */
    position: relative;
    max-width: 900px; /* Aligns with your centered bio layout */
}

/* Subtle Gradient Detail to make it "Pop" */
.single .entry-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 6px;
    background: var(--color-accent-gradient); /* Lakeview Gold Gradient */
    margin-top: 1.5rem;
    border-radius: var(--radius-pill);
}

/* 2. The Meta Header (Space & Organization) */
.entry-meta-header {
    margin: 2.5rem 0 3.5rem 0; /* Generous space above and below */
    padding: 1.5rem 0;
    border-top: 1px solid var(--color-bg-offset);
    border-bottom: 1px solid var(--color-bg-offset);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Enhancing individual meta items */
.entry-meta-header .entry-categories a,
.entry-meta-header .entry-author a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-meta-header .entry-categories a:hover {
    color: var(--color-primary-dark);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .single .entry-title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }
    
    .entry-meta-header {
        margin: 2rem 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ==========================================================================
   FEATURED IMAGE (Premium Rounded Refine)
   ========================================================================== */

/* Targets common WordPress featured image patterns */
.page-featured-image img
 {
    /* 1. The Rounded Corners (Using your card variable) */
    border-radius: var(--radius-card);

    /* 2. Visual Polish (Matching your Tables & Large Images) */
    border: 1px solid rgba(0, 0, 0, 0.05); /* Subtle definition border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Deep, expensive shadow */

    /* 3. Layout Structure */
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 3rem; /* Ensure space before the post title/meta */

    /* 4. Tactile Transition */
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

/* Optional Hover Effect: A subtle lift to match your Service Cards */
.page-featured-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.size-large {
    width: 100% !important; /* Forces full container width */
    height: auto !important; /* Prevents stretching; maintains aspect ratio */
    margin: 2rem 0 !important; /* 2em (approx 32px) top and bottom separation */
    display: block;
    clear: both; /* Prevents floated elements from interfering */
}

/* 1. Ensuring the internal img tag also follows suit */
.size-large img {
    width: 100% !important;
    height: auto !important;
    border-radius: var(--radius-sm); /* Matches your established table/card style */
    border: 1px solid rgba(0, 0, 0, 0.05); /* Subtle border for definition */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Matching your table drop shadow */
}

/* 2. Responsive Check: Mobile scaling */
@media (max-width: 768px) {
    .size-large {
        margin: 1.5rem 0 !important; /* Slightly tighter spacing for small screens */
    }
}




/* ==========================================================================
   RELATED ARTICLES (Premium Card Grid)
   ========================================================================== */

.related-posts-wrapper {
    background-color: var(--color-bg-offset);
    padding: 6rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* 1. The Section Title */
.related-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-primary-darker);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.related-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--color-accent-gradient);
    border-radius: var(--radius-pill);
}

/* 2. Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* 3. Card Base Styling */
.articles-box {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-card);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
}

.articles-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary);
}

/* 4. Thumbnail Refine */
.articles-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.articles-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.articles-box:hover .articles-thumb img {
    transform: scale(1.05);
}

/* 5. Content & Typography */
.articles-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-item-title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* The Stretched Link: Makes whole card clickable */
.main-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.articles-date {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.entry-summary p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* 6. Fake Button (Visual Indicator) */
.entry-footer {
    margin-top: auto;
}

.read-more-fake-btn {
    color: var(--color-primary);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.articles-box:hover .read-more-fake-btn {
    gap: 12px;
    color: var(--color-primary-dark);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .related-posts-wrapper { padding: 4rem 0; }
    .blog-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FOOTER: Total Alignment Reset (Centered)
   ========================================================================== */

#footer-wrapper {
    text-align: center !important; /* Forces global horizontal centering */
}

/* 1. Centering the Headings */
#footer-wrapper .footer-heading {
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* 2. Centering Widgets & Grid Content */
.footer-grid.cols-3,
.footer-col,
.footer-widgets {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers items along the cross-axis */
    justify-content: center; /* Centers items along the main-axis */
    text-align: center;
}

/* 3. Handling List Items (Recent Posts & Legal Menu) */
.footer-recent-posts,
.legal-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    list-style: none;
    margin: 0 auto;
}

/* Specific fix for Recent Posts horizontal alignment */
.recent-post-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 4. Contact Block & Address Reset */
.footer-address,
.footer-contact-wrapper,
.footer-address-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Removing any default floats that might pull text left */
.footer-col {
    float: none !important;
}


.copyright-wrapper {
	margin: 4em 0 4em 0;
}
/* ==========================================================================
   FOOTER: Legal Menu (Side-by-Side)
   ========================================================================== */

.legal-menu {
    display: flex; /* Forces items to sit side-by-side */
    flex-wrap: wrap; /* Allows wrapping on small mobile screens */
    justify-content: center; /* Centers the entire menu horizontally */
    align-items: center;
    gap: 25px; /* Creates clean, equal spacing between links */
    list-style: none !important;
    padding: 0 !important;
    margin: 2rem auto 0 !important;
	width: 100%;
}

.legal-menu li {
    margin: 0 !important; /* Removes any default vertical spacing */
    padding: 0 !important;
	display: inline-block !important;
}

.legal-menu a {
    color: rgba(0, 0, 0, 0.6); /* Muted white for secondary importance */
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hover State: Brand Accent Pop */
.legal-menu a:hover {
    color: var(--color-accent); /* Your brand gold */
    transform: translateY(-2px); /* Subtle tactile lift */
}

/* Optional: Vertical Divider between items */
.legal-menu li:not(:last-child)::after {
    content: '|';
    margin-left: 25px;
    color: rgba(255, 255, 255, 0.15);
    font-weight: 300;
}

/* Mobile: Ensure it doesn't look cramped */
@media (max-width: 600px) {
    .legal-menu {
        gap: 15px;
    }
    .legal-menu li:not(:last-child)::after {
        display: none; /* Hide dividers on mobile to prevent clutter */
    }
}

/* ==========================================================================
   RANKMATH TOC: Symmetric Fade Read Progress
   ========================================================================== */

#toc-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 6px;
    background: var(--color-accent-gradient);
    z-index: 99999;
    
    /* 1. Initial & Receded State */
    opacity: 0;
    visibility: hidden;
    
    /* 2. Symmetric Transition Logic */
    /* 0.4s provides a professional, "gentle" timing for both entrance and exit */
    transition: 
        width 0.1s linear, 
        opacity 0.4s ease-in-out, 
        visibility 0.4s ease-in-out;
}

/* 3. The Active/Visible State */
#toc-progress-bar.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    opacity: 1;
    visibility: visible;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


.post-introduction {
	font-size: 200%;
	line-height: 150%;
	color: #333333;
	font-family: serif;
	font-weight: 500;
	margin-bottom: 2em;
}


/* ==========================================================================
   TOC: Collapsible Toggle UI
   ========================================================================== */

.wp-block-rank-math-toc-block {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 2000px; /* Large enough to fit any TOC */
}

/* The Toggle Button (Open/Close) */
#lvb-toc-toggle {
    position: absolute;
    top: 15px;
    right: 20px;
    background: var(--color-primary-dark);
    color: #ffffff;
    border: none;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

#lvb-toc-toggle:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Closed State Styles */
.toc-is-closed {
    max-height: 70px !important; /* Only shows the H2 title bar */
    background-color: var(--color-bg-offset) !important;
}

.toc-is-closed nav {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Ensure the sticky progress bar still works in both states */
#toc-progress-bar {
    border-radius: 0;
}


/* ==========================================================================
   DOWNLOAD TERMINAL (#download)
   ========================================================================== */

#download.lvb-donation-terminal {
    margin: 6rem auto 4rem;
    padding: 2rem;
    background-color: #efefef; /* Brand Dark Blue */
    border-radius: var(--radius-card);
    color: #ffffff !important;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle "Glass" edge */
}

#download.lvb-donation-terminal h2,
#download.lvb-donation-terminal p {
	width: 100%;
	margin-left: 0px;
}



/* ==========================================================================
   PAYPAL TERMINAL: Lakeview Brands Theme
   ========================================================================== */

.lvb-paypal-terminal {
    max-width: 400px;
    margin: 2rem 5em;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05); /* Subtle glass texture */
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lvb-amount-wrapper {
    margin-bottom: 1.5rem;
    text-align: left;
}

.lvb-amount-wrapper label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--color-accent); /* Brand Gold */
}

/* Styled Select Menu */
.lvb-select {
    width: 100%;
    padding: 12px;
    background: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-primary-darker);
    cursor: pointer;
}

/* High-Contrast PayPal Button */
.lvb-paypal-btn {
    width: 100%;
    background: var(--color-accent);
    color: var(--color-primary-darker);
    border: none;
    padding: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lvb-paypal-btn:hover {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}