/*!
 * EverGuard Insurance - Insurance Website Template
 * Author: Ryan Roy
 * Version: 1.0.0
 * Copyright 2025 EverGuard Insurance
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
 */

:root {
    --primary-dark: #151A22;
    --primary-green: #465048;
    --primary-brown: #BD916F;
    --primary-gold: #C0B283;
    --primary-light: #F3F0E6;
    --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-green) 100%);
    --gradient-accent: linear-gradient(135deg, var(--primary-brown) 0%, var(--primary-gold) 100%);
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--primary-dark);
    overflow-x: hidden;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HEADER & NAVIGATION ===== */
.navbar {
    background: rgba(21, 26, 34, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--primary-dark);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-light) !important;
    text-decoration: none;
}

.navbar-nav .nav-link {
    color: var(--primary-light) !important;
    font-weight: 500;
    margin: 0 1rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 0;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--primary-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-gold) !important;
}

.navbar-toggler {
    border-color: #fff;
}

.navbar-toggler-icon {
    filter: grayscale(100%) invert(1);
}

.btn-quote {
    background: var(--gradient-accent);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(189, 145, 111, 0.4);
}

/* ===== HERO SECTION ===== */
.hero {
    background: var(--gradient-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('img/hero.jpg');
    opacity: 0.3;
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--primary-light);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-primary-custom {
    background: var(--gradient-accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-right: 1rem;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(189, 145, 111, 0.4);
    color: white;
}

.btn-secondary-custom {
    background: transparent;
    color: var(--primary-light);
    padding: 1rem 2rem;
    border: 2px solid var(--primary-light);
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary-custom:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
}

.floating-card {
    position: absolute;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    color: var(--primary-light);
    border: 1px solid rgba(255,255,255,0.2);
}

.card-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    left: -15%;
    animation-delay: 1s;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 6rem 0;
    background: var(--primary-light);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--primary-green);
    max-width: 600px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(70, 80, 72, 0.1);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-card h4 {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--primary-green);
    line-height: 1.6;
}

/* ===== STATS SECTION ===== */
.stats {
    background: var(--gradient-primary);
    padding: 4rem 0;
    color: var(--primary-light);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-gold);
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 6rem 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--primary-green);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.feature-list li i {
    color: var(--primary-brown);
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: 6rem 0;
    background: var(--primary-light);
}

.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.testimonial-item {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.testimonial-content {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    height: 100%;
    transition: all 0.3s ease;
}

.testimonial-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.rating {
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--primary-green);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 3px solid var(--primary-brown);
}

.author-info h6 {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.author-info span {
    color: var(--primary-brown);
    font-size: 0.9rem;
}

/* ===== BLOG SECTION ===== */
.blog {
    padding: 6rem 0;
    background: white;
}

.blog-card {
    background: var(--primary-light);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.blog-image {
    position: relative;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.blog-content {
    padding: 2rem;
}

.blog-content h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-content h4 a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-content h4 a:hover {
    color: var(--primary-brown);
}

.blog-content p {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blog-link {
    color: var(--primary-brown);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.blog-link:hover {
    color: var(--primary-dark);
}

/* ===== CONTACT FORM SECTION ===== */
.contact-form {
    padding: 6rem 0;
    background: var(--primary-light);
}

.contact-form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: var(--primary-brown);
    box-shadow: 0 0 0 0.2rem rgba(189, 145, 111, 0.25);
    background: white;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.was-validated .form-control:invalid ~ .invalid-feedback {
    display: block;
}

.form-check {
    margin-bottom: 1.5rem;
}

.form-check-input {
    margin-top: 0.3rem;
    margin-right: 0.5rem;
}

.form-check-input:checked {
    background-color: var(--primary-brown);
    border-color: var(--primary-brown);
}

.form-check-input:focus {
    border-color: var(--primary-brown);
    box-shadow: 0 0 0 0.2rem rgba(189, 145, 111, 0.25);
}

.form-check-label {
    color: var(--primary-green);
}

/* ===== CTA SECTION ===== */
.cta {
    background: var(--gradient-accent);
    padding: 5rem 0;
    text-align: center;
    color: white;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-cta {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ===== QUOTE MODAL ===== */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem 2rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.5rem;
}

.btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
}

.modal-backdrop {
    background: rgba(21, 26, 34, 0.8);
}

.modal-backdrop.show {
    opacity: 0.95;
}

#quoteForm .form-group {
    margin-bottom: 1.2rem;
}

#quoteForm label {
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 0.4rem;
}

#quoteForm .form-control {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
}

#quoteForm .form-control:focus {
    border-color: var(--primary-brown);
    box-shadow: 0 0 0 0.2rem rgba(189, 145, 111, 0.25);
    background: white;
}

#quoteForm .form-check-label {
    font-size: 0.9rem;
    color: var(--primary-green);
    line-height: 1.4;
}

#quoteForm .invalid-feedback {
    font-size: 0.8rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-dark);
    color: var(--primary-light);
    padding: 3rem 0 1rem;
}

