/* Kawader Website - Main Stylesheet */
/* Color scheme inspired by Daftra.com - dark navy, green CTA, blue accents */

:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #e8f0fe;
    --accent: #22c55e;
    --accent-dark: #16a34a;
    --accent-light: #dcfce7;
    --navy: #0f2137;
    --navy-light: #152a45;
    --dark: #0f2137;
    --gray-900: #1f2937;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f8f9fa;
    --white: #ffffff;
}

/* Reset & Base - Make Frappe content full width */
.main-section {
    max-width: 100% !important;
    padding: 0 !important;
    width: 100% !important;
}

.main-section > .container {
    max-width: 100% !important;
    padding: 0 !important;
    width: 100% !important;
}

.page-content,
.page-content-wrapper,
[data-page-container] {
    max-width: 100% !important;
    padding: 0 !important;
    width: 100% !important;
}

body[data-path="packages"] .container-fluid,
body[data-path="packages"] .row,
body[data-path="packages"] .col {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.web-footer, .page-header, .navbar .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Navbar logo sizing */
.navbar-brand img {
    height: 80px !important;
    width: auto !important;
    max-height: 80px !important;
}

.navbar {
    min-height: 90px;
}

.navbar-brand {
    padding: 5px 0 !important;
}

/* Hide default Frappe page header for our custom pages */
.page-header-wrapper {
    display: none;
}

/* Screenshot Slideshow (Swiper) */
.kw-slideshow {
    background: var(--navy);
    padding: 25px 0;
}

.kw-swiper {
    padding: 10px 0;
}

.kw-swiper .swiper-slide {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    background: var(--navy-light);
}

.kw-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top left;
}

/* Hero Section - Light background like Daftra */
.kw-hero {
    background: var(--white);
    color: var(--navy);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.kw-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230f2137' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.kw-hero .container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.kw-hero h1 {
    font-size: 3.4rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--navy);
}

.kw-hero .highlight {
    color: var(--primary);
}

.kw-hero p {
    font-size: 1.15rem;
    color: var(--gray-500);
    max-width: 700px;
    margin: 0 auto 45px;
    line-height: 1.8;
}

.kw-hero .btn-primary-custom {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 16px 42px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.kw-hero .btn-primary-custom:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
    color: var(--white);
}

.kw-hero .btn-outline-custom {
    border: 2px solid var(--gray-300);
    color: var(--navy);
    padding: 14px 36px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.kw-hero .btn-outline-custom:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* Section Common */
.kw-section {
    padding: 30px 0;
}

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

.kw-section-title {
    text-align: center;
    margin-bottom: 20px;
}

.kw-section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 15px;
}

.kw-section-title p {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

.kw-section-alt {
    background: var(--gray-100);
}

/* Services Cards */
.kw-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.kw-service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 35px 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.kw-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.kw-service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.kw-service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.kw-service-card p {
    color: var(--gray-500);
    line-height: 1.7;
    margin: 0;
}

/* Stats Section */
.kw-stats {
    background: var(--primary-light);
    padding: 60px 0;
    color: var(--navy);
}

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

.kw-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.kw-stat h3 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--primary);
}

.kw-stat p {
    font-size: 1rem;
    color: var(--gray-700);
}

