/**
 * Rwanda Landing Page Styles
 * Follows the existing dark theme design patterns
 */

/* Rwanda Hero Section */
.rwanda-hero-section {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 120px 0 80px;
    overflow: hidden;
    min-height: 70vh;
}

.rwanda-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    color: #ffffff;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
}

.country-highlight {
    color: #00d4ff;
    display: block;
    font-size: 0.9em;
    margin-top: 10px;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: #00d4ff;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-weight: 500;
}

.feature-item i {
    color: #00d4ff;
    font-size: 1.2rem;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-cta .btn {
    align-self: flex-start;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 55px;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #000000;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0099cc 0%, #007399 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

/* Emergency Button Styling */
.emergency-btn {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
    color: #ffffff !important;
    padding: 12px 25px !important;
    border: 2px solid transparent !important;
    position: relative;
}

.emergency-btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4) !important;
    color: #ffffff !important;
}

/* Emergency Button Content */
.emergency-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.emergency-label {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emergency-number {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

/* Emergency Button Icon */
.emergency-btn .fas {
    font-size: 1.2rem;
    color: #fbbf24;
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hotline-label {
    font-size: 0.9rem;
    color: #999999;
}

.hotline-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #00d4ff;
    text-decoration: none;
}

.hotline-number:hover {
    color: #ffffff;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.vehicle-showcase {
    width: 600px;
    height: 450px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 153, 204, 0.1) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.vehicle-showcase:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 50px rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.5);
}

.showcase-vehicle i {
    font-size: 8rem;
    color: #00d4ff;
    opacity: 0.8;
}

/* APC Hero Image Styling - Large Visual Centerpiece */
.apc-hero-image {
    width: 120%;
    height: 120%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 8px 25px rgba(0, 212, 255, 0.4)) brightness(1.1) contrast(1.1);
    position: relative;
    z-index: 2;
}

.apc-hero-image:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 12px 35px rgba(0, 212, 255, 0.5)) brightness(1.15) contrast(1.15);
}

