/* Page Header Section */
.pg-header {
    background-image: url('https://www.dxn2u.com/award/images/Slider-Awards.jpg');
}

/* Accolades Section Styles */
.accolades {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem;
}

.section-title {
    text-align: center;
    color: #ff4500;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.awards-title,
.certificates-title {
    text-align: center;
    color: #0047ab;
    font-size: 2rem;
    margin-top: 3rem;
    position: relative;
}

.awards-title::before,
.awards-title::after,
.certificates-title::before,
.certificates-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100px;
    height: 2px;
    background-color: #0047ab;
}

.awards-title::before {
    right: calc(50% + 100px);
}

.awards-title::after {
    left: calc(50% + 100px);
}

.certificates-title::before {
    right: calc(54% + 100px);
}

.certificates-title::after {
    left: calc(54% + 100px);
}

.awards-slider,
.certificates-slider {
    position: relative;
    padding: 0 40px;
    margin-top: 2rem;
}

.awards-grid,
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 0 auto;
    max-width: 1400px;
    align-items: start;
    padding: 0 20px;
    transition: transform 0.3s ease;
}

.award-item,
.certificate-item {
    text-align: center;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    transition: opacity 0.3s ease;
}

.award-item p,
.certificate-item p {
    font-size: 1.1rem;
    color: #333;
    font-weight: bold;
    margin-top: 1rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #0047ab;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-btn:hover {
    background-color: #003380;
}

.slider-btn.prev {
    left: 0;
}

.slider-btn.next {
    right: 0;
}

/* Responsive Design for Awards and Certificates */
@media (max-width: 1200px) {
    .accolades {
        padding: 4rem 3rem;
    }

    .awards-grid,
    .certificates-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 992px) {
    .accolades {
        padding: 3rem 2rem;
    }

    .awards-grid,
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .awards-title,
    .certificates-title {
        font-size: 1.8rem;
    }

    .award-item,
    .certificate-item {
        height: 350px;
    }

    .award-item img,
    .certificate-item img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .accolades {
        padding: 2.5rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .awards-title,
    .certificates-title {
        font-size: 1.6rem;
    }

    .awards-title::before,
    .awards-title::after,
    .certificates-title::before,
    .certificates-title::after {
        width: 50px;
    }

    .awards-title::before,
    .certificates-title::before {
        right: calc(54% + 60px);
    }

    .awards-title::after,
    .certificates-title::after {
        left: calc(54% + 60px);
    }

    .award-item p,
    .certificate-item p {
        font-size: 1rem;
    }

    #certificateModal .modal-content {
        width: 95%;
    }

    #modalImage {
        max-height: 350px;
    }
}

@media (max-width: 576px) {
    .accolades {
        padding: 2rem 1rem;
    }

    .awards-grid,
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .awards-title,
    .certificates-title {
        font-size: 1.4rem;
    }

    .award-item,
    .certificate-item {
        height: auto;
        padding: 10px;
    }

    .award-item img,
    .certificate-item img {
        height: 200px;
    }

    #certificateModal .modal-content {
        padding: 15px;
    }

    #modalImage {
        max-height: 300px;
    }

    #certificateModal .modal-text h3 {
        font-size: 1.3rem;
    }

    #certificateModal .modal-text p {
        font-size: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {    
    .awards-section {
        padding: 0 2rem;
    }
    
    .awards-content h1 {
        font-size: 3rem;
    }
}

.award-item img,
.certificate-item img {
    width: 100%;
    height: 290px;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    filter: grayscale(100%);
    padding: 20px;
}

.award-item:hover img,
.certificate-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Add these modal styles */
#certificateModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#certificateModal.active {
    opacity: 1;
    visibility: visible;
}

#certificateModal .modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

#certificateModal .close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    z-index: 1;
}

#certificateModal .close-modal:hover {
    color: #000;
}

#modalImage {
    width: 100%;
    max-height: 40vh;
    object-fit: contain;
    margin-bottom: 20px;
}

#certificateModal .modal-text {
    text-align: center;
    padding: 0 20px;
}

#certificateModal .modal-text h3 {
    color: #0047ab;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

#certificateModal .modal-text p {
    color: #333;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Responsive modal styles */
@media (max-width: 768px) {
    #certificateModal .modal-content {
        width: 95%;
        padding: 15px;
    }

    #modalImage {
        max-height: 350px;
    }

    #certificateModal .modal-text h3 {
        font-size: 1.3rem;
    }

    #certificateModal .modal-text p {
        font-size: 1rem;
    }
}

/* Update certificate item styles to show it's clickable */
.certificate-item, .award-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.certificate-item:hover, .award-item:hover {
    transform: translateY(-5px);
}

.modal-files {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

#modalFileList {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.file-item {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.2s ease;
    background-color: #0047ab;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-item:hover {
    transform: scale(1.1);
    background-color: #003380;
}

.file-number {
    color: white;
    font-weight: bold;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .file-item {
        width: 35px;
        height: 35px;
    }
    
    .file-number {
        font-size: 0.9rem;
    }
} 