/* General Reset */
body,
html {
    font-family: "Montserrat", "Noto Sans TC", sans-serif;
    /* Simple and professional font */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Body Styling */
body {
    background-color: #ffffff;
    /*#282828*/
    color: #ffffff;
}

/* Content Container */
.container {
    max-width: 900px;
    width: 90%;
    margin: 50px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

/* Duo Container */
.duo-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.duo-left, .duo-right {
    width: 50%;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sub-container {
    width: 100%;
    background-color: #f9f9f9;
    color: #272727;
    padding: 20px;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Heading Styling */
.heading {
    font-size: 2rem;
    text-align: left;
    color: #272727;
    padding-top: 5px;
    font-weight: bold;
    line-height: 1;
    margin: 0;
}

.head-detail {
    font-size: 1.2rem;
    text-align: left;
    color: #6b6b6b;
    line-height: 1;
    padding-bottom: 10px;

}

.date {
    font-size: 0.85rem; /* Slightly smaller than the heading */
    color: #6b6b6b; /* Neutral gray to keep it subtle */
    font-weight: 400; /* Light font weight */
    position: relative; /* Position relative to the heading */
    text-align: right;
  }

.subheading {
    font-size: 1.2rem;
    text-align: left;
    color: #404040;
    font-weight: 500;
}

/* Paragraph Styling */
.paragraph {
    font-size: 0.95rem;
    line-height: 1.3;
    color: #3c3c3c;
    margin-bottom: 25px;
    text-align: justify;
}

/* Bullet Point */
ul {
    margin: 20px 0;
    padding-left: 20px;
    list-style-type: disc;
}

ul li {
    font-size: 0.95rem;
    line-height: 1.3;
    color: #666;
    text-align: justify;
    margin-bottom: 25px;
    position: relative;
}

/* Image Styling */
.image {
    width: 100%;
    height: auto;
    margin: 20px 0;
    display: block;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Screenshot Container: must use with script */
.screenshot-container {
    display: grid;
    gap: 5px; /* Spacing between images */
    margin: 20px auto; 
    max-width: 100%; 
    justify-content: center; /* Center content within the container */
    align-items: center; /* Vertically align content */
  }
  
  .screenshot {
    width: 100%; 
    max-height: 450px; 
    object-fit: contain; 
    border-radius: 5px; 
    display: block;
  }

/* YouTube Embed */
.youtube-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin: 20px 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.youtube-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
}

/* Button Styling */
.button-green {
    display: inline-block;
    padding: 10px 25px;
    font-size: 0.9rem;
    color: #fff;
    background-color: #21b05c;
    text-align: center;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.button-green:hover {
    background-color: #105f31;
    transform: translateY(-2px);
}

.button {
    display: inline-block;
    padding: 10px 25px;
    font-size: 0.9rem;
    color: #fff;
    background-color: #dc9a17;
    text-align: center;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.button:hover {
    background-color: #725417;
    transform: translateY(-2px);
}

/* Mobile First Responsive Design */
@media (max-width: 768px) {
    .heading {
        font-size: 1.8rem;
        padding-top:10px;
        padding-bottom: 0px;
    }

    .date {
        font-size: 0.7rem;
    }

    .head-detail{
        font-size: 1rem;
    }

    .subheading {
        font-size: 1rem;
    }

    .paragraph {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .duo-container {
        flex-direction: column;
        gap: 10px;
        padding: 0; /* Reset padding to prevent overflow */
    }

    .duo-left, .duo-right {
        width: calc(100% - 10%); /* Leave space from the edges */
        margin: 0 auto; /* Center items */
    }
}

/* Large Screen Styles */
@media (min-width: 1024px) {
    .container {
        max-width: 700px;
        padding: 40px;
    }

    .heading {
        font-size: 2.5rem;
        padding-top: 30px;
    }

    .head-detail{
        font-size: 1.2rem;
    }

    .paragraph {
        font-size: 1rem;
        line-height: 1.8;
    }
}
