/* ===== BLOG SECTION CSS ===== */

:root {
    --blog-dark-bg: linear-gradient(135deg, rgba(20, 20, 30, 0.98) 0%, rgba(30, 30, 40, 0.98) 100%);
    --blog-light-bg: linear-gradient(135deg, rgba(245, 245, 250, 0.97) 0%, rgba(240, 240, 245, 0.97) 100%);
    --blog-card-dark-bg: rgba(255, 255, 255, 0.03);
    --blog-card-light-bg: rgba(255, 255, 255, 0.85);
    --blog-card-dark-border: rgba(255, 255, 255, 0.05);
    --blog-card-light-border: rgba(0, 0, 0, 0.05);
    --blog-card-dark-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    --blog-card-light-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    --blog-card-hover-dark-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    --blog-card-hover-light-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    --blog-primary-green: #7ED321;
    --blog-primary-purple: #9c27b0;
    --blog-category-text-dark: #fff;
    --blog-category-text-light: #333;
    --blog-text-dark: #fff;
    --blog-text-light: #222;
    --blog-text-muted-dark: rgba(255, 255, 255, 0.7);
    --blog-text-muted-light: rgba(0, 0, 0, 0.7);
    --blog-transition-bezier: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.blog-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    background: var(--blog-dark-bg);
    transition: all 0.5s ease;
}

/* Header spacing for Blog Section */
.blog-section .col-lg-6.p-0 {
    padding-left: 25px !important;
}

/* Responsive adjustments for header spacing */
@media (max-width: 992px) {
    .blog-section .col-lg-6.p-0 {
        padding-left: 15px !important;
    }
}

@media (max-width: 768px) {
    .blog-section .col-lg-6.p-0 {
        padding-left: 15px !important;
    }
}

@media (max-width: 576px) {
    .blog-section .col-lg-6.p-0 {
        padding-left: 10px !important;
    }
}

.blog-bg-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    transition: all 0.8s ease;
}

.blog-element-1 {
    width: 600px;
    height: 600px;
    background: rgba(126, 211, 33, 0.05);
    top: -200px;
    right: -200px;
    animation: float 20s infinite alternate ease-in-out;
}

.blog-element-2 {
    width: 700px;
    height: 700px;
    background: rgba(154, 122, 249, 0.04);
    bottom: -250px;
    left: -250px;
    animation: float 25s infinite alternate-reverse ease-in-out;
}

/* Luxury decorative elements */
.blog-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(126, 211, 33, 0.02) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.8;
    animation: pulse-subtle 15s infinite alternate ease-in-out;
}

@keyframes pulse-subtle {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.8;
    }
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 40px 0 50px;
    position: relative;
    z-index: 1;
}

.blog-category-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--blog-category-text-dark);
    padding: 12px 25px;
    margin: 0 8px 10px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s var(--blog-transition-bezier);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.blog-category-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.blog-category-btn.active {
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.25) 0%, rgba(154, 122, 249, 0.25) 100%);
    border: 1px solid rgba(126, 211, 33, 0.4);
    color: var(--blog-primary-green);
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(126, 211, 33, 0.15);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
    margin-bottom: 50px;
}

.blog-card {
    background: var(--blog-card-dark-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--blog-card-dark-shadow);
    transition: all 0.5s var(--blog-transition-bezier);
    position: relative;
    border: 1px solid var(--blog-card-dark-border);
    backdrop-filter: blur(10px);
    transform: translateY(0);
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.02) 0%, rgba(154, 122, 249, 0.02) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.blog-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--blog-card-hover-dark-shadow);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.blog-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.15) 0%, rgba(154, 122, 249, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.blog-card:hover .blog-image::after {
    opacity: 1;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.08);
}

.blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    transition: all 0.5s ease;
    z-index: 2;
}

.blog-card:hover .blog-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.05) 70%);
}

.blog-content {
    padding: 35px;
    position: relative;
}

.blog-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 13px;
}

