/* Blog Post Styles for Best Remortgage Deals UK */

.blog-post {
    max-width: 100%;
    margin: 0 auto;
}

/* Hero Section */
.blog-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.blog-hero .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-hero .hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    text-align: center;
}

.blog-hero h1 {
    font-size: 2.5rem;
    margin: 0 0 15px;
    font-weight: 700;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-hero .hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

/* Blog Content */
.blog-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Author Box */
.author-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.author-label {
    font-weight: 600;
    color: #1e3a5f;
}

.publish-date {
    font-size: 0.9rem;
    color: #666;
}

.reading-time {
    color: #666;
    margin: 0;
}

/* Content Sections */
.content-section {
    margin-bottom: 50px;
}

.content-section h2 {
    font-size: 1.8rem;
    color: #1e3a5f;
    margin: 0 0 25px;
    font-weight: 700;
}

.content-section h3 {
    font-size: 1.4rem;
    color: #1e3a5f;
    margin: 0 0 15px;
}

.content-section h4 {
    font-size: 1.1rem;
    color: #1e3a5f;
    margin: 0 0 10px;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin: 0 0 20px;
}

.intro-text {
    font-size: 1.25rem !important;
    font-weight: 500;
    color: #1e3a5f !important;
}

/* Section Images */
.section-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin: 25px 0;
}

/* Styled Lists */
.styled-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.styled-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.styled-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

/* Numbered List */
.numbered-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: steps;
}

.numbered-list li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 25px;
    counter-increment: steps;
}

.numbered-list li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.numbered-list li strong {
    display: block;
    font-size: 1.1rem;
    color: #1e3a5f;
    margin-bottom: 5px;
}

.numbered-list li p {
    margin: 0;
    font-size: 1rem;
    color: #555;
}

/* Callout Boxes */
.callout-box {
    background: #e8f4fd;
    border-left: 4px solid #2563eb;
    padding: 20px 25px;
    border-radius: 0 10px 10px 0;
    margin: 25px 0;
}

.callout-box.warning {
    background: #fef3cd;
    border-left-color: #f59e0b;
}

.callout-box p {
    margin: 0 !important;
    font-size: 1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    color: white;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Two Column Grid */
.two-column-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 25px 0;
}

.two-column-grid .column {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
}

.two-column-grid h4 {
    margin-bottom: 15px;
    color: #1e3a5f;
}

.two-column-grid .styled-list {
    margin-bottom: 0;
}

.two-column-grid .styled-list li {
    font-size: 1rem;
    margin-bottom: 10px;
}

/* Checklist Box */
.checklist-box {
    background: #f0fdf4;
    border: 2px solid #22c55e;
    padding: 25px 30px;
    border-radius: 12px;
    margin: 25px 0;
}

.checklist-box h3 {
    margin-top: 0;
    color: #166534;
}

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

.checklist-box li {
    padding: 10px 0;
    border-bottom: 1px solid #dcfce7;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checklist-box li:last-child {
    border-bottom: none;
}

.checklist-box .check {
    color: #22c55e;
    font-weight: bold;
    flex-shrink: 0;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
    margin: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -30px;
    width: 30px;
    height: 30px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.timeline-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-left: 15px;
}

.timeline-content h4 {
    margin: 0 0 10px;
    color: #1e3a5f;
}

.timeline-content p {
    margin: 0;
    font-size: 1rem;
    color: #555;
}

/* Mistakes Grid */
.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.mistake-card {
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 25px;
    border-radius: 12px;
}

.mistake-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.mistake-card h4 {
    color: #991b1b;
    margin: 0 0 10px;
}

.mistake-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #7f1d1d;
}

/* Option Box / Rate Switch Section */
.option-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 35px;
    border-radius: 16px;
    text-align: center;
}

.option-box h2 {
    color: #92400e !important;
    margin-bottom: 15px !important;
}

.option-box p {
    color: #78350f;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Boxes */
.cta-box {
    padding: 40px;
    border-radius: 16px;
    text-align: center;
}

.cta-box.main-cta {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: white;
}

.cta-box.main-cta h2 {
    color: white !important;
}

.cta-box.main-cta p {
    color: rgba(255,255,255,0.9);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box.secondary-cta {
    background: #f8f9fa;
    border: 2px solid #e5e7eb;
    margin-top: 30px;
}

.cta-box.secondary-cta h3 {
    color: #1e3a5f;
}

/* CTA Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.cta-button.primary {
    background: #22c55e;
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.cta-button.primary:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.cta-button.secondary {
    background: #1e3a5f;
    color: white;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
}

.cta-button.secondary:hover {
    background: #0f2644;
    transform: translateY(-2px);
}

.cta-button.tertiary {
    background: white;
    color: #1e3a5f;
    border: 2px solid #1e3a5f;
}

.cta-button.tertiary:hover {
    background: #1e3a5f;
    color: white;
}

/* Final CTA */
.final-cta {
    background: #f8f9fa;
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    margin: 50px 0;
}

.final-cta h2 {
    color: #1e3a5f;
    margin: 0 0 15px;
}

.final-cta > p {
    color: #666;
    margin: 0 0 30px;
}

.cta-buttons-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.cta-buttons-row .cta-button {
    margin-top: 0;
}

/* Disclaimer */
.disclaimer {
    background: #f1f5f9;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid #64748b;
    margin-top: 50px;
}

.disclaimer h3 {
    color: #334155;
    margin: 0 0 15px;
    font-size: 1.1rem;
}

.disclaimer p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 10px;
    line-height: 1.6;
}

.disclaimer p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero {
        height: 350px;
    }
    
    .blog-hero h1 {
        font-size: 1.8rem;
    }
    
    .blog-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .two-column-grid,
    .mistakes-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons-row {
        flex-direction: column;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .section-image {
        height: 200px;
    }
    
    .option-box,
    .cta-box {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .blog-content {
        padding: 30px 15px;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section p {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
}
