/* ==========================================================================
   DEQAT AL-KAFAA - Main Stylesheet
   Shared by index.html, pic.html and form.html.
   style-ar.css is an identical copy kept for backwards compatibility;
   text direction is driven by the dir attribute on <html>.
   ========================================================================== */

/* Base Styles */
:root {
    --primary-color: #003366;
    --secondary-color: #FFD700;
    --accent-color: #00A0E9;
    --text-color: #333333;
    --light-text: #777777;
    --light-bg: #F9F9F9;
    --white: #FFFFFF;
    --dark-bg: #1A1A1A;
    --transition: all 0.3s ease;
    --nav-h: 80px;
    --nav-h-scrolled: 64px;
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Tajawal', 'Montserrat', 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

[dir="rtl"] {
    text-align: right;
    font-family: 'Tajawal', sans-serif;
}

[dir="ltr"] {
    text-align: left;
    font-family: 'Montserrat', 'Open Sans', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
}

:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: nowrap;
}

[dir="rtl"] .btn {
    letter-spacing: 0;
    text-transform: none;
    font-size: 1.05rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #002244;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    text-align: center;
}

.loader-circle {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

.loader-text {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    z-index: 999;
    transition: height 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled {
    height: var(--nav-h-scrolled);
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 56px;
    width: auto;
    transition: height 0.3s ease;
    display: block;
}

.navbar.scrolled .logo img {
    height: 44px;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2px;
}

.nav-link {
    display: block;
    padding: 10px 14px;
    font-weight: 600;
    position: relative;
    color: var(--text-color);
    white-space: nowrap;
    font-size: 0.95rem;
}

[dir="rtl"] .nav-link {
    font-size: 1.05rem;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    border-radius: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link.active {
    color: var(--primary-color);
}

/* Language switcher: segmented pill */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 4px;
    border-radius: 50px;
    background-color: rgba(0, 51, 102, 0.06);
    border: 1px solid rgba(0, 51, 102, 0.12);
}

.lang-switcher button {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1;
    padding: 8px 14px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: 'Tajawal', 'Montserrat', sans-serif;
}

.lang-switcher button:hover {
    background-color: rgba(0, 51, 102, 0.1);
}

.lang-switcher button.active {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 3px 8px rgba(0, 51, 102, 0.25);
}

/* Mobile Menu Toggle (hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(0, 51, 102, 0.12);
    border-radius: 10px;
    background-color: rgba(0, 51, 102, 0.06);
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.menu-toggle:hover {
    background-color: rgba(0, 51, 102, 0.12);
}

.menu-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--primary-color);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), #001a33);
    padding-top: var(--nav-h);
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px 100px;
    max-width: 900px;
    margin: 0 auto;
}

.animated-headline {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

[dir="rtl"] .animated-headline {
    line-height: 1.5;
}

.animated-headline .text-wrapper {
    display: inline-block;
}

.animated-headline .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.6em);
    animation: word-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes word-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.92;
    line-height: 1.8;
}

.hero-subtitle .highlight {
    display: inline-block;
}

.cta-buttons {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

/* Hero buttons use the brand gold + white so they stand out on the navy hero */
.hero .btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.hero .btn-primary:hover {
    background-color: #ffe14d;
    border-color: #ffe14d;
    color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.hero .btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.8);
}

.hero .btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
    transform: translateY(-3px);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-down span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--white);
    border-right: 2px solid var(--white);
    transform: rotate(45deg);
    margin: -10px;
    animation: scroll-down 2s infinite;
}

.scroll-down span:nth-child(2) {
    animation-delay: -0.2s;
}

.scroll-down span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes scroll-down {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    padding: 100px 0;
    background-color: var(--white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

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

.about-text p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    flex: 1;
    padding: 20px 10px;
    background-color: var(--light-bg);
    border-radius: 10px;
    border-bottom: 3px solid var(--secondary-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--light-text);
}

.about-image {
    flex: 1;
    position: relative;
}

.image-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background-color: var(--white);
}

