/* 
 * Egyp SMH - Modern Design System 
 * Created with Passion & Precision
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&family=Poppins:wght@300;400;600;700&display=swap');

:root {
    /* Color Palette - HSL for better manipulation */
    --primary-h: 154;
    --primary-s: 41%;
    --primary-l: 29%;
    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    /* #2d6a4f */

    --secondary-h: 201;
    --secondary-s: 100%;
    --secondary-l: 36%;
    --secondary: hsl(var(--secondary-h), var(--secondary-s), var(--secondary-l));
    /* #0077b6 */

    --accent-h: 32;
    --accent-s: 100%;
    --accent-l: 49%;
    --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
    /* #fb8500 */

    --dark-h: 155;
    --dark-s: 42%;
    --dark-l: 18%;
    --dark: hsl(var(--dark-h), var(--dark-s), var(--dark-l));
    /* #1b4332 */

    --light: #f8f9fa;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);

    /* Spacing & Layout */
    --container-padding: 8%;
    --header-height: 80px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--light);
    color: #333;
    overflow-x: hidden;
    line-height: 1.6;
}

body.ltr {
    font-family: 'Poppins', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Utilities --- */
.container {
    padding: 0 var(--container-padding);
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.text-accent {
    color: var(--accent);
}

/* Glassmorphism */
.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--light);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    padding: 10px var(--container-padding);
}

.logo {
    display: flex;
    align-items: center;
    height: 150px;
    /* Adjusted height for larger logo */
}

.logo img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    flex: 1;
    /* Allow nav to take available space */
    justify-content: center;
    /* Center nav items */
}

.nav-links a {
    font-weight: 600;
    color: var(--dark);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    /* RTL default */
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

body.ltr .nav-links a::after {
    left: 0;
    right: auto;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- Dropdown Navigation --- */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown>.dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark);
    padding: 5px 0;
    position: relative;
}

.nav-dropdown>.dropdown-trigger i {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover>.dropdown-trigger i,
.nav-dropdown.open>.dropdown-trigger i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

body.ltr .dropdown-menu {
    right: auto;
    left: 0;
}

.nav-dropdown:hover>.dropdown-menu,
.nav-dropdown.open>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--dark) !important;
    font-weight: 500 !important;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    border-radius: 0;
    white-space: nowrap;
}

.dropdown-menu a::after {
    display: none !important;
}

.dropdown-menu a:hover {
    background: linear-gradient(90deg, rgba(45, 106, 79, 0.08), transparent);
    color: var(--primary) !important;
    padding-right: 25px;
}

body.ltr .dropdown-menu a:hover {
    padding-right: 20px;
    padding-left: 25px;
}

.dropdown-menu a i {
    width: 20px;
    text-align: center;
    color: var(--primary);
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.dropdown-menu a:hover i {
    opacity: 1;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    gap: 5px;
}

.lang-switch button {
    background: transparent;
    border: 1px solid var(--primary);
    padding: 6px 14px;
    cursor: pointer;
    border-radius: 50px;
    font-weight: bold;
    transition: var(--transition);
    font-size: 0.85rem;
    color: var(--primary);
}

.lang-switch button:hover,
.lang-switch button.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(45, 106, 79, 0.3);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* --- Hero Slider --- */
.swiper {
    width: 100%;
    height: 100vh;
}

.swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.swiper-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 10s ease;
}

.swiper-slide-active img {
    transform: scale(1);
}

.slide-content {
    position: absolute;
    text-align: center;
    color: var(--white);
    z-index: 10;
    padding: 0 20px;
    max-width: 800px;
}

.slide-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
    transition-delay: 0.3s;
}

.slide-content p {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
    transition-delay: 0.5s;
}

.swiper-slide-active .slide-content h1,
.swiper-slide-active .slide-content p {
    opacity: 1;
    transform: translateY(0);
}

/* Button Action */
.btn-action {
    position: relative;
    padding: 16px 45px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(251, 133, 0, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition);
}

.btn-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary);
    z-index: -1;
    transition: var(--transition);
    border-radius: 50px;
}

.btn-action:hover::before {
    width: 100%;
}

.btn-action:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(45, 106, 79, 0.4);
}

