body {
    background: var(--def-bg-clr);
    overflow-x: hidden;
}

strong {
    font-weight: bold !important;
}

.spec-box {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    padding: 2rem;
    border-radius: 25px;
    color: var(--def-txtinvert-clr);
    background-color: var(--def-alt-clr);
    box-shadow: 4px 4px 15px var(--def-shadow-clr);
}

a {
    text-decoration: none;
    color: inherit;
}

.course-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60vh;
    gap: 2rem;
    margin-bottom: 2rem;
    z-index: 0;
    text-align: center;
}

.course-header img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}


.course-header::after {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, #222222a2 0%, transparent 80%);
    z-index: 2;
}


.course-header .text-content {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    z-index: 3;
}

.course-header .text-content h1  {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--def-txtinvert-clr);

}

.course-header .text-content p {
    position: relative;
    font-size: 1.1rem;
    opacity: 0.9;
    z-index: 3;
    color: var(--def-txtinvert-clr) ;
    backdrop-filter: blur(50px) brightness(60%) saturate(50%);
    background: var(--def-shadow-clr);
    text-align: center;
    padding: 5px;
    border-radius: 5px;
}


.text-content p,
.course-header .text-content h1 {
    text-shadow: 0px 0px 5px var(--def-txt-clr), 0px 0px 20px var(--def-txt-clr), 0px 0px 50px var(--def-txt-clr);
}

.course-header .field {
    position: absolute;
    bottom: 0px;
    left: 0;
    z-index: 4;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100vw;
    text-align: center;
    justify-content: space-evenly;
}

.course-header .field a p {
    font-size: 0.8rem;
}


.course-header .field a {
    padding: 0.5rem 4rem;
    color: var(--def-txtinvert-clr);
    background-color: var(--def-shadow-clr);
    z-index: 4;
    backdrop-filter: blur(5px) brightness(120%) opacity(0.8);
    flex-grow: 1;
    opacity: 0.5;
    border-radius: 0;
    border-right: 2px solid var(--def-shadow-clr);
}


.course-header .field a:not(:first-of-type):hover {
    opacity: 1;
    cursor: pointer;
    backdrop-filter: blur(8px) brightness(50%) opacity(1);
}

.course-header .field a:first-of-type:hover {
    text-decoration: underline;
    cursor: pointer;
}


.course-header .field a:first-of-type {
    padding: 0.5rem 4rem;
    color: var(--def-txt-clr);
    background-color: var(--def-bg-clr);
    z-index: 4;
    opacity: 1;
}

.course-details-container {
    display: flex;
    max-width: 95%;
    margin: 2rem auto;
    padding: 0 1rem;
    gap: 2rem;
}

.main-content {
    flex: 3;
    background-color: var(--def-offbg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 -2px 10px var(--def-shadow-clr);
}

.content-detailed {
    margin: 1rem;
    display: flex;
    flex-direction: column;
}

.content-detailed .content-box {
    display: flex;
    flex-direction: column;
    padding: 25px;
    border-radius: 25px;
    margin: 10px 0;
}

.content-detailed .content-box .content ul {
    margin: 10px 2rem;
    line-height: 1.8;
}

.content-detailed .content-box .title {
    margin: 10px 0;
}

.content-detailed .content-box .title hr {
    margin: 5px 0;
}

.content-detailed .content-box .content .res-subitem {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: start;
    gap: 10px;
}

.content-detailed .content-box .content .res-subitem:hover {
    cursor: pointer;
    text-decoration: underline;
}

form i {
    font-size: small;
    color: #666;
    margin-bottom: -20px;
    font-style: normal;
    text-align: end;
}

button[type='submit'] {
    color: var(--def-txtinvert-clr);
}

.aside-bar {
    flex: 1;
    background-color: var(--def-offbg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 -2px 10px var(--def-shadow-clr);
}

.aside-bar h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--def-txt-clr);
    text-align: center;
}

.aside-bar ul {
    list-style: none;
    padding: 0;
}

.aside-bar ul li {
    margin-bottom: 1rem;
}

.aside-bar ul li a {
    font-size: 1rem;
    color: #007BFF;
    transition: color 0.3s ease;
}

.aside-bar ul li a:hover {
    color: #0056b3;
}

.aside-bar button {
    width: 100%;
    padding: 0.75rem;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {

    .course-header {
        flex-direction: column;
    }

    .course-header .text-content h1 {
        font-size: 1.5rem;
    }

    .course-header .text-content p {
        font-size: 1rem;
        margin: 10px;
    }

    .course-details-container {
        flex-direction: column;
        padding: 0;
        margin: 0 10px;
    }

    .course-details-container .main-content,
    .course-details-container .content-detailed  {
        padding: 10px;
        margin: 0;
    }

    .course-details-container .content-detailed .content-box {
        margin: 25px 0;
        padding: 0;
    }
    
    aside .cta-sidebar {
        display: none;
    }


    .course-header img {
        width: 100%;
    }

    .aside-bar {
        margin-top: 2rem;
    }

    #desktop-inpagenav {
        display: none;
    }
}