* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Georgia", serif;
    line-height: 1.6;
    background: #faf7f7;
    color: #333;
}

a {
    text-decoration: none;
}

p{
    padding: 10px;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    padding: 20px;
    gap: 30px;
}

/* Main Blog Content */
.main {
    flex: 3;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 100vw;
}

.main img.banner {
    width: 100%;
    border-radius: 8px;
    margin: 20px 0px;
    max-height: 400px;
    object-fit: contain;
}

.main h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #4b2c2c;
}

.main p.overview {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #5e4b4b;
}

.main h2 {
    margin: 25px 0 10px;
    color: #b8325a;
}

/* Add spacing after <br> */
br {
    content: "";
    display: block;
    margin-bottom: 1rem;
}

/* Sidebar */
.sidebar {
    flex: 1;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.recent-container {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.recent-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    /* vertical scroll in column layout */
    height: 100vh;
}

.recent-box h3 {
    margin-bottom: 10px;
    color: #4b2c2c;
}

.recent-box p {
    font-size: 0.95rem;
    color: #5e4b4b;
}

/* Responsive for below 1024px */
@media (max-width: 1024px) {
    .recent-box {
        flex-direction: row;
        overflow-x: auto;
        /* horizontal scroll */
        overflow-y: hidden;
        /* disable vertical scroll */
        height: auto;
        /* allow natural height */
        gap: 15px;
        padding-bottom: 10px;
        max-width: 100vw;
    }

    .recent-box>* {
        flex: 0 0 auto;
        /* prevent children from stretching */
        width: 250px;
        /* set fixed width for horizontal cards */
    }
}

.recent-blog {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.recent-blog img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.recent-blog div {
    flex: 1;
}

.recent-blog h4 {
    font-size: 0.95rem;
    color: #b8325a;
    margin-bottom: 4px;
}

.recent-blog span {
    font-size: 0.8rem;
    color: #888;
}

.img-box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.img-box img {
    min-width: 200px;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        top: 0;
    }
}

/* Hide scroll bar in large screens */
@media (min-width: 768px) {
    .scrollbar-hidden {
        -ms-overflow-style: none;
        /* IE and Edge */
        scrollbar-width: none;
        /* Firefox */
    }

    .scrollbar-hidden::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, and Opera */
    }
}

.styled-list {
    background-color: #ededed;
    /* light background */
    padding: 1.5rem;
    border-radius: 10px;
    list-style: none;
    /* remove default bullets */
}

.styled-list li {
    position: relative;
    margin-bottom: 0.75rem;
    /* small gap between points */
    padding-left: 1.5rem;
    /* space for diamond bullet */
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* Custom diamond bullet */
.styled-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 0.6em;
    height: 0.6em;
    background-color: #555;
    /* bullet color */
    transform: rotate(45deg);
    /* makes it a diamond */
    border-radius: 2px;
}

.conclusion {
    background-color: #e4f1ff;
    /* light gray background */
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.conclusion .banner {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.conclusion h2 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
    color: #333;
}

.conclusion .overview {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

.tips {
    margin: 10px 0;
    background-color: #e4f1ff;
    border-radius: 10px;
}

          /* CTA */
          .cta {
              background: #f8d8d8;
              text-align: center;
              padding: 60px 20px;
              margin-top: 40px;
          }
    
          .cta h2 {
              margin-bottom: 15px;
          }
    
          .cta button {
              background: #d43f6c;
              color: white;
              padding: 12px 25px;
              border: none;
              border-radius: 30px;
              cursor: pointer;
              font-size: 1rem;
              transition: background 0.3s;
          }
    
          .cta button:hover {
              background: #b8325a;
          }