/* styles.css */
:root {
  --bg: #fbedf8;
  --text: #030303;
  --muted: #6b6b6b;
  --accent: #e95fa2;
  --accent-dark: #cc4a8c;
  --card: #ffffff;
  --border: #f0d9e6;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid var(--border); background: #fff;
}
.brand { font-weight: 700; color: var(--accent-dark); }
.nav a {
  margin: 0 8px; text-decoration: none; color: var(--text);
}
.nav a:hover { color: var(--accent-dark); }

.hero {
  padding: 48px 24px; text-align: center;
}
.hero h1 { margin: 0 0 8px; font-size: 2rem; }
.hero p { color: var(--muted); margin: 0 0 16px; }
.cta {
  display: inline-block; padding: 10px 16px; border-radius: 8px;
  background: var(--accent); color: white; text-decoration: none; font-weight: 600;
}
.cta:hover { background: var(--accent-dark); }

.grid {
  display: grid; gap: 16px; padding: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.card h2 { margin: 0; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }
.card a { margin-top: auto; color: var(--accent-dark); text-decoration: none; font-weight: 600; }

.site-footer {
  padding: 24px; text-align: center; color: var(--muted); border-top: 1px solid var(--border); background: #fff;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .nav a { padding: 6px 0; text-align: center; border: 1px solid var(--border); border-radius: 8px; }
}
.carousel {
  position: relative;
  overflow: hidden;
}
.carousel-container {
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.carousel-item {
  min-width: 300px;
  flex: 0 0 100%;
  background: #fff;
  border: 1px solid #f0d9e6;
  border-radius: 12px;
  padding: 20px;
  margin: 0 10px;
  text-align: center;
}
.carousel-item h3 { color: #cc4a8c; margin-bottom: 8px; }
.carousel-item a {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #e95fa2;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.carousel-nav {
  text-align: center;
  margin-top: 10px;
}
.carousel-nav button {
  background: #e95fa2;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 6px 12px;
  margin: 0 5px;
  border-radius: 6px;
  cursor: pointer;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: var(--bg); color: #333; line-height: 1.6; }

:root{
  --accent: #1b17f3bf;
  --bg: #f7f7fb;
  --border: #e1e1e8;
  --radius: 15px;
  --shadow: 0 4px 15px rgba(243, 122, 243, 0.2);
}

/* --- Layout Wrappers --- */
.container { max-width: 1100px; margin: auto; padding: 0 15px; }

/* Layout: Desktop default */
.layout { display: flex; gap: 25px; align-items: flex-start; margin-top: 30px; margin-bottom: 50px; }
.main-area { flex: 3; width: 100%; } /* Width 100% fixes flex issues on resize */
.sidebar { position: sticky; top: 20px; flex: 1; display: flex; flex-direction: column; gap: 20px; width: 100%; }

/* --- Header & Nav --- */
.site-header { background: #fff; box-shadow: var(--shadow); position: relative; z-index: 100; }
.site-header .inner { max-width: 1100px; margin: auto; padding: 15px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--accent); font-size: 20px; white-space: nowrap; }

/* Hamburger (Hidden on Desktop) */
.hamburger { display: none; font-size: 24px; cursor: pointer; color: var(--accent); user-select: none; }

/* Navigation */
.nav { display: flex; align-items: center; }
.nav a { margin: 0 10px; text-decoration: none; color: #333; font-weight: 600; font-size: 15px; transition: 0.3s; }
.nav a:hover, .nav a.active { color: var(--accent); }

/* Dropdown */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; box-shadow: var(--shadow); border-radius: 8px; min-width: 150px; z-index: 10; flex-direction: column; }
.dropdown-menu a { display: block; padding: 10px; margin: 0; border-bottom: 1px solid #eee; }
.dropdown:hover .dropdown-menu { display: flex; }

/* --- Hero --- */
.hero { text-align: center; padding: 50px 15px; background: linear-gradient(135deg, #f9a4c9, #f9c5ad, #ffffff 100%); }
.hero h1 { margin-bottom: 10px; font-size: 2rem; color: #222; }
.hero p { max-width: 700px; margin: auto; font-size: 1.1rem; }

/* --- Carousel --- */
.carousel { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 30px; }
.carousel img { width: 100%; height: 400px; object-fit: cover; display: none; transition: opacity 0.5s ease-in-out; }
.carousel img.active { display: block; }
.carousel-controls { position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between; padding: 0 15px; transform: translateY(-50%); }
.carousel button { background: rgba(255,255,255,0.8); border: 0; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 18px; font-weight: bold; color: var(--accent); transition: 0.3s; }
.carousel button:hover { background: #fff; transform: scale(1.1); }

/* --- Cards & Grid --- */
.flex { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 20px; }
.card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); transition: transform 0.3s; border: 1px solid transparent; }
.card:hover { transform: translateY(-5px); border-color: var(--accent); }
.card h3 { margin-bottom: 10px; font-size: 18px; color: #222; }
.card p { font-size: 14px; color: #666; }

/* --- Sidebar --- */
.sidebar .block, .sidebar .indx { background:linear-gradient(90deg, #ffb7d6, #fbceba, #fed5d5 100%); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.indx h3, .block h3 { margin-bottom: 15px; font-size: 18px; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.indx .card { display: block; margin-bottom: 10px; text-decoration: none; color: #333; font-weight: 500; padding: 12px; box-shadow: none; border: 1px solid #eee; }
.indx .card:hover { background: var(--accent); color: #fff; }

.tags span { display: inline-block; width:80px; background: var(--accent); color: #fff; padding: 5px 12px; border-radius: 20px; margin: 5px 3px; font-size: 12px; }

/* --- Testimonials (Added styles) --- */
.testimonial-section { background: #fff; padding: 50px 15px; margin-top: 40px; text-align: center; }
.testimonial-section h2 { margin-bottom: 30px; color: var(--accent); }
.testimonial-track { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; max-width: 1100px; margin: auto; }
.testimonial-card { background: var(--bg); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); flex: 1 1 250px; max-width: 350px; text-align: left; }
.testimonial-card p { font-style: italic; color: #555; margin-bottom: 15px; }
.testimonial-card h4 { color: var(--accent); font-size: 14px; text-align: right; }

/* --- Footer --- */
.site-footer { margin-top: 0; padding: 40px 15px; background: #111; color: #bbb; text-align: center; }
.footer-links { margin-top: 15px; }
.footer-links a { color: #fff; margin: 0 10px; text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--accent); }

/* =========================================
   MOBILE RESPONSIVENESS (Media Queries)
   ========================================= */
@media (max-width: 768px) {
  
  /* Layout stacks vertically */
  .layout { flex-direction: column; }
  .sidebar { position: static; width: 100%; order: 2; } /* Sidebar moves to bottom */
  .main-area { order: 1; }

  /* Header adjustments */
  .hamburger { display: block; }
  
  /* Mobile Navigation */
  .nav { 
    display: none; /* Hidden by default */
    width: 100%; 
    flex-direction: column; 
    background: #fff; 
    padding-top: 10px;
    border-top: 1px solid #eee;
    animation: fadeIn 0.3s;
  }
  
  .nav.show { display: flex; } /* JavaScript toggles this class */
  
  .nav a { width: 100%; padding: 12px; margin: 0; border-bottom: 1px solid #f7f7f7; text-align: left; }
  
  /* Mobile Dropdowns */
  .dropdown { width: 100%; }
  .dropdown > a:after { content: ' +'; float: right; } /* visual indicator */
  .dropdown-menu { position: static; box-shadow: none; border-left: 3px solid var(--accent); background: #fafafa; width: 100%; }
  .dropdown:hover .dropdown-menu { display: none; } /* Disable hover on mobile */
  .dropdown-menu.show-drop { display: flex; } /* Toggle via JS ideally, or rely on CSS focus if added */

  /* Carousel */
  .carousel img { height: 250px; } /* Smaller height for mobile */

  /* Fonts */
  .hero h1 { font-size: 1.5rem; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* --- 1. Variables & Reset --- */
:root {
  --primary-color: #ff4081; /* A nice "Beauty" pink */
  --text-color: #333;
  --bg-color: #ffffff;
  --hover-bg: #f5f5f5;
  --border-color: #e0e0e0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- 2. Header Container --- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--bg-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative; /* Needed for positioning mobile menu */
  z-index: 1000;
}

.brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

/* --- 3. Navigation (Desktop Default) --- */
.nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav a:hover, 
.nav a.active {
  color: var(--primary-color);
  background-color: var(--hover-bg);
}

/* --- 4. Dropdowns (Desktop) --- */
.dropdown {
  position: relative; /* Anchor point for the absolute menu */
}

.dropdown-menu {
  display: none; /* Hidden by default */
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-color);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border: 1px solid var(--border-color);
  min-width: 180px;
  flex-direction: column;
  z-index: 999;
}

/* Show dropdown on hover (Desktop only) */
.dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-menu a {
  padding: 10px 15px;
  border-bottom: 1px solid var(--border-color);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

/* --- 5. Hamburger Icon (Hidden on Desktop) --- */
.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  user-select: none;
}

/* --- 6. Mobile Logic (Max-width: 768px) --- */
@media (max-width: 768px) {
  
  .hamburger {
    display: block; /* Show hamburger on mobile */
  }

  /* Hide the nav by default on mobile */
  .nav {
    display: none; 
    position: absolute;
    top: 100%; /* Push it exactly below the header */
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    flex-direction: column;
    width: 100%;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

  /* The JS adds this class to show the menu */
  .nav.show {
    display: flex;
  }

  .nav a {
    width: 100%; /* Full width links */
    text-align: left;
    padding: 1rem 2rem;
  }

  /* Reset Dropdown for Mobile (Accordion Style) */
  .dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static; /* No longer absolute floating */
    box-shadow: none; /* Remove shadow to look flat */
    border: none;
    background-color: #f9f9f9; /* Slightly darker to distinguish */
    padding-left: 1rem; /* Indent sub-items */
    width: 100%;
  }

  /* Disable hover effect on mobile (Touch doesn't hover well) */
  .dropdown:hover .dropdown-menu {
    display: none; 
  }

  /* The JS adds '.active' to the .dropdown div when clicked */
  .dropdown.active .dropdown-menu {
    display: flex;
  }
}