/* Sohaib World Core Styles */
:root {
    --sw-primary: #0284c7;
    --sw-primary-hover: #0369a1;
    --sw-secondary: #0f172a;
    --sw-accent: #f59e0b;
    --sw-bg-subtle: #f8fafc;
    --sw-border: #e2e8f0;
    --sw-text-main: #1e293b;
    --sw-text-muted: #64748b;
    --sw-radius: 12px;
    --sw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --sw-shadow-hover: 0 12px 24px -4px rgb(0 0 0 / 0.1), 0 4px 8px -2px rgb(0 0 0 / 0.05);
}

/* Site Logo & Header Alignment */
.site-logo img,
.custom-logo,
.ast-site-identity .custom-logo-link img,
.site-branding img {
    max-height: 44px !important;
    width: auto !important;
    object-fit: contain !important;
    display: inline-block !important;
}

.ast-primary-header-bar .ast-builder-grid-row {
    align-items: center !important;
}

.main-header-menu {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

.main-header-menu .menu-item > a {
    padding: 0 14px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
}

/* Hide Old Astra Starter Footer */
footer#colophon {
    display: none !important;
}

/* Custom Modern 4-Column Footer */
.sw-custom-site-footer {
    background: #090d16;
    color: #94a3b8;
    border-top: 1px solid #1e293b;
    padding: 70px 0 0 0;
    font-family: inherit;
}
.sw-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.sw-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
}
@media (max-width: 900px) {
    .sw-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}
@media (max-width: 600px) {
    .sw-footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}
.sw-footer-logo {
    max-height: 46px;
    width: auto;
    margin-bottom: 12px;
    filter: brightness(1.1);
}
.sw-footer-tagline {
    font-size: 1rem;
    font-weight: 700;
    color: #38bdf8;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sw-footer-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #94a3b8;
    max-width: 320px;
}
.sw-footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 18px 0;
    letter-spacing: 0.5px;
}
.sw-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sw-footer-links li {
    margin-bottom: 9px;
}
.sw-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}
.sw-footer-links a:hover {
    color: #38bdf8;
    padding-left: 4px;
}
.sw-footer-contact-item {
    font-size: 0.92rem;
    margin: 0 0 10px 0;
    line-height: 1.5;
    color: #94a3b8;
}
.sw-footer-contact-item a {
    color: #38bdf8;
    text-decoration: none;
}
.sw-footer-contact-item a:hover {
    text-decoration: underline;
}
.sw-footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.88rem;
    color: #64748b;
}
.sw-footer-copyright {
    color: #94a3b8;
}
.sw-footer-legal-links {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sw-footer-legal-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}
.sw-footer-legal-links a:hover {
    color: #38bdf8;
}
.sw-sep {
    color: #475569;
}

/* Grids */
.sw-grid {
    display: grid;
    gap: 24px;
    margin: 24px 0;
    width: 100%;
}
.sw-grid-2 { grid-template-columns: repeat(2, 1fr); }
.sw-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sw-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .sw-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .sw-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .sw-grid-4, .sw-grid-3, .sw-grid-2 { grid-template-columns: 1fr; }
}

/* Cards */
.sw-card {
    background: #ffffff;
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    box-shadow: var(--sw-shadow);
    overflow: hidden;
}
.sw-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sw-shadow-hover);
    border-color: #cbd5e1;
}

.sw-product-card, .sw-portfolio-card {
    padding: 0;
}
.sw-card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e2e8f0;
}
.sw-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.sw-card:hover .sw-card-img {
    transform: scale(1.03);
}

.sw-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sw-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.35;
}
.sw-card-title a {
    color: var(--sw-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}
.sw-card-title a:hover {
    color: var(--sw-primary);
}

.sw-card-text {
    font-size: 0.95rem;
    color: var(--sw-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Badges */
.sw-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}
.sw-badge-accent {
    left: auto;
    right: 12px;
    background: var(--sw-accent);
    color: #000;
}
.sw-badge-sample {
    background: #475569;
    color: #f1f5f9;
    font-size: 0.7rem;
}

.sw-category-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--sw-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: inline-block;
}

/* Footer & Actions */
.sw-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.sw-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--sw-secondary);
}
.sw-card-actions {
    display: flex;
    gap: 8px;
}

