/* SEO Section Styles */
.seo-section {
    background-color: #ffffff;
    color: #333333;
    padding: 80px 20px;
    margin: 60px auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(7, 197, 9, 0.1);
    border: 1px solid rgba(7, 197, 9, 0.2);
    position: relative;
    z-index: 1;
    clear: both;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
    overflow-x: hidden;
    overflow-y: visible;
}

/* Prevent horizontal scroll */
.seo-section * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Prevent any element from causing horizontal overflow */
.seo-section img,
.seo-section video,
.seo-section iframe,
.seo-section table {
    max-width: 100%;
    height: auto;
}

.seo-section table {
    display: block;
    overflow-x: auto;
    width: 100%;
}

/* Fix for floated images on mobile */
@media (max-width: 768px) {
    .seo-image-left,
    .seo-image-right {
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Ensure SEO section is positioned correctly and doesn't overlap */
.seo-section {
    position: relative !important;
    z-index: 10 !important;
    margin-top: 60px !important;
    margin-bottom: 60px !important;
    flex: none !important;
    align-self: auto !important;
    order: 9999 !important;
    left: 0 !important;
    right: 0 !important;
    padding-left: clamp(15px, 4vw, 20px) !important;
    padding-right: clamp(15px, 4vw, 20px) !important;
}

/* Override any parent flex or positioning that might affect SEO section */
.login-page-wrapper {
    position: relative;
    overflow-x: hidden;
}

/* Make sure SEO section breaks out of any flex containers */
.layout-main-wrapper {
    position: relative;
    overflow-x: hidden;
}

/* Ensure SEO section appears after login wrapper */
.login-page-wrapper + .seo-section,
.layout-main-wrapper + .seo-section {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: clamp(15px, 4vw, 20px) !important;
    padding-right: clamp(15px, 4vw, 20px) !important;
}

/* Prevent horizontal overflow on body and html */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

.seo-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Typography */
.seo-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #07c509;
    line-height: 1.3;
}

.seo-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 50px;
    margin-bottom: 25px;
    color: #07c509;
    line-height: 1.4;
    border-bottom: 2px solid #07c509;
    padding-bottom: 15px;
}

.seo-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 35px;
    margin-bottom: 20px;
    color: #07c509;
    line-height: 1.4;
}

.seo-section h4 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-top: 25px;
    margin-bottom: 15px;
    color: #07c509;
}

.seo-section h5 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 12px;
    color: #07c509;
}

.seo-section h6 {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #07c509;
}

.seo-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333333;
}

/* Introduction Section */
.seo-intro {
    margin-bottom: 60px;
}

.seo-intro p {
    text-align: justify;
    margin-bottom: 25px;
}

/* Features Section */
.seo-features {
    margin: 60px 0;
}

.seo-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.seo-feature-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    border: 2px solid rgba(7, 197, 9, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 10px rgba(7, 197, 9, 0.05);
}

.seo-feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(7, 197, 9, 0.15);
    border-color: #07c509;
}

.seo-feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(7, 197, 9, 0.2);
}

.seo-feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #07c509;
}

.seo-feature-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
}

/* FAQ Section */
.seo-faq {
    margin: 60px 0;
}

.seo-faq-item {
    background: #ffffff;
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #07c509;
    border: 2px solid rgba(7, 197, 9, 0.2);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.seo-faq-item:hover {
    border-color: #07c509;
    box-shadow: 0 4px 15px rgba(7, 197, 9, 0.1);
}

.seo-faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #07c509;
    cursor: pointer;
    transition: color 0.3s ease;
}

.seo-faq-question:hover {
    color: #05a307;
}

.seo-faq-answer {
    font-size: 1rem;
    line-height: 1.7;
    color: #555555;
    display: none;
}

.seo-faq-item.active .seo-faq-answer {
    display: block;
}

/* Testimonials Section */
.seo-testimonials {
    margin: 60px 0;
}

.seo-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.seo-testimonial-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    border: 2px solid rgba(7, 197, 9, 0.2);
    box-shadow: 0 2px 10px rgba(7, 197, 9, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.seo-testimonial-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(7, 197, 9, 0.15);
    border-color: #07c509;
}

.seo-testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #333333;
    font-style: italic;
}

