/* How to Apply Section Styles */
.how-to-apply-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.how-to-apply-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(234, 85, 71, 0.03) 0%,
        rgba(104, 72, 47, 0.03) 50%,
        rgba(253, 198, 44, 0.03) 100%
    );
    z-index: 0;
}

.how-to-apply-section .container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Method Tabs */
.method-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 50px;
    flex-wrap: wrap;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: white;
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 180px;
    justify-content: center;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: left 0.3s ease;
    z-index: -1;
}

.tab-btn:hover::before,
.tab-btn.active::before {
    left: 0;
}

.tab-btn:hover,
.tab-btn.active {
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(234, 85, 71, 0.2);
}

.tab-btn i {
    font-size: 1.2rem;
}

/* Tab Content */
.method-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-content {
    display: none;
    animation: fadeInUp 0.6s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Method Intro */
.method-intro {
    text-align: center;
    margin-bottom: 50px;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    color: white;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
}

.method-intro h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.method-intro p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}

/* Step Card */
.step-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f4f8;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(234, 85, 71, 0.3);
}

.step-content h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.step-content p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Download Button */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.download-btn:hover::before {
    opacity: 1;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(234, 85, 71, 0.4);
    color: white;
    text-decoration: none;
}

.download-btn i,
.download-btn span {
    position: relative;
    z-index: 2;
    color: white;
    transition: color 0.3s ease;
}

.download-btn:hover i,
.download-btn:hover span {
    color: white;
}

/* Video Section */
.video-section {
    margin-top: 60px;
}

.video-section h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 2rem;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.video-grid.single {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
}

/* Video Card */
.video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    box-shadow: none;
    margin: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px 12px 0 0;
    z-index: 3;
}

/* Add play button overlay like hero section */
.video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container:hover::after {
    opacity: 1;
}

.video-card h5 {
    padding: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin: 0;
}

/* Large Screens Video Sizing */
@media (min-width: 1440px) {
    .video-container {
        max-width: min(800px, 50vw);
    }
}

/* Ultra-Wide Screens (2198px to 2560px) */
@media (min-width: 2198px) and (max-width: 2560px) {
    .how-to-apply-section .container {
        max-width: 1800px;
        padding: 0 3rem;
    }

    .method-content {
        max-width: 1600px;
    }

    .steps-grid {
        max-width: 1600px;
        gap: 3rem;
    }

    .method-intro {
        max-width: 1600px;
        padding: 3rem;
    }

    .video-grid {
        max-width: 1600px;
        gap: 5rem;
    }

    .video-container {
        max-width: min(1000px, 45vw);
    }
}

/* Extra Large Screens (2560px+) */
@media (min-width: 2560px) {
    .how-to-apply-section .container {
        max-width: 2000px;
        padding: 0 4rem;
    }

    .method-content {
        max-width: 1800px;
    }

    .steps-grid {
        max-width: 1800px;
        gap: 4rem;
    }

    .method-intro {
        max-width: 1800px;
        padding: 4rem;
    }

    .video-grid {
        max-width: 1800px;
        gap: 6rem;
    }

    .video-container {
        max-width: min(1200px, 40vw);
    }
}

/* Responsive Design */
@media (max-width: 1440px) {
    .how-to-apply-section .container {
        max-width: 1200px;
    }
}

/* Laptop Large (1200px to 1440px) */
@media (min-width: 1200px) and (max-width: 1440px) {
    .how-to-apply-section .container {
        max-width: 1300px;
        padding: 0 2rem;
    }

    .method-content {
        max-width: 1200px;
    }

    .steps-grid {
        max-width: 1200px;
        gap: 2.5rem;
    }

    .method-intro {
        max-width: 1200px;
        padding: 2.5rem;
    }

    .video-grid {
        max-width: 1200px;
        gap: 4rem;
    }

    .tab-btn {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }
}

/* Laptop Medium (1024px to 1200px) */
@media (min-width: 1024px) and (max-width: 1200px) {
    .how-to-apply-section .container {
        max-width: 1100px;
        padding: 0 2rem;
    }

    .method-content {
        max-width: 1000px;
    }

    .steps-grid {
        max-width: 1000px;
        gap: 2rem;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }

    .method-intro {
        max-width: 1000px;
        padding: 2rem;
    }

    .video-grid {
        max-width: 1000px;
        gap: 3rem;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .tab-btn {
        padding: 1rem 2rem;
        min-width: 160px;
    }
}

@media (max-width: 1200px) {
    .how-to-apply-section .container {
        max-width: 1000px;
    }
}

@media (max-width: 992px) {
    .how-to-apply-section .container {
        max-width: 100%;
        padding: 0 1.5rem;
    }

    .method-content {
        max-width: 100%;
    }

    .steps-grid {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .how-to-apply-section {
        padding: 80px 0;
    }

    .how-to-apply-section .container {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .method-tabs {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        max-width: 100%;
    }

    .tab-btn {
        width: 100%;
        max-width: 300px;
    }

    .method-intro {
        padding: 1.5rem;
        margin-bottom: 30px;
        max-width: 100%;
    }

    .method-intro h3 {
        font-size: 1.5rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .step-card {
        padding: 1.5rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
    }

    .video-card {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .video-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .method-intro {
        padding: 1rem;
    }

    .step-card {
        padding: 1rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-content h4 {
        font-size: 1.1rem;
    }

    .video-grid {
        gap: 1rem;
    }
}

@media (max-width: 320px) {
    .video-grid {
        max-width: 300px;
    }
}

/* Force center align for How to Apply heading */
.how-to-apply-section .section-header .section-title {
    display: block;
    width: 100%;
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
} 