/* Why Choose Us */
.kw-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.kw-feature {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.kw-feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--accent-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.kw-feature h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.kw-feature p {
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}

/* Hero Side Boxes */
.kw-hero-side-box {
    position: absolute;
    top: 68%;
    transform: translateY(-50%);
    width: 210px;
    background: #34495e;
    border: 1px solid #3d566e;
    border-radius: 12px;
    padding: 28px 22px;
    text-align: center;
    z-index: 2;
    box-shadow: 0 8px 30px rgba(52, 73, 94, 0.3);
    transition: all 0.3s ease;
}

.kw-hero-side-box:hover {
    transform: translateY(calc(-50% - 4px));
    box-shadow: 0 12px 40px rgba(15, 33, 55, 0.35);
    border-color: var(--primary);
}

.kw-hero-side-left {
    left: 40px;
}

.kw-hero-side-right {
    right: 40px;
}

.kw-side-box-icon {
    width: 48px;
    height: 48px;
    background: rgba(26, 115, 232, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.kw-hero-side-box h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.kw-hero-side-box p {
    font-size: 0.8rem !important;
    color: rgba(255,255,255,0.7) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    max-width: none !important;
}

/* Hide side boxes on smaller screens */
@media (max-width: 1400px) {
    .kw-hero-side-box {
        width: 180px;
        padding: 20px 16px;
    }
    .kw-hero-side-left {
        left: 20px;
    }
    .kw-hero-side-right {
        right: 20px;
    }
}

@media (max-width: 1100px) {
    .kw-hero-side-box {
        display: none;
    }
}

/* RTL support for hero side boxes */
html[dir="rtl"] .kw-hero-side-left {
    left: auto;
    right: 40px;
}
html[dir="rtl"] .kw-hero-side-right {
    right: auto;
    left: 40px;
}
@media (max-width: 1400px) {
    html[dir="rtl"] .kw-hero-side-left {
        left: auto;
        right: 20px;
    }
    html[dir="rtl"] .kw-hero-side-right {
        right: auto;
        left: 20px;
    }
}

/* CTA Section */
.kw-cta {
    background: var(--primary);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

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

.kw-cta h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--white);
}

.kw-cta p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 15px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.kw-cta .btn-primary-custom {
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 16px 42px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.kw-cta .btn-primary-custom:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* About Page */
.kw-about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.kw-about-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
}

.kw-about-text p {
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 15px;
}

.kw-about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.kw-value {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.kw-value h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-top: 12px;
    margin-bottom: 8px;
}

.kw-value p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin: 0;
}

/* Contact Page */
.kw-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.kw-contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
}

.kw-contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.kw-contact-item-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.kw-contact-item h4 {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.kw-contact-item p {
    color: var(--gray-500);
    margin: 0;
}

.kw-contact-form {
    background: var(--white);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-200);
}

.kw-contact-form h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 25px;
}

.kw-form-group {
    margin-bottom: 18px;
}

.kw-form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.kw-form-group input,
.kw-form-group textarea,
.kw-form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    font-family: inherit;
}

.kw-form-group input:focus,
.kw-form-group textarea:focus,
.kw-form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.kw-form-submit {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.kw-form-submit:hover {
    background: var(--accent-dark);
}

/* Page Header - Light background like Daftra */
.kw-page-header {
    background: var(--gray-100);
    color: var(--navy);
    padding: 15px 0 10px;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

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

.kw-page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--navy);
}

.kw-page-header p {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 550px;
    margin: 0 auto;
}

/* Technologies */
.kw-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}

.kw-tech-item {
    padding: 25px 15px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.kw-tech-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.kw-tech-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    margin-top: 10px;
    margin-bottom: 0;
}

/* Solutions Page */
.kw-solution-block {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 40px;
    align-items: start;
}

.kw-solution-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.kw-solution-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.kw-solution-image:hover img {
    transform: scale(1.05);
}

.kw-solution-content {
    flex: 1;
}

.kw-solution-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.kw-solution-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kw-solution-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 6px;
}

.kw-solution-subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
    margin: 0;
}

.kw-solution-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 30px;
    margin-bottom: 24px;
}

