/*
Theme Name: Qistas Legal Platform
Description: AI-Powered Arabic Legal Research Platform WordPress Theme with ACF Pro integration and full translation support
Version: 1.0.0
Author: Qistas Team
Text Domain: qistas
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ========================================
   ARABIC FONT IMPORTS
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&family=Tajawal:wght@300;400;500;700&display=swap');

/* ========================================
   RESET AND BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    color: #064472;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding: 0 40px;
    box-sizing: border-box;
}

@media (min-width: 1440px) {
    .container {
        max-width: 1440px;
    }
}

/* ========================================
   HEADER SECTION
   ======================================== */
.header {
    background: transparent;
    padding: 20px 0;
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transform: translateY(0);
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.header.scrolled {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.logo a {
    position: relative;
    display: block;
}

.logo img {
    display: block;
    transition: opacity 0.3s ease;
}

.logo .logo-white {
    opacity: 1;
}

.logo .logo-dark {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.header.scrolled .logo .logo-white {
    opacity: 0;
}

.header.scrolled .logo .logo-dark {
    opacity: 1;
}

.logo svg {
    transition: transform 0.3s ease;
}

.logo:hover svg {
    transform: rotate(360deg);
}

.nav {
    display: flex;
    gap: 30px;
    margin-left: auto;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 400;
    font-size: 30px;
    transition: color 0.3s ease;
    position: relative;
}

.header.scrolled .nav-link {
    color: #064472;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F5B544;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #F5B544;
}

.nav-link:hover::after {
    width: 100%;
}

/* WordPress Menu Styles */
.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    font-size: 18px;
    position: relative;
    transition: color 0.3s ease;
}

/* White border for menu items with children */
.nav-menu li.menu-item-has-children>a {
    border: 1px solid white;
    padding: 5px 40px;
    border-radius: 4px;
}

.header.scrolled .nav-menu li.menu-item-has-children>a {
    border-color: #064472;
    background: #064472;
    color: #FFFFFF;
}

.header.scrolled .nav-menu li.menu-item-has-children>a:hover {
    color: #FFFFFF;
}

.header.scrolled .nav-menu li a {
    color: #064472;
}

.nav-menu li a:hover {
    color: #F5B544;
}

.header.scrolled .nav-menu li a:hover {
    color: #064472;
}

.nav-menu li a:hover::after {
    width: 100%;
}

.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a {
    color: #FFF;
}

.header.scrolled .nav-menu li.current-menu-item a,
.header.scrolled .nav-menu li.current_page_item a {
    color: #064472;
}

.nav-menu li.current-menu-item a::after,
.nav-menu li.current_page_item a::after {
    width: 100%;
}

/* Dropdown/Submenu Styles */

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    width: 100%;
    /* Match parent width */
    padding: 10px 0;
    margin: 0;
    list-style: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    display: none;
    overflow: hidden;
    z-index: 1000;
}

.nav-menu .sub-menu li {
    display: block;
    padding: 0;
    margin: 0;
}

.nav-menu .sub-menu li a {
    display: block;
    padding: 8px 20px;
    color: #333;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border: none;
}

.nav-menu .sub-menu li a:hover {
    background-color: #f8f9fa;
    color: #064472;
    padding-left: 20px;
}

.nav-menu .sub-menu li a::before,
.nav-menu .sub-menu li a::after {
    display: none;
}

.header.scrolled .nav-menu .sub-menu {
    background: #ffffff;
}


/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.header.scrolled .mobile-menu-toggle span {
    background: #064472;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}


/* Arabic language items use Cairo font */
.lang-item-ar a,
.nav-menu li a[data-lang="ar"] {
    font-family: 'Cairo', sans-serif;
    line-height: 1;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    position: relative;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: linear-gradient(to bottom, rgba(0, 20, 50, 0.98) 0%, #004c7a 40%, #0078a5 100%);

}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    mix-blend-mode: soft-light;
    opacity: 0.5;
    filter: brightness(0.8);
}

.hero .container {
    position: relative;
    z-index: 10;
}


.hero-description {
    font-size: 32px;
}

.hero-title {
    font-size: 70px;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 1px;
    line-height: 120%;
}

.hero-title span {
    color: #F5B544;
}

.hero-description {
    font-size: 32px;
    margin-top: 25px;
	margin-bottom: 25px;
    opacity: 0.95;
    line-height: 1.2;
}

/* Hero Icons */
.hero-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.icon-item {
    background: transparent;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 2px solid #F5B544;
    padding: 10px;
    gap: 10px;
}

.icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: all 0.4s ease, filter 0.3s ease;
}

.icon-center .icon-img {
    width: 60px;
    height: 60px;
}

.icon-item:hover {
    transform: translateY(-8px) scale(1.05);
    background: #064472;
    border: 2px solid #064472;
}

.icon-item:hover .icon-img {
    transform: scale(1.1);
    filter: brightness(0) invert(1);
}

.icon-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    line-height: 1.3;
    font-weight: 400;
    z-index: 10;
}

.icon-item:hover .icon-tooltip {
    opacity: 1;
    visibility: visible;
}

.icon-item:nth-child(1) {
    animation: iconFloat 3s ease-in-out infinite;
}

.icon-item:nth-child(2) {
    animation: iconFloat 3s ease-in-out infinite 0.2s;
}