/* Ensure showcase-vehicle container handles both icon and image */
.showcase-vehicle {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.tactical-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

.security-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

/* Market Section */
.rwanda-market-section {
    padding: 80px 0;
    background: #111111;
}

.market-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.market-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.service-icon i {
    font-size: 2rem;
    color: #000000;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.service-card p {
    color: #cccccc;
    line-height: 1.6;
}

/* Vehicle Inventory Section - Force Single Column Layout Like Homepage Mobile */
.rwanda-page .sc-gallery-section {
    padding: 80px 0;
    background: #0a0a0a;
}

.rwanda-page .sc-gallery-header {
    text-align: center;
    margin-bottom: 60px;
}

.rwanda-page .sc-gallery-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.rwanda-page .sc-gallery-description {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ENSURE HOMEPAGE LAYOUT - 4 Cards Side by Side */
body.rwanda-page .sc-gallery-section .sc-vehicle-grid,
.rwanda-page .sc-gallery-section .sc-vehicle-grid,
.rwanda-page .sc-vehicle-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* 4 cards side by side like homepage */
    gap: var(--spacing-lg) !important;
    margin-bottom: var(--spacing-xl) !important;
}

/* Ensure 4-column layout at all desktop sizes */
@media (min-width: 992px) {
    body.rwanda-page .sc-gallery-section .sc-vehicle-grid,
    .rwanda-page .sc-gallery-section .sc-vehicle-grid,
    .rwanda-page .sc-vehicle-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (min-width: 1200px) {
    body.rwanda-page .sc-gallery-section .sc-vehicle-grid,
    .rwanda-page .sc-gallery-section .sc-vehicle-grid,
    .rwanda-page .sc-vehicle-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (min-width: 1400px) {
    body.rwanda-page .sc-gallery-section .sc-vehicle-grid,
    .rwanda-page .sc-gallery-section .sc-vehicle-grid,
    .rwanda-page .sc-vehicle-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Vehicle cards should match homepage styling exactly */
body.rwanda-page .sc-vehicle-card,
.rwanda-page .sc-vehicle-card {
    height: 100% !important;
}

body.rwanda-page .sc-vehicle-card .sc-card-inner,
.rwanda-page .sc-vehicle-card .sc-card-inner {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Standard image heights like homepage */
body.rwanda-page .sc-card-image,
body.rwanda-page .sc-featured-image,
.rwanda-page .sc-card-image,
.rwanda-page .sc-featured-image {
    height: 200px !important; /* Standard homepage height */
    object-fit: cover !important;
    width: 100% !important;
}

/* Standard vehicle titles like homepage */
body.rwanda-page .sc-vehicle-title,
.rwanda-page .sc-vehicle-title {
    font-size: 1.4rem !important;
    margin-bottom: var(--spacing-sm) !important;
    line-height: 1.3 !important;
    height: 3.6rem !important; /* Limit to 2 lines */
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

/* Fix vehicle card badges styling on Rwanda page to match homepage */
.rwanda-page .sc-protection-badge {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    z-index: 10;
    display: flex;
    align-items: center;
}

.rwanda-page .sc-protection-level {
    background: linear-gradient(135deg, rgba(13, 18, 24, 0.85) 0%, rgba(26, 32, 40, 0.95) 100%) !important;
    color: var(--color-accent-1) !important;
    font-weight: var(--font-weight-bold) !important;
    padding: var(--spacing-xs) var(--spacing-sm) !important;
    border-radius: var(--radius-sm) !important;
    font-size: var(--font-size-xs) !important;
    letter-spacing: 0.05em !important;
    display: flex !important;
    align-items: center !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(212, 169, 104, 0.3) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    text-transform: uppercase !important;
    transition: all var(--transition-medium) !important;
}

.rwanda-page .sc-protection-level i {
    margin-right: var(--spacing-xs) !important;
    font-size: 0.9em !important;
    transition: transform var(--transition-fast) !important;
}

.rwanda-page .sc-vehicle-card:hover .sc-protection-level {
    background: linear-gradient(135deg, rgba(26, 32, 40, 0.9) 0%, rgba(18, 24, 32, 0.98) 100%) !important;
    border-color: rgba(212, 169, 104, 0.5) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 10px rgba(212, 169, 104, 0.2) !important;
    transform: translateY(-2px) !important;
}

.rwanda-page .sc-vehicle-card:hover .sc-protection-level i {
    transform: rotate(-10deg) !important;
}

/* Fix vehicle class badges styling on Rwanda page */
.rwanda-page .sc-vehicle-class {
    margin-bottom: var(--spacing-sm);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.rwanda-page .sc-class-badge {
    display: inline-flex !important;
    align-items: center !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
    color: var(--color-text-secondary) !important;
    font-size: var(--font-size-xs) !important;
    font-weight: var(--font-weight-medium) !important;
    padding: var(--spacing-2xs) var(--spacing-xs) !important;
    border-radius: var(--radius-sm) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all var(--transition-fast) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.rwanda-page .sc-class-badge i {
    margin-right: 4px !important;
    color: var(--color-accent-1) !important;
}

.rwanda-page .sc-class-badge:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 100%) !important;
    transform: translateY(-1px) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Fix quantity badge styling on Rwanda page */
.rwanda-page .sc-quantity-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    z-index: var(--z-elevated);
}

.rwanda-page .sc-quantity-level {
    background: linear-gradient(135deg, rgba(42, 100, 120, 0.15) 0%, rgba(42, 100, 120, 0.25) 100%) !important;
    color: var(--color-accent-3) !important;
    font-weight: var(--font-weight-bold) !important;
    padding: var(--spacing-2xs) var(--spacing-xs) !important;
    border-radius: var(--radius-sm) !important;
    font-size: var(--font-size-xs) !important;
    letter-spacing: 0.05em !important;
    display: flex !important;
    align-items: center !important;
    gap: var(--spacing-2xs) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(42, 100, 120, 0.3) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    text-transform: uppercase !important;
    transition: all var(--transition-medium) !important;
}

.rwanda-page .sc-quantity-level i {
    font-size: 0.9em !important;
    color: var(--color-accent-3) !important;
}

.rwanda-page .sc-vehicle-card:hover .sc-quantity-level {
    background: linear-gradient(135deg, rgba(42, 100, 120, 0.2) 0%, rgba(42, 100, 120, 0.35) 100%) !important;
    border-color: rgba(42, 100, 120, 0.5) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 10px rgba(42, 100, 120, 0.3) !important;
    transform: translateY(-2px) !important;
}

.rwanda-page .sc-gallery-actions {
    text-align: center;
    margin-top: 60px;
}

.btn-secondary {
    background: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary:hover {
    background: #00d4ff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

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

.services-header {
    text-align: center !important;
    margin-bottom: 60px;
}

/* Force center alignment for services header on Rwanda page */
.rwanda-page .rwanda-services-section .services-header,
body.page-template-page-rwanda .rwanda-services-section .services-header {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}

/* Center-align specific section titles on Rwanda page */
.rwanda-page .protection-levels .section-header h2,
.rwanda-page .rwanda-services-section .services-header .section-title,
.rwanda-page .rwanda-services-section .section-title,
body.page-template-page-rwanda .rwanda-services-section .services-header h2,
body.page-template-page-rwanda .rwanda-services-section h2.section-title,
.page-template-page-rwanda .rwanda-services-section .services-header .section-title,
body.page-template-page-rwanda .rwanda-services-section .services-header .section-title,
body.page-template-page-rwanda main.rwanda-page .rwanda-services-section .services-header h2.section-title,
body.page-template-page-rwanda main.rwanda-page .rwanda-services-section h2,
.rwanda-page main .rwanda-services-section .services-header h2,
.rwanda-page .rwanda-services-section .services-header h2.section-title {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

/* Rwanda Protection Levels Section - Center gold underline */
.rwanda-page .protection-levels .section-header { text-align: center !important; }
.rwanda-page .protection-levels .section-header h2,
body.page-template-page-rwanda .protection-levels .section-header h2 {
    position: relative;
    display: inline-block;
}
.rwanda-page .protection-levels .section-header h2::after,
body.page-template-page-rwanda .protection-levels .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent-1), rgba(212, 169, 104, 0.7));
    border-radius: 2px;
}


/* Video Section Styling */
.rwanda-video-section {
    padding: 80px 0;
    background: #0a0a0a;
    position: relative;
}

.rwanda-video-section .video-header {
    text-align: center !important;
    margin-bottom: 60px;
}

/* Force center alignment for video section title */
.rwanda-page .rwanda-video-section .video-header,
body.page-template-page-rwanda .rwanda-video-section .video-header {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}

.rwanda-video-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    position: relative;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}

.rwanda-video-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent-1), var(--color-accent-2));
    border-radius: 2px;
}

/* Blue underline for Contact section title */
.rwanda-contact-section h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.rwanda-contact-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    border-radius: 2px;
}

/* Blue underline for Inventory section title */
.sc-gallery-title {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.sc-gallery-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    border-radius: 2px;
}

.video-content {
    max-width: 1000px;
    margin: 0 auto;
}

.video-wrapper {
    margin-bottom: 40px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.video-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.video-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cccccc;
    margin: 0;
}

.video-description .contact-link {
    color: var(--color-accent-1);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.video-description .contact-link:hover {
    color: var(--color-accent-2);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.video-description .contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-1), var(--color-accent-2));
    transition: width 0.3s ease;
}

