/* ========== 1. Global Styles & Variables (More Compact) ========== */
:root {
    --primary-blue: #2f5acf;
    --light-gray: #f8f9fa;
    --dark-text: #212529;
    --light-text: #6c757d;
    --white: #ffffff;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --font-family: 'Poppins', sans-serif;
}
html[dir="rtl"] {
    --font-family: 'Rubik', sans-serif !important;
}
html, body {
	overflow-x: hidden;
	width: 100%;
}
body {
    font-family: var(--font-family);
    margin: 0;
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
    font-size: 15px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3 { font-weight: 600; }
a { text-decoration: none; color: var(--primary-blue); transition: color 0.3s ease; }
a:hover { color: #2446a0; }
a.service-card {
	color: var(--dark-text);
	text-decoration: none;
}
a.service-card:hover { color: var(--dark-text); }
/* ========== 2. New Header Structure ========== */
.site-header {
    background: var(--white);
    overflow: visible;
}

/* -- 2.1 Top Bar -- */
.header-top-bar {
    background-color: #f1f3f6;
    padding: 8px 0;
    font-size: 13px;
    color: var(--light-text);
}
.top-bar-container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left { display: flex; align-items: center; gap: 15px; }
.top-bar-left a { color: var(--light-text); }
.top-bar-left a:hover { color: var(--primary-blue); }

.language-switcher { position: relative; cursor: pointer; }
.language-switcher span { display: flex; align-items: center; gap: 5px; }
.language-switcher img { border-radius: 2px; }
.language-dropdown {
    display: none; position: absolute; top: calc(100% + 10px); right: 0;
    background: var(--white); list-style: none; padding: 5px; margin: 0;
    border-radius: 6px; box-shadow: var(--shadow-sm); z-index: 9999;
}

.language-dropdown.is-active {
    display: block;
}

.language-dropdown a {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px;
    border-radius: 4px; color: var(--dark-text); font-size: 14px;
}
.language-dropdown a:hover { background-color: var(--light-gray); }

/* -- 2.2 Main Header -- */
.header-main { padding: 20px 0; }
.header-main-container { display: flex; justify-content: space-between; align-items: center; }
.logo {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    line-height: 1;
}
.logo span {
    color: var(--dark-text);
}
.header-contact { text-align: right; }
.header-contact span { font-size: 1.2rem; font-weight: 600; color: var(--dark-text); }
.header-contact p { margin: 0; font-size: 13px; color: var(--light-text); }

/* -- 2.3 Navigation Bar -- */
.header-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-links { list-style: none; display: flex; gap: 25px; margin: 0; padding: 0; }
.nav-links a { color: var(--dark-text); font-weight: 500; padding: 5px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-blue); }
.cta-button.nav-button {
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 14px;
}

/* ========== 3. Content Sections (Compact) ========== */
.content-section { padding: 60px 0; } /* Reduced padding */
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2rem; }
.card-grid { gap: 25px; }

/* ========== 4. New Footer ========== */
.site-footer {
    background-color: #1c2331;
    color: #cfd2d6;
    padding-top: 50px;
    font-size: 14px;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
    align-items: baseline;
}
.footer-links h4, .footer-contact h4 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 15px;
    margin-top: 0;
    font-weight: 500;
}

.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a, .footer-contact p { color: #cfd2d6; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-contact p { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-social { display: flex; gap: 15px; margin-top: 15px; }
.footer-social a {
    color: #cfd2d6; font-size: 1.1rem;
    width: 35px; height: 35px;
    display: grid; place-items: center;
    border: 1px solid #4a515c;
    border-radius: 50%;
}
.footer-social a:hover { 
    background-color: var(--primary-blue); 
    border-color: var(--primary-blue); 
    color: var(--white); 
}

.footer-bottom {
    background-color: #161c27;
    text-align: center;
    padding: 15px 0;
    font-size: 13px;
}
.footer-bottom p { margin: 0; }

/* ========== Other styles (Hero, Services, etc.) ========== */
/* Hero Section (Split Layout) */
.hero-section-split { padding: 60px 0; }
.hero-container { display: flex; align-items: center; gap: 40px; }
.hero-content { flex: 1; }
.hero-image-wrapper { flex: 1; }
.hero-image-wrapper img { width: 100%; border-radius: 12px; }
.hero-tagline { font-weight: 600; color: var(--primary-blue); font-size: 0.9rem; }
.hero-content h1 { font-size: 2.8rem; line-height: 1.2; margin: 8px 0 15px 0; }
.hero-content .subtitle { font-size: 1rem; color: var(--light-text); margin-bottom: 25px; }

.cta-button {
    background: var(--primary-blue); color: var(--white); padding: 12px 25px;
    border-radius: 6px; font-weight: 500; display: inline-block;
    transition: background-color 0.3s ease;
}
.cta-button:hover { background-color: #2446a0; color: var(--white); }

/* ========== 5. Content Sections & Cards ========== */
.content-section {
    padding: 80px 0;
}

.content-section.bg-light {
    background-color: var(--light-blue);
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-top: 5px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Service Card with Icon */

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3 ease;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-blue);
}
.service-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}
.service-card h3 {
    margin-top: 0;
}