/* --- Sections Common --- */
section {
    padding: 100px var(--container-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 800;
}

.section-header .line {
    width: 80px;
    height: 5px;
    background: var(--accent);
    margin: 0 auto;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.section-header .line::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

/* --- Sectors Cards --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.sector-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.sector-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.img-wrapper {
    overflow: hidden;
    height: 260px;
    position: relative;
}

.sector-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sector-card:hover img {
    transform: scale(1.15);
}

.card-body {
    padding: 35px;
    text-align: center;
    background: white;
    position: relative;
    z-index: 2;
}

.card-body h3 {
    margin-bottom: 15px;
    color: var(--secondary);
    font-size: 1.6rem;
    font-weight: 700;
}

.card-body p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}

.card-link {
    color: var(--primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.card-link i {
    transition: 0.3s;
}

.card-link:hover {
    color: var(--accent);
}

.card-link:hover i {
    transform: translateX(5px);
    /* Moves right for LTR */
}

body:not(.ltr) .card-link:hover i {
    transform: translateX(-5px);
    /* Moves left for RTL */
}

/* --- Footer --- */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px var(--container-padding) 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
    text-align: start;
}

.footer-col h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--accent);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* --- WhatsApp Button --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    width: 65px;
    height: 65px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    z-index: 2000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(15deg);
}

html[dir="rtl"] .whatsapp-btn {
    left: 30px;
}

html[dir="ltr"] .whatsapp-btn {
    right: 30px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    :root {
        --container-padding: 5%;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* For RTL, change logic in JS or CSS */
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }

    body.ltr .nav-links {
        right: -100%;
        left: unset;
    }

    /* RTL specific mobile menu */
    html[dir="rtl"] .nav-links {
        right: auto;
        left: -100%;
    }

    .nav-links.active {
        left: 0 !important;
        /* Force override for RTL */
        right: unset !important;
    }

    body.ltr .nav-links.active {
        left: unset !important;
        right: 0 !important;
    }

    /* Mobile Dropdown */
    .nav-dropdown {
        width: 100%;
        text-align: center;
        flex-direction: column;
    }

    .nav-dropdown>.dropdown-trigger {
        justify-content: center;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.03);
        border-radius: 8px;
        min-width: unset;
        width: 100%;
        padding: 0;
        margin-top: 5px;
    }

    .nav-dropdown.open>.dropdown-menu {
        max-height: 400px;
        padding: 8px 0;
    }

    .nav-dropdown:hover>.dropdown-menu {
        max-height: 0;
        padding: 0;
    }

    .dropdown-menu a {
        justify-content: center;
        padding: 10px 15px;
        font-size: 0.88rem;
    }

    .slide-content h1 {
        font-size: 2.2rem;
    }
}

/* --- Products Market Grid --- */
.products-section {
    background-color: var(--light);
    padding-top: 60px;
    padding-bottom: 80px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-item {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    cursor: pointer;
}

.product-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.product-img {
    height: 300px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-item:hover .product-img img {
    transform: scale(1.12);
    /* Zoom Effect */
}

/* Optional Overlay on Hover */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-item:hover .product-overlay {
    opacity: 1;
}

.btn-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    color: var(--primary);
    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);
    transform: translateY(20px);
    transition: var(--transition);
}

.product-item:hover .btn-icon {
    transform: translateY(0);
}

.btn-icon:hover {
    background: var(--accent);
    color: var(--white);
}

.product-info {
    padding: 20px 25px;
    text-align: center;
    background: var(--white);
    position: relative;
    z-index: 2;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--primary);
    font-weight: 700;
}

.product-info .price {
    color: var(--secondary);
    font-weight: 600;
    font-size: 1rem;
    display: block;
}

/* --- Floating Language Menu --- */
.lang-floating-wrapper {
    position: fixed;
    z-index: 2000;
}

/* RTL: Top Left */
html[dir="rtl"] .lang-floating-wrapper {
    top: 30px;
    left: 30px;
}

/* LTR: Top Right */
html[dir="ltr"] .lang-floating-wrapper {
    top: 30px;
    right: 30px;
}

