/* ============================================================
   css/blog.css - IMPROVED VERSION
   Removed heavy shadows, reduced overlays, premium design
   ============================================================ */

/* ===== BLOG HERO SECTION - ENLARGED (65vh) ===== */
.blog-hero {
    position: relative;
    height: 68vh;
    min-height: 580px;
    background: linear-gradient(135deg, #0a2c2f 0%, #051f21 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/blog-hero.jpg');
    background-size: cover;
    background-position: center 30%;
    opacity: 0.45;
    pointer-events: none;
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5, 31, 33, 0.55) 0%, rgba(10, 44, 47, 0.4) 100%);
    z-index: 1;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.4rem;
    border-radius: 60px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
}

.blog-hero-badge i {
    color: #e2c898;
    font-size: 0.8rem;
}

.blog-hero-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    color: white;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.blog-hero-title em {
    font-style: italic;
    font-weight: 300;
    color: #70cfcf;
}

.blog-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.blog-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    pointer-events: none;
    z-index: 3;
}

.blog-wave svg {
    display: block;
    width: 100%;
    height: 70px;
}

/* ===== CATEGORY FILTER - PREMIUM REDESIGN ===== */
.blog-categories-bar {
    position: sticky;
    top: 110px;
    margin-top: 24px;
    z-index: 98;
    backdrop-filter: blur(12px);
}

.blog-categories-bar .container {
    max-width: 75%;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.85);
    padding: 1.25rem 0;
}

.categories-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 0.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.categories-scroll::-webkit-scrollbar {
    height: 3px;
}

/* 
.categories-scroll::-webkit-scrollbar-track {
    background: #d4eef0;
    border-radius: 4px;
}

.categories-scroll::-webkit-scrollbar-thumb {
    background: #2c9a9c;
    border-radius: 4px;
} */

.category-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    background: transparent;
    border: 1px solid #d4eef0;
    color: #2e5a5e;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.category-btn i {
    font-size: 0.8rem;
    color: #2c9a9c;
}

.category-btn:hover {
    border-color: #2c9a9c;
    background: rgba(44, 154, 156, 0.05);
}

.category-btn.active {
    background: linear-gradient(135deg, #2c9a9c, #1b6264);
    border-color: transparent;
    color: white;
}

.category-btn.active i {
    color: white;
}

/* ===== FEATURED POST - PREMIUM REDESIGN ===== */
.blog-featured {
    padding: 3.5rem 0 2rem;
    background: #edf8f9;
}

.featured-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0;
    background: white;
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.featured-card:hover {
    transform: translateY(-6px);
}

.featured-media {
    position: relative;
    overflow: hidden;
    min-height: 380px;
}

.featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-card:hover .featured-media img {
    transform: scale(1.04);
}

.featured-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 31, 33, 0.3), transparent 50%);
    pointer-events: none;
}

.featured-category {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: linear-gradient(135deg, #c9a96e, #b8864e);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.35rem 1rem;
    border-radius: 30px;
    z-index: 2;
}

.featured-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    color: #8fa8ab;
}

.post-meta i {
    margin-right: 0.3rem;
    color: #2c9a9c;
}

.featured-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #0a2c2f;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-excerpt {
    color: #5a7a7d;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #edf8f9;
}

.author-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar i {
    font-size: 2rem;
    color: #2c9a9c;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: #0a2c2f;
}

.author-title {
    font-size: 0.7rem;
    color: #8fa8ab;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, #2c9a9c, #1b6264);
    border: none;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #3ab8ba, #2c9a9c);
}

/* ===== BLOG GRID ===== */
.blog-grid-section {
    padding: 3rem 0 4rem;
    background: #edf8f9;
}

.blog-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.grid-header-left {
    display: flex;
    flex-direction: column;
}

.grid-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #2c9a9c;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.grid-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #0a2c2f;
}

.grid-title em {
    color: #2c9a9c;
    font-style: italic;
}

.grid-subtitle {
    color: #5a7a7d;
    font-size: 0.9rem;
}

/* Blog Masonry Grid */
.blog-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.8rem;
    margin-bottom: 2.5rem;
}

/* Blog Post Card - Premium, minimal shadow */
.blog-post-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.35s ease;
    border: 1px solid rgba(44, 154, 156, 0.08);
}

.blog-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(5, 31, 33, 0.08);
}

.card-image {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-post-card:hover .card-image img {
    transform: scale(1.05);
}

.card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(27, 98, 100, 0.9);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.25rem 0.9rem;
    border-radius: 30px;
    letter-spacing: 0.5px;
}

.card-content {
    padding: 1.5rem;
}

.card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.7rem;
    color: #8fa8ab;
    margin-bottom: 0.75rem;
}

.card-meta i {
    margin-right: 0.25rem;
    color: #2c9a9c;
}

.card-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #0a2c2f;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.card-excerpt {
    font-size: 0.85rem;
    color: #5a7a7d;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #edf8f9;
    padding-top: 1rem;
}

.card-author {
    font-size: 0.7rem;
    color: #8fa8ab;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2c9a9c;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.card-link i {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.card-link:hover {
    color: #1b6264;
}

.card-link:hover i {
    transform: translateX(3px);
}

/* Load More Button - No heavy shadow */
.blog-load-more {
    text-align: center;
    margin-top: 1rem;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: transparent;
    border: 1.5px solid #2c9a9c;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2c9a9c;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: #2c9a9c;
    color: white;
    transform: translateY(-2px);
}

