
/* Global Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --orange-color: #ff6b35;
    --blue-color: #0d6efd;
    --dark-blue: #1a1a2e;
    --gray-bg: #f5f5f5;
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
    color: var(--text-dark);
}

main {
    background-color: #ffffff;
    min-height: calc(100vh - 200px);
    padding-top: 0; /* No padding - hero section will handle spacing */
}

/* Navigation - Clean Professional Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    background-color: #f8f9fa;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.navbar {
    background: transparent !important;
    box-shadow: none;
    padding: 0.875rem 0;
    border-bottom: none;
    position: relative;
    width: 100%;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-dark {
    background: transparent !important;
}

.navbar-brand {
    color: var(--text-dark) !important;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0;
    margin-right: 2rem;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand img {
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    background: transparent;
}

.navbar-brand:hover img {
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.15));
}

/* Navigation Links - Clean and Simple */
.navbar-nav.mx-auto .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1.25rem !important;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 0 0.15rem;
    position: relative;
    letter-spacing: 0.3px;
}

.navbar-nav.mx-auto .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-dark) !important;
}

.navbar-nav.mx-auto .nav-link.active {
    background-color: rgba(0, 0, 0, 0.08);
    color: var(--text-dark) !important;
    font-weight: 600;
}

.navbar-nav.mx-auto .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background-color: var(--orange-color);
    border-radius: 1px;
}

/* Right Side Navigation (Language & Login) */
.navbar-nav:not(.mx-auto) {
    gap: 0.75rem;
}

.navbar-nav:not(.mx-auto) .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.navbar-nav:not(.mx-auto) .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-dark) !important;
}

/* Login Button - Orange Button */
.navbar-nav .btn-primary {
    background-color: #ff6b35 !important;
    color: #ffffff !important;
    border: 1.5px solid #ff6b35;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
    white-space: nowrap;
}

.navbar-nav .btn-primary:hover {
    background-color: #e55a2b !important;
    color: #ffffff !important;
    border-color: #e55a2b;
    box-shadow: 0 3px 8px rgba(255, 107, 53, 0.4);
    transform: translateY(-1px);
}

/* Logout Button */
.navbar-nav .btn-link {
    background-color: transparent !important;
    border: 1.5px solid rgba(0, 0, 0, 0.2);
    color: var(--text-dark) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.navbar-nav .btn-link:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
    border-color: var(--text-dark);
    color: var(--text-dark) !important;
    transform: translateY(-1px);
}

/* Language Dropdown */
.navbar-nav .dropdown-toggle {
    color: var(--text-dark) !important;
    font-weight: 500;
}

.navbar-nav .dropdown-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-dark) !important;
}

/* Flag Icons */
.fi {
    width: 1.5em;
    height: 1.125em;
    display: inline-block;
    vertical-align: middle;
    border-radius: 2px;
}

.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
}

.navbar-nav .dropdown-item {
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
}

.navbar-nav .dropdown-item:hover {
    background-color: #f8f9fa;
}

.navbar-nav .dropdown-item.active {
    background-color: var(--orange-color);
    color: #ffffff;
}

/* Mobile Toggler */
.navbar-toggler {
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.15);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26, 26, 46, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Modern Hero Section */
.hero-section-modern {
    background-color: #e3f2fd;
    padding: 80px 0 2.5rem 0;
    margin-bottom: 0;
    margin-top: 0;
}

.hero-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Hero Section - White Background */
.hero-section {
    background-color: #ffffff;
    padding: 4rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
}