.video-description .contact-link:hover::after {
    width: 100%;
}

/* Mobile Responsiveness for Video Section */
@media (max-width: 768px) {
    .rwanda-video-section {
        padding: 60px 0;
    }

    .rwanda-video-section .section-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .video-description p {
        font-size: 1rem;
        padding: 0 20px;
    }

    .video-wrapper {
        margin: 0 15px 30px 15px;
    }
}

@media (max-width: 480px) {
    .rwanda-video-section .section-title {
        font-size: 1.8rem;
    }

    .video-description p {
        font-size: 0.95rem;
    }
}

/* Enhanced Vehicle Cards for Rwanda Page - Inventaire Disponible Section */
.rwanda-page .sc-gallery-section .sc-vehicle-card,
body.page-template-page-rwanda .sc-gallery-section .sc-vehicle-card {
    border: 1px solid rgba(255, 215, 0, 0.15) !important;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

/* Enhanced hover effects for vehicle cards */
.rwanda-page .sc-gallery-section .sc-vehicle-card:hover,
body.page-template-page-rwanda .sc-gallery-section .sc-vehicle-card:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(255, 215, 0, 0.4) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.1) !important;
    background: linear-gradient(135deg, #1f1f1f 0%, #141414 100%) !important;
}

/* Enhanced hover glow effect */
.rwanda-page .sc-gallery-section .sc-vehicle-card:hover::before,
body.page-template-page-rwanda .sc-gallery-section .sc-vehicle-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(0, 255, 255, 0.03) 100%);
    pointer-events: none;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.rwanda-page .sc-gallery-section .sc-vehicle-card::before,