.image-container img {
    display: block;
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.iso-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[dir="rtl"] .iso-badge {
    right: auto;
    left: -20px;
}

.iso-badge img {
    width: 60px;
    height: 60px;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.services-tabs {
    margin-top: 40px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.tab-btn {
    padding: 10px 30px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light-text);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fade-in 0.4s ease;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border-top: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-top-color: var(--secondary-color);
}

.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background-color: rgba(0, 163, 233, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .card-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--light-text);
    margin-bottom: 0;
}

.services-tabs .cta-buttons {
    margin-top: 50px;
}

.learn-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
}

.learn-more i {
    margin-left: 5px;
    transition: var(--transition);
}

[dir="rtl"] .learn-more i {
    margin-left: 0;
    margin-right: 5px;
    transform: rotate(180deg);
}

.learn-more:hover i {
    transform: translateX(5px);
}

[dir="rtl"] .learn-more:hover i {
    transform: translateX(-5px) rotate(180deg);
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process-section {
    padding: 100px 0;
    background-color: var(--white);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 3px;
}

.process-step {
    position: relative;
    margin-bottom: 40px;
    display: flex;
}

/* odd steps sit on the inline-start side, even steps on the inline-end side */
.process-step:nth-child(odd) {
    justify-content: flex-start;
}

.process-step:nth-child(even) {
    justify-content: flex-end;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--white);
    z-index: 1;
}

.step-content {
    width: calc(50% - 50px);
    padding: 30px;
    background-color: var(--light-bg);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
}

.step-content:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.step-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
}

/* arrows always point toward the centre line */
.process-step:nth-child(odd) .step-content::before,
[dir="rtl"] .process-step:nth-child(even) .step-content::before {
    right: -15px;
    left: auto;
    border-width: 15px 0 15px 15px;
    border-color: transparent transparent transparent var(--light-bg);
}

.process-step:nth-child(even) .step-content::before,
[dir="rtl"] .process-step:nth-child(odd) .step-content::before {
    left: -15px;
    right: auto;
    border-width: 15px 15px 15px 0;
    border-color: transparent var(--light-bg) transparent transparent;
}

.step-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* ==========================================================================
   Accreditation Section
   ========================================================================== */
.accreditation-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.accreditation-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.standards-info {
    flex: 1;
}

.standards-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.standards-info p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.standards-list {
    margin-bottom: 30px;
}

.standards-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.standards-list i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.certificates-slider {
    flex: 1;
    position: relative;
    padding: 20px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.certificate-slide {
    padding: 20px;
}

.certificate-slide img {
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
    display: block;
}

.certificate-caption {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--light-text);
}

/* ==========================================================================
   Benefits Section
   ========================================================================== */
.benefits-section {
    padding: 100px 0;
    background-color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: rgba(255, 215, 0, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--light-text);
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slide {
    display: none;
    animation: fade-in 0.5s ease;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
    line-height: 1.8;
}

[dir="rtl"] .testimonial-content p {
    font-style: normal;
}

.testimonial-content p::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 4rem;
    line-height: 1;
    color: var(--secondary-color);
    opacity: 0.5;
    position: absolute;
    top: -20px;
    left: -12px;
}

[dir="rtl"] .testimonial-content p::before {
    left: auto;
    right: -12px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 215, 0, 0.5);
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--light-text);
    margin: 0;
    font-style: normal;
}

.author-info p::before {
    display: none;
}

.slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.slider-prev,
.slider-next {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

[dir="rtl"] .slider-prev i,
[dir="rtl"] .slider-next i {
    transform: scaleX(-1);
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--primary-color);
    transform: scale(1.25);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    padding: 100px 0 0;
    position: relative;
}

.contact-content {
    display: flex;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 163, 233, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: var(--transition);
}

