/*
   Trueig Blog Template Styles
   Main color: #207dba
   Secondary colors: #35a9e1, #ffffff
*/

/* ===== Base Styles ===== */
:root {
    --primary-color: #207dba;
    --secondary-color: #35a9e1;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #333333;
    --text-color: #222222;
    --body-font: 'Open Sans', sans-serif;
    --heading-font: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

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

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: #666;
}

/* ===== Header Styles ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

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

.logo img {
    height: 50px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
}

.nav-list li {
    margin: 0 1rem;
}

.nav-list a {
    color: var(--dark-gray);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

.nav-list a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-list a:hover:after,
.nav-list a.active:after {
    width: 100%;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    margin: 5px 0;
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
    /* Account for fixed header */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ===== Services Section ===== */
.services-overview {
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.service-icon img {
    width: 64px;
    height: 64px;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

.read-more {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
}

.read-more:after {
    content: '→';
    margin-left: 0.5rem;
    transition: var(--transition);
}

.read-more:hover:after {
    transform: translateX(5px);
}

/* ===== Blog Preview Section ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.blog-card h3 a {
    color: var(--dark-gray);
}

.blog-card h3 a:hover {
    color: var(--primary-color);
}

.blog-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ===== Testimonials Section ===== */
.testimonials {
    background-color: var(--light-gray);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-item {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    margin: 1rem;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    position: relative;
    padding: 0 1.5rem;
}

.testimonial-content p:before,
.testimonial-content p:after {
    content: '"';
    font-size: 2rem;
    color: var(--primary-color);
    position: absolute;
}

.testimonial-content p:before {
    left: 0;
    top: -10px;
}

.testimonial-content p:after {
    right: 0;
    bottom: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.author-info p {
    margin-bottom: 0;
    font-size: 0.875rem;
    color: #666;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.testimonial-controls button {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.testimonial-controls button:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.testimonial-controls .prev:before {
    content: '←';
}

.testimonial-controls .next:before {
    content: '→';
}

.dots {
    display: flex;
    gap: 0.5rem;
    margin: 0 1rem;
}

.dots:before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.dots:after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--medium-gray);
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(rgba(32, 125, 186, 0.9), rgba(53, 169, 225, 0.9)), url('../images/cta-bg.jpg') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 5rem 0 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    margin-bottom: 3rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    /* Give Popular Tags more space */
    gap: 3rem;
    align-items: start;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    margin-bottom: 1rem;
    height: 60px;
}

.footer-logo+p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: #ccc;
    transition: var(--transition);
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 8px;
    transform: translateX(5px);
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #ccc;
}

.footer-contact p i {
    margin-right: 0.75rem;
    color: var(--primary-color);
    width: 20px;
}

.footer-contact a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--primary-color);
}

/* Footer Tags Styling */
.footer-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-tag {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ccc;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.footer-tag:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.copyright p {
    margin-bottom: 0;
    color: #ccc;
    font-size: 0.9rem;
}

.copyright a {
    color: var(--primary-color);
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* ===== Back to Top Button ===== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: none;
    z-index: 999;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* ===== Blog Page Styles ===== */
.page-header {
    background: linear-gradient(rgba(32, 125, 186, 0.9), rgba(53, 169, 225, 0.9)), url('../images/page-header-bg.jpg') no-repeat center center/cover;
    padding: 8rem 0 4rem;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumbs a:hover {
    color: var(--white);
}

.breadcrumbs .separator {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumbs .current {
    color: var(--white);
}

/* Blog Sidebar */
.blog-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 4rem 0;
}

.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.sidebar-widget h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.search-form {
    display: flex;
}

.search-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--medium-gray);
    border-right: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-form button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 1rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.category-list li {
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--medium-gray);
    padding-bottom: 0.75rem;
}

.category-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: var(--text-color);
}

.category-list a:hover {
    color: var(--primary-color);
}

.category-list .count {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
}

.recent-posts li {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--medium-gray);
}

.recent-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-post-img {
    width: 80px;
    height: 60px;
    margin-right: 1rem;
}

.recent-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.recent-post-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.recent-post-info .date {
    font-size: 0.75rem;
    color: #666;
}


/* Blog Single Post */
.blog-single {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.blog-single-image img {
    width: 100%;
    height: auto;
}

.blog-single-content {
    padding: 2rem;
}

.blog-single-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #666;
}

.blog-single-meta span {
    display: flex;
    align-items: center;
}

.blog-single-meta i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.blog-single h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.blog-single-content p {
    margin-bottom: 1.5rem;
}

.blog-single-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    background-color: var(--light-gray);
    margin: 2rem 0;
    font-style: italic;
}

.blog-single-content h2,
.blog-single-content h3 {
    margin-top: 2rem;
}

.blog-single-content ul,
.blog-single-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-single-content ul li,
.blog-single-content ol li {
    margin-bottom: 0.5rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--medium-gray);
}

.post-tags a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--light-gray);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-color);
    transition: var(--transition);
}

.post-tags a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
}