.hero-content h1 .text-primary {
    color: var(--blue-color) !important;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 4px;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.btn-orange {
    background-color: var(--orange-color);
    color: #ffffff;
    border: none;
}

.btn-orange:hover {
    background-color: #e55a2b;
    color: #ffffff;
}

.btn-primary {
    background-color: var(--orange-color) !important;
    border-color: var(--orange-color) !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #e55a2b !important;
    border-color: #e55a2b !important;
    color: #ffffff !important;
}

.btn-outline-primary {
    border: 2px solid var(--blue-color) !important;
    color: var(--blue-color) !important;
    background-color: #ffffff !important;
}

.btn-outline-primary:hover {
    background-color: var(--blue-color) !important;
    color: #ffffff !important;
    border-color: var(--blue-color) !important;
}

.btn-outline-blue {
    border: 2px solid var(--blue-color);
    color: var(--blue-color);
    background-color: #ffffff;
}

.btn-outline-blue:hover {
    background-color: var(--blue-color);
    color: #ffffff;
}

.hero-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.hero-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.4);
}

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

/* Modern Section Styles */
.section-modern {
    background-color: #ffffff;
    padding: 2.5rem 0;
    margin-bottom: 0;
}

.section-modern:last-child {
    margin-bottom: 0;
}

/* Section with gray background */
.section-modern.section-bg-gray {
    background-color: #f8f9fa;
}

.section-modern .card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background-color: #ffffff !important;
}

.section-modern h2 {
    color: var(--dark-blue);
    font-weight: 700;
}

.section-bg-white {
    background-color: #ffffff;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.section-bg-gray {
    background-color: #f8f9fa;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

/* Service Cards */
.service-card-modern {
    border: 1px solid #dee2e6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
}

.service-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    border-color: #0d6efd;
}

