/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* All Bits & Beats Page */
.all-bitsandbeats1-page {
    padding: 5px 5px;
    max-width: 100%;
    margin: 10px auto;
}

/* Bits & Beats Card */
.bitsandbeats1-card {
    display: flex;
    flex-direction: row; /* Image and text side by side */
    align-items: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    padding: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
}


.bitsandbeats1-card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Bits & Beats Image */
.bitsandbeats1-image {
    margin: 10px;
    flex-shrink: 0; /* Prevent shrinking of the image */
    display: flex; /* Keep the container a flex box */
    align-items: center; /* Center image vertically */
    justify-content: center; /* Center image horizontally */

}

.bitsandbeats1-image img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #f1f1f1;
}

/* Bits & Beats Details */
.bitsandbeats1-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 15px;
}

.bitsandbeats1-title {
    font-size: 1.1em;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 5px;
    line-height: 1.3;
}

.bitsandbeats1-title a {
    text-decoration: none;
    color: #007bff;
}

.bitsandbeats1-title a:hover {
    text-decoration: underline;
}

.bit_beat1 {
    margin-top: 8px;
    color: #555;
    font-size: 0.95em;
    line-height: 1.4;
    text-align: justify; /* Align content to justify */
}

/* Responsive Design for Smaller Screens */
@media (max-width: 480px) {
    .bitsandbeats1-card {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .bitsandbeats1-image img {
        width: 100%; /* Image adapts to available width */
        height: auto;
    }

    .bitsandbeats1-details {
        margin-left: 0;
        text-align: center;
    }
}

/* Responsive Design for Larger Screens */
@media (min-width: 768px) {
    .all-bitsandbeats1-page {
        max-width: 1200px;
    }

    .bitsandbeats1-card {
        flex-direction: row;
        align-items: center;
        padding: 25px;
    }

    .bitsandbeats1-image img {
        max-width: 800px;
        height: auto;
    }

    .bitsandbeats1-details {
        text-align: left;
        margin-left: 15px;
    }

    .bitsandbeats1-title {
        font-size: 1.2em;
    }

    .bit_beat1 {
        font-size: 1em;
    }
}
