/* Modern Distributors Pages Styles - Scoped to .new_design */

/* Hero Section */
.new_design .distributors-hero {
    position: relative !important;
    min-height: 40vh !important;
    background-image: url('/images/new/Image_202512311344.jpeg') !important;
    background-size: cover !important;
    background-position: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.new_design .distributors-hero-small {
    min-height: 35vh !important;
}

.new_design .distributors-hero::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(0, 92, 187, 0.85) 0%, rgba(0, 0, 0, 0.7) 100%) !important;
    z-index: 1 !important;
}

.new_design .distributors-hero-content {
    position: relative !important;
    z-index: 2 !important;
    text-align: center !important;
    color: #ffffff !important;
    padding: 40px 20px !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
}

.new_design .distributors-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3) !important;
    line-height: 1.2 !important;
    color: #ffffff !important;
}

.new_design .distributors-hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.75rem) !important;
    font-weight: 400 !important;
    color: #ffd700 !important;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.4) !important;
    max-width: 800px !important;
    margin: 0 auto !important;
}

/* Content Section */
.new_design .distributors-content-section {
    padding: 80px 0 100px !important;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%) !important;
}

/* Intro Section */
.new_design .distributors-intro {
    text-align: center !important;
    max-width: 900px !important;
    margin: 0 auto 60px !important;
}

.new_design .section-heading {
    font-size: clamp(2rem, 4vw, 2.75rem) !important;
    font-weight: 700 !important;
    color: #005cbb !important;
    margin-bottom: 25px !important;
    line-height: 1.3 !important;
}

.new_design .intro-text {
    font-size: 1.35rem !important;
    line-height: 1.8 !important;
    color: #2c2c2c !important;
    margin: 0 !important;
}

/* Continents Grid */
.new_design .continents-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 30px !important;
    margin-bottom: 80px !important;
}

.new_design .continent-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 40px 35px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    border: 2px solid #e9ecef !important;
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    position: relative !important;
    overflow: hidden !important;
}

.new_design .continent-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(0, 92, 187, 0.05) 0%, rgba(0, 168, 232, 0.05) 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: 0 !important;
}

.new_design .continent-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 35px rgba(0, 92, 187, 0.2) !important;
    border-color: #005cbb !important;
    text-decoration: none !important;
}

.new_design .continent-card:hover::before {
    opacity: 1 !important;
}

.new_design .continent-icon {
    font-size: 4rem !important;
    margin-bottom: 20px !important;
    position: relative !important;
    z-index: 1 !important;
}

.new_design .continent-name {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #005cbb !important;
    margin-bottom: 15px !important;
    line-height: 1.3 !important;
    position: relative !important;
    z-index: 1 !important;
}

.new_design .continent-description {
    font-size: 1.25rem !important;
    color: #666 !important;
    margin-bottom: 20px !important;
    line-height: 1.6 !important;
    position: relative !important;
    z-index: 1 !important;
}

.new_design .continent-arrow {
    font-size: 2rem !important;
    color: #005cbb !important;
    transition: transform 0.3s ease !important;
    position: relative !important;
    z-index: 1 !important;
}

.new_design .continent-card:hover .continent-arrow {
    transform: translateX(10px) !important;
    color: #ffd700 !important;
}

/* CTA Section */
.new_design .distributors-cta {
    background: linear-gradient(135deg, #005cbb 0%, #00a8e8 100%) !important;
    border-radius: 20px !important;
    padding: 50px 40px !important;
    text-align: center !important;
    box-shadow: 0 8px 30px rgba(0, 92, 187, 0.3) !important;
}

.new_design .cta-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 20px !important;
    line-height: 1.3 !important;
}

.new_design .cta-text {
    font-size: 1.35rem !important;
    color: #ffffff !important;
    margin-bottom: 30px !important;
    line-height: 1.6 !important;
    max-width: 700px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.new_design .cta-button {
    display: inline-block !important;
    padding: 18px 45px !important;
    background: #ffd700 !important;
    color: #005cbb !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3) !important;
    border: 2px solid transparent !important;
}

.new_design .cta-button:hover {
    background: #ffffff !important;
    color: #005cbb !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.4) !important;
    text-decoration: none !important;
}

/* Back Button */
.new_design .back-button-wrapper {
    margin-bottom: 40px !important;
}

.new_design .back-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 25px !important;
    background: #f8f9fa !important;
    color: #005cbb !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    border: 2px solid #e9ecef !important;
}

.new_design .back-button:hover {
    background: #005cbb !important;
    color: #ffffff !important;
    border-color: #005cbb !important;
    transform: translateX(-5px) !important;
    text-decoration: none !important;
}

.new_design .back-arrow {
    font-size: 1.5rem !important;
    transition: transform 0.3s ease !important;
}

.new_design .back-button:hover .back-arrow {
    transform: translateX(-5px) !important;
}

/* Country Search */
.new_design .country-search-wrapper {
    position: relative !important;
    max-width: 600px !important;
    margin: 0 auto 50px !important;
}

.new_design .country-search-input {
    width: 100% !important;
    padding: 18px 60px 18px 25px !important;
    font-size: 1.25rem !important;
    border: 3px solid #005cbb !important;
    border-radius: 50px !important;
    background: #ffffff !important;
    color: #2c2c2c !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 92, 187, 0.1) !important;
}

.new_design .country-search-input:focus {
    outline: none !important;
    border-color: #00a8e8 !important;
    box-shadow: 0 6px 25px rgba(0, 92, 187, 0.2) !important;
}

.new_design .country-search-input::placeholder {
    color: #999 !important;
}

.new_design .search-icon {
    position: absolute !important;
    right: 25px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 1.5rem !important;
    pointer-events: none !important;
}

/* Countries Grid */
.new_design .countries-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 15px !important;
    margin-bottom: 60px !important;
}

