@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

body {
    background: linear-gradient(rgba(0, 4, 40, 0.8), rgba(0, 78, 146, 0.8)), url('../img/blog/acrylic_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.logo {
    color: rgb(0, 162, 255);
    text-shadow: 0 0 5px rgb(0, 162, 255),
        0 0 25px rgb(0, 162, 255);
}

.logo:hover {
    color: white;
    text-shadow: 0 0 5px white,
        0 0 25px white;
}

nav a:hover {
    color: rgb(0, 162, 255);
}

nav a.active {
    border-bottom: 3px solid rgb(0, 162, 255);
}

span {
    color: #00ffd5;
}

.sub-blog-home {
    padding: 2rem;
    text-align: center;
    color: rgb(0, 162, 255);
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 4rem;
}

.sub-blog-title {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 4rem;
    padding-bottom: 4rem;
}

.Exploiting-Broadcast-Receiver {
    margin-top: 2rem;
    position: relative;
}

.sub-blog-lablinkmain {
    margin-top: 1.5rem;
    text-align: left;
    margin-bottom: 2rem;
}

.sub-blog-lablink {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: transparent;
    border-radius: 40px;
    font-size: 1.4rem;
    color: white;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    border: 0.2rem solid rgb(0, 162, 255);
    transition: all 0.3s ease;
}

.sub-blog-lablink:hover {
    background-color: rgb(0, 162, 255);
    color: black;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgb(0, 162, 255);
}

.Exploiting-Broadcast-Receiver h4 {
    margin-top: 1rem;
    font-size: 1.8rem;
    color: rgb(153, 152, 152);
    opacity: 0.7;
    text-align: left;
}

.blog-main-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.blog-main-image {
    margin-top: 4rem;
    text-align: center;
}

.sub-blog-text {
    margin-top: 2rem;
    text-align: left;
    font-size: 1.6rem;
    line-height: 1.6;
    color: white;
}

.sub-blog-text h3 {
    color: rgb(0, 162, 255);
}

.sub-blog-links {
    color: #00ffd5;
}

.sub-blog-links:hover {
    color: rgb(0, 162, 255);
}

.sub-blog-command {
    font-style: italic;
    font-size: 1.4rem;
    font-size: smaller;
    color: rgb(76, 201, 239);
}

.sub-blog-blogimages {
    text-align: center;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    transform: scale(0.7);
    transform-origin: center;
}

ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

ul ul {
    list-style-type: circle;
    padding-left: 1.5rem;
}

pre[class*="language-"] {
    background-color: #1e1e1e;
    color: #f4f2f2;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow: auto;
}

code[class*="language-"] {
    background-color: transparent;
}

#blog-home {
    color: rgb(0, 162, 255);
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 4rem;
}

.blog-title {
    text-align: center;
    font-size: 4rem;
    padding-bottom: 4rem;
}

.blog-container {
    padding: 4rem;
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-gap: 4rem;
    margin-top: 4rem;
}

.blog-item {
    background-color: transparent;
    overflow: hidden;
    padding: 3rem;
    font-size: 1.6rem;
    border-right: 1rem;
    border-radius: 3rem;
    transition: background 0.5s, transform 0.5s;
    box-shadow: 1px 1px 20px rgb(0, 162, 255),
        1px 1px 40px rgb(0, 162, 255);
}

.blog-image-container {
    position: relative;
}

.blog-image-container img {
    width: 100%;
    opacity: 0.35;
}

.blog-text-container {
    position: absolute;
    top: 0;
    padding: 1rem;
    width: 100%;
    height: auto;
}

.blog-text-container h2 {
    color: #00ffd5;
}

.blog-text-container p {
    color: white;
}

.blog-text-container a {
    text-decoration: none;
    color: white;
    font-size: 1.3rem;
    margin-top: 2rem;
    display: inline-block;
}

.read-more {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background-color: transparent;
    border-radius: 40px;
    font-size: 1.4rem;
    color: white;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    border: 0.2rem solid rgb(0, 162, 255);
}

.blog-list div:hover {
    transform: translateY(-5px);
}

.blog-text-container a:hover {
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: rgb(0, 162, 255);
    box-shadow: 0 0 25px rgb(0, 162, 255);
}

.blog-text-container p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
    line-clamp: 7;
    /* Show only 3 lines */
    overflow: hidden;
    text-overflow: ellipsis;
}

