@media (min-width: 1201px) {
    #cover-letter-section {
        background: linear-gradient(to bottom, #865cff, #3000bb);
        width: 100%;
        max-width: 1200px;
        padding: 50px;
        border-radius: 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: white;
        margin: 50px auto;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        height: auto;
        text-align: center;
        transition: 0.3s;
    }

    .cover-letter-free {
        width: 100%;
        max-width: 100%;
    }

    .cover-letter-free-left {
        text-align: left;
        width: 100%;
    }

    .cover-letter-free-left h2 {
        font-weight: 600;
        font-size: 32px;
        margin: 0 0 17px;
        text-align: left;
    }

    .cover-letter-free-left p {
        font-size: 15px;
        color: white;
        text-align: left;
        line-height: 1.8;
    }

    .cover-letter-free-right {
        display: flex;
        align-items: center;
        flex-basis: 40%;
    }

    .cover-letter-free-right button {
        align-items: center;
        justify-content: center;
        width: 200px;
        margin-top: 20px;
        height: 50px;
        background: white;
        color: black;
        border-radius: 50px;
        border: none;
        font-size: 18px;
        cursor: pointer;
        gap: 10px;
        transition: background-color 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    }

    .cover-letter-free-right button:hover {
        background: #ddd;
    }

    #down-arrow-btn:hover {
        transform: rotate(180deg);
        cursor: pointer;
    }

    .cover-letter-free-right button img {
        width: 20px;
        height: auto;
    }

    #down-arrow-btn {
        width: 60px;
        height: 60px;
        transition: 0.3s;
    }

    #expanded-content {
        width: 100%;
        animation: slideDown 0.3s ease-out;
        border-radius: 40px;
        color: white;
        text-align: left;
        margin-top: 20px;
    }

    textarea#job-title {
        width: 100%;
        height: 350px;
        border-radius: 40px;
        padding: 25px;
        font-size: 20px;
        font-weight: 500;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        border: none;
        outline: none;
        resize: none;
        margin-bottom: 15px;
    }

    #animation-container-cover {
        background-color: #fff;
        display: none;
        width: 100%;
        height: 350px;
        border-radius: 40px;
        padding: 25px;
        margin-bottom: 15px;
    }

    button#generateCoverLetterBtn {
        width: 200px;
        height: 48px;
        background: white;
        font-weight: 400;
        color: black;
        border-radius: 50px;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        font-size: 1rem;
        cursor: pointer;
        transition: background-color 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    }

    button#generateCoverLetterBtn:hover {
        background: #3000bb;
        color: #fff;
    }

    #download-cover {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        background-color: #ffffff;
        color: black;
        width: 100%;
        height: 350px;
        border-radius: 40px;
        padding: 25px;
        margin-bottom: 15px;

    }

    #download-cover h4 {
        margin-bottom: 20px;
        font-size: 24px;
        font-weight: bold;
    }

    .btnCoverLetter {
        display: flex;
        justify-content: center;
        align-items: center;
        max-width: 200px;
        padding: 12px;
        border: 1px solid #e8e4e4;
        border-radius: 25px;
        background-color: #f7f7f7;
        font-family: "Poppins", sans-serif;
        font-size: 14px;
        font-weight: bold;
        color: #000;
        text-decoration: none;
        gap: 15px;
        transition: opacity 0.3s ease, transform 0.2s ease;
    }

    .btnCoverLetter:hover {
        cursor: pointer;
        opacity: 0.85;
        transform: scale(1.05);
    }

    .btnCoverLetter img {
        width: 24px;
        height: 24px;
    }
}