.service-card {
    background-color: var(--gray-bg);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.service-icon {
    margin-bottom: 1.5rem;
}

.icon-wrapper-modern {
    width: 100px;
    height: 100px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-wrapper-modern i {
    color: #4facfe;
    font-size: 2.5rem;
}

/* AI Service Icon - Purple Gradient */
.icon-wrapper-modern.icon-ai {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.icon-wrapper-modern.icon-ai i {
    color: #ffffff;
    font-size: 2.5rem;
}

/* Game Service Icon - Pink Gradient */
.icon-wrapper-modern.icon-game {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.icon-wrapper-modern.icon-game i {
    color: #ffffff;
    font-size: 2.5rem;
}

/* Fintech Service Icon - Blue Gradient */
.icon-wrapper-modern.icon-fintech {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.icon-wrapper-modern.icon-fintech i {
    color: #ffffff;
    font-size: 2.5rem;
}

/* Content Service Icon - Pink/Yellow Gradient */
.icon-wrapper-modern.icon-content {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    box-shadow: 0 4px 15px rgba(250, 112, 154, 0.3);
}

.icon-wrapper-modern.icon-content i {
    color: #ffffff;
    font-size: 2.5rem;
}

/* Default Service Icon - Green Gradient */
.icon-wrapper-modern.icon-default {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 4px 15px rgba(67, 233, 123, 0.3);
}

.icon-wrapper-modern.icon-default i {
    color: #ffffff;
    font-size: 2.5rem;
}

.service-card-modern:hover .icon-wrapper-modern {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.icon-wrapper i {
    color: #4facfe;
    font-size: 2rem;
}

.service-card:hover .icon-wrapper {
    transform: scale(1.1);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* Modern Service List Cards */
.service-list-card-modern {
    border: 1px solid #dee2e6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
}

.service-list-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    border-color: #dee2e6;
}

.icon-circle-modern {
    width: 50px;
    height: 50px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle-modern i {
    color: #4facfe;
    font-size: 1.25rem;
}

/* Service List Cards */
.service-list-card {
    background-color: var(--gray-bg);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
}

.service-list-card .icon-circle {
    width: 60px;
    height: 60px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-list-card .icon-circle i {
    color: #4facfe;
    font-size: 1.5rem;
}

.service-list-card ul {
    margin-top: 1rem;
}

.service-list-card ul li {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.service-list-card ul li i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

/* Modern Blog Cards */
.blog-card-modern {
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.blog-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    border-color: #0d6efd;
}

/* Blog Styles */
.blog-content {
    text-align: justify;
}

.blog-content p {
    text-align: justify;
}

.blog-content img {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.blog-card {
    background-color: var(--gray-bg);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

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

.blog-card .card-body {
    padding: 1.5rem;
}

.blog-card .card-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.blog-card .card-text {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.blog-card .btn-read-more {
    background-color: transparent;
    color: var(--orange-color);
    border: 2px solid var(--orange-color);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-card .btn-read-more:hover {
    background-color: var(--orange-color);
    color: #ffffff;
}

.blog-card .card-footer {
    background-color: transparent;
    border-top: none;
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
}

.pagination .page-link {
    color: var(--text-dark);
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: var(--blue-color);
    color: #ffffff;
    border-color: var(--blue-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--blue-color);
    border-color: var(--blue-color);
    color: #ffffff;
}

/* Modern Feature Cards */
.feature-card-modern {
    padding: 1.5rem;
}

.feature-icon-modern {
    width: 60px;
    height: 60px;
    background-color: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.feature-icon-modern i {
    color: var(--orange-color);
    font-size: 1.75rem;
}

.feature-card-modern:hover .feature-icon-modern {
    background-color: transparent;
}

.feature-card-modern:hover .feature-icon-modern i {
    color: var(--orange-color);
    transform: scale(1.1);
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    margin-bottom: 1rem;
}

.feature-icon i {
    color: var(--blue-color);
    font-size: 2.5rem;
}

.feature-card h5 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    margin: 0;
}

/* Modern CTA Section */
.cta-card-modern {
    border: none;
    background-color: var(--blue-color);
    border-radius: 0;
}

.cta-card-modern .card-body {
    color: #ffffff;
}

.cta-card-modern h2 {
    color: #ffffff;
}

.cta-card-modern p {
    color: rgba(255, 255, 255, 0.9);
}

.cta-card-modern .btn {
    background-color: var(--orange-color);
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
}

.cta-card-modern .btn:hover {
    background-color: #e55a2b;
    color: #ffffff;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, #2d5a7c 0%, #4a6fa5 100%);
    color: #ffffff;
    padding: 3rem 0;
    margin: 0;
    width: 100%;
    border-radius: 0;
}

.cta-section h2 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
}

.cta-section .btn-primary {
    background-color: var(--orange-color) !important;
    border-color: var(--orange-color) !important;
    color: #ffffff !important;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cta-section .btn-primary:hover {
    background-color: #e55a2b !important;
    border-color: #e55a2b !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}


/* Footer */
footer {
    background: linear-gradient(135deg, #1e3a52 0%, #2d4a6b 100%);
    color: #ffffff;
    margin-top: 0;
    padding: 3rem 0 1.5rem;
    border-top: none;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

footer p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffffff;
}

footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.social-links a:hover {
    transform: scale(1.2);
    color: #ffffff;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0 1rem;
}

footer .text-center {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Footer Contact Information */
footer .list-unstyled li i {
    width: 20px;
    text-align: center;
    color: var(--orange-color);
}

footer .list-unstyled li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

footer .list-unstyled li a:hover {
    color: #ffffff;
    padding-left: 3px;
}

footer h6 {
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
    font-size: 1rem;
}

/* Footer Appointment Button */
.btn-footer-appointment {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-align: center;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-footer-appointment::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transition: left 0.4s ease;
    z-index: 0;
}

.btn-footer-appointment:hover::before {
    left: 0;
}

.btn-footer-appointment:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-footer-appointment i {
    font-size: 1.125rem;
    margin-right: 0.5rem;
    position: relative;
    z-index: 1;
    animation: pulse-icon 2s infinite;
}

/* Ensure text is above the animated background */
.btn-footer-appointment * {
    position: relative;
    z-index: 1;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Admin Dashboard */
.admin-stats-card {
    border-left: 4px solid;
}

/* Responsive */
@media (max-width: 768px) {
    main {
        padding-top: 0; /* No padding - hero section will handle spacing */
    }
    
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        width: 100%;
    }
    
    .hero-section {
        padding: 70px 0 2rem 0;
        min-height: auto;
        margin-bottom: 0;
    }
    
    .hero-section-modern {
        padding: 70px 0 2rem 0 !important;
    }
    
    /* Mobile spacing for sections with header offset */
    section.section-modern[style*="80px"] {
        padding: 70px 0 2rem 0 !important;
    }
    
    .section-modern {
        padding: 2rem 0;
        margin-bottom: 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-nav.mx-auto {
        text-align: center;
        margin-top: 1rem;
        background-color: rgba(255, 255, 255, 0.1);
        padding: 0.75rem;
        border-radius: 8px;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .navbar-nav.mx-auto .nav-link {
        margin: 0.25rem 0;
        display: block;
    }
    
    .navbar-nav:not(.mx-auto) {
        text-align: center;
        margin-top: 0.75rem;
        gap: 0.5rem;
    }
    
    .navbar-nav .btn-primary,
    .navbar-nav .btn-link {
        width: 100%;
        margin-top: 0.25rem;
    }
    
    .navbar-nav .dropdown {
        width: 100%;
    }
    
    .navbar-nav .dropdown-toggle {
        width: 100%;
        text-align: center;
    }
    
    .cta-section {
        text-align: center;
    }
    
    .cta-section .btn {
        margin-top: 1rem;
    }
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .navbar-nav {
    flex-direction: row-reverse;
}

[dir="rtl"] .me-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}

[dir="rtl"] .ms-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* RTL Support for Card Body */
[dir="rtl"] .card-body {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .card-body * {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .card-body p,
[dir="rtl"] .card-body div,
[dir="rtl"] .card-body span,
[dir="rtl"] .card-body label,
[dir="rtl"] .card-body strong {
    text-align: right !important;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* Print Styles */
@media print {
    .navbar, footer, .btn {
        display: none;
    }
}

/* AI Services Cards Hover Effects */
.section-modern .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-modern .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.section-modern .card .fas {
    transition: transform 0.3s ease;
}

.section-modern .card:hover .fas {
    transform: scale(1.1);
}

/* RTL Support for AI Generated Content */
.subtitle-content[dir="rtl"],
.subtitle-content[dir="rtl"] * {
    direction: rtl;
    text-align: right !important;
}

.subtitle-content[dir="rtl"] p,
.subtitle-content[dir="rtl"] h1,
.subtitle-content[dir="rtl"] h2,
.subtitle-content[dir="rtl"] h3,
.subtitle-content[dir="rtl"] h4,
.subtitle-content[dir="rtl"] h5,
.subtitle-content[dir="rtl"] h6,
.subtitle-content[dir="rtl"] ul,
.subtitle-content[dir="rtl"] ol,
.subtitle-content[dir="rtl"] li,
.subtitle-content[dir="rtl"] div,
.subtitle-content[dir="rtl"] span,
.subtitle-content[dir="rtl"] strong,
.subtitle-content[dir="rtl"] em,
.subtitle-content[dir="rtl"] a {
    direction: rtl;
    text-align: right !important;
}

.subtitle-content[dir="rtl"] ul,
.subtitle-content[dir="rtl"] ol {
    padding-right: 1.5rem;
    padding-left: 0;
}

.subtitle-content[dir="rtl"] li {
    margin-right: 0.5rem;
    margin-left: 0;
}

.subtitle-content[dir="rtl"] blockquote {
    border-right: 4px solid #ddd;
    border-left: none;
    padding-right: 1rem;
    padding-left: 0;
    margin-right: 1rem;
    margin-left: 0;
    text-align: right !important;
}

.subtitle-content[dir="rtl"] img {
    float: right;
    margin-left: 1rem;
    margin-right: 0;
}

.subtitle-content[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

.subtitle-content[dir="ltr"] * {
    direction: ltr;
    text-align: left;
}

