/* ===============================
   Blog Page - Modern 3D Design
   =============================== */

/* Blog Hero Section */
.blog-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0B1F3F 0%, #1a2f4f 50%, #0B1F3F 100%);
    overflow: hidden;
    padding: 180px 0 80px;
}

.blog-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 184, 77, 0.1) 0%, transparent 50%),
        radial-gradient(2px 2px at 10% 20%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 90% 80%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.15), transparent);
    background-size: 100% 100%;
    animation: hero-bg-move 15s ease-in-out infinite;
}

@keyframes hero-bg-move {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero-badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    color: var(--color-gold);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out;
}

.blog-hero-title {
    font-size: 56px;
    font-weight: 900;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.blog-hero-title .highlight {
    background: linear-gradient(135deg, var(--color-gold) 0%, #FFB84D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* Blog Search Bar */
.blog-search-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 60px;
    padding: 18px 28px;
    max-width: 600px;
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.blog-search-bar:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-gold);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.blog-search-bar svg {
    width: 24px;
    height: 24px;
    color: var(--color-gold);
    flex-shrink: 0;
}

.blog-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.blog-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Floating Elements */
.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    animation: float-around 20s ease-in-out infinite;
    opacity: 0.12;
    pointer-events: none;
    color: var(--color-gold);
}

.floating-element svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
    stroke-width: 1.5;
}

.element-1 {
    top: 25%;
    left: 8%;
    animation-delay: 0s;
}

.element-2 {
    top: 35%;
    right: 12%;
    animation-delay: 5s;
}

.element-3 {
    bottom: 25%;
    left: 12%;
    animation-delay: 10s;
}

.element-4 {
    bottom: 35%;
    right: 8%;
    animation-delay: 15s;
}

@keyframes float-around {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    25% { 
        transform: translate(20px, -20px) rotate(90deg);
        opacity: 0.5;
    }
    50% { 
        transform: translate(-10px, 10px) rotate(180deg);
        opacity: 0.2;
    }
    75% { 
        transform: translate(15px, 15px) rotate(270deg);
        opacity: 0.4;
    }
}

/* Blog Categories (Tab System) */
.blog-categories {
    padding: 60px 0 40px;
    background: white;
    position: sticky;
    top: 130px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.blog-categories.unstick {
    position: relative;
    top: auto;
}

.categories-wrapper {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 20px 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-gold) var(--color-gray-100);
}

.categories-wrapper::-webkit-scrollbar {
    height: 6px;
}

.categories-wrapper::-webkit-scrollbar-track {
    background: var(--color-gray-100);
    border-radius: 10px;
}

.categories-wrapper::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 10px;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--color-gray-50);
    border: 2px solid var(--color-gray-200);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-gray-600);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.category-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s ease;
}

.category-tab:hover::before {
    left: 100%;
}

.category-tab:hover {
    border-color: var(--color-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
}

.category-tab.active {
    background: linear-gradient(135deg, var(--color-gold) 0%, #FFB84D 100%);
    border-color: var(--color-gold);
    color: var(--color-navy);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.category-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.category-count {
    display: none;
}

/* Footer Social Media */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: white;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: var(--color-gold);
    transform: translateY(-2px);
    color: var(--color-navy);
}

/* Latest News Carousel */
.latest-news-carousel {
    padding: 60px 0;
    background: var(--color-gray-50);
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.carousel-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-navy);
    display: flex;
    align-items: center;
}

.carousel-title svg {
    color: var(--color-gold);
}

.carousel-controls {
    display: flex;
    gap: 12px;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border: 2px solid var(--color-gray-300);
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    transform: scale(1.1);
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
    color: var(--color-navy);
}

.carousel-wrapper {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: calc(50% - 12px);
    /* Şəkil + mətn yan-yana (row) olduqda 1200x400 nisbəti mətnin
       hündürlüyünə "stretch" olunurdu — ya kəsilmə, ya da boş sahə yaranırdı.
       Şəkil kart üzərində (grid kartları kimi) tam enlə, öz nisbətində
       görünsün deyə düzülüşü sütuna (column) çeviririk. */
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
}

.carousel-slide:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.2);
}

.slide-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1200 / 630;
    overflow: hidden;
    background: var(--color-gray-200);
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.carousel-slide:hover .slide-image img {
    transform: scale(1.1);
}

.slide-category {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.95);
    backdrop-filter: blur(10px);
    color: var(--color-navy);
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
}

.slide-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.slide-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--color-gray-600);
    font-size: 13px;
    font-weight: 600;
}

.slide-date::after {
    content: '•';
    margin-left: 12px;
    color: var(--color-gray-300);
}

.slide-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 12px;
    line-height: 1.4;
}

.slide-excerpt {
    font-size: 15px;
    color: var(--color-gray-600);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.slide-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-gold);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.slide-link:hover {
    transform: translateX(6px);
    color: var(--color-navy);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-gray-300);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--color-gold);
    width: 32px;
    border-radius: 6px;
}