.post-navigation a {
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.post-navigation a:hover {
    color: var(--primary-color);
}

.post-navigation .prev:before {
    content: '←';
    margin-right: 0.5rem;
}

.post-navigation .next:after {
    content: '→';
    margin-left: 0.5rem;
}

/* Comments Section */
.comments-section {
    margin-top: 3rem;
}

.comments-section h3 {
    margin-bottom: 2rem;
}

.comment {
    display: flex;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--medium-gray);
}

.comment:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 80px;
    height: 80px;
    margin-right: 1.5rem;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 700;
    color: var(--dark-gray);
}

.comment-date {
    font-size: 0.875rem;
    color: #666;
}

.comment-text p {
    margin-bottom: 1rem;
}

.comment-reply {
    font-weight: 600;
    color: var(--primary-color);
}

.comment-reply:hover {
    color: var(--secondary-color);
}

.comment-form {
    margin-top: 3rem;
}

.comment-form h3 {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ===== Contact Page Styles ===== */
.contact-info-section {
    background-color: var(--light-gray);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-info-item {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.contact-info-item:hover {
    transform: translateY(-5px);
}

.contact-info-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(32, 125, 186, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-info-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-info-item h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-info-item p,
.contact-info-item a {
    color: #666;
}

.contact-info-item a:hover {
    color: var(--primary-color);
}

.contact-form-section {
    padding: 5rem 0;
}

.contact-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-form-content h2 {
    margin-bottom: 1.5rem;
}

.contact-form-content p {
    margin-bottom: 2rem;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* ===== Responsive Styles ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    html {
        font-size: 15px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        margin-top: 3rem;
    }

    .contact-form-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }

    html {
        font-size: 14px;
    }

    .blog-single-content-wrapper {
        padding: 1.5rem;
    }

    .blog-single-header h1 {
        font-size: 2rem;
    }

    .blog-single-header .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .blog-content-centered {
        font-size: 1rem;
    }

    .header-content {
        height: 70px;
    }

    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-list {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-list.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list li {
        margin: 0.5rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .services-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 6rem 0 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .testimonial-item {
        padding: 1.5rem;
    }

    .blog-single-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .comment {
        flex-direction: column;
    }

    .comment-avatar {
        margin-bottom: 1rem;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* ===== Blog Specific Styles ===== */
.alert-box {
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    background-color: #f8f9fa;
}

.alert-box.mandatory {
    border-left-color: #dc3545;
    background-color: #fff5f5;
}

.alert-box h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.alert-box.mandatory h3 {
    color: #dc3545;
}

.coverage-box {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid var(--medium-gray);
}

.coverage-box h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tip-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid var(--secondary-color);
}

.tip-box h3,
.tip-box h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.highlight-box {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.highlight-box h3 {
    color: #856404;
    margin-bottom: 0.5rem;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
}

.cta-box h3 {
    color: white;
    margin-bottom: 1rem;
}

.cta-box p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-item {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--medium-gray);
}

.info-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

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

.benefit-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.content-list {
    margin: 1rem 0;
    padding-left: 0;
}

.content-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    list-style: none;
}

.content-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.content-list ol li:before {
    content: counter(list-counter) ".";
    counter-increment: list-counter;
}

.content-list ol {
    counter-reset: list-counter;
}

.comparison-table {
    margin: 2rem 0;
}

.table-responsive {
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
}

.comparison-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.comparison-table tr:hover {
    background-color: var(--light-gray);
}

.resource-list {
    list-style: none;
    padding: 0;
}

.resource-list li {
    margin-bottom: 0.5rem;
}

.resource-list a {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--medium-gray);
    transition: var(--transition);
}

.resource-list a:hover {
    color: var(--secondary-color);
    padding-left: 0.5rem;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--medium-gray);
    transition: var(--transition);
}

.category-list a:hover {
    color: var(--secondary-color);
    padding-left: 0.5rem;
}

.category-list span {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.blog-excerpt {
    font-size: 1.1rem;
    color: var(--dark-gray);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.read-time {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* ===== Blog Grid Styles ===== */
.blog-posts {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.blog-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-content h3 {
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-card-content h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.blog-card-content h3 a:hover {
    color: var(--primary-color);
}

.blog-card-content p {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
}

/* ===== Pagination Styles ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--medium-gray);
    border-radius: 6px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.pagination-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-link:last-child {
    width: auto;
    padding: 0 1rem;
}

/* ===== Responsive Blog Styles ===== */
@media (max-width: 768px) {

    .info-grid,
    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .alert-box,
    .coverage-box,
    .tip-box,
    .highlight-box,
    .cta-box {
        padding: 1rem;
        margin: 1rem 0;
    }

    .comparison-table {
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }

    .blog-posts {
        padding: 2rem 0;
    }

    .blog-card-content {
        padding: 1rem;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .pagination-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* ===== Print Styles ===== */
@media print {

    .header,
    .footer,
    .sidebar,
    #back-to-top,
    .comments-section,
    .comment-form,
    .post-navigation {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .blog-single-content img {
        max-width: 500px;
    }

    .alert-box,
    .coverage-box,
    .tip-box,
    .highlight-box {
        border: 1px solid #000;
        background: #fff;
    }
}
