/* ===== CUSTOM CSS FOR VISA ARABIE SAOUDITE ===== */

/* Import Montserrat Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #005b30;
    --secondary-color: #d09c35;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --white-color: #ffffff;
    --font-family: 'Montserrat', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-weight: 500;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-weight: 400;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

h5 {
    font-weight: 300;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 16px;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
}

/* ===== UTILITY CLASSES ===== */
ul.list-styled {
    list-style: none;
}

ul.list-styled li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

ul.list-styled li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ===== TOP BAR ===== */
.top-bar {
    background-color: var(--light-color);
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    max-height: 210px;
    width: auto;
    max-width: 550px;
    height: auto;
}

.logo-link {
    text-decoration: none;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    color: var(--dark-color);
}

.contact-item i {
    color: var(--primary-color);
    width: 16px;
}

/* ===== MAIN NAVIGATION ===== */
.main-nav {
    background-color: var(--primary-color);
    min-height: 60px;
    padding: 0;
    box-shadow: var(--box-shadow);
}

.main-nav .navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 1rem 1rem;
    transition: var(--transition);
    position: relative;
}

.main-nav .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color) !important;
}

.main-nav .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.main-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== MOBILE MENU STYLES ===== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--primary-color);
        margin-top: 1rem;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
    }
    
    .main-nav .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .mega-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: none !important;
        margin-top: 0 !important;
        padding: 1rem !important;
        background-color: rgba(255, 255, 255, 0.95) !important;
        border-radius: var(--border-radius);
        margin: 0.5rem 1rem;
    }
    
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        background-color: rgba(255, 255, 255, 0.95) !important;
        border-radius: var(--border-radius);
        margin: 0.5rem 1rem;
        padding: 1rem;
    }
    
    .mega-menu .dropdown-item,
    .dropdown-menu .dropdown-item {
        padding: 0.75rem 0.5rem;
        color: var(--dark-color) !important;
        border-bottom: 1px solid #e9ecef;
    }
    
    .mega-menu .dropdown-item:last-child,
    .dropdown-menu .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .mega-menu .dropdown-header {
        color: var(--primary-color) !important;
        font-weight: 600;
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
}

/* ===== MEGA MENU ===== */
.mega-dropdown {
    position: static;
}

.mega-dropdown .mega-menu {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 1140px;
    background-color: var(--white-color);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    margin-top: 0;
    z-index: 1050;
}

.mega-menu .dropdown-header {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.mega-menu .dropdown-item {
    padding: 0.5rem 0;
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
    border-radius: 4px;
    margin-bottom: 0.25rem;
}

.mega-menu .dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.mega-menu .dropdown-item img {
    margin-right: 0.5rem;
}

/* ===== REGULAR DROPDOWN ===== */
.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    text-decoration: none;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #004225;
    border-color: #004225;
    color: var(--white-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--dark-color);
}

.btn-secondary:hover {
    background-color: #b8842a;
    border-color: #b8842a;
    color: var(--dark-color);
}

.btn-apply {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--dark-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-apply:hover {
    background-color: #b8842a;
    border-color: #b8842a;
    color: var(--dark-color);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid var(--white-color);
    color: var(--white-color);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background-color: var(--white-color);
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Enhanced button styles for better visibility */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
    font-weight: 600;
    border-width: 2px;
}

.btn-primary:hover {
    background-color: #004225;
    border-color: #004225;
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 91, 48, 0.3);
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: var(--dark-color);
    font-weight: 600;
    border-width: 2px;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #e0a800;
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.4);
}

/* Better contrast for text on light backgrounds */
.text-muted {
    color: #495057 !important;
}

.lead.text-dark {
    color: var(--dark-color) !important;
    font-weight: 500;
}

/* Enhanced card styles for better readability */
.card {
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 1.5rem;
}

.card-body p {
    color: #495057;
    line-height: 1.6;
}

/* ===== PULSE ANIMATION ===== */
.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(208, 156, 53, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(208, 156, 53, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(208, 156, 53, 0);
    }
}

/* ===== BREADCRUMBS ===== */
.breadcrumb-nav {
    background-color: var(--light-color);
    padding: 1rem 0;
}

.breadcrumb {
    background-color: transparent;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

.breadcrumb-item.active {
    color: var(--dark-color);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    height: 450px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SECTIONS ===== */
.section {
    padding: 4rem 0;
}

.section-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.section.bg-light {
    background-color: var(--light-color);
}

/* ===== TILES/CARDS ===== */
.tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tile {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tile-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.tile h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tile p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* ===== ACCORDION ===== */
.accordion-item {
    border: 1px solid #e9ecef;
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.accordion-header {
    margin-bottom: 0;
}

.accordion-button {
    background-color: var(--white-color);
    color: var(--dark-color);
    font-weight: 500;
    border: none;
    padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.accordion-body {
    padding: 1.25rem;
    background-color: var(--white-color);
}

/* ===== CARD HEADER ===== */
.card-header {
    background-color: var(--primary-color);
    color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

/* ===== IMAGES ===== */
.img-fluid {
    border-radius: var(--border-radius);
}

.shadow {
    box-shadow: var(--box-shadow) !important;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer h5 {
    color: var(--white-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer ul li a:hover {
    color: var(--secondary-color);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

.company-info p {
    margin-bottom: 0.25rem;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-notices p {
    margin-bottom: 0.5rem;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

.contact-info p {
    margin-bottom: 0.75rem;
    font-size: 14px;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
}

.contact-info a:hover {
    color: var(--white-color);
}

/* ===== NUMBERED LIST ===== */
.list-numbered {
    counter-reset: item;
    padding-left: 0;
}

.list-numbered li {
    display: block;
    margin-bottom: 1rem;
    padding-left: 3rem;
    position: relative;
}

.list-numbered li:before {
    content: counter(item);
    counter-increment: item;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-weight: 600;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 14px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
    .hero-section {
        height: 380px;
        min-height: 380px;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-content .lead {
        font-size: 1.15rem;
        line-height: 1.4;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .mega-menu {
        width: 95vw !important;
        padding: 1rem !important;
    }
    
    .contact-info {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    .tiles-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        height: 400px;
        min-height: 400px;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
        line-height: 1.4;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer .text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }
}

/* ===== LAZY LOADING ===== */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== FOCUS STYLES ===== */
a:focus,
button:focus,
.btn:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .top-bar,
    .main-nav,
    .breadcrumb-nav,
    .footer,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* ===== STEP CARDS ===== */
.step-card {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid #e9ecef;
    transition: var(--transition);
    position: relative;
    padding-left: 5rem;
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.step-number {
    position: absolute;
    left: 1.5rem;
    top: 2rem;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 91, 48, 0.3);
}

.step-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.step-card p {
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.6;
}