.icon-item:nth-child(3) {
    animation: iconFloat 3s ease-in-out infinite 0.4s;
}

.icon-item:nth-child(4) {
    animation: iconFloat 3s ease-in-out infinite 0.6s;
}

.icon-item:nth-child(5) {
    animation: iconFloat 3s ease-in-out infinite 0.8s;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: transparent;
    color: white;
    border: 2px solid #20C8F7;
}

.btn-primary:hover {
    background: white;
    color: #064472;
    border: 2px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: white;
    color: #064472;
}

.btn-secondary:hover {
    background: #F5B544;
    color: white;
    box-shadow: 0 10px 25px rgba(245, 181, 68, 0.4);
}

.btn-video {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-video svg {
    transition: transform 0.3s ease;
}



.btn-video:hover svg {
    transform: scale(1.2);
}

/* ========================================
   VIDEO MODAL
   ======================================== */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    z-index: 10000;
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.video-modal-close:hover {
    background: white;
    color: #064472;
    border-color: white;
    transform: rotate(90deg);
}

.video-modal-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-modal-wrapper iframe,
.video-modal-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-modal-wrapper video {
    object-fit: contain;
}

/* ========================================
   LEGAL RESEARCH SECTION
   ======================================== */
.legal-research {
    padding: 80px 0;
    background: #F8F9FA;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 48px;
    line-height: 48px;
    color: #59BDE6;
    font-weight: 400;
}

.section-subtitle {
    font-size: 48px;
    line-height: 48px;
    color: #064472;
    font-weight: 400;
    margin-bottom: 60px;
    text-align: center;
}

.research-content {
    display: grid;
    grid-template-columns: repeat(2, 50%);
    gap: 60px;
    overflow: hidden;
}

.research-text {
    font-size: 24px;
    line-height: 1.8;
    color: #064472;
}

.research-text strong {
    color: #064472;
    font-weight: 600;
}

/* Browser Mockup */
.mockup-browser {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: slideInRight 1s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   STATISTICS SECTION
   ======================================== */
.stats-container {
    background: linear-gradient(89.92deg, #022C52 81.04%, rgba(64, 167, 213, 0.8) 137.38%);
    padding: 60px 20px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

.stat-item {
    text-align: center;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.stat-item:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-item:nth-child(4) {
    animation-delay: 0.4s;
}

.stat-number {
    font-size: clamp(32px, 8vw, 32px);
    font-weight: 700;
    color: #00d4ff;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.stat-label {
    font-size: clamp(32px, 8vw, 32px);
    color: #ffffff;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* ========================================
   KEY FEATURES SECTION
   ======================================== */
.key-features {
    padding: 80px 0;
    background: white;
}


.features-title {
    text-align: center;
    font-size: 48px;
    color: #064472;
    margin-bottom: 60px;
    font-weight: 400;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 40px;
}

.feature-card {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.feature-card:hover {
    background: #F8F9FA;
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    margin-bottom: 15px;
}

.key-features .icon-img {
    width: 60px;
    height: 60px;
}

.feature-card h3 {
    font-size: 25px;
    font-weight: 700;
}

.feature-card p {
    font-size: 25px;
    font-weight: 400;
}


.feature-icon svg {
    width: 60px;
    height: 60px;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon svg {
    transform: scale(1.15) rotate(5deg);
}

.feature-card:hover .feature-icon svg path,
.feature-card:hover .feature-icon svg circle,
.feature-card:hover .feature-icon svg rect {
    stroke: #F5B544;
}

.feature-card h3 {
    font-size: 25px;
    color: #064472;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: #000;
    font-size: 25px;
    font-weight: 400;
    line-height: 1.2;
}

/* ========================================
   AREF AI ASSISTANT SECTION
   ======================================== */
.aref-section {
    padding: 80px 0;
    background: linear-gradient(89.92deg, #022C52 81.04%, rgba(64, 167, 213, 0.8) 137.38%);
    color: white;
}

.aref-header {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.aref-icon svg {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.aref-title-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
}

.aref-title {
    font-size: 48px;
    line-height: 1.2;
    font-weight: 400;
    color: #fff;
    margin: 0;
}

.aref-subtitle {
    font-size: 48px;
    line-height: 1.2;
    font-weight: 400;
    color: #FFF;
    margin: 0;
}

.aref-subtitle span {
    color: #59BDE6;
}

.aref-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.aref-description {
    font-size: 24px;
    line-height: 1.8;
    color: white;
    font-weight: 400;
}

.aref-note {
    font-size: 24px;
    line-height: 1.8;
    color: #59BDE6;
    border-radius: 12px;
    margin-top: 25px;
    font-weight: 400;
}

.aref-description p {
    margin: 0;
}

.aref-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.aref-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 0;
    background: transparent;
    border-radius: 0;
    transition: all 0.3s ease;
    border: none;
}

.aref-feature:hover {
    background: transparent;
    transform: none;
    border: none;
}

.aref-feature-icon {
    flex-shrink: 0;
    margin-top: 5px;
}

.aref-feature-icon svg {
    width: 50px;
    height: 50px;
}

.aref-feature-content {
    flex: 1;
}

.aref-feature h4 {
    font-size: 24px;
    margin-bottom: 12px;
    color: white;
    font-weight: 600;
    position: relative;
    padding-bottom: 8px;
}

.aref-feature h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120px;
    height: 2px;
    background: #F5B544;
}

.aref-feature p {
    font-size: 16px;
    color: white;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* ========================================
   TAILORED SOLUTIONS SECTION
   ======================================== */
.tailored-solutions {
    padding: 80px 0;
    background: white;
}

.solutions-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.solutions-left-column {
    display: flex;
    flex-direction: column;
}

.solutions-header {
    margin-bottom: 40px;
}

.solutions-title {
    font-size: 48px;
    color: #59BDE6;
    font-weight: 400;
    line-height: 1.2;
}

.solutions-subtitle {
    font-size: 42px;
    color: #064472;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 15px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: #F5B544;
    margin-bottom: 0;
}

.solutions-description {
    font-size: 18px;
    line-height: 1.8;
    color: #000;
}

.solutions-description p {
    margin: 0;
}

.solutions-features {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

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

.solution-feature-icon {
    flex-shrink: 0;
    margin-top: 5px;
}

.solution-feature-icon svg {
    width: 50px;
    height: 50px;
}

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

.solution-feature h4 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #064472;
    font-weight: 700;
    position: relative;
    padding-bottom: 8px;
}

.solution-feature h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #FFC838;
}


.solution-feature p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* ========================================
   TRUSTED SECTION
   ======================================== */
.trusted-section {
    padding: 50px 0;
    background: linear-gradient(89.92deg, #022C52 81.04%, rgba(64, 167, 213, 0.8) 137.38%);
    text-align: center;
    color: white;
}

.trusted-section h3 {
    font-size: 36px;
    font-weight: 400;
}


/* Trusted Logos (beneath the blue banner) */
.trusted-logos {
    background: #ffffff;
    padding: 30px 0;
    border-top: 1px solid rgba(6, 68, 114, 0.08);
    border-bottom: 1px solid rgba(6, 68, 114, 0.08);
}

.trusted-logos .logos-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap;
}

.trusted-logos .logo-item {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    position: relative;
    min-width: 0;
}

.trusted-logos .logo-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 56px;
    background: #E6EEF5;
}

[dir="rtl"] .trusted-logos .logo-item:not(:last-child)::after,
.lang-ar .trusted-logos .logo-item:not(:last-child)::after {
    right: auto;
    left: 0;
}

.trusted-logos .logo-img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
}


/* ========================================
   PARTNERING SECTION
   ======================================== */
.partnering-section {
    padding: 40px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: white;
}

.partnering-section .container {
    padding-bottom: 40px;
    border-bottom: 1px solid #064472;
}

.partnering-title {
    text-align: center;
    font-size: 48px;
    color: #4A9EE0;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.2;
}

.partnering-description {
    text-align: center;
    font-size: 24px;
    color: #333;
    margin-bottom: 60px;
    line-height: 1.4;
}

.partnering-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.partnering-text {
    font-size: 24px;
    line-height: 1.8;
    color: #333;
}

.partnering-text p {
    margin: 0;
}

.partnering-text strong {
    font-weight: 700;
    color: #333;
}

.partnering-features {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.partnering-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.partnering-feature-icon {
    flex-shrink: 0;
    margin-top: 5px;
}

.partnering-feature-icon svg {
    width: 50px;
    height: 50px;
}

.partnering-feature-content {
    flex: 1;
}

.partnering-feature h4 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #064472;
    font-weight: 600;
    position: relative;
}

.partnering-feature-content h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120px;
    height: 2px;
    background: #F5B544;
}

.partnering-feature p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* ========================================
   CONTACT SECTION
   ======================================== */


#contact {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 48px;
    line-height: 1.2;
    color: #59BDE6;
    font-weight: 400;
}

.contact-info h3 {
    font-size: 48px;
    line-height: 1.2;
    color: #064472;
    margin-bottom: 20px;
    font-weight: 400;
}

.contact-info p {
    font-size: 24px;
    color: #000;
    line-height: 1.2;
    margin-top: 20px;
}


.contact-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #064472;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E8EDF2;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4A9EE0;
    box-shadow: 0 0 0 3px rgba(74, 158, 224, 0.1);
}

.btn-submit {
    width: auto;
    padding: 15px 60px;
    background: #00BCD4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: block;
}

.btn-submit:hover {
    background: #00A5BB;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.3);
}

/* ========================================
   FOOTER SECTION
   ======================================== */
.footer {
    background: linear-gradient(359.97deg, #59BDE6 -98.69%, #023A61 34.8%);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    margin-bottom: 40px;
}

.footer-description {
    text-align: center;
    margin-bottom: 50px;
}

.footer-description p {
    font-size: 15px;
    line-height: 1.5;
    color: white;
    margin: 0 auto;
    text-align: left;
    font-weight: 400;
}

/* Footer description with logo inline */


.footer-desc-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    justify-content: flex-start;
    margin: 0 auto;
    text-align: left;
}

.footer-logo {
    width: 200px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-desc-text {
    text-align: left;
    flex: 1;
    max-width: 800px;
}

.footer-contact-info {
    display: block;
    padding-left: 0;
}

.footer-contact-info .contact-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    /* start from left */
    gap: 40px;
}

.footer-contact-info .contact-section,
.footer-contact-info .address-section {
    flex: 0 0 auto;
    /* do not stretch; leave empty space on right */
}

.footer .contact-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.footer .contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
    margin-right: 5px;
    position: relative;
}


.footer .contact-icon svg {
    width: 100%;
    height: 100%;
}

.footer .contact-details {
    flex: 1;
    padding-left: 5px;
    position: relative;
}

.footer .contact-details p,
.footer .contact-details p a {
    font-size: 14px;
    margin-bottom: 6px;
    color: white;
    text-decoration: none;
}

.footer .address-section {
    display: flex;
    flex-direction: column;
}

.footer .address-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    direction: ltr;
    /* align from left */
}

.footer .address-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
    position: relative;
}

