/* ============================================
   WebOctals Blog Styles
   ============================================ */

/* Blog Header Section */
.blog-header {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.blog-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Stunning Overlays */
.blog-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(100, 200, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.15) 100%);
    z-index: 2;
}

.blog-header-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(0, 210, 255, 0.45) 0%,
            rgba(138, 100, 255, 0.35) 25%,
            rgba(255, 100, 200, 0.4) 50%,
            rgba(255, 180, 50, 0.35) 75%,
            rgba(100, 255, 218, 0.45) 100%);
    z-index: 3;
    mix-blend-mode: screen;
}

/* Header Content */
.blog-header-content {
    position: relative;
    z-index: 4;
    width: 100%;
    text-align: center;
    padding: 40px 20px;
}

.blog-header-content .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.breadcrumb a {
    color: #00D2FF;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 2px 8px rgba(0, 210, 255, 0.4);
}

.breadcrumb a:hover {
    color: #64FFD9;
    transform: translateY(-2px);
    text-shadow: 0 2px 12px rgba(100, 255, 217, 0.6);
}

.breadcrumb .separator {
    color: rgba(138, 200, 255, 0.7);
    font-weight: 300;
}

.breadcrumb .current {
    color: #64C8FF;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(100, 200, 255, 0.5);
}

/* Blog Title */
.blog-title {
    font-size: 4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 210, 255, 0.5);
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
    background: linear-gradient(135deg, #00D2FF, #64C8FF, #64FFD9, #8A64FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 10px rgba(0, 210, 255, 0.6));
}

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

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

/* Blog Subtitle */
.blog-subtitle {
    font-size: 1.35rem;
    color: #E0F4FF;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 210, 255, 0.4);
    animation: fadeInUp 1.2s ease-out;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .blog-header {
        height: 400px;
    }

    .blog-title {
        font-size: 3rem;
    }

    .blog-subtitle {
        font-size: 1.15rem;
    }
}

@media (max-width: 768px) {
    .blog-header {
        height: 350px;
    }

    .blog-title {
        font-size: 2.5rem;
    }

    .blog-subtitle {
        font-size: 1.05rem;
        padding: 0 20px;
    }

    .breadcrumb {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .blog-header {
        height: 300px;
    }

    .blog-title {
        font-size: 2rem;
    }

    .blog-subtitle {
        font-size: 0.95rem;
    }
}

/* Blog Article Grid Enhancements */
.recent-articles {
    padding: 100px 20px;
    background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
}

.recent-articles .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #00D2FF, #64C8FF, #8A64FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 1.2rem;
    color: #64748b;
    font-weight: 400;
}

/* Article Card Redesign - Premium Look */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    max-width: 100%;
    margin: 0 auto;
}

.article-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(100, 200, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00D2FF, #64C8FF, #8A64FF, #64FFD9);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.article-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 210, 255, 0.15);
    border-color: rgba(100, 200, 255, 0.3);
}

.article-card:hover::before {
    opacity: 1;
}

.article-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
            rgba(0, 210, 255, 0.9) 0%,
            rgba(138, 100, 255, 0.8) 50%,
            rgba(255, 100, 200, 0.9) 100%);
    position: relative;
    transition: transform 0.5s ease;
}

.article-card:hover .image-placeholder {
    transform: scale(1.08);
}

.image-placeholder span {
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.article-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #8A64FF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.article-content {
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}

.article-meta time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta time::before {
    content: '📅';
    font-size: 0.85rem;
}

.article-meta .read-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta .read-time::before {
    content: '⏱️';
    font-size: 0.85rem;
}

.article-content h3 {
    margin-bottom: 18px;
    line-height: 1.4;
}

.article-content h3 a {
    color: #1e293b;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline;
    background-image: linear-gradient(135deg, #00D2FF, #8A64FF);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
}

.article-card:hover .article-content h3 a {
    background-size: 100% 2px;
    color: #00D2FF;
}

.article-excerpt {
    color: #64748b;
    line-height: 1.75;
    margin-bottom: 25px;
    font-size: 1rem;
    flex-grow: 1;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tag {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0284c7;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(0, 210, 255, 0.15);
    transition: all 0.3s ease;
}

.article-card:hover .tag {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    border-color: rgba(0, 210, 255, 0.3);
    transform: translateY(-2px);
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #00D2FF;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.article-link::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.article-card:hover .article-link {
    gap: 15px;
    color: #8A64FF;
}

.article-card:hover .article-link::after {
    transform: translateX(5px);
}

/* Responsive Article Grid */
@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .recent-articles .container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .recent-articles {
        padding: 60px 15px;
    }

    .recent-articles .container {
        padding: 0 10px;
    }

    .article-image {
        height: 240px;
    }

    .article-content {
        padding: 28px 24px;
    }

    .article-content h3 a {
        font-size: 1.3rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .recent-articles {
        padding: 60px 10px;
    }

    .recent-articles .container {
        padding: 0 5px;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .article-content {
        padding: 25px 20px;
    }
}

/* Newsletter Section Styling */
.newsletter-signup {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.newsletter-signup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.newsletter-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-text h2 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    margin-bottom: 40px;
}

.newsletter-form .form-group {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto 20px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

.newsletter-form button {
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    white-space: nowrap;
}

.privacy-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.privacy-note a {
    color: #FFD93D;
    text-decoration: none;
    font-weight: 600;
}

.privacy-note a:hover {
    text-decoration: underline;
}

/* Responsive Newsletter */
@media (max-width: 768px) {
    .newsletter-form .form-group {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

    .newsletter-text h2 {
        font-size: 2rem;
    }
}