/* =====================================================
   SEAWAY MARITIME BLOG STYLES
   Modern, Professional Maritime Industry Design
   ===================================================== */

:root {
    --primary-blue: #0A4C6F;
    --accent-blue: #1E88E5;
    --light-blue: #E3F2FD;
    --dark-navy: #002B47;
    --gray-dark: #2C3E50;
    --gray-medium: #546E7A;
    --gray-light: #ECEFF1;
    --white: #FFFFFF;
    --orange-accent: #FF6B35;
    --success-green: #38a169;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BLOG HERO SECTION ===== */
.blog-hero {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(30deg, rgba(255, 255, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.05) 87.5%, rgba(255, 255, 255, 0.05)),
        linear-gradient(150deg, rgba(255, 255, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.05) 87.5%, rgba(255, 255, 255, 0.05)),
        linear-gradient(30deg, rgba(255, 255, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.05) 87.5%, rgba(255, 255, 255, 0.05)),
        linear-gradient(150deg, rgba(255, 255, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.05) 87.5%, rgba(255, 255, 255, 0.05));
    background-size: 80px 140px;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ===== SEARCH BAR ===== */
.blog-search {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.blog-search input {
    flex: 1;
    border: none;
    padding: 1.2rem 2rem;
    font-size: 1rem;
    outline: none;
    color: var(--gray-dark);
}

.blog-search input::placeholder {
    color: var(--gray-medium);
}

.blog-search button {
    background: var(--accent-blue);
    border: none;
    padding: 0 2.5rem;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.blog-search button:hover {
    background: var(--primary-blue);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CATEGORY FILTER ===== */
.category-filter {
    background: var(--white);
    padding: 2rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.category-filter .container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.category-chip {
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    background: var(--gray-light);
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-chip:hover {
    background: var(--light-blue);
    color: var(--accent-blue);
    transform: translateY(-2px);
}

.category-chip.active {
    background: var(--accent-blue);
    color: var(--white);
    border-color: var(--accent-blue);
}

/* ===== FEATURED POSTS SECTION ===== */
.featured-posts {
    padding: 4rem 0;
    background: var(--gray-light);
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-navy);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-blue);
    border-radius: 2px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.featured-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.featured-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

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

.featured-card:hover .featured-image img {
    transform: scale(1.08);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--orange-accent);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-content {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-content h3 {
    font-size: 1.5rem;
    margin: 1rem 0;
    line-height: 1.4;
}

.featured-content h3 a {
    color: var(--gray-dark);
    text-decoration: none;
    transition: var(--transition);
}

.featured-content h3 a:hover {
    color: var(--accent-blue);
}

.featured-content p {
    color: var(--gray-medium);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    gap: 0.8rem;
    color: var(--primary-blue);
}

/* ===== POST META ===== */
.post-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--gray-medium);
    margin-bottom: 0.5rem;
}

.post-date i,
.post-author i {
    margin-right: 0.3rem;
}

.post-category,
.post-category-tag {
    background: var(--light-blue);
    color: var(--accent-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===== BLOG POSTS GRID ===== */
.blog-posts {
    padding: 4rem 0;
    background: var(--white);
}

.filter-info {
    background: var(--light-blue);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    text-align: center;
}

.filter-info p {
    color: var(--gray-dark);
    font-size: 1.1rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.post-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-blue);
}

.post-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--gray-light);
}

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

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

.media-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.post-content {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 1.4rem;
    margin: 0.8rem 0 1rem;
    line-height: 1.4;
    font-weight: 600;
}

.post-title a {
    color: var(--gray-dark);
    text-decoration: none;
    transition: var(--transition);
}

.post-title a:hover {
    color: var(--accent-blue);
}

.post-excerpt {
    color: var(--gray-medium);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
}

.post-author {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.read-more-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.read-more-link:hover {
    gap: 0.7rem;
    color: var(--primary-blue);
}

/* ===== NO POSTS ===== */
.no-posts {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--gray-medium);
}

.no-posts i {
    color: var(--gray-light);
    margin-bottom: 1.5rem;
}

.no-posts h3 {
    font-size: 2rem;
    color: var(--gray-dark);
    margin-bottom: 1rem;
}

.no-posts p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background: var(--accent-blue);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.page-link,
.page-number {
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--gray-dark);
    background: var(--white);
    border: 2px solid var(--gray-light);
    transition: var(--transition);
    font-weight: 500;
}

.page-link:hover,
.page-number:hover {
    background: var(--light-blue);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-number.active {
    background: var(--accent-blue);
    color: var(--white);
    border-color: var(--accent-blue);
}

/* ===== NEWSLETTER CTA ===== */
.newsletter-cta {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.newsletter-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-cta p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
}

.newsletter-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    outline: none;
}

.btn-subscribe {
    padding: 1.2rem 3rem;
    background: var(--orange-accent);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-subscribe:hover {
    background: #e55a28;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .blog-hero {
        height: 400px;
        margin-top: 70px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .category-filter {
        top: 70px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .category-filter .container {
        gap: 0.5rem;
    }
    
    .category-chip {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}