/* Buttons */
.sw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}
.sw-btn-primary {
    background: var(--sw-primary);
    color: #ffffff !important;
}
.sw-btn-primary:hover {
    background: var(--sw-primary-hover);
    color: #ffffff !important;
}
.sw-btn-secondary {
    background: #f1f5f9;
    color: var(--sw-secondary) !important;
    border-color: #cbd5e1;
}
.sw-btn-secondary:hover {
    background: #e2e8f0;
}
.sw-btn-block {
    width: 100%;
    margin-top: 6px;
}
.sw-btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
}

/* Filter Bar */
.sw-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 30px;
    justify-content: center;
}
.sw-filter-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: var(--sw-text-main);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sw-filter-btn:hover, .sw-filter-btn.active {
    background: var(--sw-secondary);
    color: #ffffff;
    border-color: var(--sw-secondary);
}

/* Apps Specific */
.sw-app-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}
.sw-app-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.sw-app-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}
.sw-app-title a {
    color: var(--sw-secondary);
    text-decoration: none;
}
.sw-app-meta {
    font-size: 0.8rem;
    color: var(--sw-text-muted);
}
.sw-feature-pills {
    list-style: none;
    padding: 0;
    margin: 12px 0 16px;
    font-size: 0.85rem;
    color: #475569;
}
.sw-feature-pills li {
    margin-bottom: 4px;
}

/* Services */
.sw-service-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.sw-service-deliverables {
    margin: 14px 0;
    padding-top: 12px;
    border-top: 1px dashed var(--sw-border);
}

/* Testimonials */
.sw-testimonial-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.sw-testimonial-text {
    font-size: 1rem;
    font-style: italic;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 16px;
}
.sw-testimonial-author strong {
    display: block;
    color: var(--sw-secondary);
}
.sw-testimonial-author span {
    font-size: 0.85rem;
    color: var(--sw-text-muted);
}

/* FAQ Accordion */
.sw-faq-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}
.sw-faq-item {
    background: #ffffff;
    border: 1px solid var(--sw-border);
    border-radius: 10px;
    padding: 16px 20px;
    transition: background-color 0.2s ease;
}
.sw-faq-item[open] {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.sw-faq-question {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--sw-secondary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sw-faq-question::-webkit-details-marker {
    display: none;
}
.sw-faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--sw-primary);
    transition: transform 0.2s ease;
}
.sw-faq-item[open] .sw-faq-question::after {
    content: '−';
}
.sw-faq-answer {
    padding-top: 12px;
    font-size: 0.95rem;
    color: var(--sw-text-muted);
    line-height: 1.6;
}

/* Single Views Extra */
.sw-single-hero {
    background: #f8fafc;
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius);
    padding: 24px;
    margin-bottom: 30px;
}
.sw-single-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--sw-text-muted);
    margin-bottom: 16px;
}
.sw-single-meta-bar .sw-badge {
    position: static;
}
.sw-single-action-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--sw-border);
}
.sw-single-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--sw-secondary);
}
.sw-single-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.sw-product-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}
.sw-product-breakdown-grid ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}
.sw-product-breakdown-grid li {
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: #334155;
}
.sw-cta-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: var(--sw-radius);
    padding: 40px 30px;
    text-align: center;
    margin: 40px 0;
}
.sw-cta-box h3 {
    color: #ffffff;
    font-size: 1.75rem;
    margin-bottom: 10px;
}
.sw-cta-box p {
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 24px;
    font-size: 1.05rem;
}
.sw-case-study-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}
.sw-cs-card h3 {
    color: var(--sw-primary);
    font-size: 1.2rem;
    margin-bottom: 8px;
}
