/* ============================================
   BLOG PAGE - Premium Dark Theme
   Matches index.html & pricing.html aesthetic
   ============================================ */

/* ============================================
   BLOG HERO SECTION (Split Layout)
   ============================================ */
.blog-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(135deg, rgba(8, 8, 16, 0.95) 0%, rgba(13, 13, 26, 0.9) 100%),
        url('https://images.unsplash.com/photo-1499750310159-5254f34d541a?q=80&w=2669&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
    padding: 8rem 0 4rem;
}

.blog-hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.blog-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

/* Hero Left Content */
.blog-hero-text {
    text-align: left;
    position: relative;
    z-index: 5;
}

.blog-hero-tagline {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    background: rgba(124, 77, 255, 0.1);
    border: 1px solid rgba(124, 77, 255, 0.3);
    border-radius: 50px;
    color: var(--spiritual-light);
    font-family: var(--font-accent);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(124, 77, 255, 0.1);
    backdrop-filter: blur(5px);
}

.blog-hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.blog-hero-title .text-gradient {
    display: block;
    margin-top: 0.2rem;
    background: var(--gradient-spiritual);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 15px rgba(124, 77, 255, 0.3));
}

.blog-hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    max-width: 550px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Newsletter Form in Hero */
.hero-newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.8rem 1.5rem;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
}

.hero-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-hero-subscribe {
    background: var(--gradient-spiritual);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-hero-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 77, 255, 0.4);
}

/* Hero Right Visual (Flip Card Carousel) */
.blog-hero-visual {
    position: relative;
    height: 500px;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-carousel {
    position: relative;
    width: 400px;
    height: 480px;
    animation: float-carousel 6s ease-in-out infinite;
}

@keyframes float-carousel {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Each Slide */
.flip-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: none;
    pointer-events: none;
    opacity: 0;
    z-index: 1;
}

.flip-slide.active {
    pointer-events: auto;
    opacity: 1;
    z-index: 5;
}

/* Flip Out (current card leaving) */
.flip-slide.flip-out {
    opacity: 1;
    z-index: 10;
    animation: flipOut 0.7s cubic-bezier(0.42, 0, 0.3, 1.1) forwards;
}

/* Flip In (new card entering) */
.flip-slide.flip-in {
    opacity: 1;
    z-index: 5;
    animation: flipIn 0.7s cubic-bezier(0.42, 0, 0.3, 1.1) forwards;
}

@keyframes flipOut {
    0% {
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }

    50% {
        transform: rotateY(-90deg) scale(0.9);
        opacity: 0.5;
    }

    100% {
        transform: rotateY(-180deg) scale(0.85);
        opacity: 0;
    }
}

@keyframes flipIn {
    0% {
        transform: rotateY(180deg) scale(0.85);
        opacity: 0;
    }

    50% {
        transform: rotateY(90deg) scale(0.9);
        opacity: 0.5;
    }

    100% {
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }
}

/* Flip Card */
.flip-card {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(145deg, rgba(23, 23, 40, 0.9), rgba(13, 13, 26, 0.95));
    border: 1px solid rgba(124, 77, 255, 0.25);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(124, 77, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: box-shadow 0.3s ease;
}

.flip-card:hover {
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(124, 77, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.flip-card-inner {
    width: 100%;
    height: 100%;
}

.flip-card-front {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.flip-card-front img {
    width: 100%;
    height: 60%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.flip-card:hover .flip-card-front img {
    transform: scale(1.05);
}

.flip-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, transparent 30%, rgba(13, 13, 26, 0.9) 100%);
    pointer-events: none;
}

.flip-card-content {
    padding: 1.8rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flip-card-tag {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.35rem 1rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.flip-card-tag.career {
    background: rgba(26, 35, 126, 0.25);
    color: var(--primary-light);
    border: 1px solid rgba(26, 35, 126, 0.4);
}

.flip-card-tag.digital {
    background: rgba(0, 180, 219, 0.15);
    color: #4facfe;
    border: 1px solid rgba(0, 180, 219, 0.3);
}

.flip-card-tag.wellness {
    background: rgba(17, 153, 142, 0.15);
    color: #38ef7d;
    border: 1px solid rgba(17, 153, 142, 0.3);
}

.flip-card-tag.spiritual {
    background: rgba(124, 77, 255, 0.2);
    color: var(--spiritual-light);
    border: 1px solid rgba(124, 77, 255, 0.4);
}

.flip-card-content h3 {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.5rem;
    line-height: 1.35;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.flip-card-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.flip-card-meta i {
    margin-right: 0.3rem;
}

/* Navigation Dots */
.flip-carousel-dots {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 20;
}

.flip-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    cursor: pointer;
    transition: all 0.4s ease;
    padding: 0;
}

.flip-dot:hover {
    border-color: rgba(255, 255, 255, 0.6);
}

.flip-dot.active {
    background: var(--spiritual-light);
    border-color: var(--spiritual-light);
    box-shadow: 0 0 10px rgba(124, 77, 255, 0.5);
    transform: scale(1.2);
}

/* ============================================
   BLOG CONTENT SECTION
   ============================================ */
.blog-section {
    background: var(--dark-bg);
    padding: 5rem 0;
    position: relative;
    z-index: 2;
}

/* Filter Buttons */
.blog-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.filter-btn {
    padding: 0.75rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50px;
    font-family: var(--font-accent);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-spiritual);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(124, 77, 255, 0.3);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.blog-glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.blog-card-image {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-glass-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(13, 13, 26, 0.8) 100%);
    opacity: 0.6;
}

.blog-card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-category-tag {
    display: inline-flex;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.blog-category-tag.career {
    background: rgba(26, 35, 126, 0.2);
    color: var(--primary-light);
    border: 1px solid rgba(26, 35, 126, 0.3);
}

.blog-category-tag.digital {
    background: rgba(0, 180, 219, 0.15);
    color: #4facfe;
    border: 1px solid rgba(0, 180, 219, 0.3);
}

.blog-category-tag.wellness {
    background: rgba(17, 153, 142, 0.15);
    color: #38ef7d;
    border: 1px solid rgba(17, 153, 142, 0.3);
}

.blog-category-tag.spiritual {
    background: rgba(124, 77, 255, 0.15);
    color: var(--spiritual-light);
    border: 1px solid rgba(124, 77, 255, 0.3);
}

.blog-card-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-family: var(--font-heading);
}

.blog-card-title a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--secondary);
}

.blog-card-excerpt {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    margin-top: auto;
}

.blog-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-read-btn {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
}

.blog-read-btn:hover {
    gap: 0.7rem;
    color: var(--saffron);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .blog-hero {
        min-height: auto;
        padding: 8rem 0 5rem;
    }

    .blog-hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .blog-hero-text {
        text-align: center;
    }

    .blog-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-newsletter-form {
        margin: 0 auto;
    }

    .blog-hero-visual {
        height: 400px;
    }

    .flip-carousel {
        width: 340px;
        height: 420px;
        transform: scale(0.9);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 2.75rem;
    }

    .blog-hero-visual {
        display: none;
        /* Hide 3D visual on mobile */
    }

    .blog-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .blog-hero-title {
        font-size: 2rem;
    }

    .hero-newsletter-form {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 1rem;
    }

    .hero-newsletter-input {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 50px;
        width: 100%;
        text-align: center;
    }

    .btn-hero-subscribe {
        width: 100%;
    }
}