/*
Theme Name: Rawasekh
Description: A modern Arabic WordPress theme for operational excellence consulting firm. Features include dynamic content management for blog posts, solutions, industries, testimonials, and team members with RTL support.
Version: 1.0.0
Author: Rawasekh Team
Text Domain: rawasekh
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.3
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: business, consulting, rtl-language-support, custom-post-types, responsive-design, modern

This theme is designed specifically for operational excellence consulting firms with full Arabic language support and dynamic content management capabilities.
*/

 :root {
            --teal-500: #14b8a6;
            --blue-600: #2563eb;
            --slate-900: #0f172a;
        }
        body {
            font-family: 'Tajawal', sans-serif;
            scroll-behavior: smooth;
            background-color: #f8fafc;
        }
        
        /* Header Logo Container */
        .logo-container {
            width: 110px;
            height: 75px;
            /*background: white;*/
            /*border-radius: 0.5rem;*/
            /*padding: 0.375rem;*/
            /*box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);*/
            /*display: flex;*/
            /*align-items: center;*/
            /*justify-content: center;*/
            transition: all 0.3s ease;
        }
        
        /*.logo-container:hover {*/
        /*    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);*/
        /*    transform: translateY(-1px);*/
        /*}*/
        
        .logo-container .logo-image {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 0.25rem;
        }
        
        /* Custom logo styling if using WordPress custom logo */
        .logo-container .custom-logo {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 0.25rem;
        }
        
        .logo-container .custom-logo-link {
            display: flex;
            width: 100%;
            height: 100%;
        }
        .hero-gradient {
            background-color: var(--slate-900);
            background-image: radial-gradient(at 10% 90%, hsla(220, 44%, 15%, 1) 0px, transparent 50%),
                              radial-gradient(at 90% 20%, hsla(175, 78%, 30%, 0.25) 0px, transparent 50%);
        }
        .brand-gradient-text {
            background-image: linear-gradient(95deg, var(--teal-500), var(--blue-600));

            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .cta-gradient-button {
            background-image: linear-gradient(95deg, var(--teal-500), #0d9488);
            transition: all 0.3s ease;
            box-shadow: 0 4px 20px 0 rgba(13, 148, 136, 0.3);
        }
        .cta-gradient-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 7px 25px 0 rgba(13, 148, 136, 0.45);
        }
        .section-fade-in {
            opacity: 0;
            transform: translateY(40px);
            transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
        }
        .section-fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }
        .nav-link.active {
            color: var(--teal-500);
            font-weight: 700;
        }
        /*main { display: none; }*/
        main.active { display: block; }
        .card-hover {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .card-hover:hover {
            transform: translateY(-10px);
            box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.15);
        }
        .tab-button.active {
            color: var(--teal-500);
            border-color: var(--teal-500);
            background-color: #f0fdfa;

        }
        .tab-content { display: none; }
        .tab-content.active { display: block; }
        /* Article Styles */
        .prose {
            --tw-prose-body: #334155;
            --tw-prose-headings: #0f172a;
            --tw-prose-links: var(--teal-500);
            --tw-prose-bold: #1e293b;
            --tw-prose-quotes: #0f172a;
            --tw-prose-quote-borders: #e2e8f0;
        }
        
        /* Form Validation Styles */
        .form-error {
            border-color: #ef4444 !important;
            box-shadow: 0 0 0 1px #ef4444 !important;
        }
        
        .error-message {
            color: #ef4444;
            font-size: 0.875rem;
            margin-top: 0.25rem;
            display: none;
        }
        
        .error-message.show {
            display: block;
        }
        
        /* Loading States */
        .loading {
            opacity: 0.6;
            pointer-events: none;
        }
        
        .spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 2px solid #ffffff;
            border-radius: 50%;
            border-top-color: transparent;
            animation: spin 1s ease-in-out infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* Success message */
        .success-message {
            background-color: #10b981;
            color: white;
            padding: 1rem;
            border-radius: 0.5rem;
            margin-bottom: 1rem;
            display: none;
        }
        
        .success-message.show {
            display: block;
        }
        
        /* Scroll to top button */
        .scroll-to-top {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            background: linear-gradient(95deg, var(--teal-500), #0d9488);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 1000;
            box-shadow: 0 4px 20px rgba(13, 148, 136, 0.3);
        }
        
        .scroll-to-top.visible {
            opacity: 1;
            visibility: visible;
        }
        
        .scroll-to-top:hover {
            transform: translateY(-3px);
            box-shadow: 0 7px 25px rgba(13, 148, 136, 0.45);
        }
        
        /* Enhanced mobile menu animation */
        #mobile-menu {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-in-out;
        }
        
        #mobile-menu:not(.hidden) {
            max-height: 500px;
        }
        
        /* Form Validation Styles */
        .form-error {
            border-color: #ef4444 !important;
            box-shadow: 0 0 0 1px #ef4444 !important;
        }
        
        .error-message {
            color: #ef4444;
            font-size: 0.875rem;
            margin-top: 0.25rem;
            display: none;
        }
        
        .error-message.show {
            display: block;
        }
        
        /* Loading States */
        .loading {
            opacity: 0.6;
            pointer-events: none;
        }
        
        .spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 2px solid #ffffff;
            border-radius: 50%;
            border-top-color: transparent;
            animation: spin 1s ease-in-out infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* Success message */
        .success-message {
            background-color: #10b981;
            color: white;
            padding: 1rem;
            border-radius: 0.5rem;
            margin-bottom: 1rem;
            display: none;
        }
        
        .success-message.show {
            display: block;
        }
        
        /* Scroll to top button */
        .scroll-to-top {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            background: linear-gradient(95deg, var(--teal-500), #0d9488);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 1000;
            box-shadow: 0 4px 20px rgba(13, 148, 136, 0.3);
        }
        
        .scroll-to-top.visible {
            opacity: 1;
            visibility: visible;
        }
        
        .scroll-to-top:hover {
            transform: translateY(-3px);
            box-shadow: 0 7px 25px rgba(13, 148, 136, 0.45);
        }
        
        /* Enhanced mobile menu animation */
        #mobile-menu {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-in-out;
        }
        
        #mobile-menu:not(.hidden) {
            max-height: 500px;
        }




        html[lang="ar"] h1 {
            padding: 2px;
             line-height: 1.3;
        }
        
        html[lang="ar"] h1 * {
            padding: 6px;
        }
        
        
        
        
        
         /* Contact Form 7 Custom Styling */
        .wpcf7 {
            direction: rtl;
        }
        
        .wpcf7-form {
            margin: 0;
        }
        
        .wpcf7-form p {
            margin-bottom: 1.5rem;
        }
        
        .wpcf7-form label {
            display: block;
            font-size: 0.875rem;
            font-weight: 500;
            color: #334155;
            margin-bottom: 0.5rem;
        }
        
        .wpcf7-form input[type="text"],
        .wpcf7-form input[type="email"],
        .wpcf7-form input[type="tel"],
        .wpcf7-form input[type="url"],
        .wpcf7-form input[type="number"],
        .wpcf7-form textarea,
        .wpcf7-form select {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 1px solid #cbd5e1;
            border-radius: 0.5rem;
            font-size: 1rem;
            color: #0f172a;
            background-color: #ffffff;
            transition: all 0.2s ease;
        }
        
        .wpcf7-form input:focus,
        .wpcf7-form textarea:focus,
        .wpcf7-form select:focus {
            outline: none;
            border-color: #14b8a6;
            box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
        }
        
        .wpcf7-form textarea {
            min-height: 120px;
            resize: vertical;
        }
        
        .wpcf7-form input[type="submit"] {
            width: 100%;
            padding: 1rem 2rem;
            background-image: linear-gradient(95deg, #14b8a6, #0d9488);
            color: #ffffff;
            border: none;
            border-radius: 0.5rem;
            font-size: 1.125rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 20px 0 rgba(13, 148, 136, 0.3);
        }
        
        .wpcf7-form input[type="submit"]:hover {
            transform: translateY(-3px);
            box-shadow: 0 7px 25px 0 rgba(13, 148, 136, 0.45);
        }
        
        .wpcf7-form input[type="submit"]:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }
        
        /* Validation Messages */
        .wpcf7-not-valid-tip {
            color: #ef4444;
            font-size: 0.875rem;
            margin-top: 0.25rem;
            display: block;
        }
        
        .wpcf7-form .wpcf7-not-valid {
            border-color: #ef4444 !important;
            box-shadow: 0 0 0 1px #ef4444 !important;
        }
        
        /* Response Messages */
        .wpcf7-response-output {
            margin: 1.5rem 0;
            padding: 1rem;
            border-radius: 0.5rem;
            border: none;
            font-weight: 500;
        }
        
        .wpcf7-mail-sent-ok {
            background-color: #10b981;
            color: #ffffff;
        }
        
        .wpcf7-validation-errors,
        .wpcf7-acceptance-missing {
            background-color: #fef2f2;
            color: #dc2626;
            border: 1px solid #fecaca;
        }
        
        .wpcf7-spam-blocked,
        .wpcf7-mail-sent-ng {
            background-color: #fffbeb;
            color: #d97706;
            border: 1px solid #fed7aa;
        }
        
        /* Loading Spinner */
        .wpcf7-spinner {
            margin: 0 0 0 1rem;
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 2px solid #14b8a6;
            border-radius: 50%;
            border-top-color: transparent;
            animation: spin 1s ease-in-out infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* Two Column Layout */
        .wpcf7-form .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
        }
        
        @media (max-width: 640px) {
            .wpcf7-form .form-row {
                grid-template-columns: 1fr;
            }
        }
        
        /* Acceptance checkbox */
        .wpcf7-form .wpcf7-acceptance {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
            width: auto;
            margin: 0;
        }
        
        /* File upload */
        .wpcf7-form input[type="file"] {
            padding: 0.5rem;
            border: 2px dashed #cbd5e1;
            background-color: #f8fafc;
        }
        
        .wpcf7-form input[type="file"]:hover {
            border-color: #14b8a6;
            background-color: #f0fdfa;
        }
        
        
        /* Preloader Styles */
        .preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            background:white;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }
        
        .preloader.hidden {
            opacity: 0;
            visibility: hidden;
        }
        
        .preloader-content {
            text-align: center;
            /*animation: fadeInUp 0.8s ease;*/
        }
        
        .preloader-logo {
            margin-bottom: 2rem;
            animation: pulse 2s ease-in-out infinite;
        }
        
        .logo-img {
            width: 80px;
            height: 80px;
            border-radius: 1rem;
            box-shadow: 0 10px 40px rgba(20, 184, 166, 0.3);
        }
        
        .preloader-spinner {
            position: relative;
            width: 80px;
            height: 80px;
            margin: 0 auto 1.5rem;
        }
        
        .spinner-ring {
            position: absolute;
            width: 100%;
            height: 100%;
            border: 3px solid transparent;
            border-top-color: #14b8a6;
            border-radius: 50%;
            animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
        }
        
        .spinner-ring:nth-child(2) {
            border-top-color: #2563eb;
            animation-delay: -0.5s;
            width: 70%;
            height: 70%;
            top: 15%;
            left: 15%;
        }
        
        .spinner-ring:nth-child(3) {
            border-top-color: #0d9488;
            animation-delay: -1s;
            width: 40%;
            height: 40%;
            top: 30%;
            left: 30%;
        }
        
        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }
        
        .preloader-text {
            color: #ffffff;
            font-size: 1rem;
            font-weight: 500;
            letter-spacing: 0.05em;
            animation: pulse 2s ease-in-out infinite;
        }
        
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes pulse {
            0%, 100% {
                opacity: 1;
                transform: scale(1);
            }
            50% {
                opacity: 0.8;
                transform: scale(0.95);
            }
        }
        
        /* Prevent scroll while preloader is active */
        /*body.preloader-active {*/
        /*    overflow: hidden;*/
        /*}*/
        
        /* Simple Dot Preloader */
        .simple-spinner {
            display: flex;
            gap: 0.75rem;
            align-items: center;
            justify-content: center;
        }
        
        .simple-spinner .dot {
            width: 16px;
            height: 16px;
            background: linear-gradient(135deg, #14b8a6, #0d9488);
            border-radius: 50%;
            animation: bounce 1.4s infinite ease-in-out both;
        }
        
        .simple-spinner .dot:nth-child(1) {
            animation-delay: -0.32s;
        }
        
        .simple-spinner .dot:nth-child(2) {
            animation-delay: -0.16s;
        }
        
        @keyframes bounce {
            0%, 80%, 100% {
                transform: scale(0);
                opacity: 0.5;
            }
            40% {
                transform: scale(1);
                opacity: 1;
            }
        }