/* Page-Specific Styles for Atlanta Auto Law */

/* Hero Sections for Service Pages */
.page-hero {
    background: linear-gradient(135deg, #090F0C 0%, #1a1a1a 100%);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23f5312e" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-hero .lead {
    font-size: 20px;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 800px;
}

/* Intro Boxes */
.guide-intro, .rideshare-intro, .pedestrian-intro, .hit-run-intro {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 30px;
    border-left: 5px solid #f5312e;
    border-radius: 10px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
}

/* Rideshare page custom heading */
.uber-heading {
    margin-top: 40px;
    font-size: 2.5rem;
    padding: 30px;
    border-radius: 20px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary-black) 0%, rgba(9, 15, 12, 0.95) 50%, var(--color-primary-red) 100%);
}

/* Rideshare page CTA button/link */
.uber-cta {
    background: transparent;
    color: var(--color-white);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 3px solid var(--color-white);
    margin: auto;
    width: fit-content;
}

/* Ensure inner anchor inherits white color */
.uber-cta a {
    color: var(--color-white) !important;
    text-decoration: none;
}

.uber-cta a:hover {
    color: var(--color-white) !important;
    text-decoration: underline;
}

/* Hover interaction for CTA */
.uber-cta:hover {
    background: var(--color-white);
    color: var(--color-primary-black);
    transform: translateY(-3px);
    text-decoration: none;
}

/* Ensure inner anchor matches hover inversion */
.uber-cta:hover a {
    color: var(--color-primary-black) !important;
    text-decoration: none;
}

.guide-intro::before, .rideshare-intro::before, .pedestrian-intro::before, .hit-run-intro::before {
    content: '★';
    position: absolute;
    top: -15px;
    left: 30px;
    background: #f5312e;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.guide-intro .lead, .rideshare-intro .lead, .pedestrian-intro .lead, .hit-run-intro .lead {
    font-size: 18px;
    line-height: 1.7;
    color: #090F0C;
    margin-bottom: 15px;
}

.guide-intro em, .rideshare-intro em, .pedestrian-intro em, .hit-run-intro em {
    display: block;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f5312e;
    color: #666;
    font-size: 16px;
}

/* Content Sections */
.page-template-default .entry-content h2 {
    color: #090F0C;
    font-size: 36px;
    font-weight: 700;
    margin: 50px 0 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f5312e;
    position: relative;
}

.page-template-default .entry-content h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #090F0C;
}

.page-template-default .entry-content h3 {
    color: #f5312e;
    font-size: 24px;
    font-weight: 600;
    margin: 35px 0 20px;
}

/* Knowledge Articles under /auto-accident-injuries-legal-guide/knowledge */
.is-knowledge-article .entry-content h1 {
    color: #090F0C;
    font-weight: 800;
}

.is-knowledge-article .entry-content h2 {
    color: #090F0C;
    font-size: 32px;
    font-weight: 700;
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #f5312e;
}

.is-knowledge-article .entry-content h3 {
    color: #f5312e;
    font-size: 22px;
    font-weight: 700;
}

.is-knowledge-article .entry-content a {
    color: #f5312e;
    text-decoration: none;
}

.is-knowledge-article .entry-content a:hover {
    text-decoration: underline;
}

.is-knowledge-article .entry-content ul {
    list-style: none;
    padding-left: 0;
}

.is-knowledge-article .entry-content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    line-height: 1.8;
}

.is-knowledge-article .entry-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #f5312e;
    font-weight: 700;
}

/* Buttons and CTAs */
.is-knowledge-article .entry-content .authority-cta,
.is-knowledge-article .entry-content .btn,
.is-knowledge-article .entry-content a.button,
.is-knowledge-article .entry-content .wp-element-button,
.is-knowledge-article .entry-content .button {
    background: #f5312e;
    color: #fff !important;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
}

.is-knowledge-article .entry-content .authority-cta:hover,
.is-knowledge-article .entry-content .btn:hover,
.is-knowledge-article .entry-content a.button:hover,
.is-knowledge-article .entry-content .wp-element-button:hover,
.is-knowledge-article .entry-content .button:hover {
    filter: brightness(0.95);
    text-decoration: none;
}

