/* ===== CUSTOM CSS FOR BUSINESS DIRECT ===== */

/* Import Arabic Font */
@import url('https://cdn.weiihou.com/fonts.css?display=swap');

/* ===== ROOT VARIABLES ===== */
:root {
    /* Brand Colors */
    --primary-gradient-start: #e66a27;
    --primary-gradient-end: #d98c2e;
    --secondary-color: #008c8c;
    --secondary-hover: #006666;
    
    /* Neutral Colors */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --black: #000000;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    --hero-gradient: linear-gradient(135deg, rgba(230, 106, 39, 0.9), rgba(217, 140, 46, 0.9));
    
    /* Shadows */
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.7s ease;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'RB-Regular', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    color: var(--medium-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* ===== HEADER STYLES ===== */
.header-section {
    position: relative;
    z-index: 1000;
}

/* Default Navbar - Transparent */
.navbar {
    padding: 0.5rem 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(15px);
    background: transparent;
}

/* Transparent Navbar State */
.navbar-transparent {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-transparent .nav-link {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.navbar-transparent .navbar-brand .brand-name {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    -webkit-text-fill-color: #fff;
}

.navbar-transparent .navbar-brand .brand-subtitle {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.navbar-transparent .cta-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.navbar-transparent .cta-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.navbar-transparent .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff !important;
}

/* Scrolled/Compact Navbar State */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.4rem 0;
    backdrop-filter: blur(20px);
}

.navbar.scrolled .nav-link {
    color: var(--dark-gray) !important;
    text-shadow: none;
    padding: 0.4rem 0.8rem !important;
}

.navbar.scrolled .navbar-brand .brand-name {
    color: var(--primary-color);
    text-shadow: none;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
}

.navbar.scrolled .navbar-brand .brand-subtitle {
    color: var(--medium-gray);
    text-shadow: none;
    font-size: 0.8rem;
}

.navbar.scrolled .logo-container {
    width: 40px;
    height: 40px;
}

.navbar.scrolled .cta-btn {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.navbar.scrolled .cta-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* ===== DROPDOWN MENU STYLES ===== */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(230, 106, 39, 0.2);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 200px;
}

.dropdown-item {
    color: var(--dark-gray);
    padding: 0.7rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: linear-gradient(135deg, rgba(230, 106, 39, 0.1), rgba(217, 140, 46, 0.1));
    color: var(--primary-gradient-start);
    transform: translateX(5px);
}

.dropdown-item:active {
    background: linear-gradient(135deg, rgba(230, 106, 39, 0.2), rgba(217, 140, 46, 0.2));
}

/* Transparent navbar dropdown styles */
.navbar-transparent .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar-transparent .dropdown-item {
    color: var(--dark-gray);
}

.navbar-transparent .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(230, 106, 39, 0.15), rgba(217, 140, 46, 0.15));
    color: var(--primary-gradient-start);
}

/* Dropdown toggle arrow */
.dropdown-toggle::after {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Hidden State for Scroll Down */
.navbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

/* Show State for Scroll Up */
.navbar.show {
    transform: translateY(0);
    opacity: 1;
}

.navbar-brand {
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-container {
    width: 50px;
    height: 50px;
    /* background: var(--primary-gradient); */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.logo {
    width: 80%;
    height: auto;
}

.brand-name {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.brand-subtitle {
    color: var(--medium-gray);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-link {
    color: var(--dark-gray) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
    background: rgba(0, 140, 140, 0.1);
    transform: translateY(-2px);
}

.cta-btn {
    background: var(--secondary-color);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.cta-btn:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Hero Carousel Styles */
.hero-carousel {
    height: 100vh;
}

.hero-carousel .carousel-item {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-carousel .carousel-item .container {
    position: relative;
    z-index: 2;
}

/* Carousel Controls */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 5%;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    opacity: 1;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background-size: 20px;
    transition: var(--transition-fast);
}

.hero-carousel .carousel-control-prev-icon:hover,
.hero-carousel .carousel-control-next-icon:hover {
    background-color: var(--white);
    transform: scale(1.1);
}

/* Carousel Indicators */
.hero-carousel .carousel-indicators {
    bottom: 30px;
    margin-bottom: 0;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--white);
    transition: var(--transition-fast);
}

.hero-carousel .carousel-indicators .active {
    background-color: var(--white);
    transform: scale(1.2);
}

/* Slide Content Animation */
.hero-carousel .carousel-item .hero-content {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.hero-carousel .carousel-item.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.national-image {
    margin-bottom: 2rem;
}

.royal-images {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.royal-frame {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-fast);
}

.royal-frame:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.placeholder-image {
    text-align: center;
    color: var(--white);
}

.placeholder-image i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #ffd700;
}

.hero-title {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

/* ===== TYPEWRITER EFFECT STYLES ===== */
.typewriter {
    overflow: hidden;
    border-right: 3px solid #ffd700;
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

.typewriter.typing-complete {
    border-right: none;
    animation: none;
}

@keyframes typing {
    from { 
        width: 0;
    }
    to { 
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to { 
        border-color: transparent;
    }
    50% { 
        border-color: #ffd700;
    }
}

/* Responsive typewriter effect */
@media (max-width: 768px) {
    .typewriter {
        animation: typing 2.5s steps(30, end), blink-caret 0.75s step-end infinite;
    }
}

@media (max-width: 480px) {
    .typewriter {
        animation: typing 2s steps(20, end), blink-caret 0.75s step-end infinite;
    }
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.hero-description {
    color: var(--white);
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-light);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--secondary-color);
}

/* ===== SECTIONS STYLES ===== */
.about-section {
    background: var(--light-gray);
    padding: 5rem 0;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-fast);
    height: 100%;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-light);
}

.value-icon i {
    font-size: 2rem;
    color: var(--white);
}

.value-card h4 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 5rem 0;
    background: var(--white);
}

/* Service Card Styles */
.service-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center; /* Center all content */
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #008c8c 0%, #008c8c 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #008c8c 0%, #008c8c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto; /* Center the icon */
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(102, 234, 234, 0.3);
}

.service-icon i {
    font-size: 2rem;
    color: #fff;
}

.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center; /* Center content text */
}

.service-content h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.service-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex: 1;
    text-align: right; /* Keep list items right-aligned for Arabic */
}

.service-features li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
    padding-right: 1.5rem;
    line-height: 1.5;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 0.5rem;
    color: #008c8c;
    font-weight: bold;
}

.service-subsection {
    margin-bottom: 1.5rem;
    text-align: right; /* Keep subsections right-aligned for Arabic */
}

.service-subsection h6 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Right-align for Arabic */
}