/* ===== CTA BANNER - REPLACED NEWSLETTER ===== */
.blog-cta-banner {
    background: linear-gradient(135deg, #0a2c2f, #051f21);
    padding: 3rem 0;
    margin: 2rem 0 0;
}

.cta-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.cta-icon {
    background: rgba(44, 154, 156, 0.15);
    width: 75px;
    height: 75px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-icon i {
    font-size: 2rem;
    color: #c9a96e;
}

.cta-text {
    flex: 1;
}

.cta-text h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    color: white;
    margin-bottom: 0.35rem;
}

.cta-text h3 span {
    color: #c9a96e;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-primary-btn,
.cta-secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-primary-btn {
    background: white;
    color: #1b6264;
}

.cta-primary-btn:hover {
    transform: translateY(-2px);
    background: #f7fafa;
}

.cta-secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.cta-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ===== TIPS CAROUSEL - FIXED & CLEAN ===== */
.tips-carousel-section {
    padding: 3rem 0 5rem;
    background: white;
    position: relative;
    width: 100%;
    overflow-x: clip;
}

.tips-carousel-section .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.tips-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.tips-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(44, 154, 156, 0.1);
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #2c9a9c;
    margin-bottom: 0.75rem;
}

.tips-badge i {
    font-size: 0.65rem;
}

.tips-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    color: #0a2c2f;
}

.tips-title em {
    color: #2c9a9c;
    font-style: italic;
}

.tips-subtitle {
    color: #5a7a7d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Carousel wrapper - handles centering */
.tips-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 50px;
}

/* Swiper styles */
.tips-swiper {
    width: 100%;
    height: auto;
    overflow: hidden;
    padding: 0.5rem 0 2.5rem;
}

.tips-swiper .swiper-wrapper {
    align-items: stretch;
}

/* Tip card styling */
.tip-card {
    background: #edf8f9;
    border-radius: 24px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(44, 154, 156, 0.1);
}

.tip-card:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 10px 30px rgba(5, 31, 33, 0.06);
    border-color: rgba(44, 154, 156, 0.2);
}

.tip-icon i {
    font-size: 2.2rem;
    color: #c9a96e;
    margin-bottom: 1rem;
    display: inline-block;
}

.tip-card h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #0a2c2f;
}

.tip-card p {
    font-size: 0.85rem;
    color: #5a7a7d;
    line-height: 1.6;
    margin: 0;
}

/* Navigation buttons - correctly positioned */
.tips-nav {
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 10;
}

.tips-nav .swiper-button-prev,
.tips-nav .swiper-button-next {
    pointer-events: auto;
    background: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2f0f1;
    transition: all 0.2s ease;
}

.tips-nav .swiper-button-prev {
    left: -15px;
}

.tips-nav .swiper-button-next {
    right: -15px;
}

.tips-nav .swiper-button-prev::after,
.tips-nav .swiper-button-next::after {
    font-size: 0.9rem;
    font-weight: bold;
    color: #2c9a9c;
}

.tips-nav .swiper-button-prev:hover,
.tips-nav .swiper-button-next:hover {
    background: #2c9a9c;
}

.tips-nav .swiper-button-prev:hover::after,
.tips-nav .swiper-button-next:hover::after {
    color: white;
}

/* Pagination */
.tips-pagination {
    bottom: 0 !important;
    position: relative;
    margin-top: 0.5rem;
}

.tips-pagination .swiper-pagination-bullet {
    background: #cbdadb;
    opacity: 0.6;
    width: 8px;
    height: 8px;
    margin: 0 5px;
}

.tips-pagination .swiper-pagination-bullet-active {
    background: #2c9a9c;
    opacity: 1;
    width: 20px;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .tips-carousel-wrapper {
        padding: 0 35px;
    }

    .tip-card {
        padding: 1.6rem 1.2rem;
    }
}

@media (max-width: 768px) {
    .tips-carousel-section {
        padding: 2rem 0 3.5rem;
    }

    .tips-carousel-wrapper {
        padding: 0 25px;
    }

    .tips-nav .swiper-button-prev,
    .tips-nav .swiper-button-next {
        width: 36px;
        height: 36px;
    }

    .tips-nav .swiper-button-prev {
        left: -8px;
    }

    .tips-nav .swiper-button-next {
        right: -8px;
    }

    .tips-nav .swiper-button-prev::after,
    .tips-nav .swiper-button-next::after {
        font-size: 0.8rem;
    }

    .tip-card {
        padding: 1.4rem 1rem;
    }
}

@media (max-width: 580px) {
    .tips-carousel-wrapper {
        padding: 0 15px;
    }

    .tips-nav .swiper-button-prev,
    .tips-nav .swiper-button-next {
        display: none;
    }

    .tips-swiper {
        padding: 0.5rem 0 2rem;
    }
}


/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-content {
        padding: 1.8rem;
    }

    .featured-title {
        font-size: 1.5rem;
    }

    .blog-masonry {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-hero {
        height: 55vh;
        min-height: 450px;
    }

    .blog-categories-bar {
        top: 80px;
    }

    .categories-scroll {
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .category-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }

    .blog-masonry {
        grid-template-columns: 1fr;
    }

    .cta-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .tips-swiper-wrapper {
        padding: 0 20px;
    }

    .featured-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .blog-hero-title {
        font-size: 2rem;
    }

    .blog-hero-subtitle {
        font-size: 0.9rem;
    }

    .blog-categories-bar .container {
        max-width: 90%;
        padding: 15px 20px;
    }


    .featured-title {
        font-size: 1.3rem;
    }

    .grid-title {
        font-size: 1.6rem;
    }

    .cta-primary-btn,
    .cta-secondary-btn {
        padding: 0.7rem 1.3rem;
        font-size: 0.8rem;
    }
}