/* ========== 7. Generic Page Styles ========== */
.page-container {
    padding: 80px 0;
}
.page-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 40px;
}
.page-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}
.page-content p {
    margin-bottom: 20px;
}
.page-content h2, .page-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
}

/* ========== 8. Contact Form Styles ========== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-form p {
    margin: 0;
    width: 100%;
}
.contact-form label {
    display: none; 
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}
.contact-form button {
    width: 100%;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

/* ========== 9. Hero Section Circles ========== */

.hero-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
}

.circles-container {
    position: relative;
    width: 420px;
    height: 420px;
}

.main-photo-circle {
    position: absolute;
    width: 360px;
    height: 360px;
    background-color: var(--light-gray);
    border-radius: 50%;
    background-image: url('../images/handshake.jpg');
    background-size: cover;
    background-position: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    z-index: 5;
    box-shadow: 0 15px 40px rgba(47, 90, 207, 0.15);
    border: 6px solid var(--white);
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.circle-1 {
    width: 180px;
    height: 180px;
    background-color: #eaf2ff;
    top: 0;
    left: 0;
    z-index: 1;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 90px;
    height: 90px;
    top: 40px;
    right: 20px;
    z-index: 6;
    background-color: var(--white);
    background: transparent;
    border: 2px solid var(--primary-blue);
    animation: float 10s ease-in-out infinite;
    animation-delay: 1s;
}

.circle-3 {
    width: 120px;
    height: 120px;
    bottom: 20px;
    left: 40px;
    z-index: 2;
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    animation: float 12s ease-in-out infinite;
}

.circle-4 {
    width: 60px;
    height: 60px;
    bottom: 50px;
    right: 30px;
    z-index: 6;
    background-color: var(--primary-blue);
    opacity: 0.8;
    animation: float 9s ease-in-out infinite;
    animation-delay: 1.5s;
}

.circle-5 {
    width: 220px;
    height: 220px;
    bottom: -50px;
    right: -40px; 
    z-index: 1;
    background: transparent;
    border: 1px solid var(--border-color);
    animation: float 14s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px); 
    }
    100% {
        transform: translateY(0px);
    }
}


/* ========== About Us Section ========== */
.page-split-layout {
    display: flex;
    align-items: center;
    gap: 50px;
    margin: 40px 0;
}

.page-image-wrapper {
    flex: 0 0 45%;
}
.page-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.page-content-wrapper h1 {
    font-size: 2.8rem;
    margin-top: 0;
    margin-bottom: 20px;
}

.page-content {
    line-height: 1.8;
    color: var(--light-text);
    font-size: 1.1rem;
}

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

.about-image-wrapper {
    flex: 0 0 45%;
    position: relative;
}

.about-image-wrapper img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-tagline {
    color: var(--primary-blue);
    font-weight: 600;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2rem;
    margin-top: 5px;
    margin-bottom: 15px;
}

.about-content p {
    color: var(--light-text);
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.about-stats .stat-item h3 {
    font-size: 2.2rem;
    margin: 0;
    color: var(--primary-blue);
}

.about-stats .stat-item p {
    margin: 0;
    color: var(--dark-text);
    font-size: 14px;
}

/* ========== 6. Gallery Slider Styles ========== */
.my-gallery-slider {
    width: 100%;
    height: 400px;
    padding-bottom: 40px !important;
}

.my-gallery-slider .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.my-gallery-slider .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--primary-blue) !important;
}

/* ========== Custom Styles for Slider Navigation Buttons ========== */

.my-gallery-slider .swiper-button-next,
.my-gallery-slider .swiper-button-prev {
    background-color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
}