.service-subsection h6 i {
    margin-left: 0.5rem;
    color: #008c8c;
}

.show-more-btn {
    margin-top: auto;
    border-color: #008c8c;
    color: #008c8c;
    transition: all 0.3s ease;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.show-more-btn:hover {
    background-color: #008c8c;
    border-color: #008c8c;
    color: #fff;
    transform: translateY(-2px);
}

.show-more-btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.show-more-btn.expanded i {
    transform: rotate(45deg);
}

/* Animation for expanding content */
.full-list, .service-details {
    transition: all 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--secondary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    background: var(--primary-gradient);
    transform: scale(1.1);
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.service-content h4 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-right: 1.5rem;
    color: var(--medium-gray);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ===== VISION & MISSION SECTION ===== */
.vision-mission-section {
    background: var(--light-gray);
    padding: 5rem 0;
}

.vision-card, .mission-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    transition: var(--transition-fast);
    height: 100%;
}

.vision-card:hover, .mission-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.vision-icon, .mission-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.vision-icon i, .mission-icon i {
    font-size: 2rem;
    color: var(--white);
}

.vision-card h3, .mission-card h3 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

/* ===== STATISTICS SECTION ===== */
.statistics-section {
    background: var(--secondary-color);
    color: var(--white);
    padding: 4rem 0;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    backdrop-filter: blur(10px);
}

.stat-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
}

/* ===== PARTNERS SECTION ===== */
.partners-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

.partners-section .section-title {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
}

.partners-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-radius: 2px;
}

.partners-swiper {
    padding: 20px 0 40px 0;
    overflow: hidden;
}

.partners-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
}

.partner-item {
    background: #fff;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.partner-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.15);
    border-color: #007bff;
}

