/* ================ MORE BLOGS COMPONENT STYLES ================ */

.related-posts {
    padding: 6rem 0;
    background: #050505;
    position: relative;
    overflow: hidden;
}

.related-posts::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 87, 87, 0.05), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 3rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* Reusing and refining blog card styles for the "More Blogs" section */
.post-mini-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.post-mini-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 87, 87, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.post-mini-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.post-mini-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.post-mini-card:hover .post-mini-img-wrapper img {
    transform: scale(1.1);
}

.post-mini-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    border: 1px solid rgba(255, 87, 87, 0.2);
    z-index: 2;
}

.post-mini-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-mini-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: left;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #fff;
    transition: color 0.3s ease;
}

.post-mini-card:hover .post-mini-title {
    color: var(--accent-color);
}

.post-mini-excerpt {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-mini-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-mini-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--accent-color);
}

.post-mini-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* 5. BLOG CONTENT (Individual Posts)
   ========================================================================== */
.blog-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 8rem 2rem;
}

.blog-layout-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.blog-main-column {
    width: 100%;
    max-width: 100%;
}

.blog-section {
    margin-bottom: 6rem;
}

.section-heading-premium {
    margin-bottom: 4rem;
}

.heading-title-large {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 950;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #fff;
    margin-bottom: 2rem;
}

.heading-subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.drop-cap::first-letter {
    float: left;
    font-size: 5.5rem;
    line-height: 0.8;
    margin: 0.1em 0.15em 0 0;
    font-weight: 900;
    color: var(--accent-color);
}

/* Typography elements */
.blog-content p {
    font-size: 1.15rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.blog-content h2,
.blog-content h3 {
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* 6. POST MODULES (Alerts, Tables, Comparison)
   ========================================================================== */

.content-alert-box {
    display: flex;
    gap: 1.5rem;
    padding: 2.5rem;
    border-radius: 24px;
    margin: 4rem 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.content-alert-box.blue {
    border-left: 6px solid #3b82f6;
}

.content-alert-box.red {
    border-left: 6px solid var(--accent-color);
}

.alert-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.content-alert-box.blue .alert-icon {
    color: #3b82f6;
}

.alert-content p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Premium Table */
.premium-table-wrapper {
    margin: 4rem 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
}

.premium-table th {
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-color);
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.premium-table td {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 4rem 0;
}

.comparison-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem;
    border-radius: 32px;
    transition: all 0.4s ease;
}

.comparison-item:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.15);
}

.comparison-item h4 {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comparison-item ul {
    list-style: none;
    padding: 0;
}

.comparison-item li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
}

/* Pro List */
.pro-list {
    list-style: none;
    padding: 0;
    margin: 4rem 0;
}

.pro-list li {
    display: flex;
    gap: 2rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    margin-bottom: 2rem;
}

.pro-list-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 76, 77, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.pro-list-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
}

/* My Take Section */
.my-take-section {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(20, 20, 20, 0.5) 100%);
    border: 1px solid rgba(255, 76, 77, 0.2);
    border-radius: 32px;
    padding: 4rem;
    margin: 5rem 0;
}

.my-take-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.my-take-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.my-take-content li {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Pull Quote */
.pull-quote {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    margin: 6rem 0;
    color: #fff;
    font-style: italic;
    background: linear-gradient(90deg, var(--accent-color), #ff8a8a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Footer & Tags */
.blog-footer {
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #fff;
    color: #000;
}

/* 7. SIDEBAR STYLES
   ========================================================================== */

.blog-sidebar {
    position: sticky;
    top: 120px;
    align-self: flex-start;
}

.sidebar-tabs-widget {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2rem;
}

.sidebar-filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
}

.filter-tab {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.filter-tab.active {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 8px 16px rgba(255, 76, 77, 0.3);
}

.filter-tab-content {
    display: none;
}

.filter-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.widget-title-small {
    font-size: 0.75rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

/* Sidebar Result Cards */
.sidebar-result-card {
    display: block;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.result-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1rem;
    transition: transform 0.5s ease;
}

.sidebar-result-card:hover .result-card-img {
    transform: scale(1.05);
}

.sidebar-result-card h5 {
    font-size: 1rem;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.result-card-info span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Category & Archive Links */
.widget-categories {
    list-style: none;
    padding: 0;
}

.widget-categories li {
    margin-bottom: 0.75rem;
}

.widget-categories a {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.widget-categories a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateX(5px);
}

/* Recent Post List */
.widget-post-list {
    list-style: none;
    padding: 0;
}

.widget-post-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: center;
}

.widget-post-thumb {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.widget-post-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.widget-post-title a {
    color: #fff;
    text-decoration: none;
}

.widget-post-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* 8. RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 640px) {

    /* Allow horizontal slider to bleed past section edges */
    .related-posts { overflow: visible; }

    /* Turn grid into a horizontal snap-scroll track */
    .posts-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
        padding: 0 0 16px 0;
        align-items: stretch;
    }
    .posts-grid::-webkit-scrollbar { display: none; }

    /* Each card = one slide */
    .post-mini-card {
        flex: 0 0 82vw;
        max-width: 320px;
        scroll-snap-align: center;
        margin: 0 8px;
        height: auto;
    }
    .post-mini-card:first-child { margin-left: calc(9vw - 8px); }
    .post-mini-card:last-child  { margin-right: calc(9vw - 8px); }

    /* Disable vertical hover lift on touch */
    .post-mini-card:hover { transform: none; }

    /* ── Dot Indicators ── */
    .blogs-slider-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 16px;
        padding-bottom: 4px;
    }

    .blogs-slider-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.15);
        cursor: pointer;
        padding: 0;
        transition: background 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
        flex-shrink: 0;
    }

    .blogs-slider-dot.active {
        background: var(--accent-color, #ff5757);
        box-shadow: 0 0 8px var(--accent-color, #ff5757);
        width: 22px;
        border-radius: 4px;
        border-color: transparent;
    }
}


/* 9. CONTACT FORM (On Blog Pages)
   ========================================================================== */

.contact-form-container {
    margin-top: 6rem;
    position: relative;
    z-index: 2;
}

.contact-card-glass {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form-group-custom {
    margin-bottom: 1.5rem;
}

.form-input-cyber {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    color: #fff !important;
    transition: all 0.3s ease !important;
}

.form-input-cyber:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 4px rgba(255, 76, 77, 0.1) !important;
}

.alert-custom {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 12px;
}
