:root {
    --durawell-blue: #00a7d4;
    --durawell-orange: #ffa726;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="white"/><path d="M0 50 L50 0 L100 50 L50 100 Z" fill="%230099cc" opacity="0.05"/><path d="M20 70 L70 20 L120 70 L70 120 Z" fill="%23ffa500" opacity="0.05"/><path d="M30 40 L40 30 L50 40 L40 50 Z" fill="%230099cc" opacity="0.03"/><path d="M60 70 L70 60 L80 70 L70 80 Z" fill="%23ffa500" opacity="0.03"/></svg>'),
    linear-gradient(170deg, rgba(0,153,204,0.05) 0%, rgba(255,165,0,0.05) 100%);
    line-height: 1.6;
}

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

.page-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.page-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--durawell-blue), var(--durawell-orange));
    margin: 20px auto 0;
    border-radius: 2px;
}

.page-title h1 {
    color: var(--durawell-blue);
    font-size: 38px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.page-title p {
    font-size: 18px;
    color: var(--dark-gray);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 167, 212, 0.1);
    position: relative;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 167, 212, 0.2);
}

.blog-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--durawell-blue), var(--durawell-orange));
}

.blog-image {
    height: 220px;
    overflow: hidden;
    background-color: black;
    position: relative;
}

.blog-image:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

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

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

.blog-content {
    padding: 25px;
    position: relative;
}

.blog-tag {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--durawell-blue), #0090b8);
    color: var(--white);
    border-radius: 30px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 8px rgba(0, 167, 212, 0.2);
}

.blog-tag.orange {
    background: linear-gradient(135deg, var(--durawell-orange), #e88c00);
    box-shadow: 0 3px 8px rgba(255, 167, 38, 0.2);
}

.blog-title {
    color: var(--durawell-blue);
    font-size: 22px;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 600;
}

.blog-excerpt {
    color: var(--dark-gray);
    margin-bottom: 20px;
    font-size: 15px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #777;
    padding-top: 15px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--durawell-blue);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

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

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

.newsletter-section {
    background: linear-gradient(135deg, var(--durawell-blue), var(--durawell-orange));
    padding: 60px 30px;
    border-radius: 16px;
    margin-top: 70px;
    text-align: center;
    color: var(--white);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.newsletter-section:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
    z-index: 1;
}

.newsletter-section h2 {
    margin-bottom: 15px;
    font-size: 32px;
    position: relative;
    z-index: 2;
}

.newsletter-section p {
    margin-bottom: 30px;
    font-size: 18px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.newsletter-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.newsletter-button {
    padding: 15px 30px;
    background-color: var(--durawell-orange);
    border: none;
    color: var(--white);
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.newsletter-button:hover {
    background-color: #e69722;
    transform: translateY(-2px);
}

.featured-post {
    margin-bottom: 60px;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0, 167, 212, 0.1);
}

.featured-post:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--durawell-blue), var(--durawell-orange));
    z-index: 1;
}

.featured-post-content {
    padding: 40px;
    position: relative;
}

.featured-tag {
    background: linear-gradient(135deg, #ff9800, var(--durawell-orange));
    color: var(--white);
    display: inline-block;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(255, 167, 38, 0.3);
}

.featured-title {
    font-size: 32px;
    color: var(--durawell-blue);
    margin-bottom: 20px;
    line-height: 1.4;
}

.featured-excerpt {
    font-size: 18px;
    margin-bottom: 25px;
    color: #444;
}

.featured-image {
    height: 350px;
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-image:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

@media (min-width: 1024px) {
    .featured-post {
        flex-direction: row;
        align-items: stretch;
    }
    
    .featured-post-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .featured-image {
        flex: 1;
        height: auto;
    }
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .page-title h1 {
        font-size: 32px;
    }
    
    .page-title p {
        font-size: 16px;
    }
    
    .featured-post-content {
        padding: 30px;
    }
    
    .featured-title {
        font-size: 24px;
    }
    
    .featured-excerpt {
        font-size: 16px;
    }
    
    .blog-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-input {
        border-radius: 8px;
        margin-bottom: 10px;
    }
    
    .newsletter-button {
        border-radius: 8px;
    }
    
    .featured-image {
        height: 220px;
    }
    
    .featured-post-content {
        padding: 25px;
    }
    
    .page-title h1 {
        font-size: 28px;
    }
}