/* Soft cards used for facts/notes */
.is-knowledge-article .entry-content .quick-facts,
.is-knowledge-article .entry-content .note,
.is-knowledge-article .entry-content .tip,
.is-knowledge-article .entry-content .info-box {
    background: #f8f9fa;
    border-left: 5px solid #f5312e;
    border-radius: 10px;
    padding: 20px;
}

/* Breadcrumb-like small navs inside content */
.is-knowledge-article .entry-content .breadcrumbs, 
.is-knowledge-article .entry-content .breadcrumb, 
.is-knowledge-article .entry-content nav[aria-label="Breadcrumb"] {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.is-knowledge-article .entry-content .breadcrumbs a,
.is-knowledge-article .entry-content .breadcrumb a,
.is-knowledge-article .entry-content nav[aria-label="Breadcrumb"] a {
    color: #090F0C;
}

/* Hero-like header for the first H1 to match authority hero vibe */
.is-knowledge-article .entry-content h1:first-of-type {
    background: linear-gradient(135deg, #090F0C 0%, rgba(9, 15, 12, 0.95) 50%, #f5312e 100%);
    color: #fff;
    padding: 48px 28px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    line-height: 1.2;
    font-weight: 800;
}

/* Optional subtitle right after the H1 */
.is-knowledge-article .entry-content h1:first-of-type + p,
.is-knowledge-article .entry-content h1:first-of-type + .lead {
    margin-top: -10px;
    background: #0f1411;
    color: #fff;
    padding: 14px 28px 22px 28px;
    border-radius: 0 0 14px 14px;
}

/* Tables and images: clean and consistent */
.is-knowledge-article .entry-content table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.is-knowledge-article .entry-content table th,
.is-knowledge-article .entry-content table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
}
.is-knowledge-article .entry-content table th {
    background: #f8f9fa;
    color: #090F0C;
}
.is-knowledge-article .entry-content img {
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

/* Lists with Icons */
.page-template-default .entry-content ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.page-template-default .entry-content ul li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    line-height: 1.8;
}

.page-template-default .entry-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #f5312e;
    font-size: 20px;
    font-weight: bold;
}

/* Numbered Lists */
.page-template-default .entry-content ol {
    counter-reset: custom-counter;
    list-style: none;
    padding-left: 0;
}

.page-template-default .entry-content ol li {
    counter-increment: custom-counter;
    position: relative;
    padding-left: 50px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.page-template-default .entry-content ol li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: #f5312e;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Alert Boxes */
div[style*="background: #fff3cd"] {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe4a1 100%) !important;
    border: 2px solid #ffc107 !important;
    border-radius: 10px !important;
    padding: 25px !important;
    margin: 30px 0 !important;
    box-shadow: 0 5px 15px rgba(255,193,7,0.2) !important;
    position: relative !important;
}

div[style*="background: #fff3cd"]::before {
    content: '⚠️';
    position: absolute;
    top: -15px;
    left: 25px;
    background: white;
    padding: 0 10px;
    font-size: 24px;
}

/* Danger Alert */
div[style*="background: #f8d7da"] {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c2c7 100%) !important;
    border: 2px solid #dc3545 !important;
    border-radius: 10px !important;
    padding: 25px !important;
    margin: 30px 0 !important;
    box-shadow: 0 5px 15px rgba(220,53,69,0.2) !important;
    position: relative !important;
}

div[style*="background: #f8d7da"]::before {
    content: '⛔';
    position: absolute;
    top: -15px;
    left: 25px;
    background: white;
    padding: 0 10px;
    font-size: 24px;
}

/* Success Alert */
div[style*="background: #d4edda"] {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%) !important;
    border: 2px solid #28a745 !important;
    border-radius: 10px !important;
    padding: 25px !important;
    margin: 30px 0 !important;
    box-shadow: 0 5px 15px rgba(40,167,69,0.2) !important;
    position: relative !important;
}

div[style*="background: #d4edda"]::before {
    content: '✅';
    position: absolute;
    top: -15px;
    left: 25px;
    background: white;
    padding: 0 10px;
    font-size: 24px;
}

