/* Google Font: Cairo */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
button,
.btn,
.card,
.btn-outline-custom,
.btn-custom,
.nav-link {
    font-family: 'Cairo', sans-serif !important;
}

body {
    direction: rtl;
    text-align: right;
    background-color: #ffffff;
    color: #000000;
}

/* Base Colors */
:root {
    --main-color: #1a2b4c;
    --secondary-color: #6c757d;
    --accent-color: #0d6efd;
    --light-bg: #f8f9fa;
}

/* Navbar */
.navbar {
    background-color: var(--main-color) !important;
    border-bottom: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
}


.navbar-nav .nav-link:hover {
    color: #ced8f0 !important;
    /* soft bluish hover */
}
.navbar-nav .nav-link {
    transition: color 0.2s ease;
}

.navbar-toggler {
    border: 1px solid white !important;
    border-radius: 10px;
    padding: 6px 10px;
}

.navbar-toggler:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-width='2' d='M4 7h22M4 15h22M4 23h22' /%3e%3c/svg%3e") !important;
}

.navbar-brand img {
    height: var(--logo-height, 90px);
    border: none;
    border-radius: 0;
    padding: 0;
}

@media (max-width: 991px) {
    .navbar-nav .nav-link {
        padding-right: 10px !important;
        /* adjust as needed */
    }
}
/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--main-color);
}

/* Buttons */
.btn-custom {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background-color: #084298;
    color: white;
}

.btn-outline-custom {
    background-color: #ffffff;
    color: var(--main-color);
    border: 1px solid var(--main-color);
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-outline-custom:hover {
    background-color: var(--main-color);
    color: white;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Hero Slider Image */
.hero-img {
    max-height: 520px;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.carousel-caption {
    bottom: 20%;
    text-align: center;
}

.carousel-caption h5 {
    color: white;
    font-size: 1.8rem;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.carousel-caption p {
    color: white;
    font-size: 1.1rem;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 6px 14px;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    margin: 0 4px;
    border-radius: 50%;
    background-color: black;
    opacity: 0.5;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: black;
}

/* Custom arrows for brands carousel only */
#brands .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 16 16'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l5 5a.5.5 0 0 1 0 .708l-5 5a.5.5 0 1 1-.708-.708L9.293 7 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

#brands .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 16 16'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L6.707 7l4.647 4.646a.5.5 0 0 1-.708.708l-5-5a.5.5 0 0 1 0-.708l5-5a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
}
#brands .carousel-indicators {
    position: static;
    margin-top: 5px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Cards */
.card-title {
    font-weight: 600;
}

.card-img-top {
    width: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

/* Sections */
section {
    padding: 60px 0;
}

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

/* Footer */
footer {
    background-color: var(--main-color);
    color: #ffffff;
    font-size: 0.9rem;
    text-align: center;
    padding: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {

    .btn-custom,
    .btn-outline-custom {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .carousel-caption h5 {
        font-size: 1.2rem;
    }

    .carousel-caption p {
        display: none;
    }

    .hero-img {
        max-height: 280px;
    }
}

/* Button Variants */
.btn-slim {
    padding: 6px 16px;
    font-size: 0.85rem;
    border-radius: 4px;
}

.btn-bold {
    background-color: #d71920;
    border: none;
    font-weight: bold;
    padding: 12px 28px;
    border-radius: 10px;
    color: white;
    transition: background-color 0.3s ease;
}

.btn-bold:hover {
    background-color: #aa151a;
}

.btn-rounded-outline {
    border: 2px solid var(--accent-color);
    background-color: transparent;
    color: var(--accent-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-rounded-outline:hover {
    background-color: var(--accent-color);
    color: white;
}
#brands .carousel-indicators [data-bs-target] {
    background-color: black !important;
    opacity: 0.5;
}

#brands .carousel-indicators .active {
    opacity: 1 !important;
    background-color: black !important;
}
.btn-dark-navy {
    background-color: #1a2b4c;
    color: #ffffff;
    border: 1px solid #1a2b4c;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-dark-navy:hover {
    background-color: #2c3e5d;
    /* slightly lighter for hover */
    border-color: #2c3e5d;
    color: #ffffff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}
.btn-red-danger {
    background-color: #dc3545;
    color: #ffffff;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-red-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
    color: #ffffff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}
.pagination .page-link {
    color: #1a2b4c;
    /* default text */
    border: 1px solid #dee2e6;
}

.pagination .page-link:hover {
    color: #d71920;
    background-color: #f8f9fa;
}

.pagination .page-item.active .page-link {
    background-color: #1a2b4c;
    color: white;
    border-color: #1a2b4c;
}

.pagination .page-item.disabled .page-link {
    color: #aaa;
}
.list-group-item {
    color: #1a2b4c;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    border-color: #dee2e6;
}

.list-group-item:hover {
    color: #d71920;
    background-color: #f8f9fa;
}

.list-group-item.active {
    background-color: #1a2b4c !important;
    border-color: #1a2b4c !important;
    color: #fff !important;
}