@media (min-width: 993px) and (max-width: 1200px) {
    #cover-letter-section {
        background: linear-gradient(to bottom, #865cff, #3000bb);
        width: 90%;
        padding: 50px;
        border-radius: 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: white;
        margin: 50px auto;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        height: auto;
        text-align: center;
        transition: 0.3s;
    }

    #down-arrow-btn:hover {
        transform: rotate(180deg);
        cursor: pointer;
    }

    .cover-letter-free {
        width: 100%;
        max-width: 1100px;
        height: 160px;

    }

    .cover-letter-free-left {
        text-align: left;
        width: 100%;
    }

    .cover-letter-free-left h2 {
        font-weight: 600;
        font-size: 32px;
        margin: 0 0 17px;
        text-align: left;
    }

    .cover-letter-free-left p {
        font-size: 15px;
        width: 380px;
        color: white;
        text-align: left;
        line-height: 1.8;
    }

    .cover-letter-free-right {
        display: flex;
        align-items: center;
        flex-basis: 40%;
    }

    .cover-letter-free-right button {
        align-items: center;
        justify-content: center;
        width: 200px;
        height: 50px;
        background: white;
        color: black;
        border-radius: 50px;
        border: none;
        font-size: 18px;
        cursor: pointer;
        gap: 10px;
        transition: background-color 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    }

    .cover-letter-free-right button:hover {
        background: #ddd;
    }

    .cover-letter-free-right button img {
        width: 20px;
        height: auto;
    }

    #down-arrow-btn {
        width: 60px;
        height: 60px;
        transition: 0.3s;
    }

    #expanded-content {
        width: 100%;
        animation: slideDown 0.3s ease-out;
        border-radius: 40px;
        color: white;
        text-align: left;
    }

    textarea#job-title {
        width: 100%;
        height: 350px;
        border-radius: 40px;
        padding: 25px;
        font-weight: 500;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        border: none;
        outline: none;
        resize: none;
        margin-bottom: 15px;

    }

    #animation-container-cover {
        background-color: #fff;
        display: none;
        width: 100%;
        height: 350px;
        border-radius: 40px;
        padding: 25px;
        margin-bottom: 15px;
    }

    button#generateCoverLetterBtn {
        width: 200px;
        height: 48px;

        background: white;
        font-weight: 400;
        color: black;
        border-radius: 50px;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        font-size: 1rem;
        cursor: pointer;
        transition: background-color 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    }

    button#generateCoverLetterBtn:hover {
        background: #3000bb;
        color: #fff;
    }

    #download-cover {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        background-color: #ffffff;
        color: black;
        width: 100%;
        height: 350px;
        border-radius: 40px;
        padding: 25px;
        margin-bottom: 15px;

    }

    #download-cover h4 {
        margin-bottom: 20px;
        font-size: 24px;
        font-weight: bold;
    }

    .btnCoverLetter {
        display: flex;
        justify-content: center;
        align-items: center;
        max-width: 200px;
        padding: 12px;
        border: 1px solid #e8e4e4;
        border-radius: 25px;
        background-color: #f7f7f7;
        font-family: "Poppins", sans-serif;
        font-size: 14px;
        font-weight: bold;
        color: #000;
        text-decoration: none;
        gap: 15px;
        transition: opacity 0.3s ease, transform 0.2s ease;
    }

    .btnCoverLetter:hover {
        cursor: pointer;
        opacity: 0.85;
        transform: scale(1.05);
    }

    .btnCoverLetter img {
        width: 24px;
        height: 24px;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    #cover-letter-section {
        background: linear-gradient(to bottom, #865cff, #3000bb);
        width: 90%;
        padding: 50px;
        border-radius: 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: white;
        margin: 50px auto;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        height: auto;
        text-align: center;
        transition: 0.3s;
    }

    #down-arrow-btn:hover {
        transform: rotate(180deg);
        cursor: pointer;
    }

    .cover-letter-free {
        width: 100%;
        max-width: 1100px;
        height: 160px;

    }

    .cover-letter-free-left {
        text-align: left;
        width: 100%;
    }

    .cover-letter-free-left h2 {
        font-weight: 600;
        font-size: 32px;
        margin: 0 0 17px;
        text-align: left;
    }

    .cover-letter-free-left p {
        font-size: 15px;
        width: 380px;
        color: white;
        text-align: left;
        line-height: 1.8;
    }

    .cover-letter-free-right {
        display: flex;
        align-items: center;
        flex-basis: 40%;
    }

    .cover-letter-free-right button {
        align-items: center;
        justify-content: center;
        width: 200px;
        height: 50px;
        background: white;
        color: black;
        border-radius: 50px;
        border: none;
        font-size: 18px;
        cursor: pointer;
        gap: 10px;
        transition: background-color 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    }

    .cover-letter-free-right button:hover {
        background: #ddd;
    }

    .cover-letter-free-right button img {
        width: 20px;
        height: auto;
    }

    #down-arrow-btn {
        width: 60px;
        height: 60px;
        transition: 0.3s;
    }

    #expanded-content {
        width: 100%;
        animation: slideDown 0.3s ease-out;
        border-radius: 40px;
        color: white;
        text-align: left;
    }

    textarea#job-title {
        width: 100%;
        height: 350px;
        border-radius: 40px;
        padding: 25px;
        font-weight: 500;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        border: none;
        outline: none;
        resize: none;
        margin-bottom: 15px;

    }

    #animation-container-cover {
        background-color: #fff;
        display: none;
        width: 100%;
        height: 350px;
        border-radius: 40px;
        padding: 25px;
        margin-bottom: 15px;
    }

    button#generateCoverLetterBtn {
        width: 200px;
        height: 48px;

        background: white;
        font-weight: 400;
        color: black;
        border-radius: 50px;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        font-size: 1rem;
        cursor: pointer;
        transition: background-color 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    }

    button#generateCoverLetterBtn:hover {
        background: #3000bb;
        color: #fff;
    }

    #download-cover {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        background-color: #ffffff;
        color: black;
        width: 100%;
        height: 350px;
        border-radius: 40px;
        padding: 25px;
        margin-bottom: 15px;

    }

    #download-cover h4 {
        margin-bottom: 20px;
        font-size: 24px;
        font-weight: bold;
    }

    .btnCoverLetter {
        display: flex;
        justify-content: center;
        align-items: center;
        max-width: 200px;
        padding: 12px;
        border: 1px solid #e8e4e4;
        border-radius: 25px;
        background-color: #f7f7f7;
        font-family: "Poppins", sans-serif;
        font-size: 14px;
        font-weight: bold;
        color: #000;
        text-decoration: none;
        gap: 15px;
        transition: opacity 0.3s ease, transform 0.2s ease;
    }

    .btnCoverLetter:hover {
        cursor: pointer;
        opacity: 0.85;
        transform: scale(1.05);
    }

    .btnCoverLetter img {
        width: 24px;
        height: 24px;
    }

}