.blog-category {
    background: rgba(126, 211, 33, 0.15);
    color: var(--blog-primary-green);
    padding: 5px 14px;
    border-radius: 20px;
    margin-right: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(126, 211, 33, 0.1);
    transition: all 0.3s ease;
}

.blog-card:hover .blog-category {
    background: rgba(126, 211, 33, 0.25);
    box-shadow: 0 6px 15px rgba(126, 211, 33, 0.15);
}

.blog-date {
    color: var(--text-dimmed);
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: color 0.3s ease;
}

.blog-date::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--text-dimmed);
    border-radius: 50%;
    margin-right: 8px;
    transition: background 0.3s ease;
}

.blog-content h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--blog-text-dark);
    font-family: var(--heading-font);
    transition: all 0.4s ease;
    position: relative;
    
    /* Limit to 2 lines with ellipsis */
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.8em; /* 2 lines × line-height 1.4 */
}

.blog-content h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--blog-primary-green) 0%, var(--blog-primary-purple) 100%);
    transition: width 0.4s ease;
    opacity: 0.7;
}

.blog-card:hover .blog-content h4 {
    background: linear-gradient(135deg, var(--blog-primary-green) 0%, var(--blog-primary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    transform: translateY(-2px);
}

.blog-card:hover .blog-content h4::after {
    width: 40px;
}

.blog-content p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 25px;
    transition: all 0.4s ease;
    
    /* Limit to 2 lines with ellipsis */
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3.4em; /* 2 lines × line-height 1.7 */
}

.blog-card:hover .blog-content p {
    color: var(--text-light);
}

.blog-author {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.blog-author::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    transition: all 0.3s ease;
}

.blog-card:hover .blog-author::after {
    background: linear-gradient(90deg, rgba(126, 211, 33, 0.1) 0%, rgba(154, 122, 249, 0.1) 100%);
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 14px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.blog-card:hover .author-avatar {
    border-color: rgba(126, 211, 33, 0.3);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--blog-text-dark);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.author-role {
    font-size: 12px;
    color: var(--text-dimmed);
    transition: color 0.3s ease;
}

.blog-card:hover .author-name {
    color: #fff;
}

.blog-card:hover .author-role {
    color: rgba(255, 255, 255, 0.8);
}

.blog-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--blog-primary-green);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    position: relative;
    transition: all 0.4s ease;
    padding: 5px 0;
    overflow: hidden;
}

.blog-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--blog-primary-green) 0%, var(--blog-primary-purple) 100%);
    transition: width 0.4s ease;
}

.blog-link i {
    margin-left: 8px;
    transition: transform 0.4s ease;
}

.blog-link:hover {
    color: var(--blog-primary-purple);
}

.blog-link:hover::after {
    width: 100%;
}

.blog-link:hover i {
    transform: translateX(5px);
}

.blog-cta {
    margin-top: 60px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.blog-cta .btn {
    margin: 0 10px;
    transition: all 0.4s var(--blog-transition-bezier);
    position: relative;
    overflow: hidden;
}

.blog-cta .btn-primary {
    background: linear-gradient(135deg, var(--blog-primary-green) 0%, var(--blog-primary-purple) 100%);
    border: none;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.blog-cta .btn-outline-sm {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
}

/* Bubble animation for buttons - always active, not just on hover */
.blog-cta .btn .bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: bubble-rise var(--duration, 4s) ease-in infinite var(--delay, 0s);
    z-index: -1;
    opacity: 0;
    width: var(--size, 15px);
    height: var(--size, 15px);
    left: var(--left, 50%);
    bottom: 0;
}

@keyframes bubble-rise {
    0% {
        transform: translateY(100%) scale(0.2);
        opacity: 0;
    }
    5% {
        opacity: 0.8;
    }
    95% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-100%) scale(0.5);
        opacity: 0;
    }
}

