/* 
 * Blog Styles for Safiri by Citrus Driver Account
 * 
 * Primary Color: #1A73E8 (Deep Blue)
 * Secondary Color: #FFC107 (Soft Yellow)
 * Accent Color: #4CAF50 (Fresh Green)
 * Neutral Color: #F5F5F5 (Light Gray)
 * 
 * Fonts: Montserrat, Inter, Poppins
 */

/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: #222;
}

a {
    color: #1A73E8;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #0d47a1;
}

ul {
    list-style: none;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #1A73E8;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: #0d47a1;
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: #1A73E8;
    border: 1px solid #1A73E8;
}

.btn-secondary:hover {
    background-color: rgba(26, 115, 232, 0.1);
}

.btn-subscribe {
    width: 100%;
    padding: 12px;
    background-color: #FFC107;
    color: #333;
    border: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    background-color: #FFA000;
}

.read-more {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #1A73E8;
    position: relative;
    padding-right: 20px;
}

.read-more::after {
    content: '→';
    position: absolute;
    right: 0;
    transition: transform 0.3s ease;
}

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

/* Category Tags */
.category-tag {
    display: inline-block;
    padding: 4px 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    color: #fff;
    text-transform: uppercase;
}

.category-tag.driver-tips {
    background-color: #1A73E8; /* Deep Blue */
}

.category-tag.safety {
    background-color: #FF5722; /* Red-Orange */
}

.category-tag.app-updates {
    background-color: #4CAF50; /* Fresh Green */
}

.category-tag.driver-stories {
    background-color: #673AB7; /* Purple */
}

.category-tag.industry-news {
    background-color: #009688; /* Teal */
}

.category-tag.company-updates {
    background-color: #FFC107; /* Soft Yellow */
}

/* Header */
.site-header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-container {
    flex: 0 0 auto;
}

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

.main-nav {
    flex: 1 1 auto;
    text-align: right;
}

.nav-list {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-list li {
    margin: 0 15px;
}

.nav-list a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #333;
    text-transform: uppercase;
}

.nav-list a:hover {
    color: #1A73E8;
}

.nav-list a.btn-primary {
    color: #fff;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
}

/* Hero Section */
.blog-hero {
    background: linear-gradient(rgba(26, 115, 232, 0.9), rgba(26, 115, 232, 0.8)), url('https://via.placeholder.com/1920x600') no-repeat center center;
    background-size: cover;
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

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

.blog-hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
    color: #fff;
}

.blog-hero .tagline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 24px;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Blog Navigation */
.blog-navigation {
    background-color: #f8f9fa;
    padding: 30px 0;
    border-bottom: 1px solid #e9ecef;
}

.search-filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    flex: 0 0 40%;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.search-btn {
    background-color: #1A73E8;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.filter-options {
    display: flex;
    gap: 15px;
}

.filter-dropdown {
    position: relative;
}

.filter-btn {
    padding: 12px 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 4px;
    margin-top: 5px;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.filter-dropdown:hover .dropdown-content {
    display: block;
}

.quick-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.quick-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #1A73E8;
    position: relative;
}

.quick-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #1A73E8;
    transition: width 0.3s ease;
}

.quick-link:hover::after {
    width: 100%;
}

/* Featured Carousel */
.featured-carousel {
    padding: 50px 0;
}

.featured-carousel h2 {
    margin-bottom: 30px;
    font-size: 28px;
    text-align: center;
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 calc(33.333% - 20px);
    margin: 0 10px;
    min-width: 0;
}

.featured-post {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: #fff;
    height: 100%;
}

.post-image {
    position: relative;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-post:hover .post-image img {
    transform: scale(1.05);
}

.post-image .category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
}

.post-content {
    padding: 20px;
}

.post-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.post-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #777;
    margin-bottom: 15px;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 2;
}

.carousel-control.prev {
    left: 15px;
}

.carousel-control.next {
    right: 15px;
}

/* Blog Content */
.blog-content {
    padding: 50px 0;
}

.content-wrapper {
    display: flex;
    gap: 40px;
}

.blog-main {
    flex: 1;
}