.my-gallery-slider .swiper-button-next::after,
.my-gallery-slider .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-blue);
}

/* ========== Blog Page Styles ========== */

.blog-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.blog-card {
    width: 300px;
    display: flex;
    flex-direction: column;
    color: var(--dark-text);
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    flex-grow: 1; 
}

.blog-card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    line-height: 1.4;
    
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-top: 15px;
}

/* ========== Post Detail Page Layout & Sidebar ========== */

.post-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.post-main-content {
    flex: 1;
    min-width: 65%;
}

.post-sidebar {
    flex-basis: 300px;
    flex-grow: 1;
}

.post-detail-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    margin: 20px 0;
}

.post-detail-title {
    font-size: 2.5rem;
    line-height: 1.3;
}

.post-meta {
    color: var(--light-text);
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-body {
    margin-top: 30px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-body h2, .post-body h3 {
    margin-top: 40px;
    margin-bottom: 20px;
}
.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.sidebar-widget {
    background-color: var(--light-gray);
    padding: 25px;
    border-radius: 12px;
    position: sticky;
    top: 100px;
}

.sidebar-widget h3 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-post {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    text-decoration: none;
    color: var(--dark-text);
    border-bottom: 1px solid var(--border-color);
}
.sidebar-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.sidebar-post:hover .sidebar-post-title {
    color: var(--primary-blue);
}

.sidebar-post img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.sidebar-post-title {
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s ease;
}

/* ========== Footer Logo Text Style ========== */
.footer-logo-text {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    margin-bottom: 15px;
}

.footer-logo-text span {
    color: var(--white);
}

/* ========== Responsive Styles (for mobile) ========== */

.mobile-nav-toggle {
    display: none;
}

@media (max-width: 768px) {

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .content-section { padding: 40px 0; }

    .mobile-nav-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1001;
        color: var(--dark-text);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: right 0.5s ease-in-out;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0
    }

    .nav-links a { font-size: 1.5rem; }
    .nav-button { display: none; }

    .header-main-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .header-main {
        padding: 15px 0;
    }
    .header-contact {
        text-align: center;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        order: 2;
    }
    .circles-container {
        transform: scale(0.8);
    }

    .about-container, .page-split-layout {
        flex-direction: column;
    }

    .footer-container {
        text-align: center;
    }
    .footer-contact p, .footer-social {
        justify-content: center;
    }
    
    .description-grid {
        grid-template-columns: 1fr;
    }
}


/* additional */

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* ========== Service Description Grid Styles ========== */

.service-description-section {
    padding: 60px 0;
    background-color: var(--white);
}

.description-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 50px;
}

.description-item h4 {
    font-size: 1.3rem;
    color: var(--dark-text);
    margin-top: 0;
    margin-bottom: 10px;
    border-left: 3px solid var(--primary-blue);
    padding-left: 15px;
}
html[dir="rtl"] .description-item h4 {
    border-left: none;
    border-right: 3px solid var(--primary-blue);
    padding-left: 0;
    padding-right: 15px;
}

.description-item p {
    margin: 0;
    color: var(--light-text);
    line-height: 1.7;
}

/* ========== RTL Styles ========== */
html[dir="rtl"] {
    --font-family: 'Rubik', sans-serif;
}

html[dir="rtl"] body {
    text-align: right;
}

html[dir="rtl"] .header-contact {
    text-align: left;
}

html[dir="rtl"] .language-dropdown {
    right: auto;
    left: 0;
}

@media (max-width: 768px) {

    html[dir="rtl"] .nav-links {
        right: auto;
        left: -100%;
        transition: left 0.5s ease-in-out;
    }

    html[dir="rtl"] .nav-links.active {
        left: 0;
    }
    html[dir="rtl"] .footer-container {
        text-align: center;
    }
    html[dir="rtl"] .footer-contact p, .footer-social {
        justify-content: center;
    }
    
}


html[dir="rtl"] .hero-container {
    direction: rtl;
}

html[dir="rtl"] .about-container {
    direction: rtl;
}

html[dir="rtl"] .about-stats {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

html[dir="rtl"] .post-meta {
    direction: ltr;
    justify-content: flex-end;
}

html[dir="rtl"] .footer-container {
    direction: rtl;
}

html[dir="rtl"] .footer-contact p {
    direction: rtl;
}

html[dir="rtl"] .footer-social {
    direction: rtl;
}