.footer .address-icon svg {
    width: 100%;
    height: 100%;
}

.address-details {
    flex: 1;
    padding-right: 10px;
}

.address-block {
    margin-bottom: 20px;
    padding-left: 5px;
    position: relative;
}

.footer .address-block::after,
.footer .contact-details::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    width: 1px;
    height: 100%;
    background: #ccc;
}

.address-block h4 {
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: white;
    direction: ltr;
    text-align: left;
}

.address-block p {
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    margin-bottom: 3px;
    color: white;
    direction: ltr;
    text-align: left;
}

.footer-bottom {
    text-align: center;
    font-size: 14px;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-in {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.fade-in:nth-child(1) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.4s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.6s;
}

.fade-in:nth-child(4) {
    animation-delay: 0.8s;
}

.fade-in:nth-child(5) {
    animation-delay: 1s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .research-content,
    .aref-content,
    .partnering-content,
    .solutions-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .aref-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .section-title,
    .section-subtitle,
    .features-title,
    .aref-title,
    .aref-subtitle,
    .partnering-title,
    .contact-info h2,
    .contact-info h3 {
        font-size: 28px;
        line-height: 1;
        text-align: left;
    }

    .hero-description,
    .research-text,
    .aref-description,
    .partnering-text,
    .partnering-description,
    .contact-info p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .logo img {
        width: 120px;
        height: auto;
    }

    .video-modal-content {
        width: 95%;
    }

    .video-modal-close {
        top: -45px;
        width: 36px;
        height: 36px;
    }

    .btn-video {
        padding: 12px 30px;
        font-size: 14px;
    }

    .mobile-menu-toggle {
        display: block !important;
        border: 2px solid rgba(255, 255, 255, 0.5);
        border-radius: 8px;
        padding: 8px;
    }
	
	.mobile-menu-toggle.active span:nth-child(1) {
    background:#064472
}


.mobile-menu-toggle.active span:nth-child(3) {
    background:#064472
}


    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        gap: 20px;
    }

    .nav.active {
        right: 0;
    }

    .nav-link,
    .nav-menu li a {
        font-size: 16px;
        padding: 10px 0;
        color: #064472 !important;
    }

    .nav-menu li a:hover {
        color: #F5B544 !important;
    }

   .nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a,
.nav-menu li.current_page_item a:hover,
.nav-menu li.current_page_item a:focus,
.nav-menu li.current_page_item a:visited,
.nav-menu li.current_page_item a:active {
    color: #064472 !important;
    border: none !important;
	outline: none !important;
    background: transparent !important;
}


    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }

    .nav-menu li {
        border-bottom: 1px solid rgba(6, 68, 114, 0.1);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    /* Mobile Dropdown Styles */
    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f9f9f9;
        margin: 0;
        padding: 0;
        border-radius: 0;
        border: none;
        max-height: 0;
        /* use max-height for animation */
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu li.menu-item-has-children.submenu-open>.sub-menu {
        max-height: 500px;
        padding: 0;
        display: block;
        /* Ensure submenu is visible */
    }

    .nav-menu .sub-menu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-left: 20px;
    }

    .nav-menu .sub-menu li a {
        padding: 10px 20px;
        font-size: 14px;
        font-weight: 400;
        border: none;
        margin: 0;
        border-radius: 0;
    }

    .nav-menu .sub-menu li a:hover {
        background: transparent;
        color: #064472;
        padding-left: 20px;
        transform: none;
		border:none;
    }

     .nav-menu li.menu-item-has-children>a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0 !important;
        /* Match other menu items */
        border: none !important;
        /* Remove border on mobile */
        border-radius: 0 !important;
        /* Remove border radius on mobile */
        background: transparent !important;
        /* Remove background on mobile */
    }

    /* Ensure scrolled state doesn't apply border/background on mobile */
    .header.scrolled .nav-menu li.menu-item-has-children>a {
        border: none !important;
        background: transparent !important;
        color: #064472 !important;
    }



    .nav-menu li.menu-item-has-children.submenu-open>a::before {
        transform: rotate(180deg);
    }

    /* Secondary Menu Mobile Styles */
    .secondary-menu-container {
        width: 100%;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(6, 68, 114, 0.1);
        margin-top: 15px;
        padding-top: 15px;
    }

    .secondary-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .secondary-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(6, 68, 114, 0.1);
    }

    .secondary-menu li:last-child {
        border-bottom: none;
    }

    .secondary-menu li a {
        width: 100%;
        font-size: 16px;
        padding: 12px 0;
        color: #064472 !important;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        text-align: left;
        transform: none !important;
        box-shadow: none !important;
    }

    .secondary-menu li a:hover {
        color: #F5B544 !important;
        background: transparent !important;
    }

    /* Secondary menu dropdown on mobile */
    .secondary-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(6, 68, 114, 0.05);
        margin: 0;
        padding: 0;
        border-radius: 0;
        border: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        top: auto;
    }

    .secondary-menu .sub-menu::before {
        display: none;
    }

    .secondary-menu li.menu-item-has-children.submenu-open>.sub-menu {
        max-height: 500px;
        padding: 0;
    }

    .secondary-menu .sub-menu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-left: 0;
    }

    .secondary-menu .sub-menu li:last-child {
        border-bottom: none;
    }

    .secondary-menu .sub-menu li a {
        padding: 12px 20px !important;
        font-size: 14px !important;
        color: #064472 !important;
        border: none !important;
        background: transparent !important;
        font-weight: 400 !important;
    }

    .secondary-menu .sub-menu li a:hover {
        background: rgba(245, 181, 68, 0.1) !important;
        color: #F5B544 !important;
    }

    .secondary-menu li.menu-item-has-children>a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .secondary-menu li.menu-item-has-children>a::after {
        margin-left: auto;
        margin-right: 0;
    }

    .secondary-menu li.menu-item-has-children.submenu-open>a::after {
        transform: rotate(180deg);
    }

    /* RTL Support */
    [dir="rtl"] .nav,
    .lang-ar .nav {
        right: auto;
        left: -100%;
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
    }

    [dir="rtl"] .nav.active,
    .lang-ar .nav.active {
        left: 0;
        right: auto;
        flex-direction: column;
    }

    [dir="rtl"] .nav-menu li a:hover,
    .lang-ar .nav-menu li a:hover {
        transform: translateX(-5px);
    }

    [dir="rtl"] .nav-menu li a::after,
    .lang-ar .nav-menu li a::after {
        left: auto;
        right: 0;
    }

    /* RTL Support for Secondary Menu */
    [dir="rtl"] .secondary-menu li a,
    .lang-ar .secondary-menu li a {
        text-align: right;
    }

    [dir="rtl"] .secondary-menu .sub-menu li a,
    .lang-ar .secondary-menu .sub-menu li a {
        text-align: right;
        padding: 12px 20px !important;
    }

    [dir="rtl"] .secondary-menu li.menu-item-has-children>a::after,
    .lang-ar .secondary-menu li.menu-item-has-children>a::after {
        margin-left: 0;
        margin-right: auto;
    }

    .hero {
        padding: 0;
        min-height: 75vh;
    }

    .hero-title {
        font-size: 36px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-header {
        justify-content: flex-start;
    }

    .trusted-section h3 {
        font-size: 24px;
        font-weight: 400;
        line-height: 1.2;
    }

    .feature-card {
        padding: 0;
    }

    .contact-form {
        padding: 0;
    }

    .footer-contact-info {
        display: block;
        padding-left: 0;
    }

    .footer-contact-info .contact-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px 30px;
    }

    .footer-contact-info .contact-section,
    .footer-contact-info .address-section {
        flex: none;
        width: 100%;
    }

    .hero-icons {
        gap: 15px;
    }

    .icon-item {
        width: 85px;
        height: 85px;
    }

    .icon-center {
        width: 105px;
        height: 105px;
    }

    .icon-img {
        width: 42px;
        height: 42px;
    }

    .icon-center .icon-img {
        width: 55px;
        height: 55px;
    }

    /* On mobile: show tooltip for center icon only, others on click */
    .icon-tooltip {
        transform: none;
        margin-top: 10px;
        white-space: normal;
        font-size: 11px;
        opacity: 0;
        text-align: center;
        visibility: hidden;
        max-height: 0;
		left: auto;
        transition: opacity 0.3s ease, max-height 0.3s ease;
    }

    /* Center icon always shows tooltip on mobile */
    .icon-center .icon-tooltip {
        opacity: 1;
        visibility: visible;
        max-height: 100px;
    }

    /* Other icons show tooltip when active (clicked) */
    .icon-item.active .icon-tooltip {
        opacity: 1;
        visibility: visible;
        max-height: 100px;
    }

    /* Disable hover effects on touch devices - use !important to override */
    .icon-item:hover {
        transform: none !important;
        background: transparent !important;
        border: 2px solid #F5B544 !important;
    }

    .icon-item:hover .icon-img {
        transform: none !important;
        filter: none !important;
    }

    /* Prevent hover state from persisting after tap */
    .icon-item:active {
        background: transparent;
        border: 2px solid #F5B544;
    }
}