.kw-solution-feature {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.kw-solution-feature svg {
    flex-shrink: 0;
    margin-top: 3px;
}

.kw-solution-feature span {
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.5;
}

.kw-solution-tags {
    margin-bottom: 10px;
}

.kw-solution-industries {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-top: 10px;
    font-style: italic;
}

.kw-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 6px;
    margin-bottom: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .kw-hero h1 {
        font-size: 2.2rem;
    }

    .kw-hero p {
        font-size: 1.05rem;
    }

    .kw-hero .btn-outline-custom {
        margin-left: 0;
        margin-top: 12px;
    }

    .kw-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .kw-features-grid,
    .kw-about-content,
    .kw-contact-grid {
        grid-template-columns: 1fr;
    }

    .kw-section-title h2 {
        font-size: 1.8rem;
    }

    .kw-page-header h1 {
        font-size: 2rem;
    }

    .kw-solution-block {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .kw-solution-image img {
        height: 200px;
    }

    .kw-solution-features {
        grid-template-columns: 1fr;
    }

    .kw-solution-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* Hide Frappe default elements on website */
body[data-path="index"] .page-header,
body[data-path="about"] .page-header,
body[data-path="services"] .page-header,
body[data-path="contact"] .page-header,
body[data-path="solutions"] .page-header,
body[data-path="packages"] .page-header {
    display: none;
}

/* ========================================
   SAAS PACKAGES / PRICING PAGE
   ======================================== */

/* SaaS Intro Text */
.kw-saas-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.kw-saas-intro p {
    font-size: 1.05rem;
    color: var(--gray-700);
    line-height: 1.8;
}

/* SaaS Benefits Grid */
.kw-saas-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.kw-saas-benefit {
    text-align: center;
    padding: 30px 25px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.kw-saas-benefit:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border-color: var(--primary);
}

.kw-saas-benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.kw-saas-benefit h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.kw-saas-benefit p {
    color: var(--gray-500);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* Pricing Grid */
.kw-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: start;
}

/* Pricing Card */
.kw-pricing-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px 24px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.kw-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

/* Popular Card */
.kw-pricing-popular {
    border-color: var(--accent);
    border-width: 2px;
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.12);
}

/* Enterprise Card */
.kw-pricing-enterprise {
    border-color: var(--navy);
    border-width: 2px;
}

/* Badge */
.kw-pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.kw-badge-enterprise {
    background: var(--navy);
}

/* Pricing Header */
.kw-pricing-header {
    text-align: center;
    margin-bottom: 20px;
}

.kw-pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 6px;
}

.kw-pricing-subtitle {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin: 0;
}

/* Price */
.kw-pricing-price {
    text-align: center;
    margin-bottom: 4px;
}

.kw-price-amount {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
}

.kw-price-currency {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-left: 4px;
}

.kw-price-period {
    font-size: 0.95rem;
    color: var(--gray-500);
}

.kw-pricing-monthly {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 24px;
}

/* Specs */
.kw-pricing-specs {
    padding: 16px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 20px;
}

.kw-spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.kw-spec-item span {
    font-size: 0.9rem;
    color: var(--gray-700);
}

/* Business Processes Title */
.kw-pricing-processes-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    text-align: center;
}

/* Features List */
.kw-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}

.kw-pricing-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 0.88rem;
    color: var(--gray-700);
    line-height: 1.4;
}

.kw-pricing-features li svg {
    flex-shrink: 0;
}

/* CTA Button */
.kw-pricing-cta {
    display: block;
    text-align: center;
    padding: 14px 20px;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
    margin-top: auto;
}

.kw-pricing-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.25);
}

.kw-pricing-cta-popular {
    background: var(--accent);
}

.kw-pricing-cta-popular:hover {
    background: var(--accent-dark);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.25);
}

.kw-pricing-cta-enterprise {
    background: var(--navy);
}

.kw-pricing-cta-enterprise:hover {
    background: var(--navy-light);
    box-shadow: 0 6px 20px rgba(15, 33, 55, 0.25);
}

/* FAQ */
.kw-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.kw-faq-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--gray-200);
}

.kw-faq-item:last-child {
    border-bottom: none;
}

.kw-faq-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.kw-faq-item p {
    color: var(--gray-500);
    line-height: 1.7;
    margin: 0;
}

/* Pricing Responsive */
@media (max-width: 1200px) {
    .kw-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .kw-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .kw-saas-benefits-grid {
        grid-template-columns: 1fr;
    }

    .kw-price-amount {
        font-size: 2.2rem;
    }
}

