/* ==========================================================================
   ILS COLLECTIVES - ULTRA-PREMIUM CYBER-LUXE BLOG STYLES
   Optimized for 60fps animations, high legibility, responsive perfection
   ========================================================================== */

:root {
    --bg-dark: #030712;
    --bg-card: rgba(15, 23, 42, 0.75);
    --bg-card-hover: rgba(26, 38, 66, 0.85);
    --border-glass: rgba(0, 242, 254, 0.2);
    --border-glass-hover: rgba(0, 242, 254, 0.5);
    --accent-blue: #00f2fe;
    --accent-cyan: #4facfe;
    --accent-glow: rgba(0, 242, 254, 0.3);
    --text-main: #ffffff;
    --text-silver: #cbd5e1;
    --text-muted: #94a3b8;
    --gradient-accent: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --gradient-glow: radial-gradient(circle, rgba(0, 242, 254, 0.18) 0%, rgba(3, 7, 18, 0) 70%);
}

body.blog-page {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* Background Particle Canvas */
#blog-bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}

/* Ambient Glow Orbs */
.blog-ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.45;
    animation: glowFloat 14s ease-in-out infinite alternate;
}

.blog-glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    top: -100px;
    left: -100px;
}

.blog-glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
    top: 40%;
    right: -150px;
    animation-delay: -5s;
}

.blog-glow-3 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(58, 134, 255, 0.16) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -100px;
    left: 30%;
    animation-delay: -9s;
}

@keyframes glowFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(40px, 30px) scale(1.1);
    }
    100% {
        transform: translate(-30px, -40px) scale(0.95);
    }
}

/* Navbar active link styling */
.navbar .nav-link.active {
    color: var(--accent-blue) !important;
    text-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
}

.navbar .nav-link.active::after {
    width: 100% !important;
    background: var(--gradient-accent) !important;
}

/* ==========================================================================
   BLOG HERO SECTION
   ========================================================================== */
.blog-hero {
    position: relative;
    padding: 8.5rem 1.5rem 2.5rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.blog-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.3rem;
    border-radius: 50px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.4);
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 22px rgba(0, 242, 254, 0.2);
    backdrop-filter: blur(10px);
    animation: badgePulse 3s infinite alternate;
}

@keyframes badgePulse {
    0% {
        box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
        border-color: rgba(0, 242, 254, 0.35);
    }
    100% {
        box-shadow: 0 0 30px rgba(0, 242, 254, 0.45);
        border-color: rgba(0, 242, 254, 0.7);
    }
}

.blog-badge i {
    font-size: 0.9rem;
}

.blog-hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.3rem, 5.2vw, 4.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
    background: linear-gradient(180deg, #ffffff 40%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 950px;
}

.blog-hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-silver);
    max-width: 760px;
    line-height: 1.75;
    margin-bottom: 1rem;
    font-weight: 400;
}

/* ==========================================================================
   FEATURED SPOTLIGHT SECTION
   ========================================================================== */
.featured-section {
    max-width: 1200px;
    margin: 0 auto 3.5rem;
    padding: 0 1.5rem;
}

.featured-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 1.8rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0.9;
}

.featured-card:hover {
    border-color: var(--border-glass-hover);
    box-shadow: 0 25px 60px rgba(0, 242, 254, 0.2), 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: translateY(-5px);
}

.featured-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    border-radius: 16px;
    overflow: hidden;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-card:hover .featured-image {
    transform: scale(1.06);
}

.featured-badge-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(3, 7, 18, 0.85);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem 0.5rem 0.5rem 0;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--accent-blue);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.featured-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.45rem, 2.6vw, 2.3rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.featured-card:hover .featured-title {
    color: var(--accent-blue);
}

.featured-excerpt {
    color: var(--text-silver);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.featured-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.author-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-blue);
    box-shadow: 0 0 14px rgba(0, 242, 254, 0.4);
}

.author-details h5 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.author-details p {
    font-size: 0.8rem;
    color: var(--text-silver);
    margin: 0;
}

.read-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.78rem 1.5rem;
    border-radius: 50px;
    background: var(--gradient-accent);
    color: #030712;
    font-weight: 800;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 22px rgba(0, 242, 254, 0.35);
}

.read-btn i {
    transition: transform 0.3s ease;
}

.read-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 0 32px rgba(0, 242, 254, 0.6);
}

.read-btn:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   BLOG ARTICLES GRID SECTION
   ========================================================================== */
.blog-grid-section {
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 0 1.5rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glass-hover);
    box-shadow: 0 18px 45px rgba(0, 242, 254, 0.18), 0 10px 25px rgba(0, 0, 0, 0.5);
    background: rgba(22, 34, 60, 0.85);
}

