:root {
  /* Joyful Pastel Colors */
  --color-primary: #FFB7B2; /* Pastel Red/Pink */
  --color-secondary: #FADCD9; /* Soft Pastel Rose/Pink instead of Green */
  --color-accent: #FFDAC1; /* Pastel Orange */
  --color-background: #FAF9F6; /* Off white */
  --color-surface: #FFFFFF;
  --color-text: #4A4A4A;
  --color-text-light: #7A7A7A;
  --color-border: #E8E8E8;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
}

header {
  background-color: var(--color-surface);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-primary);
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--color-primary);
}

.hero {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  padding: 4rem 2rem;
  text-align: center;
  color: white;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  background-color: var(--color-secondary);
  color: var(--color-text);
  text-decoration: none;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.card {
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border-top: 4px solid var(--color-primary);
  transition: transform 0.3s ease;
}

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

.card img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

/* Switch styling */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}
input:checked + .slider {
  background-color: var(--color-primary);
}
input:checked + .slider:before {
  transform: translateX(26px);
}
.slider.round {
  border-radius: 24px;
}
.slider.round:before {
  border-radius: 50%;
}

/* List view (Full width rows) */
.grid.list-view {
  grid-template-columns: 1fr;
  gap: 2rem;
}
.grid.list-view .card {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  padding: 0 !important;
  max-width: 100% !important;
}
.grid.list-view .card > div:first-child {
  width: 35% !important;
  height: auto !important;
  min-height: 250px !important;
  flex-shrink: 0;
  border-radius: 12px 0 0 12px;
  overflow: hidden;
}
.grid.list-view .card > div:first-child img {
  width: 100% !important;
  height: 100% !important;
  min-height: 250px;
  border-radius: 12px 0 0 12px;
  object-fit: cover;
}
.grid.list-view .card > div:last-child {
  width: 65% !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem !important;
}

@media (max-width: 768px) {
  .grid.list-view .card {
    flex-direction: column !important;
  }
  .grid.list-view .card > div:first-child {
    width: 100% !important;
    height: 200px !important;
    min-height: auto !important;
    border-radius: 12px 12px 0 0;
  }
  .grid.list-view .card > div:first-child img {
    height: 200px !important;
    min-height: auto !important;
    border-radius: 12px 12px 0 0;
  }
  .grid.list-view .card > div:last-child {
    width: 100% !important;
    padding: 1.5rem !important;
  }
}


footer {
  text-align: center;
  padding: 2rem;
  background-color: var(--color-surface);
  color: var(--color-text-light);
  margin-top: 4rem;
}

/* Dropdown CSS - Glassmorphism & Animations */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    min-width: 260px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 12px;
    top: 100%;
    left: 0;
    padding: 0.5rem 0;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown:hover .dropdown-content {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.dropdown-content a {
    color: var(--color-text);
    padding: 12px 20px;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background: rgba(255, 183, 178, 0.15); /* Soft primary tint */
    color: var(--color-primary);
    padding-left: 25px; /* micro animation */
}

/* Nested Dropdown CSS */
ul.dropdown-content {
    list-style: none;
    margin: 0;
}

ul.dropdown-content li {
    position: relative;
}

.dropdown-submenu-content {
    display: none;
    position: absolute;
    top: -0.5rem;
    left: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    min-width: 240px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 12px;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    transform: translateX(10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-submenu:hover .dropdown-submenu-content {
    display: block;
    transform: translateX(0);
    opacity: 1;
}

.dropdown-submenu-content li a {
    font-size: 0.95rem;
}

.subsub-menu-content {
    display: none;
    position: absolute;
    top: -0.5rem;
    left: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    min-width: 220px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.1);
    z-index: 1002;
    border-radius: 12px;
    list-style: none;
    padding: 0.5rem 0;
    transform: translateX(10px);
    opacity: 0;
}

.subsub-menu:hover .subsub-menu-content {
    display: block;
    transform: translateX(0);
    opacity: 1;
}


/* Tablet Responsiveness */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .container {
        padding: 1.5rem;
    }
    h1 {
        font-size: 2.8rem !important;
    }
    h1 span {
        font-size: 1.8rem !important;
    }
    .hero {
        padding: 3rem 1.5rem;
        min-height: 300px !important;
    }
    .home-logo {
        max-height: 120px !important;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 1rem;
    }
    .logo {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    .logo img {
        margin-right: 0 !important;
        margin-bottom: 10px;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }
    .hero {
        padding: 2rem 1rem;
        min-height: 250px !important;
    }
    h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    h1 span {
        font-size: 1.2rem !important;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    footer .container {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        text-align: center;
    }
    /* Adjust sequence collage on mobile */
    .hero > div[style*="display: flex"] {
        flex-direction: row;
    }
    .home-logo {
        max-height: 90px !important;
        max-width: 100%;
        height: auto;
    }
    p {
        font-size: 1rem !important;
    }
}