.blog-sidebar {
    flex: 0 0 320px;
}

/* Blog Categories Section */
.blog-categories h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.category-section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.category-section h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #1A73E8;
}

.category-section > p {
    margin-bottom: 20px;
    font-size: 16px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.blog-article {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.article-content {
    padding: 20px;
}

.article-content h4 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #777;
    margin-bottom: 15px;
}

.view-all {
    display: block;
    text-align: center;
    padding: 10px;
    background-color: #f8f9fa;
    color: #1A73E8;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.view-all:hover {
    background-color: #e9ecef;
}

.load-more {
    display: block;
    width: 180px;
    margin: 30px auto 0;
    padding: 12px 24px;
    background-color: transparent;
    color: #1A73E8;
    border: 1px solid #1A73E8;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more:hover {
    background-color: rgba(26, 115, 232, 0.1);
}

/* Popular Posts */
.popular-posts h2,
.recent-posts h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.popular-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.blog-article.popular {
    padding: 20px;
    border-left: 4px solid #1A73E8;
}

.blog-article.popular .category-tag {
    margin-bottom: 10px;
    display: inline-block;
}

.blog-article.popular h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Recent Posts */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.blog-article.recent {
    display: flex;
    flex-direction: row;
}

.blog-article.recent .article-image {
    flex: 0 0 120px;
    height: 120px;
}

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

.blog-article.recent .article-content {
    flex: 1;
}

/* Sidebar */
.sidebar-section {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.sidebar-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f1f1;
}

.subscribe-section {
    background-color: #f8f9fa;
    text-align: center;
}

.subscribe-section p {
    margin-bottom: 20px;
    font-size: 14px;
}

.subscribe-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: #333;
}

.category-list a:hover {
    color: #1A73E8;
}

.download-list li {
    margin-bottom: 15px;
}

.download-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.download-item:hover {
    background-color: #e9ecef;
}

.download-item i {
    font-size: 20px;
    color: #1A73E8;
}

.download-info {
    flex: 1;
    margin-left: 12px;
}

.download-info h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.download-info span {
    font-size: 12px;
    color: #777;
}

.events-list li {
    margin-bottom: 15px;
}

.event-item {
    display: flex;
    gap: 15px;
}

.event-date {
    background-color: #1A73E8;
    color: white;
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
}

.event-day {
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
}

.event-month {
    font-size: 14px;
    text-transform: uppercase;
}

.event-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.event-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.event-link {
    font-size: 14px;
    color: #1A73E8;
    font-weight: 500;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 8px 12px;
    background-color: #f1f1f1;
    color: #333;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #1A73E8;
    color: white;
}

/* Join the Conversation Section */
.join-conversation {
    background-color: #1A73E8;
    color: white;
    padding: 80px 0;
    text-align: center;
}

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

.join-conversation h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: white;
}

.join-conversation p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.conversation-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.conversation-actions .btn-secondary {
    border-color: white;
    color: white;
}

.conversation-actions .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.conversation-actions .btn-primary {
    background-color: #FFC107;
    color: #333;
}

.conversation-actions .btn-primary:hover {
    background-color: #FFA000;
}

/* Footer */
.site-footer {
    background-color: #222;
    color: #999;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #999;
}

.footer-links a:hover {
    color: #FFC107;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #1A73E8;
    color: #fff;
}

.website-link {
    margin-top: 20px;
}

.website-link a {
    color: #FFC107;
}

.website-link a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

.copyright {
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .blog-sidebar {
        flex: 0 0 100%;
        margin-top: 50px;
    }
}

@media (max-width: 992px) {
    .carousel-item {
        flex: 0 0 calc(50% - 20px);
    }
    
    .popular-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 32px;
    }
    
    .blog-hero .tagline {
        font-size: 20px;
    }
    
    .search-filter-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .filter-options {
        width: 100%;
        justify-content: space-between;
    }
    
    .carousel-item {
        flex: 0 0 100%;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-article.recent {
        flex-direction: column;
    }
    
    .blog-article.recent .article-image {
        flex: 0 0 auto;
        height: 200px;
    }
    
    .conversation-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .quick-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}