.partner-item i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.partner-item:hover i {
    color: #0056b3;
    transform: scale(1.1);
}

.partner-item h5 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.4;
}

/* Swiper Navigation */
.partners-swiper .swiper-button-next,
.partners-swiper .swiper-button-prev {
    color: #007bff;
    background: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.partners-swiper .swiper-button-next:hover,
.partners-swiper .swiper-button-prev:hover {
    background: #007bff;
    color: #fff;
    transform: scale(1.1);
}

.partners-swiper .swiper-button-next::after,
.partners-swiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: 700;
}

/* Swiper Pagination */
.partners-swiper .swiper-pagination {
    bottom: 0;
}

.partners-swiper .swiper-pagination-bullet {
    background: #007bff;
    opacity: 0.3;
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}

.partners-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

.partners-carousel {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.partner-logo {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

.logo-placeholder {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.logo-placeholder:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
}

.logo-placeholder i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.logo-placeholder p {
    color: var(--medium-gray);
    font-weight: 600;
    margin: 0;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: var(--light-gray);
    padding: 5rem 0;
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

.form-label {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 140, 140, 0.25);
}

/* ===== FINAL CTA SECTION ===== */
.final-cta-section {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 30px;
    transition: var(--transition-fast);
}

/* ===== FOOTER ===== */
.footer-section {
    background: var(--dark-gray);
    color: var(--white);
    text-align: center;
}

/* ===== BUTTON STYLES ===== */
.btn-primary {
    background: var(--secondary-color);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-primary {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-outline-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .royal-images {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .royal-frame {
        padding: 1rem;
    }
    
    .placeholder-image i {
        font-size: 2rem;
    }
    
    .partners-carousel {
        flex-direction: column;
    }
    
    .partners-section {
        padding: 60px 0;
    }
    
    .partner-item {
        padding: 25px 15px;
        height: 160px;
    }
    
    .partner-item i {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .partner-item h5 {
        font-size: 1rem;
    }
    
    .partners-swiper .swiper-button-next,
    .partners-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .partners-swiper .swiper-button-next::after,
    .partners-swiper .swiper-button-prev::after {
        font-size: 14px;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        margin: 0.5rem 0;
        width: 100%;
    }
    
    .cta-buttons .btn {
        display: block;
        margin: 0.5rem 0;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .brand-name {
        font-size: 1.2rem;
    }
    
    .navbar-brand {
        flex-direction: row-reverse;
        text-align: right;
    }
    
    .logo-container {
        margin-bottom: 0;
        margin-left: 1rem;
    }
    
    .brand-text {
        text-align: right;
    }
    
    /* Mobile dropdown fixes */
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        border: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.98);
        margin-top: 0;
        border-radius: 0;
        width: 100%;
    }
    
    .dropdown-item {
        padding: 0.8rem 1.5rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .nav-item.dropdown .dropdown-menu {
        display: none;
    }
    
    .nav-item.dropdown.show .dropdown-menu {
        display: block;
    }
    
    .partners-section .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .partner-item {
        padding: 20px 10px;
        height: 140px;
    }
    
    .partner-item i {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .partner-item h5 {
        font-size: 0.9rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: var(--primary-gradient);
}

.shadow-custom {
    box-shadow: var(--shadow-medium);
}

.border-radius-custom {
    border-radius: 20px;
}

/* ===== LOADING ANIMATION ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Hero Slide Styles */
.hero-slide {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-slide .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

/* Carousel Fade Effect */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transform: none;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    z-index: 1;
    opacity: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    z-index: 0;
    opacity: 0;
    transition: opacity 0s 0.6s;
}

/* Carousel Controls */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 5%;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    opacity: 1;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background-size: 20px;
    transition: var(--transition-fast);
}

.hero-carousel .carousel-control-prev-icon:hover,
.hero-carousel .carousel-control-next-icon:hover {
    background-color: var(--white);
    transform: scale(1.1);
}

/* Carousel Indicators */
.hero-carousel .carousel-indicators {
    bottom: 30px;
    margin-bottom: 0;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--white);
    transition: var(--transition-fast);
}

.hero-carousel .carousel-indicators .active {
    background-color: var(--white);
    transform: scale(1.2);
}

/* Slide Content Animation */
.hero-carousel .carousel-item .hero-content {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.hero-carousel .carousel-item.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.national-image {
    margin-bottom: 2rem;
}

.royal-images {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.royal-frame {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-fast);
}

.royal-frame:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.placeholder-image {
    text-align: center;
    color: var(--white);
}

.placeholder-image i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #ffd700;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-light);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--secondary-color);
}

/* ===== SECTIONS STYLES ===== */
.about-section {
    background: var(--light-gray);
    padding: 5rem 0;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-fast);
    height: 100%;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-light);
}

.value-icon i {
    font-size: 2rem;
    color: var(--white);
}

.value-card h4 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 5rem 0;
    background: var(--white);
}

.service-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center; /* Center all content */
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #008c8c 0%, #008c8c 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #008c8c 0%, #008c8c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto; /* Center the icon */
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.service-icon i {
    font-size: 2rem;
    color: #fff;
}

.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center; /* Center content text */
}

.service-content h4 {
    color: #2c5049;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.service-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex: 1;
    text-align: right; /* Keep list items right-aligned for Arabic */
}

.service-features li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
    padding-right: 1.5rem;
    line-height: 1.5;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 0.5rem;
    color: #008c8c;
    font-weight: bold;
}