@media (max-width: 480px) {
    .faq-question::before {
        transform: translateX(-12px);
        width: 12px;
        border-radius: 10px 0 0 10px;
    }

    .logo img {
        width: 100px;
        height: auto;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size:20px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 80%;
        text-align: center;
    }

    /* Legal Research and Aref Section Mobile Padding */
    .legal-research,
    .aref-section {
        padding-top: 40px;
    }

    /* Section Title Alignment */
    .legal-research .section-title {
        text-align: left;
    }

    /* Stat Label Mobile Text Size */
    .stat-label {
        font-size: 16px;
    }

    .key-features {
        padding: 40px 0;
    }

    /* Aref and Partnering Feature Icons Mobile Size */
    .aref-feature-icon img,
    .partnering-feature-icon img {
        width: 40px;
        height: auto;
    }

    /* Aref Title Mobile Size */
    .aref-title {
        font-size: 20px;
    }

    .aref-title img {
        width: 28px;
        height: auto;
    }

    /* Footer Mobile Layout */
    .footer-desc-inner {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }

    .footer-desc-text {
        text-align: center;
    }

    .features-title,
    .solutions-title {
        font-size: 28px;
    }

    .aref-title {
        font-size: 28px;
    }

    .aref-subtitle {
        font-size: 24px;
    }

    .aref-description,
    .aref-note {
        font-size: 16px;
    }

    .aref-feature h4 {
        font-size: 18px;
    }

    .aref-feature p {
        font-size: 14px;
    }

    .partnering-title {
        font-size: 28px;
        text-align: left;
    }

    .partnering-description {
        font-size: 16px;
        margin-bottom: 10px;
        text-align: left;
    }

    .partnering-description br {
        display: none;
    }

    .partnering-text {
        font-size: 16px;
    }

    .partnering-feature h4 {
        font-size: 18px;
    }

    .partnering-feature p {
        font-size: 14px;
    }

    .solutions-title {
        font-size: 32px;
    }

    .solutions-subtitle {
        font-size: 28px;
    }

    .solutions-description {
        font-size: 16px;
    }

    .solution-feature h4 {
        font-size: 18px;
    }

    .solution-feature p {
        font-size: 14px;
    }

    .icon-item {
        width: 40px;
        height: 40px;
    }

    .icon-center {
        width: 50px;
        height: 50px;
    }

    .icon-img {
        width: 35px;
        height: 35px;
    }

    .icon-center .icon-img {
        width: 45px;
        height: 45px;
    }


    /* Center icon always shows tooltip on mobile */
    .icon-center .icon-tooltip {
        opacity: 1;
        visibility: visible;
        max-height: 100px;
    }

    /* Other icons show tooltip when active (clicked) */
    .icon-item.active .icon-tooltip {
        opacity: 1;
        visibility: visible;
        max-height: 100px;
    }

    /* Disable hover effects on touch devices - use !important to override */
    .icon-item:hover {
        transform: none !important;
        background: transparent !important;
        border: 2px solid #F5B544 !important;
    }

    .icon-item:hover .icon-img {
        transform: none !important;
        filter: none !important;
    }

    /* Prevent hover state from persisting after tap */
    .icon-item:active {
        background: transparent;
        border: 2px solid #F5B544;
    }
}

