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

body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-weight: 700;
    background: #f5f5f5;
}

/* Navigation */
.navbar-custom {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    color: white !important;
    font-size: 0.95rem;
    font-weight: bold;
    margin-left: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.navbar-logo {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-link {
    color: white !important;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.85rem;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.lang-switch {
    background: white;
    border-radius: 25px;
    padding: 4px;
    display: inline-block;
    margin-right: 10px;
}

.lang-btn {
    border: none;
    background: transparent;
    padding: 6px 15px;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s;
    font-weight: bold;
    font-size: 0.8rem;
}

.lang-btn.active {
    background: #f6a623;
    color: white;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .navbar-brand span {
        font-size: 0.8rem;
    }

    .navbar-logo {
        height: 30px;
    }

    .nav-link {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .lang-btn {
        font-size: 0.7rem;
        padding: 5px 12px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-container {
        position: fixed;
        top: 60px;
        right: 0;
        left: auto;
        width: 80%;
        max-width: 300px;
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        box-shadow: -4px 0 10px rgba(0,0,0,0.2);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-container.active {
        transform: translateX(0);
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 15px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1rem;
    }

    .lang-switch {
        margin: 20px 0 0 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .lang-btn {
        font-size: 0.9rem;
        padding: 10px 25px;
    }

    .navbar-brand span {
        font-size: 0.7rem;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Slideshow */
.slideshow {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 40px;
    text-align: center;
}

.slide-overlay h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Slideshow Controls */
.slide-btn {
    background: linear-gradient(135deg, rgba(246,166,35,0.95) 0%, rgba(255,140,0,0.95) 100%);
    border: none;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3),
                0 0 0 0 rgba(246,166,35,0.5);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    overflow: hidden;
}

.slide-btn.prev {
    left: 30px;
}

.slide-btn.next {
    right: 30px;
}

.slide-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.slide-btn:hover::before {
    width: 100%;
    height: 100%;
}

.slide-btn:hover {
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4),
                0 0 0 8px rgba(246,166,35,0.2);
}

.slide-btn:active {
    transform: translateY(-50%) scale(1.05);
}

.slide-btn span {
    position: relative;
    z-index: 1;
}

.slide-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slide-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.slide-indicator.active {
    background: #f6a623;
    width: 30px;
    border-radius: 6px;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #f6a623;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

/* Responsive: Keep 4 cards in 1 row on all screen sizes */
@media (max-width: 1200px) {
    .about-content {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .about-content {
        gap: 10px;
    }

    .about-card {
        padding: 20px 10px;
    }

    .about-card h3 {
        font-size: 0.9rem;
    }

    .about-card p {
        font-size: 0.8rem;
    }

    .about-card .service-icon img {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Mobile devices - 600px and below */
@media (max-width: 600px) {
    .container {
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

    .about-content {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .about-card {
        padding: 30px 20px !important;
    }

    .about-card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 10px !important;
        line-height: 1.4 !important;
    }

    .about-card p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }

    .about-card .service-icon img {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 15px !important;
    }
}


.about-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    color: #1f2937;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.about-card .service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-card h3 {
    margin-bottom: 15px;
    color: #1f2937;
}

.about-card p {
    color: #4b5563;
}

/* Services */
.services-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

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

.service-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

/* Contact Cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.contact-cards .contact-card:nth-child(1),
.contact-cards .contact-card:nth-child(2),
.contact-cards .contact-card:nth-child(3) {
    grid-column: span 2;
}

.contact-cards .contact-card:nth-child(4) {
    grid-column: 2 / 4;
}

.contact-cards .contact-card:nth-child(5) {
    grid-column: 4 / 6;
}

/* Tablet responsive for contact cards */
@media (max-width: 992px) and (min-width: 769px) {
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-cards .contact-card:nth-child(4),
    .contact-cards .contact-card:nth-child(5) {
        grid-column: span 1;
        grid-column-start: auto;
    }

    .contact-cards .contact-card:nth-child(5) {
        grid-column-start: 1;
        grid-column-end: 3;
        max-width: 50%;
        margin: 0 auto;
    }
}

.contact-card {
    background: linear-gradient(135deg, #f6a623 0%, #ff8c00 100%);
    padding: 30px;
    border-radius: 15px;
    color: white;
    text-align: center;
    box-shadow: 0 10px 30px rgba(246, 166, 35, 0.3);
    width: 100%;
}

.contact-card h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-card .phone-number {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 20px 0;
    direction: ltr;
    unicode-bidi: embed;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.social-btn:hover {
    background: white;
    color: #f6a623;
    transform: scale(1.1);
}

/* Location */
.location-section {
    padding: 80px 0;
    background: white;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 40px;
}

/* Registration Form */
.registration-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-control, .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: #764ba2;
    box-shadow: 0 0 0 0.2rem rgba(118, 75, 162, 0.25);
}

.btn-submit {
    background: linear-gradient(135deg, #f6a623 0%, #ff8c00 100%);
    border: none;
    color: white;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(246, 166, 35, 0.3);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(246, 166, 35, 0.4);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    text-align: center;
}

.footer-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    direction: rtl;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .slideshow {
        height: 300px;
    }

    .slide-overlay h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

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

    .navbar-brand {
        font-size: 1rem;
        margin-left: 10px;
    }

    .nav-menu {
        justify-content: center;
        margin-top: 10px;
    }

    .nav-link {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .lang-switch {
        margin-right: 10px;
    }

    .slide-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .slide-btn.prev {
        left: 15px;
    }

    .slide-btn.next {
        right: 15px;
    }

    .slide-indicators {
        bottom: 20px;
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    /* Slideshow */
    .slideshow {
        height: 300px;
    }

    .slide-overlay {
        padding: 20px;
    }

    .slide-overlay h2 {
        font-size: 1.5rem;
    }

    .slide-overlay p {
        font-size: 0.9rem;
    }

    /* Sections */
    .about-section,
    .services-section,
    .location-section,
    .registration-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .section-title::after {
        width: 60px;
        height: 3px;
    }

    /* About Section - Text */
    #aboutDesc,
    #aboutDesc2 {
        font-size: 1rem !important;
        padding: 0 15px;
    }

    /* Services Cards */
    .service-card {
        padding: 20px;
    }

    .service-card .service-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    /* Contact Section */
    .contact-card {
        padding: 20px;
        margin-bottom: 15px;
    }

    .contact-card h3 {
        font-size: 1.1rem;
    }

    .phone-number {
        font-size: 1.3rem;
    }

    .social-links {
        gap: 10px;
    }

    .social-btn img {
        width: 36px !important;
        height: 36px !important;
    }

    /* Map Container */
    .map-container {
        height: 300px;
    }

    /* Registration Form */
    .form-container {
        padding: 20px;
    }

    .form-label {
        font-size: 0.95rem;
    }

    .form-control,
    .form-select {
        font-size: 0.9rem;
        padding: 10px;
    }

    .btn-submit {
        padding: 12px;
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: 30px 0;
    }

    .footer-info {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-info > div {
        font-size: 0.9rem;
    }

    /* Location Description */
    #locationDesc {
        font-size: 0.9rem !important;
        line-height: 1.8;
    }
}

@media (max-width: 480px) {
    /* Navbar */
    .navbar-brand span {
        font-size: 0.6rem !important;
        max-width: 150px;
    }

    .navbar-logo {
        height: 25px;
    }

    /* Slideshow */
    .slideshow {
        height: 250px;
    }

    .slide-overlay {
        padding: 15px;
    }

    .slide-overlay h2 {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }

    .slide-overlay p {
        font-size: 0.8rem;
    }

    .slide-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .slide-btn.prev {
        left: 10px;
    }

    .slide-btn.next {
        right: 10px;
    }

    .slide-indicator {
        width: 8px;
        height: 8px;
    }

    /* Sections */
    .about-section,
    .services-section,
    .location-section,
    .registration-section {
        padding: 30px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    #aboutDesc,
    #aboutDesc2 {
        font-size: 0.9rem !important;
    }

    /* About Cards - Already handled above */

    /* Services */
    .row.g-4 {
        gap: 15px !important;
    }

    .service-card {
        padding: 15px;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }

    /* Contact Cards */
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-cards .contact-card:nth-child(4),
    .contact-cards .contact-card:nth-child(5) {
        grid-column: span 1;
    }

    .contact-cards .contact-card:nth-child(4),
    .contact-cards .contact-card:nth-child(5) {
        grid-column-start: auto;
    }

    .contact-card {
        padding: 15px;
    }

    .contact-card h3 {
        font-size: 1rem;
    }

    .phone-number {
        font-size: 1.2rem;
        margin: 10px 0;
    }

    .social-btn img {
        width: 32px !important;
        height: 32px !important;
    }

    /* Map */
    .map-container {
        height: 250px;
    }

    #locationDesc {
        font-size: 0.8rem !important;
        line-height: 1.6;
    }

    /* Form */
    .form-container {
        padding: 15px;
    }

    .form-label {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .form-control,
    .form-select,
    textarea {
        font-size: 0.85rem !important;
        padding: 8px !important;
    }

    .btn-submit {
        padding: 10px;
        font-size: 0.95rem;
    }

    /* Footer */
    .footer {
        padding: 20px 0;
    }

    .footer-info > div {
        font-size: 0.85rem;
    }

    #copyright {
        font-size: 0.8rem !important;
        margin-top: 20px !important;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .navbar-brand span {
        font-size: 0.5rem !important;
        max-width: 120px;
    }

    .slideshow {
        height: 200px;
    }

    .slide-overlay h2 {
        font-size: 1rem;
    }

    .slide-overlay p {
        font-size: 0.7rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .about-content {
        gap: 2px;
        padding: 0 2px;
    }

    .about-card {
        padding: 8px 2px;
    }

    .about-card h3,
    .service-card h3,
    .contact-card h3 {
        font-size: 0.55rem;
        margin-bottom: 3px;
    }

    .about-card p,
    .service-card p {
        font-size: 0.5rem;
        line-height: 1.2;
    }

    .about-card .service-icon img {
        width: 24px !important;
        height: 24px !important;
        margin-bottom: 3px;
    }
}