/* CTA Sections */
div[style*="background: #f5312e"] {
    background: linear-gradient(135deg, #f5312e 0%, #d62118 100%) !important;
    border-radius: 15px !important;
    padding: 50px 40px !important;
    margin: 50px 0 !important;
    box-shadow: 0 20px 40px rgba(245,49,46,0.3) !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
}

div[style*="background: #f5312e"]::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

div[style*="background: #f5312e"] h2 {
    color: white !important;
    font-size: 36px !important;
    margin-bottom: 20px !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2) !important;
}

div[style*="background: #f5312e"] p {
    color: white !important;
    font-size: 18px !important;
    margin-bottom: 25px !important;
}

div[style*="background: #f5312e"] a {
    display: inline-block !important;
    background: white !important;
    color: #f5312e !important;
    padding: 18px 40px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 20px !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    z-index: 1 !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
}

div[style*="background: #f5312e"] a:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3) !important;
}

/* FAQ Section */
.faq-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0;
}

.faq-section h3 {
    color: #090F0C;
    font-size: 20px;
    margin-bottom: 15px;
    padding-left: 40px;
    position: relative;
}

.faq-section h3::before {
    content: 'Q:';
    position: absolute;
    left: 0;
    top: 0;
    background: #f5312e;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.faq-section p {
    padding-left: 40px;
    line-height: 1.8;
    color: #333;
}

.faq-section p strong {
    color: #f5312e;
}

/* Checklist Boxes */
div[style*="background: #f5f5f5"] h4 {
    color: #f5312e;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f5312e;
}

div[style*="background: #f5f5f5"] ul li::before {
    content: '✓' !important;
    color: #28a745 !important;
    font-weight: bold !important;
}

/* Statistics and Numbers */
.stat-box {
    background: white;
    border: 2px solid #f5312e;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(245,49,46,0.2);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: #f5312e;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
}

/* Process Steps */
.process-step {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.process-step::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: #f5312e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.process-step::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    width: 2px;
    height: calc(100% + 20px);
    background: #f5312e;
    opacity: 0.3;
}

.process-step:last-child::after {
    display: none;
}

/* Responsive Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

table thead {
    background: #f5312e;
    color: white;
}

table th, table td {
    padding: 15px;
    text-align: left;
}

table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

table tbody tr:hover {
    background: #f8f9fa;
}

/* Icon Grid */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.icon-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.icon-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.icon-item i {
    font-size: 48px;
    color: #f5312e;
    margin-bottom: 15px;
}

.icon-item h4 {
    color: #090F0C;
    margin-bottom: 10px;
}

/* Blockquotes */
blockquote {
    border-left: 5px solid #f5312e;
    padding-left: 30px;
    margin: 30px 0;
    font-style: italic;
    font-size: 20px;
    color: #666;
    position: relative;
}

blockquote::before {
    content: '"';
    position: absolute;
    left: -10px;
    top: -20px;
    font-size: 60px;
    color: #f5312e;
    opacity: 0.3;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 32px;
    }
    
    .page-hero .lead {
        font-size: 18px;
    }
    
    .page-template-default .entry-content h2 {
        font-size: 28px;
    }
    
    .page-template-default .entry-content h3 {
        font-size: 20px;
    }
    
    div[style*="background: #f5312e"] {
        padding: 30px 20px !important;
    }
    
    div[style*="background: #f5312e"] h2 {
        font-size: 28px !important;
    }
    
    .icon-grid {
        grid-template-columns: 1fr;
    }
}

/* (FAQ accordion global styles removed per request) */

/* (Breadcrumb normalization removed per request) */

/* (FAQ accordion styles removed per request) */

/* Page-scoped override for rideshare heading */
body:is(
    .page-slug-uber-lyft-rideshare-accident-lawyer-atlanta,
    .post-name-uber-lyft-rideshare-accident-lawyer-atlanta,
    .page-name-uber-lyft-rideshare-accident-lawyer-atlanta
) .uber-heading {
    margin-top: 40px !important;
    font-size: 2.5rem !important;
    padding: 30px !important;
    border-radius: 20px !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--color-primary-black) 0%, rgba(9, 15, 12, 0.95) 50%, var(--color-primary-red) 100%) !important;
}