/* ========================================
   TOUCH DEVICE SPECIFIC STYLES
   ======================================== */
@media (hover: none) and (pointer: coarse) {

    /* Disable all hover effects on touch-only devices */
    .icon-item:hover {
        transform: none !important;
        background: transparent !important;
        border: 2px solid #F5B544 !important;
    }

    .icon-item:hover .icon-img {
        transform: none !important;
        filter: none !important;
    }
}

/* Disable hover on touch devices using body/html class */
html.touch-device .icon-item:hover,
html.touch-device .icon-item.touch-active,
html.touch-device .icon-item:active,
body.touch-device .icon-item:hover,
body.touch-device .icon-item.touch-active,
body.touch-device .icon-item:active {
    transform: none !important;
    background: transparent !important;
}

html.touch-device .icon-item:hover .icon-img,
html.touch-device .icon-item.touch-active .icon-img,
html.touch-device .icon-item:active .icon-img,
body.touch-device .icon-item:hover .icon-img,
body.touch-device .icon-item.touch-active .icon-img,
body.touch-device .icon-item:active .icon-img {
    transform: none !important;
    filter: none !important;
}

/* ========================================
   ACCESSIBILITY & UTILITIES
   ======================================== */
html {
    scroll-behavior: smooth;
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* Focus States for Accessibility */


/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Image Optimization */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    max-width: 100%;
}

