body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f4f4f4;
}

/* Shared styles for the header */
header nav, .main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em;
    background-color: #fff;
}

/* Shared styles for the brand logo */
.brand-logo, .main-nav .brand-logo {
    width: 140px; /* Adjusted to actual image width */
    height: auto; /* This will maintain the aspect ratio of the image */
}

/* Hero section styles */
.hero-section {
    background-size: cover;
    text-align: center;
    padding: 2em;
}

/* Product card styles */
.customer-favorites .product-card, .product-image {
    /* Example placeholder styles for product cards */
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 300px; /* Example max height */
}

/* Testimonial background styles */
.testimonial-background {
    width: 100%;
    height: auto;
}

/* Custom styles for navigation links */
.main-nav .nav-links, .main-nav .nav-links {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav .nav-links li, .main-nav .nav-links li {
    padding: 0 20px; /* This adds padding to the left and right of each nav item */
}

.main-nav .nav-links li a, .main-nav .nav-links li a {
    text-decoration: none; /* This removes the underline from the links */
    color: #333; /* Dark text color for the links */
    font-weight: bold; /* Makes the font weight bold */
}

/* Custom styles for navigation icons */
.main-nav .nav-right .nav-icon {
    width: 30px; /* Example size for icons */
    height: auto;
    margin-left: 20px;
}



.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Style adjustments for better centralization and presentation */
.intro, .featured-products, .skincare-quiz, .testimonials, .educational-snippet, .customer-favorites, .why-cerave, .product-categories {
    margin: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


/* Responsive styles */
@media (max-width: 768px) {
    .main-nav .nav-links li, .main-nav .nav-links li {
        padding: 0 10px;
    }
    
    .main-nav .nav-right .nav-icon, .main-nav .nav-right .nav-icon {
        width: 25px;
    }
}


.product-categories {
    text-align: center;
    padding: 20px;
    background: #f4f4f4;
}

.product-categories .category-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.product-categories .category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px; /* Adjust the width as needed */
    text-decoration: none;
    color: #333;
}

.product-categories .category-item:hover {
    color: #0048A0;
}

.product-categories .category-image {
    width: 100%; /* Makes the image responsive to the width of the .category-item */
    height: auto;
    margin-bottom: 10px;
}

.product-categories p {
    margin-top: 0;
}


.skincare-quiz .quiz-background {
    display: flex;
    justify-content: left;
    align-items: left;
    text-align: left;
    background-size: cover;
    background-position: left;
    padding: 50px; /* Adjust padding as needed */
}

.skincare-quiz .quiz-content {
    max-width: 600px; /* Adjust width as needed */
    background: rgba(255, 255, 255, 0.8); /* Translucent background for readability */
    padding: 20px;
    border-radius: 10px;
}

.skincare-quiz h2 {
    color: #333; /* Adjust color as needed */
    margin-bottom: 20px;
}

.skincare-quiz p {
    color: #555; /* Adjust color as needed */
    margin-bottom: 30px;
}

.skincare-quiz .quiz-cta {
    text-decoration: none;
    color: #fff;
    background-color: #0048A0; /* CeraVe brand color */
    padding: 10px 20px;
    border-radius: 25px;
    transition: background-color 0.3s;
}

.skincare-quiz .quiz-cta:hover {
    background-color: #003366; /* Darker shade for hover effect */
}



.customer-favorites {
    display: flex;
    justify-content: center;
    padding: 40px;
    background-color: #fff;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 280px; /* Slightly increased width */
    background-color: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px; /* Adjusted padding back to a smaller value if 50px is too much */
    margin: 20px;
}

.product-image-container {
    width: 220px; /* Container will be as wide as the product-card */
    padding: 10px;
    display: flex; /* Use flex layout */
    justify-content: center; /* Center the image horizontally */
    align-items: center; /* Center the image vertically */
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 15px; /* Adjusted margin */
}

.product-image {
    width: auto; /* Keep the original image's aspect ratio */
    height: 150px; /* Increased height */
    max-width: 220px; /* Ensure it doesn't overflow its container */
}


.product-item {
    text-align: center; /* Centers text */
    max-width: 800px; /* Adjust the width as needed */
    margin: 0 auto; /* Centers the div horizontally on the page */
    padding: 20px; /* Add padding for aesthetic spacing */
    font-size: 18px;
}



/* The rest of your CSS remains unchanged */


.product-details {
    text-align: center;
}

.product-title {
    color: #333;
    margin: 10px 0;
}

.product-description {
    color: #555;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.product-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em; /* Adjust size as needed */
}

.stars {
    color: #FFD700; /* Gold color for stars */
    margin-right: 5px;
}

.rating-number {
    font-weight: bold;
    color: #333;
}

/* Ensure that the stars and rating number do not wrap to the next line */
.product-rating .stars, .product-rating .rating-number {
    white-space: nowrap;
}



.video-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


footer {
    text-align: center; /* Centers text for simple cases */
    display: flex; /* Use flexbox to center content */
    justify-content: center; /* Horizontally centers flex items */
    align-items: center; /* Vertically centers flex items */
    padding: 20px; /* Add some padding for spacing */
    background-color: #f8f9fa; /* Give the footer a background color if needed */
}



/* ... existing styles ... */

/* Increase font size for main content headings and paragraphs */
.intro h2,
.why-cerave h2,
.skincare-quiz h2,
.product-categories h2,
.featured-products h2,
.customer-favorites h2,
.testimonials h2,
.educational-snippet h2 {
    font-size: 24px; /* Adjust the size as needed */
}

.intro p,
.why-cerave p,
.skincare-quiz p,
.product-categories p,
.featured-products p,
.customer-favorites p,
.testimonials p,
.educational-snippet p {
    font-size: 18px; /* Adjust the size as needed */
}

/* Increase font size for testimonial quotes */
.testimonial-highlight blockquote {
    font-size: 18px; /* Adjust the size as needed */
}

/* Increase font size for the FAQ questions and answers */
.faqs h2 {
    font-size: 24px; /* Adjust the size as needed */
}

.faqs .faq-question h3 {
    font-size: 20px; /* Adjust the size as needed */
}

.faqs .faq-answer p {
    font-size: 18px; /* Adjust the size as needed */
}

/* Increase font size for footer text */
footer p {
    font-size: 18px; /* Adjust the size as needed */
}






/* ... additional existing styles ... */





.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    /* Logo specific styles */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    /* Additional link styles */
}