.service-subsection {
    margin-bottom: 1.5rem;
    text-align: right; /* Keep subsections right-aligned for Arabic */
}

.service-subsection h6 {
    color: #008c8c;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Right-align for Arabic */
}

.service-subsection h6 i {
    margin-left: 0.5rem;
    color: #008c8c;
}

.show-more-btn {
    margin-top: auto;
    border-color: #008c8c;
    color: #008c8c;
    transition: all 0.3s ease;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.show-more-btn:hover {
    background-color: #008c8c;
    border-color: #008c8c;
    color: #fff;
    transform: translateY(-2px);
}

.show-more-btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.show-more-btn.expanded i {
    transform: rotate(45deg);
}

/* Animation for expanding content */
.full-list, .service-details {
    transition: all 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--secondary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    background: var(--primary-gradient);
    transform: scale(1.1);
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.service-content h4 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-right: 1.5rem;
    color: var(--medium-gray);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ===== VISION & MISSION SECTION ===== */
.vision-mission-section {
    background: var(--light-gray);
    padding: 5rem 0;
}

.vision-card, .mission-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    transition: var(--transition-fast);
    height: 100%;
}

.vision-card:hover, .mission-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.vision-icon, .mission-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.vision-icon i, .mission-icon i {
    font-size: 2rem;
    color: var(--white);
}

.vision-card h3, .mission-card h3 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

/* ===== STATISTICS SECTION ===== */
.statistics-section {
    background: var(--secondary-color);
    color: var(--white);
    padding: 4rem 0;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    backdrop-filter: blur(10px);
}

.stat-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
}

/* ===== PARTNERS SECTION ===== */
.partners-section {
    background: var(--white);
    padding: 4rem 0;
}