.seo-testimonial-author {
    font-size: 0.95rem;
    color: #07c509;
    font-weight: 500;
}

.seo-testimonial-rating {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Images */
.seo-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(7, 197, 9, 0.15);
    border: 2px solid rgba(7, 197, 9, 0.2);
    box-sizing: border-box;
    display: block;
}

.seo-image-left {
    float: left;
    margin-right: 25px;
    margin-bottom: 20px;
    max-width: min(400px, 100%);
    width: auto;
}

.seo-image-right {
    float: right;
    margin-left: 25px;
    margin-bottom: 20px;
    max-width: min(400px, 100%);
    width: auto;
}

.seo-image-center {
    display: block;
    margin: 30px auto;
    max-width: min(600px, 100%);
    width: 100%;
}

/* Links */
.seo-section a {
    color: #07c509;
    text-decoration: none;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
    border-bottom: 1px solid transparent;
    font-weight: 500;
}

.seo-section a:hover {
    color: #05a307;
    border-bottom-color: #05a307;
}

.seo-internal-link {
    color: #07c509;
}

.seo-internal-link:hover {
    color: #05a307;
}

.seo-external-link {
    color: #07c509;
}

.seo-external-link::after {
    content: " ↗";
    font-size: 0.9em;
}

.seo-external-link:hover {
    color: #05a307;
}

/* Social Share Buttons */
.seo-social-share {
    margin: 40px 0;
    padding: 30px;
    background: rgba(7, 197, 9, 0.05);
    border-radius: 8px;
    text-align: center;
    border: 2px solid rgba(7, 197, 9, 0.2);
}

.seo-social-share h3 {
    margin-bottom: 20px;
    text-align: center;
    color: #07c509;
}

.seo-share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.seo-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #ffffff;
    color: #07c509;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease, transform 0.2s ease, color 0.3s ease;
    font-size: 0.95rem;
    border: 2px solid #07c509;
    font-weight: 500;
}

.seo-share-btn:hover {
    background: #07c509;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 197, 9, 0.3);
}

.seo-share-btn.facebook {
    border-color: #1877f2;
    color: #1877f2;
}

.seo-share-btn.facebook:hover {
    background: #1877f2;
    color: #ffffff;
}

.seo-share-btn.twitter {
    border-color: #1da1f2;
    color: #1da1f2;
}

.seo-share-btn.twitter:hover {
    background: #1da1f2;
    color: #ffffff;
}

.seo-share-btn.linkedin {
    border-color: #0077b5;
    color: #0077b5;
}

.seo-share-btn.linkedin:hover {
    background: #0077b5;
    color: #ffffff;
}

.seo-share-btn.telegram {
    border-color: #0088cc;
    color: #0088cc;
}

.seo-share-btn.telegram:hover {
    background: #0088cc;
    color: #ffffff;
}

.seo-share-btn.whatsapp {
    border-color: #25d366;
    color: #25d366;
}

.seo-share-btn.whatsapp:hover {
    background: #25d366;
    color: #ffffff;
}

/* Lists */
.seo-section ul,
.seo-section ol {
    margin: 20px 0;
    padding-left: 30px;
    color: #333333;
}

.seo-section li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: #555555;
}

.seo-section li::marker {
    color: #07c509;
}

/* Responsive */
@media (max-width: 768px) {
    .seo-section {
        padding: 40px 15px;
        margin: 40px 0;
        padding-left: clamp(10px, 3vw, 15px) !important;
        padding-right: clamp(10px, 3vw, 15px) !important;
    }
    
    .seo-container {
        padding-left: 0;
        padding-right: 0;
    }
    
    .seo-section h1 {
        font-size: 2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .seo-section h2 {
        font-size: 1.75rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .seo-features-grid,
    .seo-testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .seo-image-left,
    .seo-image-right {
        float: none;
        margin: 20px auto;
        display: block;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .seo-share-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .seo-share-btn {
        justify-content: center;
        width: 100%;
    }
    
    .seo-feature-item,
    .seo-testimonial-item,
    .seo-faq-item {
        padding: 20px 15px;
    }
}

/* Clear floats */
.seo-clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Additional styling for better visual hierarchy */
.seo-section strong {
    color: #07c509;
    font-weight: 600;
}

/* Smooth transitions */
.seo-section * {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
