.sub-title {
    padding: 2rem;
    text-align: center;
    font-size: 1.5rem;
    color: rgb(45, 45, 45);
    font-weight: 600;
}

.sub-hr {
    width: 25%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 4rem;
}

pre {
    max-height: 400px;
    max-width: 600px;
    overflow-y: auto;
    overflow-x: auto;
    padding: 1em;
    border-radius: 8px;
    font-size: 0.95rem;

    background: #1e1e1e;
    color: #f8f8f2;

}

pre code.hljs {
    display: block;
    white-space: pre;
    overflow: visible !important; 
    background: transparent !important; 
    color: inherit;
    padding: 0;
}

code {
    border-radius: 10px;
    font-family: monospace;
}

.code-description {
    font-size: 1.3rem;
    max-width: 500px;
    height: auto;
}

/* Images */

.img-text-container {
    margin: 6rem auto;
    display: flex;
    gap: 4rem;
    justify-content: center;
    align-items: center;
}

.img-description {
    font-size: 1.3rem;
    max-width: 500px;
    max-height: 400px;
}

.zoomable-container {
    position: relative;
    width: 100%;
    height: auto;
    max-width: 600px;
}

.zoomable-container::after {
    position: absolute;
    content: "";
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5));
    border-radius: 10px;
    z-index: 1;
}

.zoomable-container .slide-content {
    position: absolute;
    bottom: clamp(1rem, 5vw, 2.5rem);
    left: clamp(1rem, 5vw, 2.5rem);
    color: white;
    z-index: 2;
    max-width: 90%;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    cursor: default;

}

.img-text-container img.side-pic {
    width: 100%;
    height: auto;
    max-width: 600px;
    display: block;
    border-radius: 10px;
    box-shadow: 5px 10px 10px rgba(0,0,0,0.4);
    cursor:pointer;
}

/* Slider image */

.slider-text-container{
    margin: 4rem auto;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.slider-container{
    width: 100%;
    max-width: 600px;
    height: 400px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    box-shadow: 0px  8px 16px rgba(0, 0, 0, 0.4);

}


.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.slide img.zoomed {
    transform: scale(2); 
    cursor: zoom-out;
    z-index: 10;
}

.slider {
    display: flex;
    height: 100%;
    transition:  transform 0.5s ease-in-out;
}

.slide{
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide::after {
    position: absolute;
    content: "";
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5));
}

.slide-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: white;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    cursor: default;
}

.slide-title {
    font-size: 25px;
    margin: 0;
    font-weight: 600;
}

.slide-description {
    font-size: 18px;
    margin: 8px 0;
    color:  rgb(224, 224, 224);
}

.slider-text {
    max-width: 500px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-arrow:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.slider-arrow svg {
    width: 30px;
    color: white;
    display: flex;
}

.prev{
    left: 20px;
}

.next {
    right: 20px;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 2555, 2555, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active{
    background: white;
    transform: scale(1.2);
}

.bold-text {
    font-weight: 600;
}


/* Zoomed image */


.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

.hidden {
     display: none;
}
