/* Page Sections Styles */

.page-section {
    padding: 60px 0;
}

.page-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Full Width Section */
.full-width-section {
    width: 100%;
    padding: 60px 0;
    position: relative;
}

.full-width-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.full-width-section .full-width-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.full-width-section .full-width-item {
    margin-bottom: 30px;
}

.full-width-section .full-width-item:last-child {
    margin-bottom: 0;
}

.full-width-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.full-width-section .custom-content {
    font-size: 16px;
    line-height: 1.6;
}

.full-width-section .custom-content h1,
.full-width-section .custom-content h2,
.full-width-section .custom-content h3,
.full-width-section .custom-content h4,
.full-width-section .custom-content h5,
.full-width-section .custom-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.full-width-section .custom-content p {
    margin-bottom: 1em;
}

.full-width-section .custom-content img {
    max-width: 100%;
    height: auto;
}

.full-width-section .custom-content ul,
.full-width-section .custom-content ol {
    margin-left: 20px;
    margin-bottom: 1em;
}

.full-width-section .custom-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
}

.full-width-section .custom-content table td,
.full-width-section .custom-content table th {
    padding: 10px;
    border: 1px solid #ddd;
}

@media (max-width: 768px) {
    .full-width-section {
        padding: 40px 0;
    }
    
    .full-width-section .full-width-content {
        padding: 30px 15px;
    }
    
    .full-width-section h2 {
        font-size: 24px;
    }
}

/* Four Card Grid */
.four-card-grid .card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.four-card-grid .card-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    flex: 0 1 255px;
    min-width: 250px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
}

.four-card-grid .card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.four-card-grid .card-icon {
    font-size: 48px;
    margin-bottom: 15px;
    text-align: center;
}

.four-card-grid .card-icon img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
}

.four-card-grid .icon-emoji {
    font-size: 48px;
}

.four-card-grid h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1f2937;
}

.four-card-grid p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
    font-size: 14px;
}

.four-card-grid p ol,
.four-card-grid p ul {
    list-style-position: inside;
    padding-left: 0;
    margin: 0;
}

.four-card-grid p ol li,
.four-card-grid p ul li {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 8px;
}

.four-card-grid p ol {
    list-style-type: none;
    counter-reset: none;
}

.four-card-grid p ol li {
    counter-increment: none;
}

.four-card-grid p ol li:before {
    content: none;
}

.four-card-grid .card-button {
    display: inline-block;
    padding: 10px 20px;
    background: #DBEAFE;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
    font-weight: 600;
    margin-top: auto;
}

.four-card-grid .card-button:hover {
    background: #1D4ED8;
}

/* Three Card Grid */
.three-card-grid .card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.three-card-grid .card-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    flex: 0 1 350px;
    min-width: 300px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
}

.three-card-grid .card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.three-card-grid .card-icon {
    font-size: 48px;
    margin-bottom: 15px;
    text-align: center;
}

.three-card-grid .card-icon img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
}

.three-card-grid .icon-emoji {
    font-size: 48px;
}

.three-card-grid h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1f2937;
}

.three-card-grid p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
    font-size: 14px;
}

.three-card-grid p ol,
.three-card-grid p ul {
    list-style-position: inside;
    padding-left: 0;
    margin: 0;
}

.three-card-grid p ol li,
.three-card-grid p ul li {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 8px;
}

.three-card-grid p ol {
    list-style-type: none;
    counter-reset: none;
}

.three-card-grid p ol li {
    counter-increment: none;
}

.three-card-grid p ol li:before {
    content: none;
}

.three-card-grid .card-button {
    display: inline-block;
    padding: 10px 20px;
    background: #DBEAFE;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
    font-weight: 600;
    margin-top: auto;
}

.three-card-grid .card-button:hover {
    background: #1D4ED8;
}

/* Text Block */
.text-block {
    text-align: center;
}

.text-block h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #1f2937;
}

.text-block .text-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: #4b5563;
}

/* Two Column */
.two-column .two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.two-column .text-column h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #1f2937;
}

.two-column .text-column p {
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 20px;
}

.two-column .image-column img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-section .cta-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-section .cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-section .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #764ba2;
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s;
}

.cta-section .cta-button:hover {
    transform: scale(1.05);
}

/* Icon Grid */
.icon-grid .icon-grid-items {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.icon-grid .icon-item {
    flex: 0 1 250px;
    min-width: 250px;
    max-width: 300px;
}

.icon-grid .icon-item .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.icon-grid .icon-item h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1f2937;
}

