/* Gateway Page Modern Styling */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --accent-color: #667eea;
    --accent-hover: #764ba2;
    --card-shadow: 0 10px 40px rgba(0,0,0,0.15);
    --card-hover-shadow: 0 15px 60px rgba(102, 126, 234, 0.3);
}

body.gateway-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

/* Header Banner */
.gateway-header {
    position: relative;
    height: 400px;
    background: var(--primary-gradient);
    overflow: hidden;
    margin-bottom: 60px;
}

.gateway-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/gateway-banner.jpg') center/cover;
    opacity: 0.3;
    animation: subtleZoom 20s ease-in-out infinite;
}

@keyframes subtleZoom {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.gateway-header-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 40px 20px;
}

.gateway-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.gateway-header p {
    font-size: 1.3rem;
    max-width: 700px;
    opacity: 0.95;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Content Container */
.gateway-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px 80px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 25px auto 0;
}

/* Partner Cards Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.partner-card {
    position: relative;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInScale 0.6s ease-out both;
}

.partner-card:nth-child(1) { animation-delay: 0.1s; }
.partner-card:nth-child(2) { animation-delay: 0.15s; }
.partner-card:nth-child(3) { animation-delay: 0.2s; }
.partner-card:nth-child(4) { animation-delay: 0.25s; }
.partner-card:nth-child(5) { animation-delay: 0.3s; }

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.partner-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--card-hover-shadow);
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.partner-card:hover::before {
    opacity: 0.1;
}

.partner-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.partner-card:hover img {
    transform: scale(1.05);
}

.partner-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 2;
}

.partner-card:hover .partner-card-overlay {
    transform: translateY(0);
}

.partner-card-overlay h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Rotating Banner Slider */
.rotating-banners-section {
    margin-bottom: 80px;
    padding: 60px 0;
    background: white;
    border-radius: 30px;
    box-shadow: var(--card-shadow);
}

.splide__slide {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.splide__arrow {
    background: var(--primary-gradient) !important;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.splide__arrow:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* CTA Button */
.gateway-cta {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 30px;
    box-shadow: var(--card-shadow);
    margin: 60px 0;
    animation: fadeInUp 1s ease-out;
}

.gateway-cta h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.gateway-cta p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.btn-gateway {
    display: inline-block;
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-gateway::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-gateway:hover::before {
    left: 100%;
}

.btn-gateway:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
    color: white;
}

/* Advertisements Section */
.ads-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    padding: 80px 0;
    margin: 60px -30px 0;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.ad-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.ad-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer Styling */
footer.gateway-footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 50px 0 30px;
    margin-top: 80px;
}

footer.gateway-footer a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
}

footer.gateway-footer a:hover {
    color: white;
    text-decoration: none;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    max-width: 200px;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gateway-header {
        height: 300px;
    }
    
    .gateway-header h1 {
        font-size: 2.2rem;
    }
    
    .gateway-header p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .gateway-cta {
        padding: 40px 20px;
    }
    
    .gateway-cta h3 {
        font-size: 1.5rem;
    }
    
    .btn-gateway {
        padding: 15px 35px;
        font-size: 1rem;
    }
    
    .gateway-container {
        padding: 0 15px 40px;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Badge/Tag Styling */
.exclusive-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-gradient);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
