/* CRITICAL FIX - Must be at the top */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

/* How to Apply for Dubai Visa Section */
.apply-visa-hero {
    width: 100%;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 28px 0;
    overflow: hidden;
}

.apply-visa-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow: hidden;
}

.apply-visa-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.apply-visa-title {
    font-family: "Poppins", sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.apply-visa-subtitle {
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #4a4a4a;
    margin: 0;
    line-height: 1.5;
}

/* Video Section */
.video-section {
    background: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    overflow: hidden;
}

.video-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: #000000;
    overflow: hidden;
}

.video-player {
    width: 100%;
    height: auto;
    min-height: 350px;
    display: block;
    background: #000000;
}

/* Steps Section - FIXED WITH ARROWS */
.steps-section {
    background: var(--primary-color);
    padding: 25px 0;
    color: white;
    border-bottom: 1px solid #e0e0e0;
    overflow: hidden;
    position: relative;
}

.steps-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 0 20px;
}

.steps-title {
    font-family: "Poppins", sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.steps-subtitle {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: white;
    margin: 0;
    line-height: 1.5;
}

/* Steps Wrapper - HORIZONTAL SCROLL WITH ARROWS - NO LEFT PADDING */
.steps-wrapper-container {
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    padding: 20px 0 30px;
}

.steps-wrapper {
    display: flex;
    justify-content: flex-start; /* Changed from center to flex-start */
    align-items: center;
    gap: 60px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 60px 20px 20px; /* Reduced left padding, kept right padding */
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Hide scrollbar but keep functionality */
.steps-wrapper::-webkit-scrollbar {
    display: none;
}

/* Step Items with Arrows */
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
    min-width: 140px;
    position: relative;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    z-index: 2;
    position: relative;
}

.step-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

/* Arrow between steps - VISIBLE ON ALL SCREENS */
.step-arrow {
    position: absolute;
    right: -40px;
    top: 40px;
    font-size: 28px;
    color: white;
    font-weight: bold;
    font-family: "Arial", sans-serif;
    z-index: 1;
}

.step-item:last-child .step-arrow {
    display: none;
}

.step-title {
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin: 0;
    line-height: 1.3;
    max-width: 140px;
    white-space: normal;
    text-align: center;
}

/* Custom Scroll Indicators - POSITIONED LOWER */
.scroll-indicator {
    position: absolute;
    top: 55%; /* Changed from 50% to 65% to position lower */
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    display: none; /* Hidden by default, shown by JS when needed */
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    z-index: 100;
    opacity: 0.8;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.scroll-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.scroll-indicator.left {
    left: 15px; /* Slightly more padding from edge */
}

.scroll-indicator.right {
    right: 15px; /* Slightly more padding from edge */
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Process Section */
.process-section {
    background: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    overflow: hidden;
}

.process-content {
    width: 100%;
    margin: 0 auto;
    text-align: left;
    padding: 0 40px;
}

.process-title {
    font-family: "Poppins", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.process-text {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    margin: 0 0 16px 0;
    line-height: 1.6;
    text-align: justify;
}

/* Why Apply Online Section */
.why-apply-section {
    background: #ffffff;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    overflow: hidden;
}

.why-apply-content {
    width: 100%;
    margin: 0 auto;
    text-align: left;
    padding: 0 40px;
}

.why-apply-title {
    font-family: "Poppins", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.why-apply-subtitle {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    margin: 0 0 30px 0;
    line-height: 1.6;
    text-align: justify;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.benefit-number {
    width: 30px;
    height: 30px;
    background: #f8f9fa;
    color: #333333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 2px;
}

.benefit-content {
    flex: 1;
}

.benefit-title {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.benefit-text {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    margin: 0;
    line-height: 1.6;
    text-align: justify;
}

/* Before You Apply Section */
.before-apply-section {
    background: #e7f8ec;
    padding: 40px 0;
    overflow: hidden;
}

.before-apply-content {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 0 40px;
}

.before-apply-title {
    font-family: "Poppins", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.before-apply-subtitle {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    margin: 0 0 35px 0;
    line-height: 1.5;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.info-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px 25px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card-title {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.info-card-text {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    margin: 0;
    line-height: 1.6;
    text-align: justify;
}

/* Responsive Design */

/* Large Screens */
@media (min-width: 1201px) {
    .steps-wrapper {
        gap: 80px;
        padding: 20px 80px 20px 20px; /* More right padding, minimal left */
        justify-content: flex-start;
    }
    
    .step-item {
        min-width: 160px;
    }
    
    .step-arrow {
        right: -50px;
        font-size: 32px;
        top: 40px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .steps-wrapper {
        gap: 70px;
        padding: 20px 70px 20px 20px;
        justify-content: flex-start;
    }
    
    .step-item {
        min-width: 150px;
    }
    
    .step-arrow {
        right: -45px;
        font-size: 30px;
        top: 40px;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .steps-wrapper {
        gap: 60px;
        padding: 20px 60px 20px 20px;
        justify-content: flex-start;
    }
    
    .step-item {
        min-width: 140px;
    }
    
    .step-arrow {
        right: -40px;
        font-size: 28px;
        top: 40px;
    }
    
    .info-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .apply-visa-title {
        font-size: 24px;
    }
    
    .apply-visa-subtitle {
        font-size: 14px;
    }
    
    .video-player {
        min-height: 250px;
    }
    
    .steps-title {
        font-size: 28px;
    }
    
    .steps-subtitle {
        font-size: 14px;
    }
    
    .steps-wrapper {
        gap: 50px;
        padding: 20px 50px 20px 15px; /* Reduced left padding even more */
        justify-content: flex-start;
    }
    
    .step-item {
        min-width: 130px;
    }
    
    .step-icon {
        width: 70px;
        height: 70px;
    }
    
    .step-icon i {
        font-size: 24px;
    }
    
    .step-arrow {
        right: -35px;
        font-size: 24px;
        top: 35px;
    }
    
    .step-title {
        font-size: 14px;
        max-width: 120px;
    }
    
    .process-content,
    .why-apply-content,
    .before-apply-content {
        padding: 0 20px;
    }
    
    .info-cards-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    /* Show scroll indicators on mobile when needed */
    .scroll-indicator {
        display: flex;
        width: 36px;
        height: 36px;
        font-size: 20px;
        top: 90%; /* Even lower on mobile */
    }
}

/* Mobile Medium */
@media (max-width: 576px) {
    .steps-wrapper {
        gap: 40px;
        padding: 20px 50px 20px 15px;
    }
    
    .step-item {
        min-width: 110px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
    }
    
    .step-icon i {
        font-size: 22px;
    }
    
    .step-arrow {
        right: -30px;
        font-size: 22px;
        top: 30px;
    }
    
    .step-title {
        font-size: 13px;
        max-width: 100px;
    }
    
    .scroll-indicator {
        width: 32px;
        height: 32px;
        font-size: 18px;
        top: 90%;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .apply-visa-title {
        font-size: 20px;
    }
    
    .apply-visa-subtitle {
        font-size: 13px;
    }
    
    .video-player {
        min-height: 200px;
    }
    
    .steps-wrapper {
        gap: 35px;
        padding: 20px 50px 20px 15px;
    }
    
    .step-item {
        min-width: 100px;
    }
    
    .step-icon {
        width: 55px;
        height: 55px;
    }
    
    .step-icon i {
        font-size: 20px;
    }
    
    .step-arrow {
        right: -28px;
        font-size: 20px;
        top: 28px;
    }
    
    .step-title {
        font-size: 12px;
        max-width: 90px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .scroll-indicator {
        width: 30px;
        height: 30px;
        font-size: 16px;
        top: 90%;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .steps-wrapper {
        gap: 30px;
        padding: 20px 50px 20px 15px;
    }
    
    .step-item {
        min-width: 90px;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
    }
    
    .step-icon i {
        font-size: 18px;
    }
    
    .step-arrow {
        right: -25px;
        font-size: 18px;
        top: 25px;
    }
    
    .step-title {
        font-size: 11px;
        max-width: 80px;
    }
}