.blog-card-image-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card-image {
    transform: scale(1.08);
}

.category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(3, 7, 18, 0.85);
    border: 1px solid rgba(0, 242, 254, 0.5);
    color: var(--accent-blue);
    padding: 0.38rem 0.9rem;
    border-radius: 50px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
}

.blog-card-content {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--accent-blue);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    margin-bottom: 0.85rem;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card:hover .blog-card-title {
    color: var(--accent-blue);
}

.blog-card-excerpt {
    color: var(--text-silver);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-author-mini {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.blog-author-mini img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--accent-blue);
}

.blog-author-mini span {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-silver);
}

.arrow-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.blog-card:hover .arrow-icon {
    background: var(--accent-blue);
    color: #030712;
    border-color: var(--accent-blue);
    transform: translateX(3px) scale(1.05);
    box-shadow: 0 0 18px rgba(0, 242, 254, 0.5);
}

/* ==========================================================================
   INTERACTIVE NEWSLETTER SECTION
   ========================================================================== */
.newsletter-section {
    max-width: 1200px;
    margin: 0 auto 6rem;
    padding: 0 1.5rem;
}

.newsletter-box {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(10, 15, 29, 0.98) 100%);
    border: 1px solid var(--border-glass-hover);
    border-radius: 28px;
    padding: 3.5rem 2rem;
    text-align: center;
    backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.newsletter-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(0, 242, 254, 0.22) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.newsletter-box h3 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.65rem, 3.2vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.newsletter-box p {
    color: var(--text-silver);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.65;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.4rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-main);
    font-size: 0.98rem;
    outline: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 22px rgba(0, 242, 254, 0.25);
}

.newsletter-form button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.9rem;
    border-radius: 50px;
    background: var(--gradient-accent);
    color: #030712;
    font-weight: 800;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 22px rgba(0, 242, 254, 0.35);
    white-space: nowrap;
}

.newsletter-form button:hover {
    transform: scale(1.04);
    box-shadow: 0 0 32px rgba(0, 242, 254, 0.6);
}

/* ==========================================================================
   ARTICLE READER MODAL OVERLAY (HIGH CONTRAST & FULL READABILITY)
   ========================================================================== */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 7, 18, 0.88);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.article-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background: rgba(10, 15, 29, 0.98);
    border: 1px solid var(--accent-blue);
    border-radius: 24px;
    width: 100%;
    max-width: 880px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 25px 75px rgba(0, 242, 254, 0.25), 0 20px 60px rgba(0, 0, 0, 0.9);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

/* Modal Custom Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 7px;
}
.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.modal-close:hover {
    background: #ff4757;
    color: #ffffff;
    border-color: #ff4757;
    transform: rotate(90deg) scale(1.1);
}

.modal-body-image {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1.8rem;
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.modal-body-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.65rem, 3.2vw, 2.4rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.2rem;
    color: #ffffff;
}

.modal-body-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--accent-blue);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-body-text p {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

.modal-body-text h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 2.2rem 0 1rem;
    border-left: 3px solid var(--accent-blue);
    padding-left: 0.8rem;
}

.modal-body-text blockquote {
    border-left: 4px solid var(--accent-blue);
    background: rgba(0, 242, 254, 0.08);
    padding: 1.3rem 1.6rem;
    border-radius: 0 14px 14px 0;
    margin: 2rem 0;
    font-style: italic;
    color: #ffffff;
    font-size: 1.08rem;
    line-height: 1.7;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS (iPhone, iPad, MacBook, Laptop, Desktop)
   ========================================================================== */

/* Laptop & Medium Screens (<= 1024px) */
@media (max-width: 1024px) {
    .blog-hero {
        padding-top: 7.5rem;
    }

    .featured-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .featured-image-wrapper {
        min-height: 260px;
    }

    .featured-content {
        padding: 0;
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

/* Tablets / iPad (<= 768px) */
@media (max-width: 768px) {
    .blog-hero {
        padding-top: 7rem;
        padding-bottom: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        padding: 1.5rem;
        max-height: 90vh;
    }

    .modal-body-image {
        height: 220px;
    }
}

/* Phones / iPhones (<= 480px) */
@media (max-width: 480px) {
    .blog-hero {
        padding-top: 6.5rem;
    }

    .blog-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .blog-hero-title {
        font-size: 2rem;
    }

    .blog-hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .featured-card {
        padding: 1.2rem;
        border-radius: 18px;
    }

    .featured-image-wrapper {
        min-height: 200px;
    }

    .featured-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .read-btn {
        width: 100%;
        justify-content: center;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-box {
        padding: 2.5rem 1.2rem;
        border-radius: 20px;
    }
}