.info-item:hover .info-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.info-text h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.info-text p {
    white-space: pre-line;
}

.info-text a {
    color: inherit;
}

.info-text a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 163, 233, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}

.contact-form {
    flex: 1;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-color);
    transition: var(--transition);
    background-color: transparent;
    z-index: 1;
    position: relative;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    padding-right: 40px;
    cursor: pointer;
}

[dir="rtl"] .form-group select {
    background-position: left 15px center;
    padding-right: 15px;
    padding-left: 40px;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--light-text);
    transition: var(--transition);
    background-color: var(--white);
    padding: 0 5px;
    z-index: 0;
    pointer-events: none;
    line-height: 1.3;
}

[dir="rtl"] .form-group label {
    left: auto;
    right: 15px;
}

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

.form-group input:focus+label,
.form-group textarea:focus+label,
.form-group select:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:not(:placeholder-shown)+label,
.form-group select:valid+label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--primary-color);
    z-index: 2;
}

[dir="rtl"] .form-group input:focus+label,
[dir="rtl"] .form-group textarea:focus+label,
[dir="rtl"] .form-group select:focus+label,
[dir="rtl"] .form-group input:not(:placeholder-shown)+label,
[dir="rtl"] .form-group textarea:not(:placeholder-shown)+label,
[dir="rtl"] .form-group select:valid+label {
    left: auto;
    right: 10px;
}

.contact-form .btn {
    width: 100%;
}

.form-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--light-text);
    text-align: center;
    display: none;
}

.form-note.show {
    display: block;
}

.contact-map {
    height: 400px;
    width: 100%;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, 20px);
    background-color: var(--primary-color);
    color: var(--white);
    padding: 14px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    max-width: calc(100% - 40px);
    text-align: center;
    font-weight: 600;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-logo p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-links h3,
.footer-services h3,
.footer-contact h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

[dir="rtl"] .footer-links h3::after,
[dir="rtl"] .footer-services h3::after,
[dir="rtl"] .footer-contact h3::after {
    left: auto;
    right: 0;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
    opacity: 0.8;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover,
.footer-services a:hover {
    opacity: 1;
    color: var(--secondary-color);
    padding-left: 5px;
}

[dir="rtl"] .footer-links a:hover,
[dir="rtl"] .footer-services a:hover {
    padding-left: 0;
    padding-right: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--secondary-color);
    width: 18px;
    text-align: center;
}

.footer-contact a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    opacity: 0.7;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
}

[dir="rtl"] .back-to-top {
    right: auto;
    left: 30px;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25D366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 998;
    transition: var(--transition);
}