.blog-cta .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.blog-cta .btn-primary:hover {
    background: linear-gradient(135deg, var(--blog-primary-purple) 0%, var(--blog-primary-green) 100%);
}

.blog-cta .btn-outline-sm:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

/* Light theme styles for Blog Section */
.light-theme .blog-section {
    background: var(--blog-light-bg);
}

.light-theme .blog-section::after {
    background: radial-gradient(circle, rgba(126, 211, 33, 0.03) 0%, transparent 70%);
}

.light-theme .blog-element-1 {
    background: rgba(126, 211, 33, 0.04);
}

.light-theme .blog-element-2 {
    background: rgba(154, 122, 249, 0.03);
}

.light-theme .blog-category-btn {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--blog-category-text-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.light-theme .blog-category-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.light-theme .blog-category-btn.active {
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.15) 0%, rgba(154, 122, 249, 0.15) 100%);
    border: 1px solid rgba(126, 211, 33, 0.25);
    color: #518717;
    box-shadow: 0 10px 25px rgba(126, 211, 33, 0.1);
}

.light-theme .blog-card {
    background: var(--blog-card-light-bg);
    border: 1px solid var(--blog-card-light-border);
    box-shadow: var(--blog-card-light-shadow);
}

.light-theme .blog-card:hover {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--blog-card-hover-light-shadow);
}

.light-theme .blog-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 60%);
}

.light-theme .blog-card:hover .blog-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.02) 70%);
}

.light-theme .blog-category {
    background: rgba(126, 211, 33, 0.1);
    color: #518717;
    box-shadow: 0 4px 10px rgba(126, 211, 33, 0.08);
}

.light-theme .blog-card:hover .blog-category {
    background: rgba(126, 211, 33, 0.15);
    box-shadow: 0 6px 15px rgba(126, 211, 33, 0.12);
}

.light-theme .blog-date {
    color: rgba(0, 0, 0, 0.6);
}

.light-theme .blog-date::before {
    background: rgba(0, 0, 0, 0.6);
}

.light-theme .blog-content h4 {
    color: var(--blog-text-light);
    /* Keep the title truncation consistent in light mode */
    max-height: 2.8em;
}

.light-theme .blog-content p {
    color: rgba(0, 0, 0, 0.7);
    /* Keep the description truncation consistent in light mode */
    max-height: 3.4em;
}

.light-theme .blog-card:hover .blog-content p {
    color: rgba(0, 0, 0, 0.8);
}

.light-theme .blog-author::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0%, transparent 100%);
}

.light-theme .blog-card:hover .blog-author::after {
    background: linear-gradient(90deg, rgba(126, 211, 33, 0.08) 0%, rgba(154, 122, 249, 0.08) 100%);
}

