/* ======================= Global & Fix Styles ======================= */
body {
    font-family: 'Roboto Condensed', sans-serif;
    line-height: 1.8;
    padding-top: 98px; /* IMPORTANT: Keeps content below fixed navbar */
}

.navbar {
    transition: all 0.3s ease-in-out;
    padding: 1.5rem 1rem;
}
.navbar.scrolled {
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.navbar.scrolled .navbar-brand img { width: 40px; height: 40px; }
.navbar-brand img { width: 50px; height: 50px; transition: all 0.3s ease-in-out; }

.section { padding: 80px 0; }
.section-title { font-weight: 700; margin-bottom: 50px; }
.section-title.text-start { text-align: left !important; }

/* Hero Section */
.hero-section { padding: 120px 0; background-color: #f8f9fa; }
.hero-section h1 { font-weight: 700; font-size: 3.2rem; }
.typewriter-text {
    color: #0d6efd;
    border-right: .15em solid #0d6efd;
    animation: blink-caret .75s step-end infinite;
}
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: #0d6efd; } }

/* Problem/Solution Cards */
.problem-solution-card { border: none; border-radius: 15px; padding: 30px; }
.problem-card { background-color: #fff8f8; border-left: 5px solid #dc3545; }
.solution-card { background-color: #f6fff8; border-left: 5px solid #198754; }
.problem-card h3, .solution-card h3 { font-weight: 600; }
.problem-card .icon { color: #dc3545; }
.solution-card .icon { color: #198754; }

/* Feature Cards */
.feature-card { border: 1px solid #eee; border-radius: 15px; padding: 30px; transition: transform 0.3s, box-shadow 0.3s; }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.feature-icon { font-size: 2.5rem; color: #0d6efd; }
.feature-card h3 { font-size: 1.25rem; font-weight: 600; }

/* Why Choose Us Section */
.why-card { padding: 30px; border-radius: 15px; text-align: center; background-color: #f8f9fa; border: 1px solid #eee; transition: transform 0.3s, box-shadow 0.3s; }
.why-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.why-icon { font-size: 2.5rem; color: #0d6efd; margin-bottom: 20px; background-color: #eaf2ff; width: 70px; height: 70px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.why-card h3 { font-weight: 600; margin-bottom: 10px; font-size: 1.25rem; }

/* Reports Section */
#reports .report-list { padding-left: 0; }
#reports .report-list li { font-size: 1rem; margin-bottom: 12px; }
#reports .report-list i { color: #198754; }

#reports.bg-light h2,
#reports.bg-light .lead {
    color: #212529;
}

/* Business Types Section */
.types-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 50px; }
.type-tag { background-color: #f8f9fa; border: 1px solid #eee; border-radius: 50px; padding: 12px 25px; font-weight: 500; color: #343a40; display: flex; align-items: center; transition: all 0.3s ease; }
.type-tag:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.07); background-color: #eaf2ff; border-color: #0d6efd; color: #0d6efd; }
.type-tag i { color: #0d6efd; }
#business-types { position: relative; background-image: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?q=80&w=2070&auto=format&fit=crop'); background-size: cover; background-position: center center; background-attachment: fixed; }
#business-types .section-title h2, #business-types .section-title p { color: #212529; }

/* Pricing Section */
.pricing-toggle-container { background-color: #f1f3f5; border-radius: 50px; padding: 5px; display: inline-flex; }
.pricing-toggle-btn { border-radius: 50px; border: none; font-weight: 600; padding: 10px 25px; background-color: transparent; color: #343a40; transition: all 0.3s ease; }
.pricing-toggle-btn.active { background-color: #fff; color: #0d6efd; box-shadow: 0 3px 10px rgba(0,0,0,0.1); }
.pricing-card { border: 1px solid #ddd; border-radius: 15px; padding: 30px; text-align: center; transition: all 0.3s ease; height: 100%; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.pricing-card.popular { border-color: #0d6efd; border-width: 2px; transform: scale(1.05); box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2); }
.popular-badge { position: absolute; top: 15px; right: -40px; background-color: #0d6efd; color: white; padding: 5px 40px; transform: rotate(45deg); font-size: 0.9rem; font-weight: bold; }
.plan-name { font-weight: 600; font-size: 1.5rem; }
.plan-description { color: #6c757d; margin-bottom: 20px; min-height: 40px; }
.plan-price { font-size: 3rem; font-weight: 700; margin-bottom: 25px; }
.per-month { font-size: 1rem; color: #6c757d; }
.plan-features { text-align: left; margin-bottom: 30px; }
.plan-features li { margin-bottom: 12px; }
.plan-features i { color: #198754; }
.show-monthly .price-yearly { display: none; }
.show-yearly .price-monthly { display: none; }

/* FAQ & Testimonials */
.testimonial-card { background-color: #fff; border: 1px solid #eee; padding: 30px; border-radius: 15px; height: 100%; }
.testimonial-card p { font-style: italic; margin-bottom: 20px; position: relative; }
.testimonial-card p::before { content: '“'; position: absolute; left: -15px; top: -10px; font-size: 3rem; color: #0d6efd; opacity: 0.2; }
.testimonial-avatar { width: 60px; height: 60px; border-radius: 50%; margin-right: 15px; }
.accordion-button:not(.collapsed) { color: #fff; background-color: #0d6efd; }
.accordion-item { border-radius: 10px !important; border: 1px solid #ddd; margin-bottom: 10px; }
.accordion-header { border-radius: 10px !important; }
.accordion-button { font-weight: 600; }

/* CTA Section */
.cta-section { background: linear-gradient(135deg, #0d6efd, #00A6FF); color: white; }



/* =================================================== */
/* === Affiliate Page Styles === */
/* =================================================== */

.affiliate-hero-section { background: linear-gradient(rgba(248, 249, 250, 0.95), rgba(248, 249, 250, 0.95)), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?q=80&w=2070&auto=format&fit=crop') no-repeat center center; background-size: cover; padding: 100px 0; }
#how-it-works .process-steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: flex-start; gap: 20px; }
#how-it-works .process-step { background: #fff; padding: 30px; border-radius: 15px; border: 1px solid #e0e0e0; text-align: center; position: relative; overflow: hidden; height: 100%; transition: transform 0.3s, box-shadow 0.3s; }
#how-it-works .process-step:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }

#how-it-works .step-number {
    position: absolute;
    top: -10px;
    right: 15px;
    font-size: 3.5rem;
    font-weight: 700;
    color: #ced4da;
    z-index: 1;
}

#how-it-works .step-icon { position: relative; z-index: 2; margin-bottom: 20px; background-color: #eaf2ff; width: 70px; height: 70px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
#how-it-works .step-icon i { font-size: 2.2rem; color: #0d6efd; }
#how-it-works .step-title { position: relative; z-index: 2; font-weight: 600; font-size: 1.3rem; color: #202124; margin-bottom: 10px; }
#how-it-works .step-description { position: relative; z-index: 2; font-size: 1rem; color: #5f6368; line-height: 1.6; }
#how-it-works .step-connector { flex-grow: 1; border-top: 2px dashed #ced4da; margin-top: 65px; }
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.benefit-card { display: flex; align-items: flex-start; background-color: #fff; padding: 25px; border-radius: 12px; border: 1px solid #eee; transition: transform 0.3s, box-shadow 0.3s; }
.benefit-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.benefit-icon { flex-shrink: 0; margin-right: 20px; background-color: #eaf2ff; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.benefit-icon i { font-size: 1.8rem; color: #0d6efd; }
.benefit-text h3 { font-weight: 600; color: #202124; margin-bottom: 5px; font-size: 1.2rem; }
.benefit-text p { margin-bottom: 0; color: #5f6368; line-height: 1.6; }
.target-card { background: #fff; padding: 30px; border-radius: 15px; border: 1px solid #eee; text-align: center; height: 100%; transition: transform 0.3s, box-shadow 0.3s; }
.target-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.target-card i { font-size: 2.5rem; color: #0d6efd; margin-bottom: 15px; }
.target-card h3 { font-weight: 600; color: #202124; margin-bottom: 10px; font-size: 1.25rem; }
.earning-table { font-size: 1.1rem; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.earning-table thead { font-weight: bold; }



/* Policy Pages Styles */
.policy-container { padding: 80px 0; }
.policy-container h1 { font-weight: 700; margin-bottom: 30px; }
.policy-container h3 { font-weight: 600; margin-top: 40px; margin-bottom: 20px; }
.policy-container p, .policy-container li { color: #5f6368; line-height: 1.8; }

/* Error Page Styles */
.error-section { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 200px); padding: 40px 0; }
.error-code { font-size: 10rem; font-weight: 700; color: #e9ecef; margin-bottom: -30px; }
.error-heading { font-size: 2.5rem; font-weight: 600; color: #212529; }
.error-message { max-width: 500px; margin: 15px auto 0; color: #6c757d; }

/* Responsive Adjustments */
@media (max-width: 991px) {
    body { padding-top: 82px; }
    .pricing-card.popular { transform: scale(1); }
}
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2.5rem; }
    #how-it-works .process-steps { grid-template-columns: 1fr; gap: 30px; }
    #how-it-works .step-connector { display: none; }
    .benefits-grid { grid-template-columns: 1fr; }
    .error-code { font-size: 7rem; margin-bottom: -20px; }
    .error-heading { font-size: 2rem; }
}

/* =================================================== */
/* === New Footer Styles === */
/* =================================================== */

.site-footer {
    background-color: #212529;
    color: #adb5bd; /* A light grey for text */
    font-size: 0.9rem;
}

.site-footer .footer-brand {
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
}

.site-footer .footer-title {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 1.1rem; 
    letter-spacing: 0.5px;
}

.site-footer .footer-tagline,
.site-footer .footer-address {
    line-height: 1.6;
}

.site-footer .footer-links li {
    margin-bottom: 0.2rem;
}

.site-footer .footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.site-footer .footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.social-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.x-twitter {
	display: inline-flex;
	background: #bbb;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    color: white;
}

.social-icon.facebook {
    background-color: #1877F2;
}

.social-icon.whatsapp {
    background-color: #25D366;
}

.payment-icons img {
    height: 35px;
    width: auto;
    margin-right: 10px;
    border-radius: 5px;
    background-color: #fff; /* Add a white background for better visibility */
    padding: 2px;
}

.sub-footer {
    background-color: #1c1f23; /* A slightly darker shade */
    padding: 1rem 0;
    text-align: center;
    border-top: 1px solid #343a40;
}
.footer-logo {
    height: 34px; /* Adjust the height as needed */
    width: auto;
    vertical-align: middle; /* Aligns the logo nicely with the text */
    margin-bottom: 4px; /* Minor adjustment for perfect alignment */
}
.post-card-minimal img {
object-fit: cover;
}
.post-card-minimal .card-body {
padding: 1rem;
}
.post-card-minimal .card-title a:hover {
color: #0d6efd !important;
}
/* =================================================== */
/* === Responsive Fixes === */
/* =================================================== */

/* Ensure containers have padding on mobile */
.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    padding-right: var(--bs-gutter-x, .75rem);
    padding-left: var(--bs-gutter-x, .75rem);
}

/* Ensure post body content does not overflow */
.post-body {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.post-body img,
.post-body iframe,
.post-body table,
.post-body video {
    max-width: 100%;
    height: auto;
}

.social-share-buttons-small {
    display: flex;
    flex-wrap: wrap;
    align-items-center;
    gap: 8px; /* Reduced gap */
}

.btn-social-icon-small {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 38px; /* Smaller width */
    height: 38px; /* Smaller height */
    border-radius: 50%; /* Makes it circular */
    color: #fff !important;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    border: none;
}
.btn-social-icon-small:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
.btn-social-icon-small i {
    font-size: 1rem; /* Adjusted icon size */
}

/* Social media brand colors */
.btn-facebook { background-color: #1877F2; }
.btn-twitter { background-color: #14171A; }
.btn-linkedin { background-color: #0A66C2; }
.btn-whatsapp { background-color: #25D366; }
.btn-email { background-color: #777; }

/* =================================================== */
/* === Related Posts List View Fixes (Mobile) === */
/* =================================================== */

.related-post-list-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.related-post-list-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.related-post-list-item img {
    width: 60px; /* Small image width */
    height: 60px; /* Small image height */
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0; /* Prevents image from shrinking */
    margin-right: 15px;
}

.related-post-list-item .card-body {
    padding: 0;
    margin-right: 0;
}
/* Ensure related posts display as lists on mobile */
@media (max-width: 767px) {
    .related-posts-grid .col-md-6,
    .related-posts-grid .col-6 {
        width: 100%; /* Full width on mobile */
    }
    
    .related-posts-grid .card {
        border: none;
        box-shadow: none !important;
    }
}





/* =================================================== */
/* === Trix Editor Visibility Fix === */
/* =================================================== */

trix-editor {
    display: block; /* Ensures the editor is treated as a block element */
    min-height: 250px; /* Gives the editor a minimum height so it's visible */
    background-color: #fff;
    border: 1px solid #d1d5db; /* A default border to match Tailwind's forms */
    border-radius: 0.375rem; /* A default border-radius */
    padding: 0.5rem 0.75rem;
}

/* Ensure the toolbar is also visible */
trix-toolbar {
    display: block;
}

/* Fix for Tailwind CSS preflight styles that can hide elements */
[hidden] {
    display: none !important;
}

trix-editor:not([hidden]) {
    display: block;
}