/* ============================================
   Jasmine's Website - Clean & Minimal Theme
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #2c3e50;
  --accent: #5a8f7b;
  --accent-light: #7ab89e;
  --text: #333;
  --text-light: #666;
  --bg: #fff;
  --bg-light: #f8f9fa;
  --bg-alt: #f0f2f5;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
  --radius: 8px;
  --max-width: 1200px;
  --nav-height: 64px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--primary);
  line-height: 1.3;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-brand:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--bg-light);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s;
}

/* --- Hero / Carousel Section --- */
.hero {
  margin-top: var(--nav-height);
  position: relative;
  background: var(--bg-light);
  overflow: hidden;
}

.hero-carousel {
  width: 100%;
  height: 480px;
}

.hero-carousel .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-carousel .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-carousel .swiper-slide .slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
}

.hero-carousel .swiper-slide .slide-overlay h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 8px;
}

.hero-carousel .swiper-slide .slide-overlay p {
  font-size: 1rem;
  opacity: 0.9;
}

.hero-carousel .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.5;
}

.hero-carousel .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--accent-light);
}

.hero-carousel .swiper-button-next,
.hero-carousel .swiper-button-prev {
  color: #fff;
}

.hero-carousel .swiper-button-next::after,
.hero-carousel .swiper-button-prev::after {
  font-size: 20px;
}

/* --- About Section --- */
.about-section {
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.about-photo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-alt);
  box-shadow: var(--shadow);
}

.about-content h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.about-tagline {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 20px;
  font-style: italic;
}

.about-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.about-text p + p {
  margin-top: 12px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.about-tags .tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-alt);
  color: var(--text-light);
  font-size: 0.85rem;
  border-radius: 20px;
}

/* --- Section Headers --- */
.section {
  padding: 60px 0;
}

.section-alt {
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1rem;
}

.section-header .divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

.card-body .card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.card-body .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.card-body .card-tags .tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  background: var(--bg-alt);
  border-radius: 12px;
  color: var(--text-light);
}

/* --- Explore More Grid (lisapan.com style) --- */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.explore-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.explore-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.explore-card:hover img {
  transform: scale(1.05);
}

.explore-card .explore-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
}

/* --- Page Content --- */
.page-hero {
  margin-top: var(--nav-height);
  padding: 60px 0 40px;
  background: var(--bg-light);
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.page-content {
  padding: 48px 0 80px;
}

.page-content .content-block {
  margin-bottom: 48px;
}

.page-content .content-block h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg-alt);
}

.page-content .content-block p {
  line-height: 1.8;
}

/* --- Video Grid --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg);
}

.video-card .video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-card .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-card .video-info {
  padding: 12px 16px;
}

.video-card .video-info h4 {
  font-size: 0.95rem;
  font-family: var(--font-sans);
}

/* --- Blog List --- */
.blog-list {
  max-width: 800px;
  margin: 0 auto;
}

.blog-entry {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.blog-entry:last-child {
  border-bottom: none;
}

.blog-date {
  flex-shrink: 0;
  width: 100px;
  font-size: 0.85rem;
  color: var(--text-light);
  padding-top: 4px;
}

.blog-info h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.blog-info h3 a {
  color: var(--primary);
}

.blog-info h3 a:hover {
  color: var(--accent);
}

.blog-info .blog-excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

.blog-info .blog-tags {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

/* --- Button --- */
.btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-light);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* --- Footer --- */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 40px 0;
  text-align: center;
}

.footer a {
  color: rgba(255,255,255,0.9);
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  list-style: none;
}

.footer-links a {
  font-size: 0.9rem;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* --- Photo Gallery --- */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.photo-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.photo-gallery img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-carousel {
    height: 300px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-photo {
    margin: 0 auto;
    width: 200px;
    height: 200px;
  }

  .about-tags {
    justify-content: center;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .blog-entry {
    flex-direction: column;
    gap: 8px;
  }

  .blog-date {
    width: auto;
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }
}

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

  .hero-carousel {
    height: 220px;
  }
}
