@media screen and (max-width: 768px) {
    .container {
        width: auto;
    }

    /* Adjust position and style of the burger icon */
    header .burger {
        display: block;
        width: 40px;
        height: 40px;
        background: url('../img/burger.svg') center / contain no-repeat;
        transition: 0.5s all linear;
        margin-top: 10px;
        cursor: pointer;
        position: relative; /* Change to relative */
        float: right; /* Align right within the second row */
        margin-right: 20px; /* Adjust margin as needed */
    }

    header.active .burger {
        background: url('../img/close.svg') center / cover no-repeat;
    }

    /* Adjust menu to be displayed below the header */
    header nav ul {
        position: absolute;
        display: none;
        flex-direction: column;
        padding: 35px 25px;
        top: 60px; /* Adjust as needed based on header height */
        left: 0;
        width: 100%;
        height: auto;
        background-color: #181818;
        transition: 0.5s all linear;
        z-index: 10;
    }

    /* Show the menu when header has 'active' class */
    header.active nav ul {
        display: flex;
    }

    /* Adjust width of the buttons to fit screen width */
    header aside:last-child {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%; /* Take full width */
    }
    header nav .burger {
        display: block;
        width: 40px;
        height: 40px;
        background: url('../img/burger.svg') center / contain no-repeat;
        transition: 0.5s all linear;
        margin-top: 10px;
    }

    header.active nav .burger {
        background: url('../img/close.svg') center / cover no-repeat;
    }
    /* Adjust width of the registration button */
    header aside:last-child .button.registration {
        margin-right: 10px; /* Add margin between buttons */
        width: calc(100% - 30px); /* Adjust width */
        transition: 0.5s all linear;
    }

    /* Pulsating animation for registration button */
    header aside:last-child .button.registration {
        animation: pulsate 1.5s infinite alternate ease-in-out;
    }

    /* Stop pulsating on hover */
    header aside:last-child .button.registration:hover {
        animation: none;
    }

    /* Adjust width of the other buttons */
    header aside:last-child .button {
        margin-right: 10px; /* Add margin between buttons */
        width: calc(100% - 30px); /* Adjust width */
        transition: 0.5s all linear;
    }

    /* Hover effect for buttons */
    header aside:last-child .button:hover {
        background: linear-gradient(110.22deg, #b9ff2e -2.69%, #b9ff2e 13.07%, #b9ff2e 44.89%);
    }

    /* Styling for button text */
    header aside:last-child .button span {
        font-size: 18px;
        line-height: 160%;
        color: #ffffff;
        transition: 0.5s all linear;
    }

    /* Pulsating animation */
    @keyframes pulsate {
        0% {
            transform: scale(1);
            box-shadow: inset 0px 9px 6px rgba(255, 255, 255, 0.25);
        }
        100% {
            transform: scale(1.05);
            box-shadow: inset 0px 9px 12px rgba(255, 255, 255, 0.5);
        }
    }

    /* Adjust font sizes and spacing for smaller screens */
    .intro h1 {
        font-size: 40px;
        line-height: 1.2;
    }

    .intro h1 span {
        font-size: 60px;
    }

    .intro h2 {
        font-size: 30px;
    }

    .intro h3 {
        font-size: 20px;
    }

    .content h2,
    .content-title {
        font-size: 30px;
        line-height: 1.2;
    }

    .content h3 {
        font-size: 22px;
    }

    .container .row {
        margin: 0 auto;
        width: 90%;
    }

    footer .logo {
        margin: 0 0 20px 0;
        display: block;
        height: 45px;
        width: auto;
        align-self: center;
    }

    .content img {
        margin: 20px 0;
        width: 100%;
        height: 100% !important;
    }

    footer .logo,
    footer .logo p {
        height: 30px;
    }
}