* {
     margin: 0;
    padding: 0;
    box-sizing: border-box;
    }

body {
    font-family: 'Poppins', sans-serif;
    background: #262626;
    color: white;
    }

 .partners-container {
           padding: 60px 0px;
        }

        .partners-title {
               background: linear-gradient(180deg, #F6F6F7 0%, #7E808F 100%);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                background-clip: text; 
                color: transparent;
                font-weight: 800;
            text-transform: uppercase;
            text-align: center;
        }

       
        .section-header {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }

        .section-title {
            font-size: 25px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-right: 20px;
            color: #F16522;
        }

        .partners-container .section{
            margin-top: 60px;
        }

        .carousel-container {
            position: relative;
            display: flex;
            align-items: center;
        }

        .carousel {
            display: flex;
            overflow-x: auto;
            scroll-behavior: smooth;
            gap: 20px;
            padding: 10px 0;
            scrollbar-width: none;
            -ms-overflow-style: none;
            flex: 1;
        }

        .carousel::-webkit-scrollbar {
            display: none;
        }

        .partner-logo {
            flex: 0 0 auto;
            width: 200px;
            height: 68px;
            box-shadow: 2px 6px 11px 0px #0000002E;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            cursor: pointer;
            display: flex;
            gap: 19px;
        }

        .partner-logo:hover {
            background-color: #3a3a3a;
            border-color: #606060;
            transform: translateY(-2px);
        }

        .partner-logo img{
            width: 45px;

        }
        .partner-placeholder {
            color: rgb(255, 255, 255);
            font-size: 0.9rem;
            font-weight: 500;
        }

        .nav-button {
            background-color: #333;
            border: 1px solid #555;
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            margin: 0 10px;
        }

        .nav-button:hover {
            background-color: #444;
            border-color: #666;
        }

        .nav-button.visible {
            display: flex;
        }

        .nav-button svg {
            width: 20px;
            height: 20px;
        }

        .nav-left {
            order: -1;
        }

        .nav-right {
            order: 1;
        }

        @media (max-width: 768px) {
            .partners-title {
                font-size: 1.5rem;
                margin-bottom: 30px;
            }

            .section {
                margin-bottom: 30px;
            }

            .partner-logo {
                width: 160px;
                height: 80px;
            }

            .carousel {
                gap: 15px;
            }
        }

        /* Custom scrollbar for desktop */
        @media (min-width: 769px) {
         

            .carousel::-webkit-scrollbar {
                display: block;
                height: 6px;
            }

            .carousel::-webkit-scrollbar-track {
                background: transparent;
            }

            .carousel::-webkit-scrollbar-thumb {
                background-color: #555;
                border-radius: 3px;
            }

            .carousel::-webkit-scrollbar-thumb:hover {
                background-color: #666;
            }
        }

        /* Modal Styles */
      
.partnership-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s ease-in-out;
    padding: 10px; /* Add padding for mobile */
    overflow-y: auto; /* Allow scrolling if content is too tall */
}

.modal-content {
    background-color: #333;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    position: relative;
    animation: slideIn 0.3s ease-in-out;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-height: 90vh; /* Prevent modal from being too tall */
    overflow-y: auto; /* Allow scrolling within modal */
}

.modal-header {
    color: white;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
    position: sticky; /* Keep header visible when scrolling */
    top: 0;
    background-color: #333;
    z-index: 1;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    padding-right: 10px; /* Ensure space between title and close button */
}

.close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    flex-shrink: 0; /* Prevent shrinking on small screens */
}

.close:hover {
    background-color: rgba(255,255,255,0.2);
}

.modal-body {
    padding: 20px;
    text-align: center;
}

.certificate-container {
    margin-bottom: 20px;
}

.certificate-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    margin-bottom: 15px;
}

.partnership-description {
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 15px;
}

.partnership-highlights {
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.partnership-highlights h4 {
    color: #F16522;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.partnership-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.partnership-highlights li {
    padding: 4px 0;
    color: #ccc;
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.4;
}

.partnership-highlights li:before {
    content: "•";
    color: #F16522;
    position: absolute;
    left: 0;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .partnership-modal {
        padding: 20px;
    }
    
    .modal-content {
        margin: 1% auto;
        border-radius: 8px;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 12px 15px;
        border-radius: 8px 8px 0 0;
    }
    
    .modal-title {
        font-size: 16px;
        line-height: 1.2;
    }
    
    .close {
        font-size: 22px;
        width: 32px;
        height: 32px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .partnership-description {
        font-size: 13px;
    }
    
    .partnership-highlights {
        padding: 12px;
    }
    
    .partnership-highlights h4 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .partnership-highlights li {
        font-size: 13px;
        padding: 3px 0;
        padding-left: 18px;
    }
}

@media (max-width: 480px) {
    .partnership-modal {
        padding: 25px;
    }
    
    .modal-content {
        margin: 0.5% auto;
        border-radius: 6px;
        max-height: 97vh;
    }
    
    .modal-header {
        padding: 10px 12px;
        border-radius: 6px 6px 0 0;
    }
    
    .modal-title {
        font-size: 15px;
    }
    
    .close {
        font-size: 20px;
        width: 30px;
        height: 30px;
    }
    
    .modal-body {
        padding: 12px;
    }
    
    .partnership-description {
        font-size: 12px;
    }
    
    .partnership-highlights {
        padding: 10px;
    }
    
    .partnership-highlights h4 {
        font-size: 0.9rem;
    }
    
    .partnership-highlights li {
        font-size: 12px;
        padding-left: 16px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .modal-content {
        max-height: 85vh;
        margin: 1% auto;
    }
    
    .modal-body {
        padding: 10px 20px;
    }
    
    .certificate-container {
        margin-bottom: 10px;
    }
    
    .partnership-highlights {
        margin-top: 10px;
        padding: 10px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}