/*
Theme Name: Executive Pro
Theme URI: https://siteplotmedia.com/themes/executive-pro
Author: Siteplot Media
Author URI: https://siteplotmedia.com
Description: Professional theme for law firms, accountants, consultants, and professional services. Features trust indicators, team sections, testimonials, and contact forms.
Version: 3.3.21
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: executive-pro
*/

/* Executive Pro - Complete Theme CSS */
:root {
    --ep-navy: #1e3a5f;
    --ep-navy-dark: #152a45;
    --ep-gold: #c9a227;
    --ep-gold-light: #d4b43a;
    --ep-white: #ffffff;
    --ep-gray-50: #f9fafb;
    --ep-gray-100: #f3f4f6;
    --ep-gray-200: #e5e7eb;
    --ep-gray-300: #d1d5db;
    --ep-gray-500: #6b7280;
    --ep-gray-600: #4b5563;
    --ep-gray-700: #374151;
    --ep-gray-800: #1f2937;
    --ep-primary: var(--ep-navy);
    --ep-primary-dark: var(--ep-navy-dark);
    --ep-radius: 8px;
    --ep-radius-lg: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 16px; line-height: 1.6; color: var(--ep-gray-800); }
img { max-width: 100%; height: auto; }
a { color: var(--ep-navy); text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 1rem; font-family: 'Libre Baskerville', Georgia, serif; font-weight: 700; line-height: 1.2; }

/* Container */
.ep-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.ep-main { min-height: 60vh; }

/* Header */
.ep-header { background: var(--ep-white); box-shadow: 0 1px 3px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.ep-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.ep-logo { display: flex; flex-direction: column; }
.ep-logo img { max-height: 50px; width: auto; }
.ep-logo-text { font-size: 1.5rem; font-weight: 700; color: var(--ep-navy); font-family: 'Libre Baskerville', Georgia, serif; }
.ep-tagline { font-size: 0.75rem; color: var(--ep-gray-500); margin: 0; }
.ep-nav { display: flex; align-items: center; gap: 2rem; }
.ep-nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.ep-nav ul li a { color: var(--ep-gray-700); font-weight: 500; transition: color 0.2s; }
.ep-nav ul li a:hover { color: var(--ep-navy); }
.ep-header-cta { background: var(--ep-gold); color: var(--ep-navy) !important; padding: 0.625rem 1.25rem; border-radius: var(--ep-radius); font-weight: 600; transition: background 0.2s; }
.ep-header-cta:hover { background: var(--ep-gold-light); }
.ep-mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ep-navy); }

/* Hero */
.ep-hero { background: linear-gradient(135deg, var(--ep-navy) 0%, var(--ep-navy-dark) 100%); color: var(--ep-white); padding: 5rem 0; position: relative; min-height: 500px; display: flex; align-items: center; }
.ep-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.2); }
.ep-hero .ep-container { position: relative; z-index: 1; }
.ep-hero-content { max-width: 700px; }
.ep-hero-tagline { display: inline-block; background: var(--ep-gold); color: var(--ep-navy); padding: 0.5rem 1rem; border-radius: 2rem; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.5rem; }
.ep-hero h1 { font-size: 3rem; margin-bottom: 1.5rem; color: var(--ep-white); }
.ep-hero p { font-size: 1.25rem; opacity: 0.9; margin-bottom: 2rem; }
.ep-hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Buttons */
.ep-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.875rem 1.75rem; border-radius: var(--ep-radius); font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: all 0.2s; font-size: 1rem; text-decoration: none; }
.ep-btn-gold { background: var(--ep-gold); color: var(--ep-navy) !important; border-color: var(--ep-gold); }
.ep-btn-gold:hover { background: var(--ep-gold-light); border-color: var(--ep-gold-light); }
.ep-btn-outline { background: transparent; color: var(--ep-white) !important; border-color: rgba(255,255,255,0.5); }
.ep-btn-outline:hover { border-color: var(--ep-white); background: rgba(255,255,255,0.1); }
.ep-btn-primary { background: var(--ep-navy); color: var(--ep-white) !important; border-color: var(--ep-navy); }
.ep-btn-primary:hover { background: var(--ep-navy-dark); }
.ep-btn-full { width: 100%; }