.dot:hover {
    background: var(--color-gold);
    transform: scale(1.2);
}

/* Blog Grid */
.blog-grid-section {
    padding: 80px 0;
    background: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.2);
}

.blog-card-image {
    position: relative;
    /* Qutunun nisbəti şəklin öz nisbətinə (1200x630) bərabərləşdirilib —
       bununla cover heç nəyi kəsmir, çünki qutu artıq şəklin öz formasındadır.
       (Sabit hündürlük əvəzinə aspect-ratio: eni ilə mütənasib hündürlük.) */
    aspect-ratio: 1200 / 630;
    overflow: hidden;
    background: var(--color-gray-200);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.15) rotate(3deg);
    filter: brightness(1.1);
}

.blog-card-category {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.95);
    backdrop-filter: blur(10px);
    color: var(--color-navy);
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.blog-card:hover .blog-card-category {
    background: var(--color-navy);
    color: var(--color-gold);
    transform: translateY(-4px);
}

.blog-card-content {
    padding: 28px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--color-gray-600);
    font-size: 13px;
    font-weight: 600;
}

.blog-card-date,
.blog-card-read-time {
    position: relative;
}

.blog-card-date::after {
    content: '•';
    margin-left: 12px;
    color: var(--color-gray-300);
}

.blog-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--color-gold);
}

.blog-card-excerpt {
    font-size: 14px;
    color: var(--color-gray-600);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-gold);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-card-link:hover {
    transform: translateX(6px);
    color: var(--color-navy);
}

/* Load More Button */
.load-more-wrapper {
    text-align: center;
}

.load-more-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 17px 42px;
    background: var(--color-gray-100);
    border: 2px solid var(--color-gray-200);
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    color: var(--color-navy);
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.load-more-btn:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-navy);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.load-more-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.4s ease;
}

.load-more-btn:hover svg {
    transform: translateY(4px);
}

/* Primary variant: eye-catching gold gradient CTA (homepage "Bütün Məqalələrə Bax") */
.load-more-btn--primary {
    background: linear-gradient(135deg, var(--color-gold) 0%, #FFB84D 100%);
    border: none;
    color: var(--color-navy);
    padding: 19px 46px 19px 44px;
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.35), 0 2px 6px rgba(11, 31, 63, 0.08);
    letter-spacing: 0.2px;
}

.load-more-btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.55) 45%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.7s ease;
}

.load-more-btn--primary svg {
    width: 18px;
    height: 18px;
    padding: 3px;
    background: rgba(11, 31, 63, 0.12);
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}

.load-more-btn--primary:hover {
    background: linear-gradient(135deg, #FFB84D 0%, var(--color-gold) 100%);
    border: none;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 18px 40px rgba(212, 175, 55, 0.45), 0 4px 10px rgba(11, 31, 63, 0.1);
}

.load-more-btn--primary:hover::before {
    transform: translateX(120%);
}

.load-more-btn--primary:hover svg {
    transform: translateX(5px);
    background: rgba(11, 31, 63, 0.2);
}

/* Newsletter Section */
.blog-newsletter {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    position: relative;
    overflow: hidden;
}

.blog-newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.newsletter-card {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.newsletter-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    color: var(--color-gold);
    animation: bounce 2s ease-in-out infinite;
}

.newsletter-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 20px rgba(212, 175, 55, 0.4));
    stroke-width: 1.5;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.newsletter-title {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.newsletter-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}

.newsletter-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--color-gold) 0%, #FFB84D 100%);
    border: none;
    border-radius: 50px;
    color: var(--color-navy);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero {
        min-height: 60vh;
        padding: 140px 0 60px;
    }
    
    .blog-hero-title {
        font-size: 36px;
    }
    
    .blog-hero-subtitle {
        font-size: 16px;
    }
    
    .blog-search-bar {
        padding: 14px 20px;
    }
    
    .floating-element {
        width: 40px;
        height: 40px;
        opacity: 0.08;
    }
    
    .blog-categories {
        top: 75px;
        padding: 30px 0 20px;
    }
    
    .categories-wrapper {
        padding: 0 10px 10px;
    }
    
    .category-tab {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    /* Carousel Mobile */
    .carousel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .carousel-title {
        font-size: 24px;
    }
    
    .carousel-slide {
        min-width: 100%;
    }

    .slide-content {
        padding: 20px;
    }
    
    .slide-title {
        font-size: 18px;
    }
    
    .slide-excerpt {
        font-size: 14px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .blog-card-image {
        aspect-ratio: 1200 / 630;
    }
    
    .newsletter-card {
        padding: 40px 24px;
    }
    
    .newsletter-title {
        font-size: 24px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-btn {
        width: 100%;
    }
}


/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--color-navy);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid var(--color-navy);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}
