/* =================================
   Global Styles & Variables
   ================================= */
:root {
    --primary-color: #b5e941;
    --secondary-color: #1b4b00;
    --text-dark: #33322e;
    --text-light: #777574;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #dee2e6;
}

body {
    font-family: 'Cairo', sans-serif;
    /* background-color: var(--background-light); */
    background: url('../images/education-bg.png');
    background-blend-mode: multiply;
    background-size: cover;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: -1;
}

main {
    flex-grow: 1;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.section-title {
    color: var(--secondary-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 40px;
    text-align: center;
}

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

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-outline-secondary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}


/* =================================
   Reusable Components
   ================================= */

/* --- Header & Footer --- */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    position: sticky;
    top: 0;
    z-index: 1020;
    /* Ensure it's above other content */
}

.main-header .navbar-brand {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.5rem;
}

.main-header .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    margin: 0 0.5rem;
}

.main-header .nav-link.active,
.main-header .nav-link:hover {
    color: var(--primary-color);
}

.main-footer {
    background-color: var(--text-dark);
    color: var(--background-light);
    padding: 1rem 0;
    text-align: center;
}

.main-footer p {
    margin: 0;
    color: var(--text-light);
    background-color: var(--text-dark);
}

/* --- Page Header (Banner) --- */
.page-header {
    background: url('../images/cover.png'), linear-gradient(var(--primary-color), var(--primary-color));
    background-blend-mode: screen;
    background-size: cover;
    background-position: center;
    /* background-color: var(--primary-color); */
    color: var(--secondary-color);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 5px solid var(--secondary-color);
}

.page-header h1 {
    font-weight: 700;
    margin: 0;
}


/* Film Strip Styles */
.film-strip-container {
    background-color: #1b4d1c;
    border-top: 4px solid #bcf14b;
    border-bottom: 4px solid #bcf14b;
    height: 140px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.film-strip-content {
    display: flex;
    gap: 16px;
    padding: 0 8px;
    animation: filmScroll 30s linear infinite;
    white-space: nowrap;
    width: max-content;
    will-change: transform;
}

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

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

.film-frame {
    width: 180px;
    /* عرض محدد موحد */
    height: 110px;
    /* ارتفاع محدد موحد */
    flex-shrink: 0;
    /* إجبار العنصر على عدم الانكماش داخل Flex */
    background: #123413;
    position: relative;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.film-frame:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(188, 241, 75, 0.4);
    z-index: 20;
}

.film-frame::before,
.film-frame::after {
    /* content: ''; */
    position: absolute;
    left: 0;
    right: 0;
    height: 8px;
    background-image: radial-gradient(circle, #bcf14b 2px, transparent 3px);
    background-size: 12px 8px;
    z-index: 10;
}

.film-frame::before {
    top: 4px;
}

.film-frame::after {
    bottom: 4px;
}

/* 3. التجاوب مع شاشات الهواتف والأجهزة اللوحية (Responsive Breakpoints) */
@media (max-width: 768px) {
    .film-strip-container {
        height: 100px;
        /* تصغير ارتفاع الشريط في الموبايل */
    }

    .film-frame {
        width: 140px;
        /* تصغير العرض للموبايل */
        height: 75px;
        /* تصغير الارتفاع للموبايل */
        border-left-width: 6px;
        border-right-width: 6px;
    }
}

/* Entrance Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-entrance {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
    .film-strip-content {
        animation: none;
    }

    .animate-entrance {
        animation: none;
        opacity: 1;
    }

    .film-frame,
    .film-frame:hover {
        transform: none;
        transition: none;
    }
}


.film-strip-container #lightboxModal .modal-dialog {
    max-width: 50vw !important;
    width: 50vw !important;
}

/* مراعاة الشاشات الصغيرة (الهواتف) حتى لا يصبح العرض صغيراً جداً */
@media (max-width: 768px) {
    .film-strip-container #lightboxModal .modal-dialog {
        max-width: 90vw !important;
        width: 90vw !important;
    }
}

/* --- Cards (for Institutions, Ads, Partners, etc.) --- */
.data-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* height: 100%; */
    text-decoration: none;
    color: var(--text-dark);
}

.data-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.data-card .card-img-container {
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    position: relative;
    background-color: #eee;
}

.data-card .card-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.data-card .card-body {
    padding: 1.25rem;
    /* flex-grow: 1; */
    display: flex;
    flex-direction: column;
}

.data-card .card-title {
    color: var(--secondary-color);
    font-weight: 700;
}

.data-card .card-text {
    color: var(--text-light);
    /* flex-grow: 1; */
    /* margin-bottom: 1rem; */
}

.data-card .rating-stars {
    color: #ffc107;
}

/* --- Forms --- */
.form-container {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .form-container {
        padding: 3rem;
    }
}