body.page-template-page-rwanda .sc-gallery-section .sc-vehicle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Ensure card content stays above the overlay */
.rwanda-page .sc-gallery-section .sc-vehicle-card > *,
body.page-template-page-rwanda .sc-gallery-section .sc-vehicle-card > * {
    position: relative;
    z-index: 2;
}

/* Enhanced vehicle image hover effects */
.rwanda-page .sc-gallery-section .sc-vehicle-card:hover .sc-vehicle-image img,
body.page-template-page-rwanda .sc-gallery-section .sc-vehicle-card:hover .sc-vehicle-image img {
    transform: scale(1.05) !important;
    transition: transform 0.3s ease !important;
}

.rwanda-page .sc-gallery-section .sc-vehicle-card .sc-vehicle-image img,
body.page-template-page-rwanda .sc-gallery-section .sc-vehicle-card .sc-vehicle-image img {
    transition: transform 0.3s ease !important;
}

/* Enhanced badge styling on hover */
.rwanda-page .sc-gallery-section .sc-vehicle-card:hover .sc-vehicle-badges .badge,
body.page-template-page-rwanda .sc-gallery-section .sc-vehicle-card:hover .sc-vehicle-badges .badge {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Compact CTA button styling for Rwanda page vehicle cards */
.rwanda-page .sc-gallery-section .sc-vehicle-card .sc-vehicle-cta .btn,
body.page-template-page-rwanda .sc-gallery-section .sc-vehicle-card .sc-vehicle-cta .btn {
    width: auto !important;
    max-width: 200px !important;
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    margin: 15px auto 0 auto !important;
    display: block !important;
    text-align: center !important;
    border-radius: 6px !important;
    line-height: 1.4 !important;
    min-height: auto !important;
}

/* Enhanced CTA button hover effects */
.rwanda-page .sc-gallery-section .sc-vehicle-card:hover .sc-vehicle-cta .btn,
body.page-template-page-rwanda .sc-gallery-section .sc-vehicle-card:hover .sc-vehicle-cta .btn {
    background: linear-gradient(135deg, var(--color-accent-1) 0%, var(--color-accent-2) 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3) !important;
}

/* Ensure proper spacing for the CTA section */
.rwanda-page .sc-gallery-section .sc-vehicle-card .sc-vehicle-cta,
body.page-template-page-rwanda .sc-gallery-section .sc-vehicle-card .sc-vehicle-cta {
    padding: 0 15px 15px 15px !important;
    text-align: center !important;
}

/* Mobile responsiveness for enhanced cards */
@media (max-width: 768px) {
    .rwanda-page .sc-gallery-section .sc-vehicle-card:hover,
    body.page-template-page-rwanda .sc-gallery-section .sc-vehicle-card:hover {
        transform: translateY(-4px) !important;
    }

    /* Reduce hover effects on mobile for better touch experience */
    .rwanda-page .sc-gallery-section .sc-vehicle-card:hover .sc-vehicle-image img,
    body.page-template-page-rwanda .sc-gallery-section .sc-vehicle-card:hover .sc-vehicle-image img {
        transform: scale(1.02) !important;
    }

    /* Mobile-specific button sizing - Larger buttons for better usability */
    .rwanda-page .sc-gallery-section .sc-vehicle-card .sc-vehicle-cta .btn,
    body.page-template-page-rwanda .sc-gallery-section .sc-vehicle-card .sc-vehicle-cta .btn {
        max-width: 220px !important;
        padding: 14px 20px !important;
        font-size: 0.9rem !important;
        margin: 15px auto 0 auto !important;
        min-height: 48px !important; /* Larger touch target for mobile */
        font-weight: 600 !important;
    }

    /* Adjust CTA section padding on mobile */
    .rwanda-page .sc-gallery-section .sc-vehicle-card .sc-vehicle-cta,
    body.page-template-page-rwanda .sc-gallery-section .sc-vehicle-card .sc-vehicle-cta {
        padding: 0 10px 12px 10px !important;
    }
}

/* Tablet-specific button sizing */
@media (min-width: 769px) and (max-width: 1024px) {
    .rwanda-page .sc-gallery-section .sc-vehicle-card .sc-vehicle-cta .btn,
    body.page-template-page-rwanda .sc-gallery-section .sc-vehicle-card .sc-vehicle-cta .btn {
        max-width: 200px !important;
        padding: 12px 18px !important;
        font-size: 0.85rem !important;
        min-height: 44px !important;
        font-weight: 600 !important;
    }
}

/* Accessibility: Focus states for keyboard navigation */
.rwanda-page .sc-gallery-section .sc-vehicle-card:focus-within,
body.page-template-page-rwanda .sc-gallery-section .sc-vehicle-card:focus-within {
    transform: translateY(-8px) !important;
    border-color: rgba(255, 215, 0, 0.6) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.2) !important;
    outline: 2px solid rgba(255, 215, 0, 0.5);
    outline-offset: 2px;
}

