/* Root styles to normalize margins and set universal color and box sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    color: black; 
}

/* General container layout */
.content-area {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    width: 100%; 
    justify-content: space-between;
}


/* Main content styling */
.main-content {
    flex: 0 0 80%; 
   
    border-right: 1px solid #ccc; 
}

/* Sidebar styling */
.sidebar {
    flex: 0 0 20%; 
    padding: 20px;
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 0; /* Set to the top of the viewport when it hits */
    height: 100vh; /* Optional: May set to full viewport height if desired */
    overflow-y: auto;
}

/* Header styles */
.main-content h1, .sidebar h1 {
    text-align: center;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 20px;
}

.main-content h2, .main-content h3, .sidebar h2, .sidebar h3 {
    font-weight: bold;
    margin-top: 0; 
    margin-bottom: 5px; 
}

/* Paragraph styles */
.main-content p, .sidebar p {
    line-height: 1.6;
    margin: 0 15px 10px 15px;
}

/* Introduction and Image Section */
.intro-and-image {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.text-section {
    width: 60%;
}

.image-section {
    width: 40%;
}
.image-section img {
    border: 2px solid #ccc; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.15); 
    display: block;
    max-width: 100%;
    height: auto;
    margin: auto; 
}


/* Styling images to be responsive with borders */
.main-image img, .series-image img {
    max-width: 100%;
    height: auto;
    border: 2px solid #ccc;
    display: block;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Soft shadow for depth */
}

/* Series Section Styling */
.series-section {
    background-color: #f8f8f8;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
    margin: 20px 0;
    border-bottom: 1px solid #ccc; /* Border after each series for clear division */
}

.series-item {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd; /* Border after each product series */
}

.series-image {
    flex: 0 30%;
    text-align: center;
    margin-right: 20px;
}
.series-text ul {
    list-style-type: disc; /* Defines bullet points */
    margin-left: 20px; /* Indents the list */
    padding-left: 0;
}

.series-text ul li {
    margin-bottom: 10px; /* Space between items */
}

.series-text {
    flex: 0 70%;
    padding-left: 20px;
}

/* FAQ Sections */
.faq-section {
    background-color: #f8f8f8;
    padding: 20px;
    margin-top: 20px;
}
.faq-title {
    text-align: center;
    background-color: black;
    color: white;
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: bold;
    padding: 15px; /* Adds padding around the text for better visibility */
}
.faq-container .faq-block {
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.faq-container .faq-block:last-child {
    border-bottom: none;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px; 
}

.main-content {
    padding: 20px;
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.first-section {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.text-column {
    width: 60%;
    margin-right: 20px;
}

.image-column {
    width: 40%;
}

.image-column img {
    max-width: 100%;
    height: auto;
}

.third-section,
.fourth-section,
.sixth-section {
    margin-bottom: 20px;
}

.sixth-section .related-product {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
}

.sixth-section .related-product img {
    max-width: 100px;
    height: auto;
}


/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .content-area {
        flex-direction: column;
    }

    .main-content, .sidebar {
        flex: 1 0 100%;
        padding: 10px 0;
        border-right: none; /* Remove border in mobile view */
    }

    .intro-and-image, .series-item {
        flex-direction: column;
    }

    .text-section, .image-section {
        width: 100%;
    }
    .sidebar {
        order: -1; /* This will move the sidebar to the top on mobile views */
    }
}