.light-theme .author-avatar {
    border: 2px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.light-theme .blog-card:hover .author-avatar {
    border-color: rgba(126, 211, 33, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.light-theme .author-name {
    color: var(--blog-text-light);
}

.light-theme .author-role {
    color: rgba(0, 0, 0, 0.6);
}

.light-theme .blog-card:hover .author-name {
    color: #000;
}

.light-theme .blog-card:hover .author-role {
    color: rgba(0, 0, 0, 0.75);
}

.light-theme .blog-link {
    color: #518717;
}

.light-theme .blog-link:hover {
    color: #7a1f99;
}

.light-theme .blog-section .section-title {
    color: #222222;
}

.light-theme .blog-section .section-description,
.light-theme .blog-section .blog-description {
    color: rgba(0, 0, 0, 0.7);
}

.light-theme .blog-cta .btn-outline-sm {
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #333;
}

.light-theme .blog-cta .btn-outline-sm:hover {
    border-color: rgba(0, 0, 0, 0.25);
    background: rgba(0, 0, 0, 0.03);
}

/* Luxury animation for blog cards */
@keyframes shine {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.blog-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.05), 
        transparent
    );
    background-size: 200% 100%;
    opacity: 0;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.blog-card:hover::after {
    opacity: 1;
    animation: shine 1.5s ease-in-out infinite;
}

.light-theme .blog-card::after {
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
}

/* Responsive styles for Blog Section - slightly updated */
@media (max-width: 1200px) {
    .blog-grid {
        gap: 25px;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-content {
        padding: 25px;
    }
    
    .blog-content h4 {
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .blog-content h4 {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding: 80px 0;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .blog-image {
        height: 220px;
    }
    
    .blog-categories {
        margin: 20px 0 30px;
    }
    
    .blog-category-btn {
        margin: 0 5px 8px;
        padding: 8px 18px;
        font-size: 13px;
    }
    
    .blog-cta {
        margin-top: 40px;
    }
    
    .blog-cta .btn {
        margin: 5px;
    }
}

@media (max-width: 576px) {
    .blog-section {
        padding: 60px 0;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-content h4 {
        font-size: 16px;
    }
    
    .blog-content p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .blog-author {
        margin-bottom: 15px;
    }
    
    .author-avatar {
        width: 35px;
        height: 35px;
    }
    
    .author-name {
        font-size: 13px;
    }
    
    .author-role {
        font-size: 11px;
    }
    
    .blog-link {
        font-size: 14px;
    }

    /* Hide "All Articles" button on mobile */
    .blog-category-btn:first-child {
        display: none;
    }
}

/* Blog Section Header Styles */
.blog-section .section-subtitle {
    display: inline-block;
    background: linear-gradient(90deg, rgba(126, 211, 33, 0.2) 0%, rgba(154, 122, 249, 0.2) 100%);
    color: var(--blog-primary-green);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 15px;
    position: relative;
    text-align: left;
    box-shadow: 0 5px 15px rgba(126, 211, 33, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
}

.blog-section .section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--blog-primary-green), var(--blog-primary-purple));
    transition: all 0.3s ease;
}

.blog-section .section-subtitle::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(30deg);
    animation: shine-effect 4s infinite linear;
    pointer-events: none;
}

.blog-section .section-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    text-align: left;
    color: var(--blog-text-dark);
    position: relative;
    transition: all 0.4s ease;
}

.blog-section .section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--blog-primary-green) 0%, var(--blog-primary-purple) 100%);
    transition: width 0.4s ease;
}

.blog-section:hover .section-title::after {
    width: 100px;
}

.blog-section .section-description,
.blog-section .blog-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--blog-text-muted-dark);
    max-width: 80%;
    text-align: left;
    transition: all 0.3s ease;
}

.blog-section .gradient-text {
    background: linear-gradient(135deg, var(--blog-primary-green) 0%, var(--blog-primary-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    font-weight: 800;
    position: relative;
}

.blog-section .gradient-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.2) 0%, rgba(154, 122, 249, 0.2) 100%);
    z-index: -1;
    opacity: 0.5;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Light theme header adjustments */
.light-theme .blog-section .section-subtitle {
    background: linear-gradient(90deg, rgba(126, 211, 33, 0.15) 0%, rgba(154, 122, 249, 0.15) 100%);
    color: #518717;
    box-shadow: 0 5px 15px rgba(126, 211, 33, 0.05);
}

.light-theme .blog-section .section-title {
    color: var(--blog-text-light);
}

.light-theme .blog-section .section-description,
.light-theme .blog-section .blog-description {
    color: var(--blog-text-muted-light);
}

/* Adding the missing shine-effect animation */
@keyframes shine-effect {
    0% {
        transform: translateX(-100%) rotate(30deg);
    }
    100% {
        transform: translateX(300%) rotate(30deg);
    }
}

/* ===== CTA SECTION CSS ===== */

.cta-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(126, 211, 33, 0.03) 0%, transparent 50%);
    animation: rotate-slow 40s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes rotate-slow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.cta-wrapper {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.15), rgba(156, 39, 176, 0.15));
    border: 1px solid rgba(126, 211, 33, 0.2);
    padding: 70px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    transform: translateY(0);
}