.lang-toggle-btn {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-toggle-btn:hover {
    transform: scale(1.1);
    background: var(--accent);
}

.lang-menu {
    position: absolute;
    top: 60px;
    left: 0;
    min-width: 120px;
    background: var(--white);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: var(--transition);
}

html[dir="ltr"] .lang-menu {
    right: 0;
    left: auto;
}

.lang-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.lang-menu button {
    background: transparent;
    border: none;
    padding: 8px 12px;
    text-align: center;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    color: var(--dark);
    border-radius: 8px;
    transition: 0.2s;
    width: 100%;
}

.lang-menu button:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

/* --- About Section --- */
.about-section {
    background-color: var(--white);
    overflow: hidden;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.about-img:hover img {
    transform: scale(1.05);
}

.about-text h3 {
    color: var(--secondary);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text p {
    color: #555;
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* --- Team Section --- */
.team-section {
    background-color: var(--light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.member-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid var(--accent);
    padding: 3px;
    background: var(--white);
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-member h3 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.team-member span {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}

/* --- Events Section --- */
.events-section {
    background-color: var(--white);
}

.event-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.event-img {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.event-date {
    position: absolute;
    top: 15px;
    right: 15px;
    /* LTR default, adjust for RTL if needed */
    background: var(--accent);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 2;
}

html[dir="rtl"] .event-date {
    right: auto;
    left: 15px;
}

.event-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-content h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.event-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* --- Branches Section --- */
.branches-section {
    background-color: var(--primary);
    /* Dark green background */
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.branches-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
    opacity: 0.6;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.branch-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 20px;
    transition: var(--transition);
}

.branch-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.branch-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.branch-icon {
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
}

.branch-card h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--white);
}

.branch-info p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.branch-info i {
    width: 20px;
    color: var(--accent);
    margin-top: 5px;
}

/* --- Contact Section --- */
.contact-section {
    background-color: var(--light);
    padding-bottom: 100px;
}

.contact-container {
    background: var(--white);
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
}

.contact-info-box {
    background: var(--primary);
    padding: 50px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.contact-info-box::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.1;
}

.contact-info-box h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--white);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.4rem;
    color: var(--accent);
    margin-top: 5px;
}

.contact-form-box {
    padding: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: #f9f9f9;
}

.form-input:focus {
    border-color: var(--secondary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.1);
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {

    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info-box {
        padding: 40px;
    }

    .contact-form-box {
        padding: 30px;
    }

    .about-img {
        height: 300px;
        order: -1;
        /* Image on top on mobile */
    }
}

/* --- Success Partners Section --- */
.partners-section {
    background-color: var(--white);
    padding: 80px 0;
    overflow: hidden;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

/* Fade effect on sides */
.marquee-wrapper::before,
.marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--white), transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--white), transparent);
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    width: fit-content;
    animation: scroll 20s linear infinite;
    gap: 50px;
}

/* Pause on hover */
.marquee-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    flex: 0 0 auto;
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% / 2));
    }
}

/* RTL Support for Marquee */
/* In RTL, we might want the animation to go right-to-left naturally, 
   but 'translateX(-50%)' usually moves left relative to the element.
   For RTL page direction, sometimes we need to reverse animation or logic.
   Let's keep it simple: just standard scroll. If user wants reverse, we add it. 
*/
html[dir="rtl"] .marquee-track {
    animation-direction: reverse;
}

/* ============================================
   PEANUTS EXPORT PAGE STYLES
   ============================================ */

/* --- Video Hero Section --- */
.video-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-hero video,
.video-hero .video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 50%, hsl(154, 41%, 40%) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.video-placeholder i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.3);
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

.video-placeholder span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    font-weight: 600;
}

.video-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.2) 40%,
            rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

.video-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    max-width: 900px;
}

.video-hero-content .hero-badge {
    display: inline-block;
    background: rgba(251, 133, 0, 0.9);
    color: white;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeInDown 1s ease forwards;
}

.video-hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 20px;
    line-height: 1.15;
    text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.video-hero-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.video-hero-content .hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.btn-hero {
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-hero.primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(251, 133, 0, 0.4);
}

.btn-hero.primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(251, 133, 0, 0.5);
}

.btn-hero.outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-hero.outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
    transform: translateY(-4px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    animation: bounce 2s infinite;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-15px);
    }

    60% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* --- About Peanuts Section --- */
.peanuts-about {
    background: var(--white);
}

.peanuts-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.peanuts-about-text h3 {
    color: var(--secondary);
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.peanuts-about-text p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 20px;
}

.peanuts-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.peanuts-features .feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--light);
    border-radius: 12px;
    transition: var(--transition);
}

.peanuts-features .feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.peanuts-features .feature-item i {
    font-size: 1.4rem;
    color: var(--accent);
    width: 35px;
    text-align: center;
}

.peanuts-features .feature-item span {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.peanuts-about-img {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 500px;
}

.peanuts-about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.peanuts-about-img:hover img {
    transform: scale(1.05);
}

/* --- Stats Section --- */
.stats-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    animation: rotate-bg 30s linear infinite;
}