/* Back to Top Button for Rwanda Page */
.rwanda-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999 !important; /* Increased z-index to ensure visibility on mobile */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.rwanda-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rwanda-back-to-top .back-to-top-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #1a2028;
    color: #D4A968;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 169, 104, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    touch-action: manipulation;
    cursor: pointer;
}

.rwanda-back-to-top .back-to-top-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(212, 169, 104, 0.1) 0%, rgba(212, 169, 104, 0) 70%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.rwanda-back-to-top .back-to-top-btn:hover,
.rwanda-back-to-top .back-to-top-btn:focus,
.rwanda-back-to-top .back-to-top-btn.active {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    background-color: rgba(26, 32, 40, 0.95);
    border-color: #D4A968;
    outline: none;
}

.rwanda-back-to-top .back-to-top-btn:hover:before,
.rwanda-back-to-top .back-to-top-btn:focus:before,
.rwanda-back-to-top .back-to-top-btn.active:before {
    opacity: 1;
}

.rwanda-back-to-top .back-to-top-btn i {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.rwanda-back-to-top .back-to-top-btn:hover i,
.rwanda-back-to-top .back-to-top-btn:focus i {
    transform: translateY(-2px);
}

.rwanda-back-to-top .screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0 !important;
    border: 0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden;
}

