/* style.css for Bettyworld Skin Lab */

/* Global Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background-color: #fffaf7;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.top-header {
    background-color: #0b6860;
    color: #ffffff;
    font-size: 14px;
    padding: 8px 0;
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.top-header .left-info i,
.top-header .right-social i {
    margin-right: 8px;
}

.top-header .left-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-header .right-social a {
    color: #ffffff;
    margin-left: 12px;
    transition: color 0.3s ease;
}

.top-header .right-social a:hover {
    color: #f89622; /* Accent hover color */
}

/* Responsive: Stack on small screens */
@media (max-width: 600px) {
    .top-header .container {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}


.hero-banner {
    position: relative;
    height: 500px;
    overflow: hidden;

}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    z-index: 3;
    width: 100%;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 88px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-content .btn-primary {
    background-color: #a60a39;
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.hero-content .btn-primary:hover {
    background-color: #f3dcdc;
    color:#a60a39;
}


.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    z-index: 3;
}

/* Overlay layer */
.hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: 2;
}


h1, h2, h4, p {
    margin: 0;
    padding: 0;
}

/* Top Header */
.top-header {
    background-color: #a60a39;
    padding: 5px 0;
    font-size: 14px;
    color: #ffffff;
    text-align: center;
}

/* Header */
.main-header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.main-header .container {
    display: flex;
    justify-content: space-between; /* Push logo left and nav right */
    align-items: center; /* Vertically center them */
    padding: 0 15px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px; /* space between image and text */
  font-size: 28px;
  font-weight: bold;
  color: #d68a8a;
  text-decoration: none; /* remove underline if using <a> */
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #d68a8a;
}

/* Banner Carousel */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.banner img.active {
    opacity: 1;
    z-index: 2;
}

/* Hero Section */
.hero {
    background: url('/static/images/hero-bg.jpg') center/cover no-repeat;
    text-align: center;
    padding: 100px 20px;
    color: #fff;
    background-color: #d68a8a; /* fallback color */
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn-primary {
    background-color: #a60a39;
    color: #ffffff;
    border: none;x
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 30px;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #f3dcdc;
}

/* Features Section */
.features {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 60px 20px;
    background-color: #fef2f2;
    text-align: center;
}

.features .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.feature-item {
    flex: 0 0 calc(33.333% - 20px); /* 3 columns with spacing */
    box-sizing: border-box;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 36px;
    color: #d68a8a;
    margin-bottom: 10px;
}

.feature-item h4 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #222;
}

.feature-item p {
    font-size: 14px;
    color: #666;
}

@media (max-width: 768px) {
    .feature-item {
        flex: 0 0 100%;
    }
}

/* Products Section */
.products {
    padding: 60px 20px;
    background-color: #fffaf7;
    text-align: center;
}

.products .section-title {
    font-size: 32px;
    margin-bottom: 40px;
    color: #d68a8a;
    font-weight: bold;
}

.product-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: nowrap;   /* Prevent wrapping */
    overflow-x: auto;    /* Allow horizontal scroll if screen too narrow */
    padding-bottom: 10px; /* some space for scrollbar */
}

.product-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    width: calc(25% - 22.5px); /* Four cards per row with gaps */
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
    height: 200px;
    object-fit: cover;
}

.product-card h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.product-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .product-grid {
        flex-direction: column;
        align-items: center;
    }
}


@media (max-width: 1024px) {
    .product-card {
        width: calc(50% - 15px); /* Two per row on medium screens */
    }
}

@media (max-width: 600px) {
    .product-card {
        width: 100%; /* Full width on small screens */
    }
}

.appointment-section {
  position: relative;
  background-image: url('bw2.jpg'); /* Replace with your own image URL */
  background-size: cover;
  background-position: center center;
  padding: 80px 0;
  color: white;
  overflow: hidden;
  z-index: 1;
}

/* Dark overlay for better text readability */
.appointment-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #d68a8a73; /* dark teal with opacity */
  z-index: -1;
}

.appointment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.appointment-box {
    background: white;
    padding: 30px;
    flex: 1 1 300px;
    max-width: 500px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 12px;
    text-align: center;
}

.appointment-box h2 {
    margin-bottom: 15px;
    font-size: 22px;
}

.appointment-box p {
    margin-bottom: 25px;
    font-size: 16px;
    color: #555;
}

.btn-primary {
    background-color: #a60a39; /* match your color theme */
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #ffffff;
    color:#a60a39;
}


/* Blog Posts Section */
.blog-posts {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.blog-posts .section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #a60a39;
  font-weight: 700;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-card h3 {
  font-size: 1.4rem;
  color: #a60a39;
  margin: 20px 20px 10px;
  flex-grow: 0;
}

.blog-card p {
  font-size: 1rem;
  color: #555;
  margin: 0 20px 20px;
  flex-grow: 1;
  line-height: 1.5;
}

.blog-meta {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  font-size: 0.9rem;
  color: #888;
  margin: 0 20px 15px;
  align-items: center;
}

.blog-meta i {
  margin-right: 6px;
  color: #f89622; /* accent color for icons */
}

.read-more {
  text-decoration: none;
  background-color: #a60a39;
  color: #fff;
  text-align: center;
  padding: 12px 0;
  font-weight: 600;
  border-top: 1px solid #a60a39;
  transition: background-color 0.3s ease;
}

.read-more:hover {
  background-color: #094d47;
}

/* Responsive: stack blog cards on smaller screens */
@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card img {
    height: 220px;
  }
}


/* Footer */
.footer {
  background-color: #a60a39;
  color: #e1e1e1;
  font-family: 'Montserrat', sans-serif;
  padding: 50px 0 20px;
  font-size: 0.95rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer h3 {
  color: #f89622;
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-about p,
.footer-contact p,
.footer-newsletter p {
  line-height: 1.6;
  margin-bottom: 15px;
}

.footer-social a {
  color: #f89622;
  font-size: 1.4rem;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #fff;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: #e1e1e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #f89622;
  text-decoration: underline;
}

.footer-contact i {
  color: #f89622;
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.newsletter-form input[type="email"] {
  flex-grow: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  outline: none;
}

.newsletter-form button {
  background-color: #f89622;
  border: none;
  padding: 0 18px;
  border-radius: 30px;
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
  background-color: #d67b1c;
}

.footer-bottom {
  border-top: 1px solid #f89622;
  text-align: center;
  margin-top: 30px;
  padding: 15px 20px 0;
  font-size: 0.9rem;
  color: #c1c1c1;
}

/* Responsive */

@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    padding: 10px 0;
    border-radius: 10px;
  }
}