/* --- Homepage Specific --- */
.home-category-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.home-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.home-category-card i {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.home-category-card:hover i {
    color: var(--secondary-color);
}

.home-category-card span {
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 0.5rem;
}


/* =================================
   Ads Carousel Enhancements
   ================================= */

.ad-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

.ad-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.ad-card img {
    max-height: 120px;
    width: 100%;
    object-fit: cover;
    /* Ensures the image covers the area nicely */
}

#adsCarousel .carousel-control-prev-icon,
#adsCarousel .carousel-control-next-icon {
    background-color: var(--secondary-color);
    /* Dark green background */
    border-radius: 50%;
    /* Make it circular */
    padding: 1.2rem;
    /* Increase size */
    background-size: 50%;
    /* Make the arrow icon smaller inside the circle */
    opacity: 20%;
}

#adsCarousel .carousel-control-prev {
    left: -25px;
    /* Position outside the carousel for better visibility */
}

#adsCarousel .carousel-control-next {
    right: -25px;
    /* Position outside the carousel for better visibility */
}

/* On smaller screens, bring the controls back inside */
@media (max-width: 992px) {

    #adsCarousel .carousel-control-prev {
        left: -25px;
    }

    #adsCarousel .carousel-control-next {
        right: -25px;
    }
}

/* =================================
   Partner & Action Button Enhancements
   ================================= */

/* Partner Card Image Frame */
.partner-logo-frame {
    width: 60px;
    /* Fixed width for the frame */
    height: 60px;
    /* Fixed height for the frame */
    min-width: 60px;
    /* Prevent shrinking */
    margin-left: 15px;
    /* RTL equivalent of margin-right */
    padding: 5px;
    /* Space between image and frame border */
    border: 1px solid var(--border-color);
    border-radius: 50%;
    /* Circular frame */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    transition: border-color 0.3s ease;
}

.partner-card:hover .partner-logo-frame {
    border-color: var(--primary-color);
    /* Highlight frame on hover */
}

.partner-logo-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Ensure logo fits without distortion */
}

/* Remove fixed width/height from the image itself, frame controls it */
.partner-card img {
    width: auto;
    height: auto;
}


/* New Action Card Buttons Styling */
.action-card-button {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.action-card-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.action-card-button i {
    color: var(--secondary-color);
    transition: color 0.3s ease;
    margin-bottom: 0.5rem;
}

.action-card-button:hover i {
    color: var(--primary-color);
}

.action-card-button span {
    font-weight: 700;
    color: var(--secondary-color);
}

/* =================================
   Institution Profile Page
   ================================= */
.info-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    margin-bottom: 1.5rem;
}

.info-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.rating-stars {
    color: #ffc107;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--background-light);
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* =================================
   Form Container (Shared by multiple pages)
   ================================= */
.form-container {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .form-container {
        padding: 3rem;
    }
}

/* =================================
   Testimonials Carousel Controls
   ================================= */

#testimonialsCarousel {
    padding: 0 30px;
    /* Add padding to make space for controls */
}

#testimonialsCarousel .carousel-control-prev,
#testimonialsCarousel .carousel-control-next {
    width: 5%;
    /* Adjust width of control area */
}

#testimonialsCarousel .carousel-control-prev-icon,
#testimonialsCarousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.2);
    /* Semi-transparent background */
    border-radius: 50%;
    background-size: 60%;
}

#testimonialsCarousel .carousel-control-prev {
    left: -10px;
    /* Position control slightly outside */
}

#testimonialsCarousel .carousel-control-next {
    right: -10px;
    /* Position control slightly outside */
}

/* ===================================================
   Carousel Height & Image Responsiveness Fixes
   =================================================== */

/* 1. Fix Height for Photo Carousel */
#photoCarousel .carousel-inner {
    height: 450px;
    /* Set a fixed height for the carousel container */
    border-radius: 8px;
    /* Ensure the container itself has rounded corners */
}

#photoCarousel .carousel-item {
    height: 100%;
    /* Make each slide fill the container's height */
}

#photoCarousel .carousel-item img {
    height: 100%;
    /* Force the image to fill the height of the slide */
    width: 100%;
    /* Force the image to fill the width of the slide */
    object-fit: cover;
    /* This is the key: it makes the image cover the entire area
                               without distortion. It will crop the image slightly
                               (from the sides or top/bottom) to fit the container. */
    object-position: center;
    /* Center the image within its frame */
}

/* On smaller screens (like mobile), let the height be automatic to avoid overly tall images */
@media (max-width: 768px) {
    #photoCarousel .carousel-inner {
        height: auto;
        /* Let the image's aspect ratio determine the height */
    }
}