.nav-right {
    display: flex;
    align-items: center;
    /* Additional styles for the right side of the nav */
}





/* Add other styles here */

.faqs {
    padding: 2em;
    background-color: #f4f4f4;
    margin: 1em;
    border-radius: 8px;
}



.faq-answer p {

    font-size: 1.2em; /* Increased font size */
}




/* Additional styles for the ingredient cards and FAQs can be added here */





/* ... other styles ... */

.faqs {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
}

.faq-container {
    border-top: 1px solid #ccc;
}

.faq {
    border-bottom: 1px solid #ccc;
    padding: 0.5rem 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    cursor: pointer;
}

.faq h3 {
    font-size: 1rem;
    font-weight: normal;
    margin: 0;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #333;
}



.faq-answer p {
    font-style: italic; /* Makes text italic */
    color: #6A5ACD; /* A distinct color for the answers */
    font-family: "Times New Roman", Times, serif; /* Example font change */
    font-size: 1.2em; /* Increased font size */
}



.product-it h2 {

    text-align: center; /* Centers text */
}

.product-it h4 {
    color: blue; /* Sets the color of h4 headings to blue */
    text-align: center; /* Centers text */
}

.product-it p {
    font-style: italic; /* Makes the paragraph text italic */
    text-align: center; /* Centers text */
    max-width: 800px; /* Adjust the width as needed */
    margin: 0 auto; /* Centers the div horizontally on the page */
    padding: 20px; /* Add padding for aesthetic spacing */
    font-size: 16px;
}


/* New and Enhanced Styles */
/* Adding gradient background to the hero section */
.hero-section {
    background: linear-gradient(rgba(0, 123, 255, 0.8), rgba(0, 123, 255, 0.8)), url('your-background-image.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 40px 20px;
}

/* Styling for product cards with hover effect */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Button styling */
button, .cta-button {
    background-color: #007bff;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover, .cta-button:hover {
    background-color: #0056b3;
}

/* Adding a footer with social icons */
footer {
    background-color: #007bff;
    color: #fff;
    padding: 20px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

footer a {
    color: #fff;
    margin: 0 10px;
}

footer a:hover {
    color: #d4ec84;
}

/* Styling for social media links */
.social ul {
    display: flex;
    justify-content: center;
    padding: 0;
}

.social ul li {
    margin: 0 10px;
}

.social ul li a {
    color: #333;
    transition: color 0.3s ease;
}

.social ul li a:hover {
    color: #007bff;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .hero-section, .product-card, .social ul li {
        width: 100%;
        text-align: center;
    }

    .nav-links, .nav-right {
        flex-direction: column;
        align-items: center;
    }

    .nav-links li, .nav-right a {
        padding: 10px;
    }
}

/* Additional graphical enhancements */
/* Add keyframes for subtle animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Apply animation to specific elements */
.hero-section, .product-card, .social ul li {
    animation: fadeIn 1s ease;
}