/* RTL Pricing Support */
html[dir="rtl"] .kw-pricing-features li {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .kw-spec-item {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .kw-price-currency {
    margin-left: 0;
    margin-right: 4px;
}

html[dir="rtl"] .kw-saas-benefit {
    text-align: center;
}

html[dir="rtl"] .kw-faq-item {
    text-align: right;
}

/* Language Toggle Button */
.kw-lang-toggle {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    margin-left: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.kw-lang-toggle:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ========== RTL Support for Arabic ========== */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

html[dir="rtl"] body {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html[dir="rtl"] .kw-lang-toggle {
    margin-left: 0;
    margin-right: 15px;
}

/* RTL Hero */
html[dir="rtl"] .kw-hero .btn-outline-custom {
    margin-left: 0;
    margin-right: 15px;
}

/* RTL Features */
html[dir="rtl"] .kw-feature {
    flex-direction: row-reverse;
    text-align: right;
}

/* RTL Contact Items */
html[dir="rtl"] .kw-contact-item {
    flex-direction: row-reverse;
    text-align: right;
}

/* RTL Tags */
html[dir="rtl"] .kw-tag {
    margin-right: 0;
    margin-left: 6px;
}

/* RTL Text Alignment */
html[dir="rtl"] .kw-about-text {
    text-align: right;
}

html[dir="rtl"] .kw-service-card {
    text-align: right;
}

html[dir="rtl"] .kw-contact-info h3,
html[dir="rtl"] .kw-contact-form h3 {
    text-align: right;
}

html[dir="rtl"] .kw-form-group label {
    text-align: right;
}

html[dir="rtl"] .kw-form-group input,
html[dir="rtl"] .kw-form-group textarea,
html[dir="rtl"] .kw-form-group select {
    text-align: right;
}

html[dir="rtl"] .kw-solution-content {
    text-align: right;
}

html[dir="rtl"] .kw-solution-header {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .kw-solution-feature {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .kw-solution-tags {
    text-align: right;
}

html[dir="rtl"] .kw-solution-industries {
    text-align: right;
}

html[dir="rtl"] .kw-tag {
    margin-right: 0;
    margin-left: 6px;
}

/* RTL Responsive */
@media (max-width: 768px) {
    html[dir="rtl"] .kw-hero .btn-outline-custom {
        margin-right: 0;
        margin-top: 12px;
    }
}

/* ========================================
   BLOG LISTING PAGE
   ======================================== */

.kw-blog-section {
    background: var(--gray-100);
    padding: 60px 0;
}

/* Category filter buttons */
.kw-blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.kw-blog-cat-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    background: var(--white);
    transition: all 0.2s ease;
}

.kw-blog-cat-btn:hover,
.kw-blog-cat-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    text-decoration: none;
}

/* Blog grid */
.kw-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Blog card */
.kw-blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.kw-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.kw-blog-card-image {
    overflow: hidden;
    aspect-ratio: 16/9;
}

.kw-blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.kw-blog-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.kw-blog-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.kw-blog-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.kw-blog-tag:hover {
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
}

.kw-blog-date,
.kw-blog-read-time {
    font-size: 0.82rem;
    color: var(--gray-500);
}

.kw-blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.4;
}

.kw-blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.kw-blog-card-title a:hover {
    color: var(--primary);
}

.kw-blog-card-intro {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kw-blog-read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: auto;
}

.kw-blog-read-more:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* Empty state */
.kw-blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-500);
}

.kw-blog-empty h3 {
    font-size: 1.3rem;
    margin: 20px 0 10px;
    color: var(--gray-700);
}

/* ========================================
   INDIVIDUAL BLOG POST (Frappe default styled)
   ======================================== */

.blog-container {
    max-width: 780px;
    margin: 60px auto;
    padding: 0 20px 60px;
}

.blog-header {
    margin-bottom: 30px;
}

.blog-header a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.blog-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.25;
    margin: 20px 0 15px;
}

.blog-intro {
    font-size: 1.15rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 15px;
}

.blog-content .from-markdown {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--gray-700);
}

.blog-content .from-markdown h2,
.blog-content .from-markdown h3 {
    color: var(--navy);
    font-weight: 700;
    margin-top: 2em;
}

.blog-content .from-markdown a {
    color: var(--primary);
}

.blog-content .from-markdown code {
    background: var(--gray-100);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.9em;
}

.blog-content .from-markdown blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    color: var(--gray-500);
    font-style: italic;
    margin: 20px 0;
}

.blog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-top: 40px;
}

/* Responsive blog grid */
@media (max-width: 1024px) {
    .kw-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .kw-blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-title {
        font-size: 1.6rem;
    }
}

/* RTL blog support */
html[dir="rtl"] .kw-blog-card-body {
    text-align: right;
}
html[dir="rtl"] .kw-blog-card-meta {
    flex-direction: row-reverse;
}
html[dir="rtl"] .kw-blog-categories {
    flex-direction: row-reverse;
}
