/* Blogs Section Styles */
:root {
    --blog-primary: #175DA8;
    --blog-secondary: #198754;
    --blog-text: #2c3e50;
    --blog-bg: #f8fafc;
    --blog-card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.blog-hero {
    background: linear-gradient(135deg, var(--blog-primary) 0%, #0a3d62 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
    margin-bottom: 50px;
    border-radius: 0 0 50px 50px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.blog-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.025em;
}

.blog-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding-bottom: 80px;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--blog-card-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--blog-secondary);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.blog-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blog-primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-excerpt {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.blog-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.blog-read-more {
    color: var(--blog-primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: gap 0.2s;
}

.blog-read-more:after {
    content: '→';
    margin-left: 5px;
    transition: margin 0.2s;
}

.blog-read-more:hover:after {
    margin-left: 10px;
}

/* Single Blog Page */
.single-blog-header {
    margin-top: 40px;
    text-align: center;
    margin-top: 40px;
    text-align: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.single-blog-header h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title-read-time {
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
}

.single-blog-meta {
    margin-bottom: 30px;
    font-size: 1rem;
}

.meta-author-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar-mini {
    width: 32px;
    height: 32px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blog-primary);
    font-size: 0.9rem;
}

.meta-details {
    color: #64748b;
    font-weight: 500;
}

.share-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.share-btn:hover {
    transform: translateY(-3px);
    color: white;
}

.share-btn.linkedin:hover {
    background: #0077b5;
}

.share-btn.whatsapp:hover {
    background: #25d366;
}

.share-btn.twitter:hover {
    background: #1da1f2;
}

.share-btn.facebook:hover {
    background: #1877f2;
}

.share-btn.threads:hover {
    background: #000000;
}

.share-btn.copy:hover {
    background: var(--blog-primary);
}

.single-blog-image {
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    overflow: hidden;
    margin: 30px auto;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1);
}

.single-blog-image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-blog-body {
    max-width: 1000px;
    margin: 0 auto 50px;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #334155;
    overflow: hidden;
    /* Clearfix behavior if needed, though might clip shadow? overflow-x visible better? */
}

.blog-footer-meta {
    margin-bottom: 80px;
}

.author-info {
    line-height: 1.4;
}

.single-blog-body p {
    margin-bottom: 25px;
}

.single-blog-body h2 {
    color: var(--blog-primary);
    font-weight: 800;
    margin-top: 50px;
    margin-bottom: 20px;
    font-size: 2rem;
    letter-spacing: -0.02em;
}

.single-blog-body h3 {
    color: var(--blog-primary);
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.single-blog-body ul,
.single-blog-body ol {
    margin-bottom: 30px;
    padding-left: 1.5rem;
}

.single-blog-body li {
    margin-bottom: 12px;
}

.single-blog-body blockquote {
    border-left: 6px solid var(--blog-primary);
    padding: 30px 40px;
    background: #f1f5f9;
    font-style: italic;
    font-size: 1.3rem;
    border-radius: 0 20px 20px 0;
    margin: 45px 0;
    color: #475569;
    position: relative;
}

.single-blog-body blockquote:before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 4rem;
    color: var(--blog-primary);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.feature-box {
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-color: var(--blog-primary);
    transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Gated Content Styles */
/* Gated Content Styles */
.gated-content-container {
    position: relative;
    overflow: hidden;
    /* max-height removed to show full percentage of text */
}

.gated-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    /* Limit overlay height so it doesn't blur the whole text */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 40%, rgba(255, 255, 255, 0.9) 80%, rgba(255, 255, 255, 1) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 50px;
    z-index: 10;
    pointer-events: none;
    /* Allow clicks to pass through the transparent top part */
}

.read-more-btn-container {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    /* Enable clicks on the button container */
    position: relative;
    z-index: 20;
}

.btn-read-more-trigger {
    background: var(--blog-primary);
    color: white;
    font-weight: 700;
    padding: 12px 35px;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(23, 93, 168, 0.4);
    transition: all 0.3s ease;

    /* FIX */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Modal Styles */
.blog-auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.blog-auth-modal.active {
    display: flex;
}

.blog-auth-content {
    background: white;
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #334155;
}

.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
}

.auth-form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.auth-form-input:focus {
    border-color: var(--blog-primary);
    outline: none;
}

.btn-submit-auth {
    width: 100%;
    padding: 14px;
    background: var(--blog-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}


.btn-submit-auth:hover {
    background: #11467d;
}

.google-btn {
    width: 100%;
    padding: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.google-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    background: white;
    padding: 0 10px;
    position: relative;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.5rem;
    }

    .blog-hero p {
        font-size: 1rem;
        padding: 0 20px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        /* Force single column on mobile */
        gap: 20px;
        padding: 0 15px 40px 15px;
        /* Add side padding */
    }

    .blog-card {
        max-width: 100%;
        /* Ensure card takes full width available */
        margin: 0 auto;
        /* Center it if it's smaller than container */
    }

    .single-blog-header h1 {
        font-size: 1.8rem;
    }

    .single-blog-image {
        width: 100%;
        margin: 20px auto;
    }

    .blog-auth-content {
        width: 95%;
        padding: 25px;
    }
}

/* Footer Back Button Fix */
.blog-footer-meta .btn-outline-primary {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Consent Section Styles in Modal */
.consent-section {
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.consent-text a {
    color: var(--blog-primary);
    text-decoration: underline;
    font-weight: 600;
}

.consent-text a:hover {
    color: #11467d;
}