@media (min-width: 577px) and (max-width: 768px) {
    #cover-letter-section {
        background: linear-gradient(to bottom, #865cff, #3000bb);
        width: 90%;
        margin: 30px;
        padding: 40px;
        border-radius: 50px;
        display: flex;
        flex-direction: column;
        color: white;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        transition: 0.3s;
    }

    .cover-letter-free-left {
        flex-direction: row;
    }

    #down-arrow-btn:hover {
        transform: rotate(180deg);
        cursor: pointer;
    }

    .cover-letter-free-left h2 {
        font-size: 1.5rem;
        line-height: 2.4;
        text-align: left;
    }

    .cover-letter-free-left p {
        font-size: 1.2rem;
        color: white;
        text-align: left;
    }

    .cover-letter-free-right button {
        width: 100%;
        max-width: 180px;
        font-size: 0.9rem;
        height: 50px;
        background: white;
        color: black;
        border-radius: 50px;
        border: none;
        cursor: pointer;
        gap: 20px;
        transition: background-color 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        align-items: center;
        justify-content: center;

    }

    .cover-letter-free-right button:hover {
        background: #ddd;
    }

    .cover-letter-free-right button img {
        width: 20px;
        height: auto;
    }

    #down-arrow-btn {
        width: 60px;
        height: 60px;
        transition: 0.3s;
    }

    #expanded-content {
        width: 100%;
        animation: slideDown 0.3s ease-out;
        border-radius: 40px;
        color: white;
        text-align: left;
    }

    textarea#job-title {
        width: 100%;
        height: 250px;
        border-radius: 40px;
        padding: 25px;
        font-weight: 500;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        border: none;
        outline: none;
        resize: none;
        margin-bottom: 15px;

    }

    #animation-container-cover {
        background-color: #fff;
        display: none;
        width: 100%;
        height: 350px;
        border-radius: 40px;
        padding: 25px;
        margin-bottom: 15px;
    }

    button#generateCoverLetterBtn {
        width: 100%;
        height: 48px;

        background: white;
        font-weight: 400;
        color: black;
        border-radius: 50px;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        font-size: 1rem;
        cursor: pointer;
        transition: background-color 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    }

    button#generateCoverLetterBtn:hover {
        background: #3000bb;
        color: #fff;
    }

    #download-cover {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        background-color: #ffffff;
        color: black;
        width: 100%;
        height: 350px;
        border-radius: 40px;
        padding: 25px;
        margin-bottom: 15px;

    }

    #download-cover h4 {
        margin-bottom: 20px;
        font-size: 24px;
        font-weight: bold;
    }

    .btnCoverLetter {
        display: flex;
        justify-content: center;
        align-items: center;
        max-width: 200px;
        padding: 12px;
        border: 1px solid #e8e4e4;
        border-radius: 25px;
        background-color: #f7f7f7;
        font-family: "Poppins", sans-serif;
        font-size: 14px;
        font-weight: bold;
        color: #000;
        text-decoration: none;
        gap: 15px;
        transition: opacity 0.3s ease, transform 0.2s ease;
    }

    .btnCoverLetter:hover {
        cursor: pointer;
        opacity: 0.85;
        transform: scale(1.05);
    }

    .btnCoverLetter img {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 576px) {
    #cover-letter-section {
        background: linear-gradient(to bottom, #865cff, #3000bb);
        width: 90%;
        margin-top: 30px;
        align-self: center;
        padding: 35px;
        border-radius: 50px;
        display: flex;
        flex-direction: column;
        color: white;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        height: auto;
        transition: 0.3s;
    }

    .cover-letter-free-left {
        flex-direction: row;
    }

    .cover-letter-free-left h2 {
        font-size: 1.5rem;
        line-height: 1.2;
        text-align: left;
    }

    #down-arrow-btn:hover {
        transform: rotate(180deg);
        cursor: pointer;
    }

    .cover-letter-free-left p {
        font-size: 0.9rem;
        color: white;
        text-align: left;
        line-height: 1.8;
    }

    .cover-letter-free-right button {
        width: 100%;
        max-width: 180px;
        font-size: 0.9rem;
        height: 50px;
        background: white;
        color: black;
        border-radius: 50px;
        border: none;
        cursor: pointer;
        gap: 20px;
        transition: background-color 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        align-items: center;
        justify-content: center;
        margin-top: 20px;
    }

    .cover-letter-free-right button:hover {
        background: #ddd;
    }

    .cover-letter-free-right button img {
        width: 20px;
        height: auto;
    }

    #down-arrow-btn {
        width: 60px;
        height: 60px;
        transition: 0.3s;
    }

    #expanded-content {
        width: 100%;
        animation: slideDown 0.3s ease-out;
        border-radius: 40px;
        color: white;
        text-align: left;
        margin-top: 20px;
    }

    textarea#job-title {
        width: 100%;
        height: 250px;
        border-radius: 40px;
        padding: 25px;
        font-weight: 500;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        border: none;
        outline: none;
        resize: none;
        margin-bottom: 15px;

    }

    #animation-container-cover {
        background-color: #fff;
        display: none;
        width: 100%;
        height: 350px;
        border-radius: 40px;
        padding: 25px;
        margin-bottom: 15px;
    }

    button#generateCoverLetterBtn {
        width: 100%;
        height: 48px;

        background: white;
        font-weight: 400;
        color: black;
        border-radius: 50px;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        font-size: 1rem;
        cursor: pointer;
        transition: background-color 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    }

    button#generateCoverLetterBtn:hover {
        background: #3000bb;
        color: #fff;
    }

    #download-cover {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        background-color: #ffffff;
        color: black;
        width: 100%;
        height: 350px;
        border-radius: 40px;
        padding: 25px;
        margin-bottom: 15px;
    }

    #download-cover h4 {
        margin-bottom: 20px;
        font-size: 24px;
        font-weight: bold;
    }

    .btnCoverLetter {
        display: flex;
        justify-content: center;
        align-items: center;
        max-width: 200px;
        padding: 12px;
        border: 1px solid #e8e4e4;
        border-radius: 25px;
        background-color: #f7f7f7;
        font-family: "Poppins", sans-serif;
        font-size: 14px;
        font-weight: bold;
        color: #000;
        text-decoration: none;
        gap: 15px;
        transition: opacity 0.3s ease, transform 0.2s ease;
    }

    .btnCoverLetter:hover {
        cursor: pointer;
        opacity: 0.85;
        transform: scale(1.05);
    }

    .btnCoverLetter img {
        width: 24px;
        height: 24px;
    }
}