.new_design .country-card {
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    border: 2px solid #e9ecef !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08) !important;
}

.new_design .country-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(0, 92, 187, 0.15) !important;
    border-color: #005cbb !important;
}

.new_design .country-card-inner {
    padding: 20px 15px !important;
    text-align: center !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100px !important;
}

.new_design .country-flag-placeholder {
    font-size: 2rem !important;
    margin-bottom: 10px !important;
}

.new_design .country-name {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: #2c2c2c !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

/* No Results */
.new_design .no-results {
    text-align: center !important;
    padding: 60px 20px !important;
    background: #f8f9fa !important;
    border-radius: 15px !important;
    margin-bottom: 40px !important;
}

.new_design .no-results p {
    font-size: 1.35rem !important;
    color: #666 !important;
    margin: 0 !important;
}

/* Distributors Results */
.new_design .distributors-results-wrapper {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 40px !important;
    margin-top: 60px !important;
    box-shadow: 0 8px 30px rgba(0, 92, 187, 0.15) !important;
    border: 3px solid #005cbb !important;
}

.new_design .distributors-results-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 30px !important;
    padding-bottom: 20px !important;
    border-bottom: 3px solid #005cbb !important;
}

.new_design .results-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #005cbb !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

.new_design .close-results-button {
    padding: 12px 25px !important;
    background: #f8f9fa !important;
    color: #2c2c2c !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    border: 2px solid #e9ecef !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.new_design .close-results-button:hover {
    background: #005cbb !important;
    color: #ffffff !important;
    border-color: #005cbb !important;
}

.new_design .loading-spinner {
    text-align: center !important;
    padding: 40px 20px !important;
}

.new_design .spinner {
    width: 50px !important;
    height: 50px !important;
    margin: 0 auto 20px !important;
    border: 5px solid #f3f3f3 !important;
    border-top: 5px solid #005cbb !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.new_design .loading-spinner p {
    font-size: 1.25rem !important;
    color: #666 !important;
}

.new_design .results-content {
    font-size: 1.35rem !important;
    line-height: 1.8 !important;
    color: #2c2c2c !important;
}

.new_design .results-content a {
    color: #005cbb !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}

.new_design .results-content a:hover {
    color: #00a8e8 !important;
}

.new_design .error-message {
    background: #fff3cd !important;
    border: 2px solid #ffc107 !important;
    border-radius: 10px !important;
    padding: 25px !important;
    text-align: center !important;
}

.new_design .error-message p {
    color: #856404 !important;
    font-size: 1.25rem !important;
    margin: 0 !important;
}

/* Responsive Design */
@media (max-width: 992px) {
    .new_design .continents-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        gap: 25px !important;
    }
    
    .new_design .countries-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .new_design .distributors-content-section {
        padding: 50px 0 !important;
    }
    
    .new_design .distributors-hero {
        min-height: 30vh !important;
    }
    
    .new_design .distributors-hero-small {
        min-height: 25vh !important;
    }
    
    .new_design .distributors-hero-content {
        padding: 30px 20px !important;
    }
    
    .new_design .distributors-intro {
        margin-bottom: 40px !important;
    }
    
    .new_design .intro-text {
        font-size: 1.25rem !important;
    }
    
    .new_design .continents-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-bottom: 60px !important;
    }
    
    .new_design .continent-card {
        padding: 35px 25px !important;
    }
    
    .new_design .continent-icon {
        font-size: 3rem !important;
    }
    
    .new_design .continent-name {
        font-size: 1.5rem !important;
    }
    
    .new_design .continent-description {
        font-size: 1.15rem !important;
    }
    
    .new_design .distributors-cta {
        padding: 40px 25px !important;
    }
    
    .new_design .cta-title {
        font-size: 1.75rem !important;
    }
    
    .new_design .cta-text {
        font-size: 1.25rem !important;
    }
    
    .new_design .cta-button {
        font-size: 1.25rem !important;
        padding: 15px 35px !important;
    }
    
    .new_design .countries-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .new_design .country-card-inner {
        padding: 18px 12px !important;
        min-height: 90px !important;
    }
    
    .new_design .country-name {
        font-size: 1.1rem !important;
    }
    
    .new_design .country-search-input {
        font-size: 1.15rem !important;
        padding: 15px 50px 15px 20px !important;
    }
    
    .new_design .distributors-results-wrapper {
        padding: 25px 20px !important;
    }
    
    .new_design .distributors-results-header {
        flex-direction: column !important;
        gap: 20px !important;
        align-items: flex-start !important;
    }
    
    .new_design .close-results-button {
        width: 100% !important;
        text-align: center !important;
    }
    
    .new_design .results-content {
        font-size: 1.25rem !important;
    }
}

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

.new_design .continent-card,
.new_design .country-card {
    animation: fadeInUp 0.5s ease-out backwards !important;
}

.new_design .continent-card:nth-child(1),
.new_design .country-card:nth-child(1) { animation-delay: 0.05s !important; }
.new_design .continent-card:nth-child(2),
.new_design .country-card:nth-child(2) { animation-delay: 0.1s !important; }
.new_design .continent-card:nth-child(3),
.new_design .country-card:nth-child(3) { animation-delay: 0.15s !important; }
.new_design .continent-card:nth-child(4),
.new_design .country-card:nth-child(4) { animation-delay: 0.2s !important; }
.new_design .continent-card:nth-child(5),
.new_design .country-card:nth-child(5) { animation-delay: 0.25s !important; }
.new_design .continent-card:nth-child(6),
.new_design .country-card:nth-child(6) { animation-delay: 0.3s !important; }
.new_design .continent-card:nth-child(n+7),
.new_design .country-card:nth-child(n+7) { animation-delay: 0.35s !important; }