.icon-grid .icon-item p {
    color: #6b7280;
    line-height: 1.6;
}

/* Feature Cards */
.feature-cards .features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-cards .feature-card {
    padding: 30px;
    background: #f9fafb;
    border-radius: 12px;
    transition: background 0.3s;
    flex: 0 1 265px;
    min-width: 280px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
}

.feature-cards .feature-card:hover {
    background: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.feature-cards .feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-cards .feature-icon img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.feature-cards h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #1f2937;
}

.feature-cards p {
    color: #6b7280;
    line-height: 1.6;
    flex-grow: 1;
}

/* Testimonials */
.testimonials {
    background: #f9fafb;
}

.testimonials .testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials .testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    flex: 0 1 265px;
    min-width: 300px;
    max-width: 380px;
}

.testimonials .testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
}

.testimonials .testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonials .testimonial-author {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 5px;
}

.testimonials .testimonial-position {
    font-size: 14px;
    color: #6b7280;
}

/* Logo Grid */
.logo-grid {
    background: #f9fafb;
}

.logo-grid .logos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-grid .logo-item {
    flex: 0 1 150px;
    min-width: 120px;
    max-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-grid .logo-item img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
}

.logo-grid .logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Services List */
.services-list .services {
    max-width: 900px;
    margin: 0 auto;
}

.services-list .service-item {
    display: flex;
    gap: 20px;
    padding: 30px 0;
    border-bottom: 1px solid #e5e7eb;
}

.services-list .service-item:last-child {
    border-bottom: none;
}

.services-list .service-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.services-list .service-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1f2937;
}

.services-list .service-content p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 15px;
}

.services-list .service-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.services-list .service-link:hover {
    color: #5568d3;
}

/* Team Members */
.team-members .team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.team-members .team-member {
    padding: 20px;
    flex: 0 1 250px;
    min-width: 250px;
    max-width: 300px;
}

.team-members .team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.team-members h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #1f2937;
}

.team-members .team-role {
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 12px;
}

.team-members .team-bio {
    color: #6b7280;
    line-height: 1.6;
    font-size: 14px;
}

/* Pricing Table */
.pricing-table .pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-table .pricing-plan {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    flex: 0 1 265px;
    min-width: 280px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
}

.pricing-table .pricing-plan.featured {
    border: 2px solid #667eea;
    transform: scale(1.05);
}

.pricing-table .pricing-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.pricing-table .pricing-plan.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-table .plan-badge {
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.pricing-table .plan-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1f2937;
}

.pricing-table .plan-price {
    font-size: 48px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

.pricing-table .plan-price span {
    font-size: 18px;
    color: #6b7280;
    font-weight: 400;
}

.pricing-table .plan-description {
    color: #6b7280;
    margin-bottom: 30px;
    min-height: 40px;
}

.pricing-table .plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
    flex-grow: 1;
}

.pricing-table .plan-features li {
    padding: 10px 0;
    color: #4b5563;
    position: relative;
    padding-left: 30px;
}

.pricing-table .plan-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: 700;
    font-size: 18px;
}

.pricing-table .plan-button {
    display: inline-block;
    padding: 12px 40px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
    font-weight: 600;
    margin-top: auto;
}

.pricing-table .plan-button:hover {
    background: #5568d3;
}

.pricing-table .pricing-plan.featured .plan-button {
    background: #1f2937;
}