.cta-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
    border-color: rgba(156, 39, 176, 0.3);
}

.cta-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm-34-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm-12 65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4z' fill='%237ED321' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: 0;
}

.cta-wrapper::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(156, 39, 176, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
    z-index: -1;
    opacity: 0.7;
    animation: pulse-gentle 6s infinite alternate;
}

@keyframes pulse-gentle {
    0% {
        opacity: 0.5;
        transform: scale(0.95);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.cta-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    text-align: left;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cta-wrapper:hover .cta-title {
    transform: translateY(-3px);
}

.cta-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    text-align: left;
    line-height: 1.7;
}

.cta-section .btn-lg {
    padding: 18px 38px;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    border-radius: 50px;
    background: linear-gradient(135deg, #7ED321, #9c27b0);
    border: none;
    color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.cta-section .btn-lg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.cta-section .btn-lg:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.cta-section .btn-lg:hover::before {
    left: 100%;
}

.cta-section .btn-lg span {
    position: relative;
    z-index: 1;
}

.cta-section .btn-lg i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.cta-section .btn-lg:hover i {
    transform: translateX(5px);
}

/* Floating elements for added visual interest */
.cta-section .floating-element {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.5;
    pointer-events: none;
}

.cta-section .element-1 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(126, 211, 33, 0.2) 0%, transparent 70%);
    top: 10%;
    left: 5%;
    animation: float-element 15s ease-in-out infinite alternate;
}

.cta-section .element-2 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(156, 39, 176, 0.2) 0%, transparent 70%);
    bottom: 10%;
    right: 5%;
    animation: float-element 12s ease-in-out infinite alternate-reverse;
}

@keyframes float-element {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(20px, 20px);
    }
}

/* Light theme adjustments */
.light-theme .cta-wrapper {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.08), rgba(156, 39, 176, 0.08));
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
}

.light-theme .cta-wrapper:hover {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15);
}

.light-theme .cta-title {
    color: #333;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.light-theme .cta-description {
    color: rgba(0, 0, 0, 0.7);
}

/* CTA image styling */
.cta-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    overflow: visible;
}

.cta-image {
    max-width: 130%;
    height: auto;
    position: relative;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
    transform: translateY(0) translateX(-15%);
    margin-bottom: -130px;
    margin-right: -230px;
}

.cta-wrapper:hover .cta-image {
    transform: translateY(-8px) translateX(-15%);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
}

.cta-button-container {
    margin-top: 30px;
}

/* Responsive styles for CTA section */
@media (max-width: 992px) {
    .cta-wrapper {
        padding: 50px;
    }
    
    .cta-title {
        font-size: 38px;
    }
    
    .cta-description {
        font-size: 1.2rem;
    }
    
    .cta-image {
        max-width: 100%;
        margin-top: 30px;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0;
        transform: translateY(0) translateX(0);
    }
    
    .cta-wrapper:hover .cta-image {
        transform: translateY(-8px) translateX(0);
    }
}

@media (max-width: 768px) {
    .cta-section {
        padding: 80px 0;
    }
    
    .cta-wrapper {
        padding: 40px 30px;
    }
    
    .cta-title {
        font-size: 32px;
    }
    
    .cta-description {
        font-size: 1.1rem;
    }
    
    .cta-section .btn-lg {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .cta-image-container {
        margin-top: 30px;
        overflow: hidden;
        display: flex;
        justify-content: center;
    }
    
    .cta-image {
        max-width: 90%;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-wrapper {
        padding: 30px 20px;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .cta-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .cta-button-container {
        margin-top: 20px;
    display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-section .btn-lg {
        width: 100%;
        padding: 14px 20px;
        margin: 0;
    }
    
    .cta-image-container {
        margin-top: 25px;
        overflow: hidden;
        text-align: center;
    }
    
    .cta-image {
        max-width: 85%;
    display: inline-block;
        margin: 0 auto;
        border-radius: 10px;
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    }
}