.footer h5 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer a {
    color: var(--primary-light);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer a:hover {
    opacity: 1;
    color: var(--primary-gold);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-gold);
    transform: translateY(-3px);
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: var(--gradient-primary);
    padding: 8rem 0 4rem;
    color: var(--primary-light);
    text-align: center;
    margin-top: 76px;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== NEWS SECTION ===== */
.news {
    padding: 5rem 0;
    background: var(--primary-light);
}

/* Featured Article */
.featured-article {
    margin-bottom: 3rem;
}

.featured-article .blog-card {
    border: none;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
}

.featured-article .blog-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.featured-article .blog-content h2 a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-article .blog-content h2 a:hover {
    color: var(--primary-brown);
}

.article-excerpt {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--primary-green);
}

.article-meta {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 2px solid var(--primary-brown);
}

.meta-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.article-stats {
    font-size: 0.85rem;
    color: var(--primary-green);
    opacity: 0.8;
}

/* Category Badge */
.category-badge {
    display: inline-block;
    background: var(--gradient-accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* ===== SIDEBAR ===== */
.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.sidebar-widget h5 {
    color: var(--primary-dark);
    margin-bottom: 1.2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.sidebar-widget h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-brown);
    border-radius: 2px;
}

/* Search Form */
.search-form {
    position: relative;
}

.search-form .form-control {
    padding-right: 45px;
    border-radius: 25px;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--gradient-accent);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.7rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: var(--primary-green);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.3rem 0;
}

.category-list a:hover {
    color: var(--primary-brown);
    transform: translateX(5px);
}

.category-list span {
    background: var(--primary-light);
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    color: var(--primary-brown);
    font-weight: 500;
}

/* Recent Posts */
.recent-posts {
    margin-top: 1rem;
}

.recent-post-item {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(70, 80, 72, 0.1);
}

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-content h6 {
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.recent-post-content h6 a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.recent-post-content h6 a:hover {
    color: var(--primary-brown);
}

.post-date {
    font-size: 0.8rem;
    color: var(--primary-green);
    opacity: 0.8;
}

/* Newsletter Form */
.newsletter-form .form-control {
    border-radius: 25px;
}

/* ===== PAGINATION ===== */
.pagination .page-link {
    color: var(--primary-dark);
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.pagination .page-item.active .page-link {
    background: var(--gradient-accent);
    color: white;
    border: none;
}

/* ===== ARTICLE PAGE STYLES ===== */

/* Article Header */
.article-header {
    padding: 9rem 0 4rem;
    text-align: center;
}

.article-meta-top {
    margin-bottom: 1.5rem;
}

.article-meta-top .category-badge {
    margin-right: 1rem;
}

.article-date {
    color: var(--primary-light);
    opacity: 0.8;
    font-size: 0.9rem;
}

.article-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.article-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.article-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--primary-light);
}

.read-time {
    font-size: 0.9rem;
    opacity: 0.8;
    color: var(--primary-light);
}

/* Article Content */
.article-content {
    padding: 4rem 0;
    background: var(--primary-light);
}