/* Trust Bar */
.ep-trust-bar { background: var(--ep-gold); padding: 2rem 0; }
.ep-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.ep-trust-item { color: var(--ep-navy); }
.ep-trust-number { display: block; font-size: 2.5rem; font-weight: 700; font-family: 'Libre Baskerville', Georgia, serif; line-height: 1; }
.ep-trust-label { display: block; font-size: 0.875rem; font-weight: 500; margin-top: 0.5rem; }

/* Sections */
.ep-section { padding: 5rem 0; }
.ep-section-alt { background: var(--ep-gray-50); }
.ep-section-dark { background: var(--ep-navy); color: var(--ep-white); }
.ep-section-dark h2 { color: var(--ep-white); }
.ep-section-header { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.ep-section-header h2 { font-size: 2.25rem; }
.ep-section-header p { color: var(--ep-gray-600); font-size: 1.125rem; }
.ep-section-label { display: inline-block; color: var(--ep-gold); font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.ep-label-gold { color: var(--ep-gold); }

/* Services Grid */
.ep-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.ep-service-card { background: var(--ep-white); border-radius: var(--ep-radius-lg); padding: 2rem; text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.07); transition: transform 0.3s, box-shadow 0.3s; }
.ep-service-card:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(0,0,0,0.12); }
.ep-service-icon { width: 70px; height: 70px; background: linear-gradient(135deg, var(--ep-navy) 0%, var(--ep-navy-dark) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; font-size: 1.75rem; }
.ep-service-card h3 { color: var(--ep-navy); margin-bottom: 0.75rem; font-size: 1.25rem; }
.ep-service-card p { color: var(--ep-gray-600); margin-bottom: 1rem; font-size: 0.9375rem; }
.ep-service-link { color: var(--ep-gold); font-weight: 600; }
.ep-service-link:hover { color: var(--ep-gold-light); }

/* About Grid */
.ep-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.ep-about-content { }
.ep-about-content h2 { color: var(--ep-white); }
.ep-about-content p { opacity: 0.9; margin-bottom: 1.5rem; }
.ep-feature-list { margin: 1.5rem 0; }
.ep-feature-list li { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.ep-check { color: var(--ep-gold); font-weight: bold; }
.ep-about-image { position: relative; }
.ep-about-image img { border-radius: var(--ep-radius-lg); width: 100%; }
.ep-about-badge { position: absolute; bottom: -20px; right: -20px; background: var(--ep-gold); color: var(--ep-navy); padding: 1.5rem; border-radius: var(--ep-radius-lg); text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.ep-badge-years { display: block; font-size: 2.5rem; font-weight: 700; font-family: 'Libre Baskerville', Georgia, serif; line-height: 1; }
.ep-badge-text { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; margin-top: 0.25rem; }

/* Team Grid */
.ep-team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.ep-team-card { text-align: center; }
.ep-team-image { position: relative; border-radius: var(--ep-radius-lg); overflow: hidden; margin-bottom: 1rem; }
.ep-team-image img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.ep-team-overlay { position: absolute; inset: 0; background: rgba(30,58,95,0.8); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.ep-team-card:hover .ep-team-overlay { opacity: 1; }
.ep-team-social { display: flex; gap: 0.5rem; }
.ep-team-social a { width: 40px; height: 40px; background: var(--ep-gold); color: var(--ep-navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.ep-team-info h3 { color: var(--ep-navy); margin-bottom: 0.25rem; font-size: 1.125rem; }
.ep-team-title { display: block; color: var(--ep-gold); font-weight: 600; font-size: 0.875rem; }
.ep-team-specialty { display: block; color: var(--ep-gray-500); font-size: 0.8125rem; margin-top: 0.25rem; }

/* Testimonials */
.ep-testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.ep-testimonial-card { background: var(--ep-white); padding: 2rem; border-radius: var(--ep-radius-lg); box-shadow: 0 4px 6px rgba(0,0,0,0.07); }
.ep-testimonial-stars { color: var(--ep-gold); font-size: 1.25rem; margin-bottom: 1rem; }
.ep-testimonial-card blockquote { font-size: 1rem; color: var(--ep-gray-700); line-height: 1.7; margin: 0 0 1.5rem; font-style: italic; }
.ep-testimonial-author strong { display: block; color: var(--ep-navy); font-weight: 600; }
.ep-testimonial-author span { color: var(--ep-gray-500); font-size: 0.875rem; }

/* Contact Section */
.ep-contact-section { background: var(--ep-gray-50); }
.ep-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.ep-contact-content h2 { color: var(--ep-navy); }
.ep-contact-info { margin-top: 2rem; }
.ep-contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.ep-contact-icon { width: 48px; height: 48px; background: var(--ep-navy); color: var(--ep-white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.ep-contact-item strong { display: block; color: var(--ep-navy); margin-bottom: 0.25rem; }
.ep-contact-item p { margin: 0; color: var(--ep-gray-600); }
.ep-contact-form-wrap { background: var(--ep-white); padding: 2.5rem; border-radius: var(--ep-radius-lg); box-shadow: 0 10px 40px rgba(0,0,0,0.1); }
.ep-contact-form input, .ep-contact-form select, .ep-contact-form textarea { width: 100%; padding: 0.875rem 1rem; border: 1px solid var(--ep-gray-300); border-radius: var(--ep-radius); font-size: 1rem; margin-bottom: 1rem; font-family: inherit; }
.ep-contact-form input:focus, .ep-contact-form select:focus, .ep-contact-form textarea:focus { outline: none; border-color: var(--ep-navy); }
.ep-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ep-form-note { font-size: 0.8125rem; color: var(--ep-gray-500); text-align: center; margin: 1rem 0 0; }

/* Posts Grid */
.ep-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.ep-post-card { background: var(--ep-white); border-radius: var(--ep-radius-lg); overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.07); transition: transform 0.3s, box-shadow 0.3s; }
.ep-post-card:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(0,0,0,0.12); }
.ep-post-image { aspect-ratio: 16/10; overflow: hidden; }
.ep-post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.ep-post-card:hover .ep-post-image img { transform: scale(1.05); }
.ep-post-content { padding: 1.5rem; }
.ep-post-date { display: block; color: var(--ep-gold); font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.5rem; }
.ep-post-content h3 { font-size: 1.125rem; margin-bottom: 0.75rem; }
.ep-post-content h3 a { color: var(--ep-navy); }
.ep-post-content h3 a:hover { color: var(--ep-gold); }
.ep-post-content p, .ep-post-excerpt { color: var(--ep-gray-600); font-size: 0.9375rem; margin-bottom: 1rem; }
.ep-post-meta { color: var(--ep-gray-500); font-size: 0.8125rem; }
.ep-post-title a { color: var(--ep-navy); }
.ep-read-more { color: var(--ep-gold); font-weight: 600; }
.ep-read-more:hover { color: var(--ep-gold-light); }
.ep-no-posts { text-align: center; padding: 3rem; color: var(--ep-gray-500); }

/* Footer */
.ep-footer { background: var(--ep-navy-dark); color: var(--ep-white); padding: 4rem 0 0; }
.ep-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.ep-footer h4 { color: var(--ep-gold); font-size: 1rem; margin-bottom: 1.25rem; font-family: 'Inter', sans-serif; }
.ep-footer-brand p { opacity: 0.8; font-size: 0.9375rem; line-height: 1.7; }
.ep-footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.ep-footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ep-white); transition: all 0.2s; }
.ep-footer-social a:hover { background: var(--ep-gold); color: var(--ep-navy); }
.ep-footer-links a, .ep-footer-menu a, .ep-footer-contact p { color: rgba(255,255,255,0.8); display: block; margin-bottom: 0.5rem; font-size: 0.9375rem; }
.ep-footer-links a:hover, .ep-footer-menu a:hover { color: var(--ep-gold); }
.ep-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; text-align: center; }
.ep-footer-bottom p { margin: 0; opacity: 0.7; font-size: 0.875rem; }

/* Responsive */
@media (max-width: 968px) {
    .ep-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ep-white); flex-direction: column; padding: 1.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
    .ep-nav.active { display: flex; }
    .ep-nav ul { flex-direction: column; gap: 1rem; }
    .ep-mobile-toggle { display: block; }
    .ep-hero h1 { font-size: 2.25rem; }
    .ep-trust-grid { grid-template-columns: repeat(2, 1fr); }
    .ep-services-grid { grid-template-columns: repeat(2, 1fr); }
    .ep-about-grid { grid-template-columns: 1fr; }
    .ep-about-image { order: -1; }
    .ep-team-grid { grid-template-columns: repeat(2, 1fr); }
    .ep-testimonials-grid { grid-template-columns: 1fr; }
    .ep-contact-grid { grid-template-columns: 1fr; }
    .ep-posts-grid { grid-template-columns: repeat(2, 1fr); }
    .ep-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .ep-hero { padding: 3rem 0; }
    .ep-hero h1 { font-size: 1.875rem; }
    .ep-section { padding: 3rem 0; }
    .ep-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .ep-trust-number { font-size: 2rem; }
    .ep-services-grid { grid-template-columns: 1fr; }
    .ep-team-grid { grid-template-columns: 1fr; }
    .ep-posts-grid { grid-template-columns: 1fr; }
    .ep-footer-grid { grid-template-columns: 1fr; }
    .ep-form-row { grid-template-columns: 1fr; }
    .ep-about-badge { position: static; margin-top: 1rem; }
}
.ep-single-main {
    padding: 3rem 0;
}
.ep-single-layout {
    max-width: 800px;
    margin: 0 auto;
}
.ep-single-layout.ep-has-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1200px;
}
.ep-single-content {
    min-width: 0;
}
.ep-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--ep-radius-lg, 12px);
    overflow: hidden;
}
.ep-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}
.ep-entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--ep-gray-700, #374151);
}
.ep-entry-content h2,
.ep-entry-content h3,
.ep-entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--ep-dark, #1f2937);
}
.ep-entry-content p {
    margin-bottom: 1.5rem;
}
.ep-entry-content a {
    color: var(--ep-primary, #2563eb);
    text-decoration: underline;
}
.ep-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--ep-radius, 8px);
}
.ep-entry-content ul,
.ep-entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.ep-entry-content li {
    margin-bottom: 0.5rem;
}
.ep-entry-content blockquote {
    border-left: 4px solid var(--ep-primary, #2563eb);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--ep-gray-600, #4b5563);
}

/* Sidebar */
.ep-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}
.ep-widget {
    background: var(--ep-gray-50, #f9fafb);
    padding: 1.5rem;
    border-radius: var(--ep-radius-lg, 12px);
    margin-bottom: 1.5rem;
}
.ep-widget-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--ep-dark, #1f2937);
}

