/* ========== Global Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    overflow-x: hidden;
    background-color: #f8f9fa;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== Header Section ========== */
.headder {
    background: linear-gradient(135deg, rgba(31, 45, 206, 0.95) 0%, rgba(74, 95, 217, 0.95) 100%),
        url('../img/header\ bg.jpg') center/cover;
    min-height: 35vh;
    position: relative;
}

.overlay {
    width: 100%;
    height: 100%;
}

/* ========== Navbar Styles ========== */
.navbar {
    padding: 20px 0;
}

.navbar-brand img {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

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

.nav-link {
    color: #fff !important;
    font-size: 17px;
    font-weight: 500;
    margin: 0 10px;
    padding: 8px 18px !important;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.dropdown-menu {
    background-color: #fff;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 10px;
    min-width: 250px;
}

.dropdown-item {
    color: #333;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 15px;
}

.dropdown-item:hover {
    background-color: #f0f0f0;
    color: #1f2dce;
    transform: translateX(-5px);
}

.navbar-toggler {
    border: 2px solid #fff;
    padding: 5px 10px;
}

.navbar-toggler-icon svg {
    fill: #fff;
    width: 25px;
    height: 25px;
}

/* ========== Hero Section ========== */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 25vh;
    text-align: center;
    padding: 30px 20px;
}

.hero h2 {
    color: #fff;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.btn_scroll {
    background: linear-gradient(135deg, #27eac8 0%, #1fc7a8 100%);
    color: #fff;
    border: none;
    padding: 14px 35px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(39, 234, 200, 0.4);
    transition: all 0.3s ease;
}

.btn_scroll:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 234, 200, 0.6);
}

/* ========== Role/Content Section ========== */
.role {
    padding: 80px 0;
    background-color: #fff;
}

.role .content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.role h3 {
    font-size: 32px;
    color: #1f2dce;
    font-weight: 700;
    margin-bottom: 15px;
}

.role h3 i {
    margin-left: 10px;
}

.role p {
    font-size: 17px;
    line-height: 2;
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
}

.role img[alt="line"] {
    width: 120px;
    margin: 30px 0;
    display: block;
}

/* ========== UI Message Styles ========== */
.ui.message {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f7ff 100%);
    border: none;
    border-left: 5px solid #2196f3;
    border-radius: 10px;
    padding: 18px 22px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}

.ui.icon.message .header {
    font-size: 17px;
    color: #1565c0;
    font-weight: 600;
}

.ui.icon.message .header i {
    margin-left: 8px;
    color: #2196f3;
}

.ui.icon.message a {
    color: #1976d2;
    text-decoration: underline;
    font-weight: 600;
}

.ui.icon.message a:hover {
    color: #0d47a1;
}

.ui.red.message {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: none;
    border-left: 5px solid #ff9800;
    border-radius: 10px;
    padding: 20px 25px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.15);
}

.ui.red.message .header p {
    color: #e65100;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
}

.ui.red.message .header i {
    color: #ff9800;
}

.ui.red.message p {
    color: #ef6c00;
    font-size: 17px;
    line-height: 1.8;
}

.ui.red.message p i {
    color: #ff9800;
    margin-left: 8px;
}

.ui.red.message a {
    color: #1976d2;
    text-decoration: underline;
    font-weight: 700;
}

.ui.red.message a:hover {
    color: #0d47a1;
}

.ui.message .close {
    display: none;
}

/* ========== Bar with Text ========== */
.bar {
    background: linear-gradient(135deg, #1f2dce 0%, #4a5fd9 100%);
    padding: 18px;
    border-radius: 12px;
    margin: 25px 0;
    text-align: center;
}

.bar span {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

/* ========== Announcement Scrolling Animation ========== */
.announcement-scroll {
    background: linear-gradient(135deg, #1f2dce 0%, #4a5fd9 100%);
    padding: 18px 0;
    border-radius: 12px;
    margin: 25px 0;
    overflow: hidden;
    position: relative;
    height: 60px;
    display: flex;
    align-items: center;
}

.announcement-text {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
    animation: scrollAnnouncement 15s linear infinite;
    padding: 0 20px;
}

@keyframes scrollAnnouncement {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ========== Car Images Section ========== */
.role .row img {
    width: 100%;
    max-width: 380px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.role .row img:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 10px 30px rgba(31, 45, 206, 0.25);
}

.role .row p {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #1f2dce;
    margin-top: 10px;
}

.role .row .col-md-6 {
    text-align: center;
    padding: 20px;
}

/* ========== Footer Styles ========== */
.primary_footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 50px 0 25px;
    color: #fff;
}

.primary_footer h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #27eac8;
}

.primary_footer a {
    display: block;
    color: #ddd;
    text-decoration: none;
    font-size: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    padding: 3px 0;
}

.primary_footer a:hover {
    color: #27eac8;
    transform: translateX(-5px);
}

.primary_footer a i {
    margin-right: 8px;
    color: #27eac8;
}

.primary_footer img {
    width: 90px;
    height: 90px;
    border-radius: 8px;
}

.footer {
    background-color: #0f0f1e;
    padding: 18px 0;
    color: #fff;
}

.footer p {
    margin: 0;
    font-size: 15px;
}

/* ========== Loading Animation ========== */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: none !important;
    align-items: center;
    justify-content: center;
}

/* ========== Hover Effects ========== */
.hvr-grow {
    display: inline-block;
    vertical-align: middle;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hvr-glow {
    transition: all 0.3s ease;
}

.hvr-grow:hover {
    transform: scale(1.05);
}

.hvr-pop {
    transition: all 0.3s ease;
}

.hvr-pop:hover {
    transform: scale(1.1);
}

/* ========== Responsive Design ========== */
@media (max-width: 991px) {
    .navbar-nav {
        margin-top: 15px;
    }

    .nav-link {
        margin: 5px 0;
    }
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 28px;
    }

    .role h3 {
        font-size: 26px;
    }

    .role p {
        font-size: 16px;
    }

    .role .row img {
        max-width: 100%;
    }

    .announcement-scroll {
        height: 50px;
    }

    .announcement-text {
        font-size: 17px;
        animation: scrollAnnouncement 12s linear infinite;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 24px;
    }

    .navbar-brand img {
        width: 50px;
        height: 50px;
    }

    .announcement-scroll {
        height: 45px;
    }

    .announcement-text {
        font-size: 16px;
        animation: scrollAnnouncement 10s linear infinite;
    }
}