/* ==========================================================================
   BLOGS SECTION STYLES
   Description: Styles for the SV Yamaha Blogs Section and Detail Pages
   Color Palette:
   - Primary Dark Blue: #06005b
   - Accent Yellow: blue
   - Text Gray: #797e88
   - Background Light: #f8f9ff
   Design Rules: No border-radius, angular design, light backgrounds
   ========================================================================== */

/* --------------------------------------------------------------------------
   BLOG GRID SECTION (index.php)
   -------------------------------------------------------------------------- */
.blogs-section {
    padding: 100px 0;
    background-color: #f8f9ff; /* Light gray background */
    position: relative;
    overflow: hidden;
}

.blogs-section-title {
    text-align: center;
    margin-bottom: 60px;
}

.blogs-section-title h2 {
    color: #06005b;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 42px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.blogs-section-title p {
    color: #797e88;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layout */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Blog Card */
.blog-card-sharp {
    background-color: #ffffff;
    border-left: 5px solid blue;
    border-bottom: 1px solid #eaeaea;
    border-right: 1px solid #eaeaea;
    border-top: 1px solid #eaeaea;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-sharp:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(6, 0, 91, 0.1);
    border-left-color: #06005b;
}

/* Card Image */
.blog-card-sharp .img-wrap {
    overflow: hidden;
    position: relative;
    height: 240px;
}

.blog-card-sharp .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Category Tag */
.blog-category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #06005b;
    color: #ffffff;
    padding: 6px 15px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

/* Card Content */
.blog-card-sharp .content-wrap {
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta-sharp {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #797e88;
}

.blog-meta-sharp i {
    color: blue;
    margin-right: 6px;
}

.blog-card-sharp .title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #06005b;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-card-sharp .title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-sharp .title a:hover {
    color: blue;
}

.blog-card-sharp .excerpt {
    color: #797e88;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Read More Button */
.blog-read-more {
    display: inline-flex;
    align-items: center;
    color: #06005b;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.blog-read-more i {
    margin-left: 8px;
    font-size: 13px;
    transition: transform 0.3s ease;
}

.blog-read-more:hover {
    color: blue;
}

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

/* Global View All Button */
.blogs-view-all {
    text-align: center;
    margin-top: 50px;
}

.btn-sharp {
    display: inline-flex;
    align-items: center;
    background-color: #06005b;
    color: #ffffff;
    padding: 15px 35px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid #06005b;
    transition: all 0.3s ease;
}

.btn-sharp:hover {
    background-color: transparent;
    color: #06005b;
}

/* --------------------------------------------------------------------------
   BLOG DETAIL PAGE STYLES
   -------------------------------------------------------------------------- */
.blog-detail-section {
    padding: 80px 0 100px;
    background-color: #ffffff;
}

.blog-breadcrumb {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #797e88;
    margin-bottom: 40px;
    background-color: #f8f9ff;
    padding: 15px 20px;
    border-left: 4px solid blue;
}

.blog-breadcrumb a {
    color: #06005b;
    text-decoration: none;
    font-weight: 600;
}

.blog-breadcrumb span.sep {
    margin: 0 10px;
    color: #ccc;
}

.blog-detail-header {
    margin-bottom: 40px;
}

.blog-detail-title {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: #06005b;
    line-height: 1.2;
    margin-bottom: 25px;
    text-transform: capitalize;
}

.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eaeaea;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: #797e88;
}

.blog-detail-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-detail-meta .meta-item i {
    color: blue;
}

.blog-detail-meta .meta-category {
    font-weight: 700;
    color: #06005b;
    text-transform: uppercase;
}

.blog-featured-image {
    width: 100%;
    margin-bottom: 50px;
    position: relative;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 600px;
}

.blog-content {
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #444;
}

.blog-content p {
    margin-bottom: 25px;
}

.blog-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #06005b;
    margin: 40px 0 20px;
}

.blog-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #06005b;
    margin: 30px 0 15px;
}

.blog-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.blog-content li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 10px;
}

.blog-content li::marker {
    color: blue;
}

.blog-content blockquote {
    margin: 40px 0;
    padding: 30px;
    background-color: #f8f9ff;
    border-left: 5px solid #06005b;
    font-size: 20px;
    font-style: italic;
    color: #06005b;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

/* Related Blogs Section */
.related-blogs {
    margin-top: 80px;
    padding-top: 80px;
    border-top: 1px solid #eaeaea;
}

.related-blogs-title {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #06005b;
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   RESPONSIVE QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .blogs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .blog-detail-title {
        font-size: 38px;
    }
}

@media (max-width: 767px) {
    .blogs-grid {
        grid-template-columns: 1fr;
    }
    
    .blogs-section {
        padding: 60px 0;
    }
    
    .blogs-section-title h2 {
        font-size: 32px;
    }
    
    .blog-detail-title {
        font-size: 32px;
    }
    
    .blog-detail-section {
        padding: 50px 0 60px;
    }
}
