body {
    background: linear-gradient(135deg, #ad5f5f 0%, #ffffff 50%, #9a9999 100%);
    margin: 0;
}

.in-between-header-and-section {
    height: 100px;
}

/*---------------title-------------------*/
.exam-main-headline {
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 10px;
    gap: 30px;
}

.center {
    color: rgb(0, 0, 0);
    text-align: center;
    font-size: 4rem;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: bold;
}

.red {
    color: rgb(175, 31, 31);
}

/*inbetween box and title*/
.in-between-title-box {
    padding: 10px;
    display: flex;
    justify-content: center;
}
.title-box-border {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    height: 2px;
    background-color: rgb(28, 28, 28);
    display: flex;
}

/*---------------box--------------------*/
.exam-box-divider {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.exam-schedule-container {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: flex-start;
}

/*box colour*/
.exam-box.red {
    background-color: rgb(175, 31, 31);
}
.exam-box.grey {
    background-color: rgb(122, 113, 113);
}

.exam-box {
    width: 350px;
    height: 350px;
    color: rgb(222, 220, 220);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    font-size: 1.1rem;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 20px; 
    transition: box-shadow 0.3s ease-in-out;
}

.exam-box:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.882);
}

.exam-box h2 {
    font-size: 2.3rem;
    margin-bottom: 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    transition: transform 0.3s ease-in-out;
}

.exam-box h3 {
    font-size: 2.3rem;
    margin-bottom: 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    border-bottom: 2px solid rgba(84, 65, 65, 0.592);
}

.exam-box:hover h2 {
    transform: scale(1.1)
}

.in-between-box-container {
    width: 100px;
    height: 50px;
}

.exam-box button {
    margin-top: auto;
    padding: 10px 50px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    background-color: white;  
    border-radius: 20px; 
}

/*----for box button words----*/
.grey-button {
    color: rgb(122, 113, 113);
}
.red-button {
    color: rgb(175, 31, 31);
}

/*---button hover----*/
.grey-button:active,
.red-button:active {
    transform: translate(0px, 5px);
    -webkit-transform: translate(0px, 5px);
    box-shadow: 0px 1px 0px 0px;
}

.clr {
    transition: all 0.3s ease-in-out;
}
.clr:hover {
    padding: 10px 20px;
    transform: scale(1.1);
}

.red-button.clr:hover {
    background-color: rgb(122, 113, 113);
    color: white;
}

.grey-button.clr:hover {
    background-color: rgb(175, 31, 31);
    color: white;
}

.info-box-container {
    flex: 1;
    min-width: 300px;
}

.info-box {
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.location-info-divider {
    height: 2px;
    background-color: #ddd;
    margin: 20px 0;
}

/* PDF Viewer Styles */
.pdf-viewer-container {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
}

.pdf-viewer-wrapper {
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pdf-iframe {
    width: 100%;
    height: 800px;
    border: none;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
}

.pdf-download-link {
    text-align: center;
    margin-top: 20px;
}

.download-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: rgb(175, 31, 31);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}

.download-btn:hover {
    background-color: rgb(122, 113, 113);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .exam-box-divider {
        flex-direction: column;
    }
    
    .exam-schedule-container {
        justify-content: center;
    }
    
    .pdf-iframe {
        height: 600px;
    }
}

@media (max-width: 768px) {
    .pdf-iframe {
        height: 500px;
    }
    
    .pdf-viewer-container {
        padding: 0 10px;
    }
    
    .pdf-viewer-wrapper {
        padding: 15px;
    }
}

/* Accordion Styles */
.exam-accordion-container {
    width: 100%;
    max-width: min(96vw, 1750px);
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.exam-accordion-item {
    margin-bottom: 20px;
    background-color: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.exam-accordion-item:last-child {
    margin-bottom: 235px;
}

.exam-accordion-header {
    width: 100%;
    padding: 20px;
    background-color: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: rgb(0, 0, 0);
    text-align: left;
    transition: background-color 0.3s ease-in-out;
}

.exam-accordion-header:hover {
    background-color: #e8e8e8;
}

.exam-accordion-header:focus {
    outline: 2px solid rgb(175, 31, 31);
    outline-offset: -2px;
}

.accordion-title {
    flex: 1;
}

.accordion-icon {
    margin-left: 15px;
    transition: transform 0.3s ease-in-out;
    color: rgb(175, 31, 31);
}

.exam-accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.exam-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background-color: #ffffff;
}

.exam-accordion-item.active .exam-accordion-content {
    max-height: 2000px;
}

.accordion-download-wrapper {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.accordion-download-wrapper .download-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: rgb(175, 31, 31);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}

.accordion-download-wrapper .download-btn:hover {
    background-color: rgb(122, 113, 113);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.accordion-download-wrapper .download-btn i {
    margin-right: 8px;
}

.pdf-links-section {
    padding: 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.pdf-links-section p {
    margin: 10px 0;
    justify-content: space-between;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    color: rgb(0, 0, 0);
    line-height: 1.6;
}

.pdf-links-section p strong {
    color: rgb(175, 31, 31);
    font-weight: 600;
}

.pdf-links-section a {
    color: rgb(175, 31, 31);
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    border-bottom: 1px solid transparent;
}

.pdf-links-section a:hover {
    color: rgb(122, 113, 113);
    border-bottom: 1px solid rgb(122, 113, 113);
}

.exam-accordion-content .pdf-viewer-wrapper {
    padding: 20px;
    background-color: #ffffff;
}

.exam-accordion-content .pdf-iframe {
    width: 100%;
    height: 800px;
    border: none;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
}

/* Responsive adjustments for accordion */
@media (max-width: 1200px) {
    .exam-accordion-content .pdf-iframe {
        height: 600px;
    }
}

@media (max-width: 768px) {
    .exam-accordion-container {
        padding: 0 10px;
    }
    
    .exam-accordion-header {
        padding: 15px;
        font-size: 1.2rem;
    }
    
    .exam-accordion-content .pdf-iframe {
        height: 500px;
    }
    
    .accordion-download-wrapper {
        padding: 15px;
    }
    
    .exam-accordion-content .pdf-viewer-wrapper {
        padding: 15px;
    }
}
    