/* ========================================
   SOCIAL SHARE BUTTONS
   ======================================== */
.ep-social-share {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--ep-gray-200, #e5e7eb);
}
.ep-share-label {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--ep-dark, #1f2937);
    font-size: 1rem;
}
.ep-share-buttons {
    display: flex !important;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}
.ep-share-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ep-gray-100, #f3f4f6);
    color: var(--ep-gray-600, #4b5563) !important;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
}
.ep-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.ep-share-btn svg {
    width: 20px;
    height: 20px;
}
.ep-share-facebook:hover {
    background: #1877f2 !important;
    color: #fff !important;
}
.ep-share-twitter:hover {
    background: #000 !important;
    color: #fff !important;
}
.ep-share-linkedin:hover {
    background: #0a66c2 !important;
    color: #fff !important;
}
.ep-share-pinterest:hover {
    background: #e60023 !important;
    color: #fff !important;
}
.ep-share-copy:hover {
    background: var(--ep-primary, #2563eb) !important;
    color: #fff !important;
}

/* ========================================
   RELATED POSTS - "YOU MAY ALSO LIKE"
   ======================================== */
.ep-related-section {
    background: var(--ep-gray-50, #f9fafb);
    padding: 4rem 0;
    margin-top: 2rem;
}
.ep-related-section .ep-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.ep-related-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--ep-dark, #1f2937);
}
.ep-related-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.ep-related-card {
    background: var(--ep-white, #fff) !important;
    border-radius: var(--ep-radius-lg, 12px) !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    list-style: none !important;
}
.ep-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12) !important;
}
.ep-related-image {
    display: block !important;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--ep-gray-100, #f3f4f6);
}
.ep-related-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease;
}
.ep-related-card:hover .ep-related-image img {
    transform: scale(1.05);
}
.ep-related-content {
    padding: 1.25rem !important;
}
.ep-related-post-title {
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin: 0 0 0.5rem 0 !important;
    line-height: 1.4 !important;
}
.ep-related-post-title a {
    color: var(--ep-dark, #1f2937) !important;
    text-decoration: none !important;
}
.ep-related-post-title a:hover {
    color: var(--ep-primary, #2563eb) !important;
}
.ep-related-excerpt {
    font-size: 0.875rem !important;
    color: var(--ep-gray-600, #4b5563) !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 992px) {
    .ep-single-layout.ep-has-sidebar {
        grid-template-columns: 1fr;
    }
    .ep-sidebar {
        position: static;
    }
    .ep-related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 640px) {
    .ep-single-header {
        padding: 2.5rem 0;
    }
    .ep-single-header h1 {
        font-size: 1.75rem;
    }
    .ep-related-grid {
        grid-template-columns: 1fr !important;
    }
    .ep-share-buttons {
        justify-content: center;
    }
}

/* === OVERFLOW FIXES FOR CARDS === */
.ep-service-card, .ep-team-card, .ep-post-card, .ep-testimonial-card, .ep-contact-form-wrap {
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.ep-service-card h3, .ep-service-card p,
.ep-team-info h3, .ep-team-title, .ep-team-specialty,
.ep-post-content h3, .ep-post-content p, .ep-post-excerpt,
.ep-testimonial-card blockquote, .ep-testimonial-author {
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.ep-post-content {
    padding: 1.5rem;
    min-width: 0;
    overflow: hidden;
}
.ep-post-content h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === SINGLE POST CONTENT FIXES === */
.ep-single-content {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}
.ep-entry-content {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.ep-entry-content img {
    max-width: 100%;
    height: auto;
}
.ep-entry-content pre, .ep-entry-content code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.ep-entry-content table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* Grid children need min-width: 0 to prevent overflow */
.ep-single-layout.ep-has-sidebar > * {
    min-width: 0;
}
.ep-with-sidebar .ep-single-content {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

/* Ensure sidebar doesn't push content */
.ep-sidebar {
    min-width: 0;
    max-width: 300px;
    overflow: hidden;
}

/* === OVERFLOW FIXES FOR CARDS === */
.ep-service-card, .ep-team-card, .ep-post-card, .ep-testimonial-card, .ep-contact-form-wrap {
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.ep-service-card h3, .ep-service-card p,
.ep-team-info h3, .ep-team-title, .ep-team-specialty,
.ep-post-content h3, .ep-post-content p, .ep-post-excerpt,
.ep-testimonial-card blockquote, .ep-testimonial-author {
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.ep-post-content {
    padding: 1.5rem;
    min-width: 0;
    overflow: hidden;
}
.ep-post-content h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === SINGLE POST CONTENT FIXES === */
.ep-single-content {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}
.ep-entry-content {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.ep-entry-content img {
    max-width: 100%;
    height: auto;
}
.ep-entry-content pre, .ep-entry-content code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.ep-entry-content table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}
.ep-single-layout.ep-has-sidebar > * {
    min-width: 0;
}
.ep-with-sidebar .ep-single-content {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}
.ep-sidebar {
    min-width: 0;
    max-width: 300px;
    overflow: hidden;
}

/* === BLOG/ARCHIVE PAGE FIXES - Full width, no sidebar === */
.blog .ep-main,
.archive .ep-main,
.search .ep-main {
    width: 100%;
    max-width: 100%;
}
.blog .ep-section,
.archive .ep-section,
.search .ep-section {
    width: 100%;
}
.blog .ep-container,
.archive .ep-container,
.search .ep-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}
.blog .ep-posts-grid,
.archive .ep-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}
@media (max-width: 968px) {
    .blog .ep-posts-grid,
    .archive .ep-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .blog .ep-posts-grid,
    .archive .ep-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* === AGGRESSIVE OVERFLOW FIXES FOR ALL CARDS === */
/* Grid containers need overflow control */
.ep-services-grid,
.ep-team-grid,
.ep-posts-grid,
.ep-testimonials-grid,
.ep-contact-grid,
.ep-trust-grid,
.ep-footer-grid {
    overflow: hidden;
}

/* All cards get box-sizing and overflow control */
.ep-service-card,
.ep-team-card,
.ep-post-card,
.ep-testimonial-card,
.ep-contact-form-wrap,
.ep-trust-item {
    box-sizing: border-box;
    overflow: hidden;
    max-width: 100%;
}

/* All text within cards */
.ep-service-card *,
.ep-team-card *,
.ep-post-card *,
.ep-testimonial-card *,
.ep-trust-item * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Specific card content areas need padding AND overflow */
.ep-service-card {
    padding: 2rem;
    overflow: hidden;
}
.ep-service-card h3 {
    margin: 0 0 0.75rem 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}
.ep-service-card p {
    margin: 0 0 1rem 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Post cards */
.ep-post-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.ep-post-content {
    padding: 1.5rem;
    overflow: hidden;
    flex: 1;
}
.ep-post-content h3 {
    margin: 0 0 0.75rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
}
.ep-post-content p,
.ep-post-excerpt {
    margin: 0 0 1rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Testimonial cards */
.ep-testimonial-card {
    padding: 2rem;
    overflow: hidden;
}
.ep-testimonial-card blockquote {
    margin: 0 0 1.5rem 0;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Team cards */
.ep-team-card {
    overflow: hidden;
}
.ep-team-info {
    padding: 0 0.5rem;
    overflow: hidden;
}
.ep-team-info h3,
.ep-team-title,
.ep-team-specialty {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Trust bar items */
.ep-trust-item {
    padding: 0 1rem;
    overflow: hidden;
}

/* === SINGLE POST CONTENT - STRICT CONTAINMENT === */
.ep-single-layout {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}
.ep-single-layout.ep-has-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 3rem;
    max-width: 1200px;
}
.ep-single-content {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}
.ep-entry-content {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}
.ep-entry-content p,
.ep-entry-content li,
.ep-entry-content td,
.ep-entry-content th {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.ep-entry-content img {
    max-width: 100%;
    height: auto;
}
.ep-entry-content pre,
.ep-entry-content code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.ep-entry-content table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
    table-layout: fixed;
}

/* Sidebar strict width */
.ep-sidebar {
    min-width: 0;
    max-width: 300px;
    width: 300px;
    overflow: hidden;
    box-sizing: border-box;
}

/* === BLOG/ARCHIVE PAGE FULL WIDTH === */
.blog .ep-main,
.archive .ep-main,
.search .ep-main {
    width: 100%;
    max-width: 100%;
}
.blog .ep-container,
.archive .ep-container,
.search .ep-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    box-sizing: border-box;
}
.blog .ep-posts-grid,
.archive .ep-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    width: 100%;
}
@media (max-width: 968px) {
    .ep-single-layout.ep-has-sidebar {
        grid-template-columns: 1fr;
    }
    .ep-sidebar {
        max-width: 100%;
        width: 100%;
    }
    .blog .ep-posts-grid,
    .archive .ep-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .blog .ep-posts-grid,
    .archive .ep-posts-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