/* Smooth Transitions */
.icon-item {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        border-color 0.3s ease,
        background-color 0.3s ease;
}

.feature-card,
.solution-feature,
.partnering-feature {
    transition: all 0.3s ease;
}

a {
    transition: color 0.3s ease;
}

a:hover {
    color: #4A9EE0;
}

.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

/* ========================================
   FAQ PAGE STYLES (simplified)
   ======================================== */
.faq-banner {
    background: linear-gradient(135deg, #1A2F4A 0%, #064472 100%);
    padding: 250px 0 40px;
    /* account for fixed header */
}

.faq-banner-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
}

.faq-content {
    padding: 60px 0;
}

.faq-header {
    margin-bottom: 24px;
}

.faq-title {
    font-size: 2rem;
    font-weight: 700;
    color: #064472;
}

.faq-subtitle {
    font-size: 1rem;
    color: #475569;
    margin-top: 0.25rem;
}

/* FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: transparent;
    border: 0;
    border-radius: 12px;
    overflow: visible;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: none;
}

.faq-item.active {
    box-shadow: none;
}

/* FAQ Question Button */
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: #ffffff;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    position: relative;
}

.faq-question:hover {
    background-color: #f8fafc;
}

.faq-item.active .faq-question {
    background-color: #ffffff;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.faq-question-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1A2F4A;
    line-height: 1.5;
    flex: 1;
}

.faq-question::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    transform: translateX(-16px);
    width: 14px;
    border-radius: 12px 0 0 12px;
    background: linear-gradient(180deg, #4A9EE0 0%, #2EA6D9 100%);
    box-shadow: 0 2px 8px rgba(71, 139, 214, 0.35);
}

.faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #478BD6;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-icon svg {
    width: 100%;
    height: 100%;
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #F3F4F6;
    border: 1px solid #e2e8f0;
    border-top: 0;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.faq-answer-content {
    padding: 1rem 2rem 1.5rem 2rem;
    color: #475569;
    font-size: 1rem;
    line-height: 1.75;
}

.faq-answer-content p {
    margin-bottom: 1rem;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content ul,
.faq-answer-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.faq-answer-content li {
    margin-bottom: 0.5rem;
}

.faq-answer-content a {
    color: #478BD6;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.faq-answer-content a:hover {
    color: #1A2F4A;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-question {
        padding: 1.25rem 1.5rem;
        gap: 1rem;
    }

    .trusted-logos {
        gap: 15px;
    }

    .trusted-logos .logos-row {
        flex-wrap: wrap;
    }

    .trusted-logos .logo-item:not(:last-child)::after {
        background: none;
    }

    .trusted-logos .logo-item {
        flex: 1 1 120px;
    }

    .faq-question-text {
        font-size: 1rem;
    }

    .faq-answer-content {
        padding: 1rem 1.25rem 1.5rem 1.25rem;
        font-size: 0.9375rem;
    }
	
	.hero-description {
		font-size: 22px;
		line-height: 1.3;
	}

    .faq-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .faq-content {
        padding: 40px 20px;
    }

    .faq-question {
        padding: 1rem 1.25rem;
    }

    .faq-answer-content {
        padding: 0.75rem 1rem 1.5rem 1rem;
    }
}

/* ========================================
   CONTACT PAGE STYLES
   ======================================== */
.contact-page .contact-section {
    padding: 80px 0;
}

.contact-banner {
    background: linear-gradient(135deg, #1A2F4A 0%, #064472 100%);
    padding: 250px 0 40px;
}

.contact-banner-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 400;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
}

.contact-title {
    font-size: 2.25rem;
    color: #064472;
    font-weight: 400;
    margin-bottom: 12px;
}

.title-underline {
    width: 90px;
    height: 3px;
    border-radius: 4px;
    background: linear-gradient(90deg, #F5B544, #FFC870);
    margin: 10px 0 24px 0;
}

.contact-block {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.contact-block-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(180deg, #4A9EE0, #2EA6D9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 10px rgba(71, 139, 214, 0.25);
}

.contact-block-icon svg {
    width: 22px;
    height: 22px;
}

.contact-block-icon svg path,
.contact-block-icon svg circle {
    stroke: #ffffff;
}

.contact-block-body h4 {
    font-size: 1rem;
    color: #064472;
    margin-bottom: 4px;
}

.contact-block-body p {
    color: #0f2944;
    margin-bottom: 4px;
}

.contact-block-body a {
    color: #0f2944;
    text-decoration: none;
}

.contact-block-body .address-group {
    margin-bottom: 20px;
}

.contact-block-body .address-group:last-child {
    margin-bottom: 0;
}

.contact-form .form-row {
    margin-bottom: 14px;
}

.contact-form .input,
.contact-form .textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #d7dbe2;
    border-radius: 12px;
    outline: none;
    font-size: 1rem;
    color: #0f2944;
    background: #fff;
}

.contact-form .input:focus,
.contact-form .textarea:focus {
    border-color: #478BD6;
    box-shadow: 0 0 0 3px rgba(71, 139, 214, 0.15);
}

.phone-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
}

.dial-select select {
    width: 100%;
    height: 100%;
    border: 2px solid #d7dbe2;
    border-radius: 12px;
    padding: 0 12px;
    background: #fff;
    color: #0f2944;
}

.form-actions {
    margin-top: 10px;
}

.btn.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1EC3F3, #18B2E9);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(24, 178, 233, 0.35);
}

.btn.btn-primary:hover {
    filter: brightness(0.98);
}

/* ========================================
   ZOHO WEB-TO-LEAD: unify with contact-us styles
   ======================================== */
.contact-form .crmWebToEntityForm .zcwf_row {
    margin: 14px 0;
}

.contact-form .crmWebToEntityForm .zcwf_col_lab,
.contact-form .crmWebToEntityForm .zcwf_col_fld {
    width: 100%;
    float: none;
    padding: 0;
    margin-top: 0;
}

.contact-form .crmWebToEntityForm .zcwf_col_lab label {
    display: block;
    font-size: 14px;
    color: #064472;
    margin-bottom: 8px;
}

.contact-form .crmWebToEntityForm .zcwf_col_fld input,
.contact-form .crmWebToEntityForm .zcwf_col_fld textarea,
.contact-form .crmWebToEntityForm .zcwf_col_fld select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #d7dbe2;
    border-radius: 12px;
    outline: none;
    font-size: 1rem;
    color: #0f2944;
    background: #fff;
    box-sizing: border-box;
}

.contact-form .crmWebToEntityForm .zcwf_col_fld input:focus,
.contact-form .crmWebToEntityForm .zcwf_col_fld textarea:focus,
.contact-form .crmWebToEntityForm .zcwf_col_fld select:focus {
    border-color: #478BD6;
    box-shadow: 0 0 0 3px rgba(71, 139, 214, 0.15);
}

.contact-form .crmWebToEntityForm .formsubmit.zcwf_button,
.contact-form .crmWebToEntityForm .zcwf_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1EC3F3, #18B2E9);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(24, 178, 233, 0.35);
}

