/* Responsive styles for mobile and tablet */
.responsive-tab {
    display: none;
}

.responsive-tab .btn-primary {
    background-color: #0033a1;
    color: #ffffff;
    border: 1px solid #0033a1;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.responsive-tab .btn-primary:hover {
    background-color: #0033a1;
    color: #ffffff;
    border: 1px solid #0033a1;
}

@media only screen and (max-width: 1024px) {
    .responsive-tab {
        display: block !important;
    }

    .american-top-content {
        display: none !important;
    }

    .offcanvas-body .american-top-content {
        display: none !important;
    }

    .offcanvas.show .american-top-content {
        display: block !important;
        
    }

    .american-top-logo img {
        width: 250px;
    }

    .american-top-logo h1 {
        font-size: 28px !important;
        font-weight: 500 !important;
    }

    .offcanvas.show,
    .offcanvas-header,
    .offcanvas-body {
        background-color: #c5c9d1 !important;
        color: #0033a1 !important;
    }


}

/* Responsive styles for max-width: 767px */
@media only screen and (max-width: 767px) {

    .responsive-tab {
        display: block;
    }

    .american-top-content,
    .offcanvas-body .american-top-content {
        display: none;
    }

    .offcanvas.show .american-top-content {
        display: block;
        padding: 0;
        margin: 0;
    }

    .american-top-logo h1 {
        font-size: 18px !important;
        font-weight: 500;
    }
    .american-top-logo img {
        width: 200px;
    }
    .sample-page-banner {
        display: none;
    }

    .sample-page-banner-1 {
        display: block;
    }

    .offcanvas.show,
    .offcanvas-header,
    .offcanvas-body {
        background-color: #c5c9d1 !important;
        color: #0033a1 !important;
    }

    .american-sample-content-cgpa h2 {
        font-size: 26px;
        font-weight: 700;
    }

    .american-sample-content-cgpa p {
        font-size: 16px;
        font-weight: 400;
        width: 100%; /* Improved for better responsiveness */
    }

    .american-sample-content-cgpa img {
        width: 100%;
    }

    .american-academic-content h2 {
        font-size: 28px;
        font-weight: 600;
        margin: 0;
        text-align: left;
    }

    .american-academic-content p {
        font-size: 14px;
        font-weight: 400;
        margin: 0;
    }

    .american-buttons {
        display: flex;
        align-items: center;
        margin: auto;
        gap: 30px;
        padding: 40px 0;
    }

    .previous-post,
    .next-post {
        display: inline-flex;
        align-items: center;
        padding: 10px 20px;
        font-size: 16px;
        font-weight: 500;
    }

    .american-footer-content {
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 30px;
        padding-left: 80px;
    }

    .footer-left {
        border-right: none;
        padding: 0;
    }

    .footer-left p {
        font-size: 20px;
        font-weight: 500;
        line-height: 30px;
        padding: 0;
        margin: 0;
    }

    .footer-logo {
        height: 120px;
        margin-bottom: 10px;
    }

    .footer-socials {
        display: flex;
        flex-direction: row;
        gap: 16px;
        border-left: none;
        padding-left: 40px;
    }

    .social-icon {
        font-size: 26px;
        padding: 2px 8px;
        border-radius: 50%;
    }

    .footer-bottom {
        padding: 30px 0px 10px 0px;
        text-align: center;
    }

    .footer-bottom a {
        font-size: 16px;
    }

    .comment-form {
        padding: 10px;
    }

    .comment-form input,
    .comment-form textarea {
        font-size: 14px;
        padding: 8px;
    }

    .comment-form .button {
        font-size: 14px;
        padding: 6px 12px;
    }
}




@media (max-width: 480px) {
    .american-header {
        display: flex;
        flex-direction: column;
        gap: 50px;
    }

    .american-top-logo h1 {
        font-size: 20px !important;
        font-weight: 500;
    }

    .american-top-logo img {
        width: 180px;
    }

    .american-sample-content-cgpa h2 {
        font-size: 22px;
        font-weight: 700;
    }

    .american-sample-content-cgpa p {
        font-size: 16px;
        font-weight: 400;
        max-width: 350px;
    }

    .american-blog-content {
        width: 100%;
    }

    .american-academic-content {
        justify-content: flex-start;
        align-items: flex-start;
    }

    .american-academic-content h2 {
        font-size: 20px;
        font-weight: 600;
        margin: 0;
        text-align: left;
    }

    .american-academic-content p {
        font-size: 14px;
        font-weight: 400;
        margin: 0;
    }

    .american-sample-content-cgpa img {
        width: 100%;
    }

    .american-buttons {
        display: flex;
        align-items: center;
        margin: auto;
        gap: 100px;
        padding: 40px 0;
    }

    .previous-post,
    .next-post {
        display: inline-flex;
        align-items: center;
        padding: 10px 20px;
        font-size: 12px;
        font-weight: 400;
    }

    .american-footer-content {
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 60px;
        padding-left: 80px;
    }

    .footer-left {
        border-right: none;
        padding: 0;
    }

    .footer-left p {
        font-size: 18px;
        font-weight: 500;
    }

    .footer-logo {
        height: 80px;
        margin-bottom: 10px;
    }

    .footer-socials {
        display: flex;
        flex-direction: row;
        gap: 22px;
        border-left: none;
        padding-left: 40px;
    }

    .social-icon {
        font-size: 22px;
        padding: 2px 8px;
        border-radius: 50%;
    }

    .footer-bottom {
        padding: 30px 0px 10px 0px;
        text-align: center;
    }

    .footer-bottom a {
        font-size: 12px;
    }

    .comment-form input,
    .comment-form textarea {
        font-size: 12px;
        padding: 6px;
    }

    .comment-form .button {
        font-size: 12px;
        padding: 4px 10px;
    }

    .comment-form label {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .comment-form {
        flex-direction: column;
        gap: 10px;
    }
}