.article-body {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.article-featured-image {
    margin-bottom: 2.5rem;
    border-radius: 15px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

/* Social Sharing */
.social-sharing {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(70, 80, 72, 0.1);
}

.social-sharing span {
    font-weight: 600;
    margin-right: 1rem;
    color: var(--primary-dark);
}

.social-buttons {
    display: flex;
    gap: 0.5rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
}

.social-btn.facebook { background: #3b5998; }
.social-btn.twitter { background: #1da1f2; }
.social-btn.linkedin { background: #0077b5; }
.social-btn.link { background: var(--primary-brown); }

.social-sharing-bottom {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(70, 80, 72, 0.1);
    border-bottom: none;
}

/* Article Text */
.article-text {
    line-height: 1.8;
    color: var(--primary-green);
}

.article-text h2 {
    color: var(--primary-dark);
    margin: 2.5rem 0 1rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.article-text h3 {
    color: var(--primary-dark);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.article-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.article-text ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-text li {
    margin-bottom: 0.5rem;
}

.article-text strong {
    color: var(--primary-dark);
}

/* Article Images */
.article-image {
    margin: 2rem 0;
    text-align: center;
}

.article-image img {
    border-radius: 15px;
    max-width: 100%;
    height: auto;
}

.image-caption {
    font-style: italic;
    color: var(--primary-green);
    opacity: 0.8;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Blockquotes */
blockquote {
    background: var(--primary-light);
    border-left: 4px solid var(--primary-brown);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 10px 10px 0;
}

blockquote p {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

blockquote cite {
    font-style: normal;
    color: var(--primary-brown);
    font-weight: 500;
}

/* Article Tags */
.article-tags {
    margin: 2.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(70, 80, 72, 0.1);
    border-bottom: 1px solid rgba(70, 80, 72, 0.1);
}

.article-tags span {
    font-weight: 600;
    margin-right: 1rem;
    color: var(--primary-dark);
}

.article-tags a {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-green);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    margin: 0.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-tags a:hover {
    background: var(--primary-brown);
    color: white;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--primary-light);
    border-radius: 15px;
    margin: 2.5rem 0;
}

.author-bio-image {
    flex-shrink: 0;
}

.author-bio-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-brown);
}

.author-bio-content h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.author-bio-content p {
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.author-social {
    display: flex;
    gap: 0.5rem;
}

.author-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.author-social a:hover {
    background: var(--primary-brown);
    transform: translateY(-2px);
}

/* Related Articles */
.related-articles {
    margin: 3rem 0;
}

.related-articles h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.related-article-card {
    background: var(--primary-light);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.related-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.related-article-image {
    height: 120px;
    overflow: hidden;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-article-card:hover .related-article-image img {
    transform: scale(1.05);
}

.related-article-content {
    padding: 1.5rem;
}

.related-article-content h5 {
    margin-bottom: 0.5rem;
}

.related-article-content h5 a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.related-article-content h5 a:hover {
    color: var(--primary-brown);
}

.related-article-date {
    font-size: 0.8rem;
    color: var(--primary-green);
    opacity: 0.8;
}

/* Newsletter Card */
.article-newsletter {
    margin: 3rem 0;
}

.newsletter-card {
    background: var(--gradient-primary);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
}

.newsletter-content h4 {
    color: white;
    margin-bottom: 1rem;
}

.newsletter-content p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.newsletter-form .input-group {
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    border-radius: 25px 0 0 25px;
    border: none;
    padding: 0.75rem 1.5rem;
}

.newsletter-form .btn {
    border-radius: 0 25px 25px 0;
    padding: 0.75rem 1.5rem;
    background: var(--primary-brown);
    border: none;
}

.newsletter-form .btn:hover {
    background: var(--primary-gold);
}

/* Sidebar Widgets for Article Page */
.author-sidebar {
    text-align: center;
    padding: 1.5rem;
}

.author-sidebar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-brown);
}

.author-sidebar h6 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.author-sidebar p {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.btn-read-more {
    background: var(--gradient-accent);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(189, 145, 111, 0.4);
    color: white;
}

/* Table of Contents */
.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: var(--primary-green);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(70, 80, 72, 0.1);
}

.table-of-contents a:hover {
    color: var(--primary-brown);
    padding-left: 0.5rem;
}

/* Popular Articles */
.popular-articles {
    margin-top: 1rem;
}

.popular-article-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(70, 80, 72, 0.1);
}

.popular-article-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-article-number {
    width: 30px;
    height: 30px;
    background: var(--gradient-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.popular-article-content h6 {
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.popular-article-content h6 a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-article-content h6 a:hover {
    color: var(--primary-brown);
}

.article-views {
    font-size: 0.8rem;
    color: var(--primary-green);
    opacity: 0.8;
}

/* CTA Widget */
.cta-widget {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
}

.cta-widget h5 {
    color: white;
    margin-bottom: 0.5rem;
}

.cta-widget p {
    opacity: 0.9;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .nav-item {
        margin-bottom: 1rem;
    }

    .btn-primary-custom {
        width: 100%;
        margin-bottom: .5rem;
    }

    .btn-secondary-custom {
        width: 100%;
    }

    .page-header {
        padding: 5rem 0 2rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .recent-post-item {
        flex-direction: column;
    }
    
    .recent-post-image {
        width: 100%;
        height: 120px;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .article-author {
        flex-direction: column;
        text-align: center;
    }
    
    .article-text p {
        font-size: 1rem;
    }
    
    blockquote {
        padding: 1rem 1.5rem;
    }
    
    blockquote p {
        font-size: 1.1rem;
    }
    
    .newsletter-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-item {
        margin-bottom: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .floating-card {
        display: none;
    }
    
    .testimonial-item {
        min-width: 100%;
        margin-bottom: 2rem;
    }
    
    .testimonial-content {
        padding: 2rem;
    }
    
    .blog-content {
        padding: 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .contact-form {
        padding: 4rem 0;
    }
    
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1.2rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    .page-header {
        padding: 6rem 0 2.5rem;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .featured-article .blog-content h2 {
        font-size: 1.5rem;
    }
    
    .article-excerpt {
        font-size: 1rem;
    }
    
    .sidebar-widget {
        padding: 1.2rem;
    }

    .article-header {
        padding: 8rem 0 3rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-header p {
        font-size: 1.1rem;
    }
    
    .article-content {
        padding: 3rem 0;
    }
    
    .article-body {
        padding: 1.5rem;
    }
    
    .article-text h2 {
        font-size: 1.5rem;
    }
    
    .social-sharing {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .related-article-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 992px) {
    .page-header {
        padding: 7rem 0 3rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .featured-article .blog-content h2 {
        font-size: 1.7rem;
    }

    .article-header h1 {
        font-size: 2.5rem;
    }
    
    .article-body {
        padding: 2rem;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
}