.partners-carousel {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.partner-logo {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

.logo-placeholder {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.logo-placeholder:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
}

.logo-placeholder i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.logo-placeholder p {
    color: var(--medium-gray);
    font-weight: 600;
    margin: 0;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: var(--light-gray);
    padding: 5rem 0;
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

.form-label {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 140, 140, 0.25);
}

/* ===== FINAL CTA SECTION ===== */
.final-cta-section {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 30px;
    transition: var(--transition-fast);
}

/* ===== FOOTER ===== */
.footer-section {
    background: var(--dark-gray);
    color: var(--white);
    text-align: center;
}

/* ===== BUTTON STYLES ===== */
.btn-primary {
    background: var(--secondary-color);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-primary {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-outline-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .royal-images {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .royal-frame {
        padding: 1rem;
    }
    
    .placeholder-image i {
        font-size: 2rem;
    }
    
    .partners-carousel {
        flex-direction: column;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        margin: 0.5rem 0;
        width: 100%;
    }
    
    .cta-buttons .btn {
        display: block;
        margin: 0.5rem 0;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .brand-name {
        font-size: 1.2rem;
    }
    
   .navbar-brand {
    direction: ltr;
        flex-direction: row-reverse;
        text-align: right;
    }
    
    .logo-container {
        margin-bottom: 0;
        margin-left: 1rem;
    }
    
    .brand-text {
        text-align: right;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: var(--primary-gradient);
}

.shadow-custom {
    box-shadow: var(--shadow-medium);
}

.border-radius-custom {
    border-radius: 20px;
}

/* ===== LOADING ANIMATION ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Hero Slide Styles */
.hero-slide {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-slide .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

/* Carousel Fade Effect */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transform: none;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    z-index: 1;
    opacity: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    z-index: 0;
    opacity: 0;
    transition: opacity 0s 0.6s;
}

/* Carousel Controls */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 5%;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    opacity: 1;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background-size: 20px;
    transition: var(--transition-fast);
}

.hero-carousel .carousel-control-prev-icon:hover,
.hero-carousel .carousel-control-next-icon:hover {
    background-color: var(--white);
    transform: scale(1.1);
}

/* Carousel Indicators */
.hero-carousel .carousel-indicators {
    bottom: 30px;
    margin-bottom: 0;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--white);
    transition: var(--transition-fast);
}

.hero-carousel .carousel-indicators .active {
    background-color: var(--white);
    transform: scale(1.2);
}

/* Slide Content Animation */
.hero-carousel .carousel-item .hero-content {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.hero-carousel .carousel-item.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.national-image {
    margin-bottom: 2rem;
}

.royal-images {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.royal-frame {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-fast);
}

.royal-frame:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.placeholder-image {
    text-align: center;
    color: var(--white);
}

.placeholder-image i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #ffd700;
}

.hero-title {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.hero-description {
    color: var(--white);
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-light);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--secondary-color);
}

/* ===== SECTIONS STYLES ===== */
.about-section {
    background: var(--light-gray);
    padding: 5rem 0;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-fast);
    height: 100%;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-light);
}

.value-icon i {
    font-size: 2rem;
    color: var(--white);
}

.value-card h4 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 5rem 0;
    background: var(--white);
}

.service-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center; /* Center all content */
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #008c8c 0%, #006666 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #008c8c 0%, #006666 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto; /* Center the icon */
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.service-icon i {
    font-size: 2rem;
    color: #fff;
}

.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center; /* Center content text */
}

.service-content h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.service-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Blog Section Styles */
.blog-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.blog-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.blog-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    min-width: 60px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.blog-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.blog-date .month {
    display: block;
    font-size: 0.8rem;
    margin-top: 2px;
}

.blog-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.blog-category {
    background: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    width: fit-content;
}

.blog-author {
    color: #6c757d;
    font-size: 0.85rem;
}

.blog-title {
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.read-more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.read-more-link:hover {
    color: var(--accent-color);
    gap: 12px;
}

.read-more-link i {
    transition: transform 0.3s ease;
}

.read-more-link:hover i {
    transform: translateX(-3px);
}

/* Responsive Design for Blog */
@media (max-width: 768px) {
    .blog-image {
        height: 200px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-date {
        top: 15px;
        right: 15px;
        padding: 8px;
        min-width: 50px;
    }
    
    .blog-date .day {
        font-size: 1.2rem;
    }
    
    .blog-date .month {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .blog-card {
        margin-bottom: 30px;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .blog-content {
        padding: 15px;
    }
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: white;
    text-decoration: none;
}

.whatsapp-float i {
    line-height: 1;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover i {
    transform: rotate(15deg);
}

/* WhatsApp Button Animation */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Tooltip for WhatsApp Button */
.whatsapp-float::before {
    content: "تواصل معنا عبر واتساب";
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.whatsapp-float::after {
    content: "";
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-float:hover::before,
.whatsapp-float:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design for WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 26px;
        bottom: 25px;
        right: 25px;
    }
    
    .whatsapp-float::before {
        font-size: 12px;
        padding: 6px 10px;
        right: 65px;
    }
    
    .whatsapp-float::after {
        right: 55px;
    }
}

@media (max-width: 576px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float::before {
        display: none; /* Hide tooltip on very small screens */
    }
    
    .whatsapp-float::after {
        display: none;
    }
}