/* Fix for footer width issue */
footer {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Ensure body doesn't have horizontal scroll */
body {
    overflow-x: hidden;
    width: 100%;
}

/* Greating */
#greating {
    margin: 190px auto 50px auto;
    text-align: center;
    width: 90%;
}

#portal-greating {
    font-size: 70px;
    font-weight: 500;
    color: rgb(74, 74, 74);
}

#greating p {
    font-size: 30px;
}

#choosing-page {
    width: 90%;
    margin: 20px auto;
    max-width: 900px;
}

#choosing-page div {
    display: flex;
    justify-content: space-between;
}

#choosing-page div a {
    cursor: pointer;
    width: 32%;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

#choosing-page div button {
    width: 100%;
}

#explain-section-button {
    width: 100%;
}

#choosing-page div button, #explain-section-button {
    font-size: 22px;
    font-weight: 530;
    padding: 10px;
    color: white;
    background-color: rgb(107, 107, 107);
    border: none;
    margin-top: 10px;
    transition: all 0.3s ease;
}

#choosing-page div button:hover, #explain-section-button:hover {
    background: none; /* smoother transition */
    background-color: #ff4b2b;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

#jic-bacholar {border-radius: 30px 15px 15px;}
#jti-deplome {border-radius: 15px;}
#jic-deplome {border-radius: 15px 15px 30px;}
#explain-section-button {border-radius: 15px 30px;}

/* Academic Documents */
#doc-container {
    background-color: #eef2f5;
    width: 100%;
}

#doc-container2 {
    width: 80%;
    margin: 30px auto;
    padding: 30px 0;
    text-align: right;
}

#doc-container2 h1 {
    font-size: 37px;
}

#doc-container2 p {
    font-size: 20px;
}

#files-container {
    margin: 20px 0 20px auto;
    width: 70%;
    max-width: 900px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: right;
    flex-wrap: wrap;
}

#files-container button {
    color: white;
    display: flex;
    justify-content: right;
    background-color: rgb(119, 119, 119);
    border: none;
    padding: 10px;
    transition: all 0.3s ease;
    margin: 12px 0 12px 12px;
    border-radius: 15px;
    font-size: 20px;
}

#files-container button:hover {
    background: none; /* smoother transition */
    background-color: #ff4b2b;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

#files-container button span {
    margin-left: 5px;
}


/* Common Questions */
#questions-general-container {
    text-align: right;
    width: 80%;
    margin: 10px auto;
}

#questions-general-container h1 {
    font-size: 37px;
}

#questions-general-container p {
    font-size: 20px;
}

#questions-container {
    margin: 20px auto;
    text-align: right;
    width: 80%;
}

.accordion {
    width: 100%;
    border-radius: 15px;
}

.accordion-item {
    border-bottom: 1px solid #eaeaea;
}

.accordion-header {
    display: block;
    width: 100%;
    padding: 20px;
    background: #f9f9f9;
    border: none;
    outline: none;
    text-align: right;
    
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s;
    position: relative;
}

.accordion-header:hover {
    background: #edf2f7;
}

.accordion-header::after {
    content: '+';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    transition: transform 0.3s;
}

.accordion-content {
    max-height: 0;
    padding: 0 20px;
    width: 100%;
    margin-left: auto;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
}

.accordion-content-inner {
    padding: 20px;
    line-height: 1.6;
    color: #555;
}

input[type="checkbox"] {
    display: none;
}

input[type="checkbox"]:checked + .accordion-header {
    background: #edf2f7;
}

input[type="checkbox"]:checked + .accordion-header::after {
    content: '-';
    transform: translateY(-50%);
}

input[type="checkbox"]:checked + .accordion-header + .accordion-content {
    max-height: 300px;
}

@media (max-width: 600px) {
    h1 {
        font-size: 22px;
        padding: 20px 15px;
    }
    
    .accordion-header {
        padding: 15px;
        font-size: 16px;
    }
    
    .accordion-content-inner {
        padding: 15px;
    }
}

    /* Alternating colors for accordion items */
.accordion-item:nth-child(odd) .accordion-header {
    background: white;
}

.accordion-item:nth-child(even) .accordion-header {
    background: #f2f2f2;
}

.accordion-item:nth-child(odd) .accordion-header:hover {
    background: #f0f7ff;
}

.accordion-item:nth-child(even) .accordion-header:hover {
    background: #e6e6e6;
}

.accordion-item:nth-child(odd) input[type="checkbox"]:checked + .accordion-header {
    background: #f0f7ff;
}

.accordion-item:nth-child(even) input[type="checkbox"]:checked + .accordion-header {
    background: #e6e6e6;
}

/* Alternating colors for content areas */
.accordion-item:nth-child(odd) .accordion-content {
    background: white;
}

.accordion-item:nth-child(even) .accordion-content {
    background: #f9f9f9;
}