.pricing-table .pricing-plan.featured .plan-button:hover {
    background: #111827;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .four-card-grid .card-item {
        flex: 0 1 calc(50% - 30px);
    }
    
    .three-card-grid .card-item {
        flex: 0 1 calc(50% - 30px);
    }
    
    .feature-cards .feature-card {
        flex: 0 1 calc(50% - 30px);
    }
    
    .pricing-table .pricing-plan {
        flex: 0 1 calc(50% - 30px);
    }
    
    .icon-grid .icon-item {
        flex: 0 1 calc(50% - 40px);
    }
    
    .team-members .team-member {
        flex: 0 1 calc(50% - 40px);
    }
    
    .testimonials .testimonial-card {
        flex: 0 1 calc(50% - 30px);
    }
    
    .two-column .two-col-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .page-section {
        padding: 40px 0;
    }
    
    .four-card-grid .card-item {
        flex: 0 1 100%;
        max-width: 100%;
    }
    
    .three-card-grid .card-item {
        flex: 0 1 100%;
        max-width: 100%;
    }
    
    .feature-cards .feature-card {
        flex: 0 1 100%;
        max-width: 100%;
    }
    
    .pricing-table .pricing-plan {
        flex: 0 1 100%;
        max-width: 100%;
    }
    
    .icon-grid .icon-item {
        flex: 0 1 100%;
        max-width: 100%;
    }
    
    .team-members .team-member {
        flex: 0 1 100%;
        max-width: 100%;
    }
    
    .testimonials .testimonial-card {
        flex: 0 1 100%;
        max-width: 100%;
    }
    
    .two-column .two-col-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .logo-grid .logos-grid {
        gap: 20px;
    }
    
    .logo-grid .logo-item {
        flex: 0 1 calc(50% - 20px);
    }
    
    .services-list .service-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .pricing-table .pricing-plan.featured {
        transform: scale(1);
    }
    
    .text-block h2 {
        font-size: 28px;
    }
    
    .two-column .text-column h2 {
        font-size: 24px;
    }
    
    .cta-section .cta-content h2 {
        font-size: 28px;
    }
}

/* Two Column Zigzag */
.two-column-zigzag {
    padding: 60px 0;
}

.two-column-zigzag .zigzag-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.two-column-zigzag .zigzag-row:last-child {
    margin-bottom: 0;
}

.two-column-zigzag .zigzag-row.reverse {
    direction: rtl;
}

.two-column-zigzag .zigzag-row.reverse > * {
    direction: ltr;
}

.two-column-zigzag .zigzag-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.two-column-zigzag .zigzag-column img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.two-column-zigzag .zigzag-column h3 {
    font-size: 24px;
    color: #1f2937;
    margin: 0;
}

.two-column-zigzag .zigzag-text {
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
}

@media (max-width: 768px) {
    .two-column-zigzag .zigzag-row {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 50px;
    }
    
    .two-column-zigzag .zigzag-row.reverse {
        direction: ltr;
    }
}

/* Prevent content div styling from affecting sections */
.content .page-section {
    font-size: initial !important;
    line-height: initial !important;
}

.content .page-section h1,
.content .page-section h2,
.content .page-section h3 {
    margin-top: 0 !important;
}

.content .page-section a {
    text-decoration: none !important;
    border-bottom: none !important;
}

.content .page-section p {
    margin-bottom: 1em !important;
}

/* Force section text color on ALL children - override any inline styles */
.page-section[style*="color"] * {
    color: inherit !important;
}

.page-section.two-column-zigzag[style*="color"] * {
    color: inherit !important;
}

/* Override Quill editor list formatting in card grids */
.four-card-grid .card-item ol,
.four-card-grid .card-item ul,
.three-card-grid .card-item ol,
.three-card-grid .card-item ul {
    list-style-type: none !important;
    counter-reset: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.four-card-grid .card-item ol li,
.four-card-grid .card-item ul li,
.three-card-grid .card-item ol li,
.three-card-grid .card-item ul li {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #6b7280 !important;
    margin-bottom: 8px !important;
    padding-left: 0 !important;
    list-style: none !important;
}

.four-card-grid .card-item ol li:before,
.three-card-grid .card-item ol li:before {
    content: none !important;
    display: none !important;
}

.four-card-grid .card-item .ql-editor ol,
.four-card-grid .card-item .ql-editor ul,
.three-card-grid .card-item .ql-editor ol,
.three-card-grid .card-item .ql-editor ul {
    list-style-type: none !important;
    padding-left: 0 !important;
}

.four-card-grid .card-item .ql-editor ol li,
.four-card-grid .card-item .ql-editor ul li,
.three-card-grid .card-item .ql-editor ol li,
.three-card-grid .card-item .ql-editor ul li {
    font-size: 14px !important;
    padding-left: 0 !important;
}

.four-card-grid .card-item .ql-editor ol li:before,
.three-card-grid .card-item .ql-editor ol li:before {
    display: none !important;
}

/* Force sections to break out of paragraph wrapping */
.page-section {
    display: block !important;
    margin: 0 !important;
    padding: 60px 0 !important;
}

.page-section.two-column-zigzag {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    position: relative !important;
}

/* Full-width section breaks out of content container */
.page-section.full-width-section {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    position: relative !important;
}

/* Ensure content div doesn't wrap sections in p tags */
.content > .page-section {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    width: 100vw !important;
}