@keyframes rotate-bg {
    100% {
        transform: rotate(360deg);
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: rgba(251, 133, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--accent);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}

/* --- Peanut Types / Grades Section --- */
.types-section {
    background: var(--light);
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.type-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
}

.type-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.type-card-header {
    background: linear-gradient(135deg, var(--primary), hsl(154, 41%, 38%));
    padding: 30px;
    color: var(--white);
    text-align: center;
    position: relative;
}

.type-card-header .type-icon {
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.6rem;
}

.type-card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.type-card-header span {
    font-size: 0.9rem;
    opacity: 0.85;
}

.type-card-body {
    padding: 30px;
}

.type-card-body .spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.type-card-body .spec-row:last-child {
    border-bottom: none;
}

.spec-row .spec-label {
    color: #888;
    font-weight: 600;
    font-size: 0.95rem;
}

.spec-row .spec-value {
    color: var(--dark);
    font-weight: 700;
    font-size: 0.95rem;
}

/* --- Certifications Section --- */
.certifications-section {
    background: var(--white);
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.cert-card {
    text-align: center;
    padding: 40px 25px;
    background: var(--light);
    border-radius: 20px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.cert-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.cert-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--white);
}

.cert-card h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.cert-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Timeline Section --- */
.timeline-section {
    background: var(--light);
    overflow: hidden;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 4px;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 4px var(--accent);
    z-index: 2;
}

.timeline-content {
    width: 42%;
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.timeline-content .step-number {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.timeline-content h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Export Markets Section --- */
.markets-section {
    background: var(--white);
    overflow: hidden;
}

.markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.market-card {
    background: var(--light);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.market-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.market-card:hover::before {
    transform: scaleX(1);
}

.market-card:hover {
    border-color: rgba(45, 106, 79, 0.15);
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.market-flag {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--white);
}

.market-card h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.market-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.market-countries {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
}

.market-countries span {
    background: var(--white);
    color: var(--secondary);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 119, 182, 0.15);
}

/* --- Quote Section --- */
.quote-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(251, 133, 0, 0.15), transparent);
    border-radius: 50%;
}

.quote-section .section-header h2 {
    color: var(--white);
}

.quote-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.quote-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.85);
}

.quote-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-quote {
    padding: 16px 45px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-quote.accent {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(251, 133, 0, 0.4);
}

.btn-quote.accent:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(251, 133, 0, 0.5);
}

.btn-quote.ghost {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-quote.ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-4px);
}

/* --- Peanuts Page Responsive --- */
@media (max-width: 900px) {
    .peanuts-about-grid {
        grid-template-columns: 1fr;
    }

    .peanuts-about-img {
        height: 300px;
        order: -1;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        padding-right: 0;
        padding-left: 60px;
    }

    html[dir="rtl"] .timeline-item,
    html[dir="rtl"] .timeline-item:nth-child(odd),
    html[dir="rtl"] .timeline-item:nth-child(even) {
        padding-left: 0;
        padding-right: 60px;
    }

    .timeline-dot {
        left: 20px;
        transform: none;
    }

    html[dir="rtl"] .timeline-dot {
        left: auto;
        right: 20px;
    }

    html[dir="rtl"] .timeline::before {
        left: auto;
        right: 20px;
    }

    .timeline-content {
        width: 100%;
    }

    .peanuts-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .video-hero-content h1 {
        font-size: 2rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    background: var(--light);
    padding-top: 80px;
    padding-bottom: 80px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px 30px 30px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: right;
}

html[dir="rtl"] .testimonial-card::before {
    transform-origin: left;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

.testimonial-quote {
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 2.5rem;
    color: rgba(45, 106, 79, 0.1);
    line-height: 1;
}

html[dir="rtl"] .testimonial-quote {
    left: auto;
    right: 25px;
}

.testimonial-text {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 25px;
    font-style: italic;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.author-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-avatar i {
    font-size: 2.2rem;
    color: var(--white);
}

.author-info h4 {
    color: var(--dark);
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.author-info span {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
}

.testimonial-stars i {
    color: #f5a623;
    font-size: 1rem;
}

/* ============================================
   INTERNATIONAL CERTIFICATIONS SECTION
   ============================================ */
.intl-certs-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 80px;
}

.intl-certs-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(251, 133, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.intl-certs-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.intl-certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.intl-cert-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 45px 30px;
    text-align: center;
    transition: var(--transition);
}

.intl-cert-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.intl-cert-badge {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--accent), hsl(30, 100%, 55%));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.2rem;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(251, 133, 0, 0.3);
    transition: var(--transition);
}

.intl-cert-card:hover .intl-cert-badge {
    transform: scale(1.1) rotate(5deg);
}

.intl-cert-card h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.intl-cert-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.cert-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
}

.cert-check i {
    font-size: 1.1rem;
}

/* --- Testimonials & Certifications Responsive --- */
@media (max-width: 900px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .intl-certs-grid {
        grid-template-columns: 1fr;
    }
}