/* Mobile responsive styles for Rwanda back to top button */
@media (max-width: 768px) {
    .rwanda-back-to-top {
        bottom: calc(var(--spacing-md) + 60px) !important; /* Match WhatsApp widget vertical position */
        right: var(--spacing-md) !important;
        left: auto !important;
    }

    .rwanda-back-to-top .back-to-top-btn {
        width: 48px;
        height: 48px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    .rwanda-back-to-top .back-to-top-btn.active {
        transform: scale(0.95) !important;
        background-color: rgba(26, 32, 40, 0.95);
        border-color: #D4A968;
        transition: transform 0.1s ease, background-color 0.1s ease, border-color 0.1s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }

    @media (max-width: 480px) {
        .rwanda-back-to-top {
            bottom: calc(var(--spacing-sm) + 50px) !important;
        }
    }
}

/* Reduce animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .rwanda-back-to-top {
        transition: opacity 0.1s ease, visibility 0.1s ease;
        transform: none;
    }

    .rwanda-back-to-top.visible {
        transform: none;
    }

    .rwanda-back-to-top .back-to-top-btn {
        transition: background-color 0.1s ease, border-color 0.1s ease;
    }

    .rwanda-back-to-top .back-to-top-btn:hover,
    .rwanda-back-to-top .back-to-top-btn:focus,
    .rwanda-back-to-top .back-to-top-btn.active {
        transform: none;
    }

    .rwanda-back-to-top .back-to-top-btn i {
        animation: none;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-item {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.1);
}

.service-item .service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-item .service-icon i {
    font-size: 1.8rem;
    color: #000000;
}

.service-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.service-item p {
    color: #cccccc;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Contact Section */
.rwanda-contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.contact-info > p {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.contact-item i {
    font-size: 1.5rem;
    color: #00d4ff;
    min-width: 24px;
}

.contact-item div {
    text-align: left;
}

.contact-item strong {
    display: block;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-item span,
.contact-item a {
    color: #cccccc;
    text-decoration: none;
}

.contact-item a:hover {
    color: #00d4ff;
}

/* Clickable Contact Item (Vehicle Inventory Link) */
.contact-item-link {
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-item-link:hover {
    transform: translateY(-3px);
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.contact-item-link:hover i {
    color: #ffffff;
    transform: scale(1.1);
}

.contact-item-link:hover strong {
    color: #00d4ff;
}

.contact-item-link:hover span {
    color: #ffffff;
}

/* Add subtle animation to the warehouse icon */
.contact-item-link i {
    transition: all 0.3s ease;
}

/* Focus state for accessibility */
.contact-item-link:focus {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
}

.contact-cta {
    margin-top: 40px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .rwanda-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-features {
        justify-content: center;
    }

    .vehicle-showcase {
        width: 90vw;
        max-width: 500px;
        height: 350px;
    }

    .showcase-vehicle i {
        font-size: 5rem;
    }

    /* Mobile APC Image Styling - Large and Prominent */
    .apc-hero-image {
        width: 110%;
        height: 110%;
        object-fit: cover;
        border-radius: 10px;
        filter: drop-shadow(0 6px 20px rgba(0, 212, 255, 0.4)) brightness(1.1);
    }

    .apc-hero-image:hover {
        transform: scale(1.05);
        filter: drop-shadow(0 8px 25px rgba(0, 212, 255, 0.5)) brightness(1.15);
    }

    .market-services,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-item div {
        text-align: center;
    }

    /* Mobile Hero Buttons - Keep Side by Side */
    .hero-buttons {
        flex-direction: row;
        gap: 12px;
        align-items: center;
        justify-content: center;
    }

    .hero-cta .btn {
        flex: 1;
        justify-content: center;
        padding: 10px 15px;
        font-size: 0.9rem;
        min-height: 48px;
    }

    .emergency-btn {
        padding: 8px 12px !important;
        flex: 1;
    }

    .emergency-content {
        align-items: center;
        text-align: center;
    }

    .emergency-label {
        font-size: 0.7rem;
    }

    .emergency-number {
        font-size: 0.85rem;
    }
}

/* Vehicle Gallery Section */
.rwanda-gallery-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    position: relative;
}

.rwanda-gallery-section .gallery-header {
    text-align: center !important;
    margin-bottom: 60px;
    width: 100%;
}

.rwanda-gallery-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center !important;
    width: 100%;
    display: block;
}

.vehicle-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-dark-secondary);
    transition: all 0.3s ease;
    aspect-ratio: 16/10;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--color-gold);
    opacity: 0.7;
}

.gallery-actions {
    text-align: center;
    margin-top: 40px;
}

.gallery-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--color-gold) 0%, #d4af37 100%);
    color: var(--color-dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.gallery-actions .btn:hover {
    background: linear-gradient(135deg, #d4af37 0%, var(--color-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

/* Mobile Responsive for Gallery */
@media (max-width: 768px) {
    .vehicle-gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rwanda-gallery-section .section-title {
        font-size: 2rem;
    }

    .gallery-actions .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}