/* 2. Fix Height for Video Carousel */
#videoCarousel .carousel-inner {
    border-radius: 8px;
    /* Ensure the container has rounded corners */
    background-color: #000;
    /* Add a black background for a cinematic feel */
}

/* The .ratio class from Bootstrap already handles the responsiveness of the iframe,
   so we don't need to set a fixed height here. The video will always maintain
   its 16:9 aspect ratio, which is ideal. */


/* 3. Ensure Partner Logos are Responsive and Centered */
.partner-logo-frame img {
    /* These properties were already good, but we re-state them for clarity */
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* 'contain' is better for logos to ensure the whole logo is visible */
    object-position: center;
}

/* =================================
   Authentication Pages Styling
   ================================= */

.auth-form-container {
    max-width: 480px;
    padding: 2rem;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Fix for floating labels in RTL with Bootstrap */
.form-floating>label {
    right: 0;
    left: auto;
}

/* =================================
   Autocomplete Styles
   ================================= */

.autocomplete-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.autocomplete-dropdown .dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
    display: block;
    text-decoration: none;
    color: var(--text-dark);
}

.autocomplete-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

.autocomplete-dropdown .dropdown-item:hover,
.autocomplete-dropdown .dropdown-item:focus {
    background-color: var(--background-light);
    color: var(--secondary-color);
}

.autocomplete-dropdown .dropdown-item .fw-bold {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 2px;
}

.autocomplete-dropdown .dropdown-item small {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* RTL Support for autocomplete */
.autocomplete-dropdown {
    text-align: right;
    direction: rtl;
}

.autocomplete-dropdown .dropdown-item {
    text-align: right;
}

/* Animation for dropdown */
.autocomplete-dropdown.show {
    animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input focus styles */
.autocomplete-container input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(181, 233, 65, 0.25);
}

/* Loading state */
.autocomplete-dropdown .loading {
    padding: 12px 16px;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

.autocomplete-dropdown .loading::before {
    content: "⏳";
    margin-left: 8px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* =================================
   Transportation Service Page Styles
   ================================= */

/* Page Header */
.page-header h1 {
    font-weight: 700;
    margin: 0;
    font-size: 2.5rem;
}

.page-header .lead {
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.back-link {
    color: var(--secondary-color) !important;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--primary-color) !important;
}

/* Vehicle Images */
.vehicle-image-container {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.vehicle-image-container:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.vehicle-image-label {
    background-color: var(--background-light);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.vehicle-image-wrapper {
    width: 100%;
    padding-top: 75%;
    position: relative;
    background-color: #f0f0f0;
    overflow: hidden;
}

.vehicle-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.vehicle-image-container:hover .vehicle-image {
    transform: scale(1.05);
}

.vehicle-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: var(--text-light);
    font-size: 2rem;
}

.vehicle-image-placeholder i {
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.vehicle-image-placeholder span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Service Details Grid */
.service-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .service-details-grid {
        grid-template-columns: 1fr;
    }
}

.detail-item {
    display: flex;
    flex-direction: column;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.detail-value {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.badge-area,
.badge-stage {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-area {
    background-color: var(--background-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.badge-stage {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Driver Card */
.driver-card-content {
    text-align: center;
}

.driver-image-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.driver-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: contain;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.driver-image-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-color: var(--background-light);
    border: 4px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3rem;
}

.driver-status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border: 3px solid var(--white);
    border-radius: 50%;
}

.driver-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.driver-title {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.driver-details {
    text-align: right;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.driver-detail-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.driver-detail-item i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.driver-detail-item .detail-label {
    display: block;
    margin-bottom: 0.25rem;
}

.driver-detail-item .detail-value {
    display: block;
    margin: 0;
}

.driver-detail-item a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.driver-detail-item a:hover {
    color: var(--primary-color);
}

/* Rating Card */
.rating-card-content {
    text-align: center;
}

.rating-stars-container {
    font-size: 1.8rem;
    color: #ffc107;
    margin-bottom: 1rem;
    letter-spacing: 0.3rem;
}

.rating-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.rating-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.rating-criteria {
    background-color: var(--background-light);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: right;
}

.criteria-title {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.criteria-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.criteria-list li {
    font-size: 0.85rem;
    color: var(--text-dark);
    padding: 0.35rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.criteria-list i {
    color: var(--primary-color);
    font-size: 0.75rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-block {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-primary.btn-block {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary.btn-block:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-outline-secondary.btn-block {
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    background-color: var(--white);
}

.btn-outline-secondary.btn-block:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Responsive */
@media (max-width: 992px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .driver-image,
    .driver-image-placeholder {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.75rem;
    }

    .page-header .lead {
        font-size: 0.95rem;
    }

    .driver-image,
    .driver-image-placeholder {
        width: 100px;
        height: 100px;
    }

    .rating-value {
        font-size: 2rem;
    }
}