.contact-form .crmWebToEntityForm .zcwf_button:hover {
    filter: brightness(0.98);
}

@media all and (max-width: 600px) {

    .contact-form .crmWebToEntityForm .zcwf_col_lab,
    .contact-form .crmWebToEntityForm .zcwf_col_fld {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   CUSTOM ZOHO FORM STYLING TO MATCH DESIGN
   ======================================== */

/* Hide label columns, show labels inside inputs as placeholders */
.contact-form .crmWebToEntityForm .zcwf_col_lab {
    display: none;
}

/* Make inputs look like the screenshot */
.contact-form .crmWebToEntityForm .zcwf_col_fld input[type="text"],
.contact-form .crmWebToEntityForm .zcwf_col_fld input[type="email"],
.contact-form .crmWebToEntityForm .zcwf_col_fld textarea,
.contact-form .crmWebToEntityForm .zcwf_col_fld select {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #CBD5E1;
    border-radius: 12px;
    font-size: 16px;
    color: #000;
    background: #FFFFFF;
    font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: all 0.3s ease;
}

.contact-form .crmWebToEntityForm .zcwf_col_fld input[type="text"]:focus,
.contact-form .crmWebToEntityForm .zcwf_col_fld input[type="email"]:focus,
.contact-form .crmWebToEntityForm .zcwf_col_fld textarea:focus,
.contact-form .crmWebToEntityForm .zcwf_col_fld select:focus {
    border-color: #1EC3F3;
    color: #000;
    box-shadow: 0 0 0 3px rgba(30, 195, 243, 0.1);
}

/* Style select dropdowns */
.contact-form .crmWebToEntityForm .zcwf_col_fld select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 50px;
}

/* Hide the Lead Source field completely */
.contact-form .crmWebToEntityForm .zcwf_row:has(select[name="Lead Source"]),
.contact-form .crmWebToEntityForm .zcwf_row:has(#Lead_Source) {
    display: none;
}

/* Hide Message/LEADCF1 field */
.contact-form .crmWebToEntityForm .zcwf_row:has(textarea[name="LEADCF1"]),
.contact-form .crmWebToEntityForm .zcwf_row:has(#LEADCF1) {
    display: none;
}

/* Country code selector styles with Flaticon flag images */
.contact-form .crmWebToEntityForm .country-code-select {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
    color: #000;
    font-size: 16px;
}

.contact-form .crmWebToEntityForm .country-code-select option {
    color: #1e293b;
    padding-left: 10px;
}

/* Flag icon styling */
.contact-form .selected-flag-icon {
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    border-radius: 50% !important;
    pointer-events: none !important;
    z-index: 1 !important;
    object-fit: auto !important;
}

/* Submit button styling to match screenshot */
.contact-form .crmWebToEntityForm .submit-buttons-container {
    display: flex;
    gap: 20px;
    width: 40%;
    justify-content: center;
    margin: 0 auto;
}

.contact-form .crmWebToEntityForm .formsubmit.zcwf_button {
    width: auto;
    min-width: 200px;
    padding: 18px 60px;
    background: linear-gradient(135deg, #1EC3F3, #18B2E9);
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(30, 195, 243, 0.4);
    text-transform: capitalize;
}

.contact-form .crmWebToEntityForm .formsubmit.zcwf_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(30, 195, 243, 0.5);
}

.error-404-number {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 400;
}

.error-404-content {
    text-align: center;
    padding: 80px 20px;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.error-404-content .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-404-illustration {
    max-width: 300px;
    width: 100%;
    height: auto;
    opacity: 0.9;
}

.error-404-title {
    font-size: 32px;
    margin: 20px 0;
    color: #064472;
    font-weight: 400;
    text-align: center;
}

.error-404-description {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    max-width: 500px;
    line-height: 1.6;
    text-align: center;
}

.error-404-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #064472;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #064472;
}

.error-404-button:hover {
    background-color: #F5B544;
    border-color: #F5B544;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 181, 68, 0.4);
}

@media (max-width: 768px) {
    .error-404-number {
        font-size: 1.5rem;
    }

    .error-404-title {
        font-size: 24px;
    }

    .error-404-description {
        font-size: 16px;
    }
}

/* Hide reset button */
.contact-form .crmWebToEntityForm input[type="reset"] {
    display: none;
}

/* Arabic placeholder styling */
.contact-form .crmWebToEntityForm input::placeholder,
.contact-form .crmWebToEntityForm textarea::placeholder,
.contact-form .crmWebToEntityForm select::placeholder {
    color: #000;
    opacity: 1;
    font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.contact-form .crmWebToEntityForm input::-webkit-input-placeholder,
.contact-form .crmWebToEntityForm textarea::-webkit-input-placeholder {
    color: #000;
    opacity: 1;
    font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.contact-form .crmWebToEntityForm input::-moz-placeholder,
.contact-form .crmWebToEntityForm textarea::-moz-placeholder {
    color: #000;
    opacity: 1;
    font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.contact-form .crmWebToEntityForm input:-ms-input-placeholder,
.contact-form .crmWebToEntityForm textarea:-ms-input-placeholder {
    color: #000;
    opacity: 1;
    font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Responsive adjustments - no need for :has() selectors as we use inline styles */