/* Responsive layout for devices with a screen larger than 550px */
@media (min-width:550px) {
    :root {
        /* Typography */
        --fs-base: 0.9rem;
    }
    .blog-card {
        display: grid;
        grid-template-columns: 3fr 4fr;
        gap: 20px;
    }
    .blog-card-banner {
        overflow: hidden;
        border-radius: 5px;
    }
    .blog-card-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
/* Responsive layout for devices with a screen larger than 550px */
@media (min-width: 650px) {
    :root {
        /* Typography */
        --fs-1: 2.25rem;
    }
    /* Reused style */
    .container {
        padding: 0 30px;
    }
    /* Header */
    .navbar {
        padding: 30px 0;
    }
    /* Blog */
    .blog .h2 {
        position: relative;
        text-align: left;
        padding-left: 2rem;
    }
    .blog .h2::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        background: var(--action-primary);
        width: 5px;
        height: 100%;
        border-radius: 5px;
    }
    .blog-text,
    .profile-wrapper {
        display: block;
    }
    .blog-text {
        color: var(--foreground-secondary);
        font-size: var(--fs-4);
        display: -webkit-box;
        line-clamp: 3;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 1rem;
    }
    .blog .wrapper-flex {
        display: flex;
        justify-content: start;
        align-items: center;
        gap: 10px;
    }
    .profile-wrapper {
        width: 56px;
        height: 56px;
        background: var(--action-primary);
        padding: 3px;
        border-radius: 50%;
        overflow: hidden;
    }
    .profile-wrapper img {
        border-radius: 50%;
    }
    .blog .wrapper {
        flex-direction: column;
        align-items: start;
        gap: 0;
    }
    /* Hero */
    .hero {
        text-align: left;
    }
    .hero .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 50px;
    }
    .hero .btn-group {
        justify-content: start;
        gap: 30px;
    }
    .hero .right {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .hero .pattern-bg {
        position: absolute;
        top: 50%;
        transform: translateY(-45%);
        width: 100%;
        height: 550px;
        background: url(../images/pattern.png);
        background-size: contain;
        opacity: 0.3;
    }
    .hero .img-box {
        position: relative;
        z-index: 2;
    }
    .hero-img {
        width: 90%;
        height: 90%;
        object-fit: cover;
        border-radius: 0 0 280px 230px;
        transform: translateX(30px);
    }
    .hero .shape {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -42%) rotate(-20deg);
        border-radius: 50%;
    }
    .hero .shape-1 {
        background: var(--accent);
        width: 90%;
        height: 90%;
        z-index: -1;
    }
    .hero .shape-2 {
        box-shadow: inset -15px -48px 0 var(--action-primary);
        width: 91%;
        height: 92%;
        z-index: 2;
    }
    /* Main */
    .main .container {
        display: grid;
        grid-template-columns: 5fr 2fr;
        gap: 60px;
    }
    /* Aside section */
    .aside {
        display: block;
        align-self: stretch;
    }
    .aside .h2 {
        color: var(--foreground-secondary);
        margin-bottom: 3rem;
        text-align: center;
        line-height: 1.3;
    }
    .aside .wrapper {
        background: var(--background-primary);
        border-radius: 10px;
        padding: 40px;
        box-shadow: 0 5px 5px hsla(0, 0%, 0%, 0.05);
    }
    .topics {
        margin-bottom: 3rem;
    }
    .topic-btn {
        display: flex;
        align-items: stretch;
        background: var(--background-primary);
        border-radius: 10px;
        box-shadow: 0 5px 5px hsla(0, 0%, 0%, 0.05);
        overflow: hidden;
    }
    .topic-btn:not(:last-child) {
        margin-bottom: 1rem;
    }
    .topic-btn .icon-box {
        font-size: 22px;
        width: 70px;
        display: flex;
        justify-content: center;
        align-items: center;
        background: var(--action-primary);
        color: var(--foreground-secondary);
        transition: all 0.2s;
    }
    .topic-btn:hover .icon-box {
        background: var(--accent);
        color: var(--white);
    }
    .topic-btn ion-icon {
        --ionicon-stroke-width: 40px;
    }
    .topic-btn p {
        padding: 15px;
        color: var(--foreground-secondary);
        font-weight: 700;
    }
    .tags {
        margin-bottom: 3rem;
    }
    .tags .wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 0.2rem;
    }
    .tags .hashtag {
        background: var(--action-primary);
        color: var(--foreground-secondary);
        padding: 5px 10px;
        font-size: var(--fs-5);
        font-weight: 700;
        border-radius: 5px;
    }
    .tags .hashtag:hover {
        color: var(--action-primary);
        background: var(--foreground-secondary);
    }
    .contact {
        margin-bottom: 3rem;
    }
    .contact p {
        color: var(--foreground-secondary);
        margin-bottom: 1rem;
    }
    .social-links {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }
    .social-links .icon-box {
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--action-secondary);
        font-size: 22px;
        border-radius: 50%;
    }
    .social-links .discord {
        color: hsl(235, 86%, 65%);
    }
    .social-links .twitter {
        color: hsl(203, 89%, 53%);
    }
    .social-links .facebook {
        color: hsl(220, 46%, 48%);
    }
    .social-links .icon-box:hover {
        background: var(--accent);
        color: var(--white);
    }
    .newsletter {
        margin-bottom: 98px;
        top: 3rem;
        position: sticky;
    }
    .newsletter p {
        color: var(--foreground-secondary);
        margin-bottom: 1rem;
    }
    .newsletter input {
        border: none;
        background: var(--action-primary);
        display: block;
        width: 100%;
        padding: 0.5rem 1rem;
        font: inherit;
        color: var(--foreground-secondary);
        border-radius: 5px;
        margin-bottom: 1rem;
    }
    .newsletter input::placeholder {
        color: inherit;
    }
    .newsletter input:focus {
        outline: 2px solid;
        outline-offset: 0;
    }
    .newsletter .btn-primary {
        margin-inline: auto;
        margin: auto; /* fallback for margin-inline */
    }
    /* Footer  */
    footer .container {
        padding: var(--py) 30px;
        grid-template-columns: 2fr 1fr 1fr;
    }
    footer .wrapper {
        text-align: left;
    }
    .footer-text {
        margin: 0;
    }
    .footer-title {
        font-size: 1.125rem;
    }
    .footer-link {
        margin-bottom: 0.3rem;
    }
  }
/* This program was developed by ©I-am-Programming-the-World */