@media(max-width:995px) {
    .sub-blog-blogimages {
        transform: scale(0.9);
        transform-origin: center;
    }

    .sub-blog-title {
        margin-bottom: 1.5rem;
        font-size: 2.5rem;
        padding-bottom: 4rem;
    }

    .blog-item {
        background-color: transparent;
        overflow: hidden;
        padding: 3rem;
        font-size: 1.4rem;
        border-right: 1rem;
    }

    .blog-text-container a {
        font-size: 1.3rem;
        margin-top: 1rem;
    }

    .blog-image-container {
        padding-bottom: 3rem;
    }

    .blog-image-container.blog2 {
        padding-bottom: 11rem;
    }

    .blog-text-container p {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 6;
        line-clamp: 6;
        /* Show only 3 lines */
        color: white;
    }

    .sub-blog-text h3 {
        color: rgb(0, 162, 255);
    }

    .sub-blog-links {
        color: #00ffd5;
    }

    .sub-blog-links:hover {
        color: rgb(0, 162, 255);
    }

    .sub-blog-command {
        font-style: italic;
        font-size: 1.4rem;
        font-size: smaller;
        color: rgb(76, 201, 239);
    }

    .sub-blog-blogimages {
        text-align: center;
        max-width: 100%;
        display: block;
        margin: 0 auto;
        transform: scale(0.7);
        transform-origin: center;
    }

    ul {
        list-style-type: disc;
        padding-left: 1.5rem;
    }

    ul ul {
        list-style-type: circle;
        padding-left: 1.5rem;
    }

    pre[class*="language-"] {
        background-color: #1e1e1e;
        color: #f4f2f2;
        padding: 1.5rem;
        border-radius: 0.5rem;
        overflow: auto;
    }

    code[class*="language-"] {
        background-color: transparent;
    }

    #blog-home {
        color: rgb(0, 162, 255);
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 4rem;
    }

    .blog-title {
        text-align: center;
        font-size: 4rem;
        padding-bottom: 4rem;
    }

    .blog-container {
        padding: 1rem;
    }

    .blog-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        grid-gap: 4rem;
        margin-top: 4rem;
    }

    .blog-item {
        background-color: transparent;
        overflow: hidden;
        padding: 3rem;
        font-size: 1.6rem;
        border-right: 1rem;
        border-radius: 3rem;
        transition: background 0.5s, transform 0.5s;
        box-shadow: 1px 1px 20px rgb(0, 162, 255),
            1px 1px 40px rgb(0, 162, 255);
    }

    .blog-image-container {
        position: relative;
    }

    .blog-image-container img {
        width: 100%;
        opacity: 0.35;
    }

    .blog-text-container {
        position: absolute;
        top: 0;
        padding: 1rem;
        width: 100%;
        height: auto;
    }

    .blog-text-container h2 {
        color: #00ffd5;
    }

    .blog-text-container p {
        color: white;
    }

    .blog-text-container a {
        text-decoration: none;
        color: white;
        font-size: 1.3rem;
        margin-top: 2rem;
        display: inline-block;
    }

    .read-more {
        display: inline-block;
        padding: 1.2rem 2.5rem;
        background-color: transparent;
        border-radius: 40px;
        font-size: 1.4rem;
        color: white;
        letter-spacing: 1px;
        text-decoration: none;
        font-weight: 600;
        opacity: 0;
        animation: slideRight 1s ease forwards;
        border: 0.2rem solid rgb(0, 162, 255);
    }

    .blog-list div:hover {
        transform: translateY(-5px);
    }

    .blog-text-container a:hover {
        color: black;
        transform: scale(1.3) translateY(-5px);
        background-color: rgb(0, 162, 255);
        box-shadow: 0 0 25px rgb(0, 162, 255);
    }

    .blog-text-container p {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 7;
        line-clamp: 7;
        /* Show only 3 lines */
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media(max-width:995px) {
    .sub-blog-blogimages {
        transform: scale(0.9);
        transform-origin: center;
    }

    .sub-blog-title {
        margin-bottom: 1.5rem;
        font-size: 2.5rem;
        padding-bottom: 4rem;
    }

    .blog-item {
        background-color: transparent;
        overflow: hidden;
        padding: 3rem;
        font-size: 1.4rem;
        border-right: 1rem;
    }

    .blog-text-container a {
        font-size: 1.3rem;
        margin-top: 1rem;
    }

    .blog-image-container {
        padding-bottom: 3rem;
    }

    .blog-list {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }

    .blog-item {
        padding: 0;
        border: 1px solid rgba(0, 162, 255, 0.3);
        background: rgba(0, 0, 0, 0.2);
        border-radius: 3rem;
    }

    .blog-title {
        font-size: 3rem;
    }

    .blog-text-container {
        position: relative;
        top: auto;

        .blog-image-container.blog2 {
            padding-bottom: 0;
        }
    }
}

@media (max-width: 600px) {
    .blog-container {
        padding: 1rem;
    }

    .blog-list {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }

    .blog-item {
        padding: 0;
        border: 1px solid rgba(0, 162, 255, 0.3);
        background: rgba(0, 0, 0, 0.2);
        border-radius: 3rem;
    }

    .blog-title {
        font-size: 3rem;
    }

    .blog-text-container {
        position: relative;
        top: auto;
        width: 100%;
        padding: 2rem;
        background: transparent;
    }

    .blog-image-container img {
        opacity: 1;
        border-radius: 3rem 3rem 0 0;
        display: block;
    }

    .blog-image-container {
        padding-bottom: 0;
    }

    .blog-image-container.blog2 {
        padding-bottom: 0;
    }

    /* Blog Post Responsive Styles */
    .sub-blog-home {
        padding: 1rem;
    }

    .sub-blog-title {
        font-size: 2rem;
        word-wrap: break-word;
    }

    .sub-blog-blogimages {
        transform: none;
        width: 100%;
        height: auto;
        margin: 1rem 0;
    }

    .blog-main-image img {
        width: 100%;
        height: auto;
    }

    .sub-blog-text {
        font-size: 1.1rem;
        padding: 0 0.5rem;
    }

    pre[class*="language-"] {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Social Icons Blue Theme */
.social-icons a {
    border: 0.2rem solid rgb(0, 162, 255);
}

.social-icons a:hover {
    background-color: rgb(0, 162, 255);
    box-shadow: 0 0 25px rgb(0, 162, 255);
}

/* Magnetic Button Blue Theme */
.magneticbtn a {
    border: 0.2rem solid rgb(0, 162, 255);
    z-index: 10;
    width: 15rem;
    height: 15rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.magneticbtn .hovercolor {
    background-color: rgb(0, 162, 255);
}

.magneticbtn a:hover .hovercolor {
    box-shadow: 0 0 25px rgb(0, 162, 255);
}

.magneticbtn a:hover {
    box-shadow: 0 0 25px rgb(0, 162, 255);
}


pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre;
    /* prevents wrapping */
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
}

@media (max-width: 995px) {
    .home-content {
        margin-top: 0;
    }
}