[dir="rtl"] .whatsapp-float {
    left: auto;
    right: 30px;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

/* Scroll reveal (only active when JS adds the .js class to <html>) */
html.js .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal.in-view {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

    html.js .reveal,
    .animated-headline .word {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Inner pages (gallery / questionnaire): clear the fixed navbar */
.page-section {
    padding-top: calc(var(--nav-h) + 70px);
    padding-bottom: 80px;
    background-color: var(--light-bg);
    min-height: 60vh;
}

@media (max-width: 768px) {
    .page-section {
        padding-top: calc(var(--nav-h) + 40px);
        padding-bottom: 60px;
    }
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1100px) {
    .nav-link {
        padding: 10px 10px;
        font-size: 0.9rem;
    }

    [dir="rtl"] .nav-link {
        font-size: 1rem;
    }
}

@media (max-width: 992px) {

    .about-content,
    .accreditation-content,
    .contact-content {
        flex-direction: column;
    }

    .about-image,
    .standards-info,
    .contact-info {
        margin-bottom: 50px;
        width: 100%;
    }

    .certificates-slider,
    .contact-form {
        width: 100%;
    }

    .process-timeline::before {
        left: 25px;
        transform: none;
    }

    [dir="rtl"] .process-timeline::before {
        left: auto;
        right: 25px;
    }

    .process-step:nth-child(odd),
    .process-step:nth-child(even) {
        justify-content: flex-start;
    }

    .step-number {
        left: 0;
        transform: none;
    }

    [dir="rtl"] .step-number {
        left: auto;
        right: 0;
    }

    .step-content {
        width: calc(100% - 70px);
        margin-inline-start: 70px;
    }

    .process-step:nth-child(odd) .step-content::before,
    .process-step:nth-child(even) .step-content::before {
        left: -15px;
        right: auto;
        border-width: 15px 15px 15px 0;
        border-color: transparent var(--light-bg) transparent transparent;
    }

    [dir="rtl"] .process-step:nth-child(odd) .step-content::before,
    [dir="rtl"] .process-step:nth-child(even) .step-content::before {
        right: -15px;
        left: auto;
        border-width: 15px 0 15px 15px;
        border-color: transparent transparent transparent var(--light-bg);
    }
}

/* Mobile navigation */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .navbar .container {
        gap: 12px;
    }

    .lang-switcher {
        margin-inline-start: auto;
    }

    .lang-switcher button {
        padding: 7px 12px;
        font-size: 0.8rem;
    }

    .navbar .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - var(--nav-h));
        max-height: calc(100svh - var(--nav-h));
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background-color: var(--white);
        padding: 10px 20px 20px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
        border-top: 1px solid rgba(0, 51, 102, 0.08);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }

    .navbar .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .navbar .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 51, 102, 0.06);
    }

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

    .navbar .nav-link {
        display: block;
        width: 100%;
        padding: 15px 10px;
        font-size: 1.05rem;
        text-align: start;
        border-radius: 6px;
    }

    .navbar .nav-link::after {
        display: none;
    }

    .navbar .nav-link.active {
        color: var(--primary-color);
        background-color: rgba(255, 215, 0, 0.12);
    }

    .navbar .nav-link:hover {
        background-color: rgba(0, 51, 102, 0.05);
    }

    body.no-scroll {
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-h: 70px;
        --nav-h-scrolled: 60px;
    }

    .logo img {
        height: 46px;
    }

    .navbar.scrolled .logo img {
        height: 40px;
    }

    .hero {
        min-height: 600px;
    }

    .hero-content {
        padding: 30px 20px 90px;
    }

    .animated-headline {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

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

    .section-header h2 {
        font-size: 2rem;
    }

    .about-section,
    .services-section,
    .process-section,
    .accreditation-section,
    .benefits-section,
    .testimonials-section {
        padding: 70px 0;
    }

    .contact-section {
        padding: 70px 0 0;
    }

    .about-text h3,
    .standards-info h3 {
        font-size: 1.5rem;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .testimonial-content {
        padding: 30px 25px;
    }

    .testimonial-content p {
        font-size: 1rem;
    }

    .footer {
        padding-top: 60px;
    }

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

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    [dir="rtl"] .back-to-top {
        right: auto;
        left: 20px;
    }

    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }

    [dir="rtl"] .whatsapp-float {
        left: auto;
        right: 20px;
    }

    .contact-map {
        height: 300px;
    }
}

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

    .animated-headline {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-buttons {
        gap: 12px;
    }

    .cta-buttons .btn {
        flex: 1 1 calc(50% - 6px);
        min-width: 140px;
        padding: 13px 18px;
        font-size: 0.85rem;
    }

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

    .about-stats {
        flex-direction: column;
        gap: 15px;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

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

    .tab-btn {
        padding: 10px 18px;
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .footer-legal {
        gap: 10px;
    }

    .lang-switcher button {
        padding: 7px 10px;
        font-size: 0.78rem;
    }

    .logo img {
        height: 42px;
    }
}

@media (max-width: 360px) {
    .lang-switcher button {
        padding: 6px 8px;
        font-size: 0.72rem;
    }

    .logo img {
        height: 38px;
    }
}
