:root {
  /* Palette */
  --color-cream-bg: #f9f8f4;
  --color-white-bg: #ffffff;
  --color-card-bg: #fdfdfc;
  --color-red-btn: #8b1828;
  --color-burgundy-dark: #541b1b;
  --color-gold-btn: #e2be4b;
  --color-gold-border: #cbb26a;
  --color-gold-icon: #dcb045;
  --color-purple-box: rgba(125, 100, 115, 0.85);
  --color-text-main: #333333;
  --color-text-light: #555555;
  --color-nav-text: #666666;
  --color-check-green: #7ca878;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  background-color: var(--color-cream-bg);
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin: 0;
}

a { text-decoration: none; color: inherit; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* --- HEADER --- */
header {
  background-color: var(--color-cream-bg);
  padding: 1rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-left { display: flex; align-items: center; gap: 3rem; }

.brand-logo {
  height: 45px; 
  width: auto;
  display: block;
}

.nav-links { display: none; }
.nav-links a { font-size: 0.95rem; color: var(--color-nav-text); margin-right: 2rem; font-weight: 500; }
.nav-links a.active { color: var(--color-burgundy-dark); font-weight: 700; }

.header-right { display: flex; align-items: center; gap: 1.5rem; }
.lang-btn { cursor: pointer; display: flex; align-items: center; color: var(--color-nav-text); background: none; border: none; padding: 0; }
.login-link { font-weight: 700; color: #333; font-size: 0.95rem; }
.register-btn { background-color: var(--color-red-btn); color: white; padding: 0.6rem 1.5rem; border-radius: 4px; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.5px; }

/* --- FOOTER --- */
footer {
  background-color: var(--color-cream-bg);
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-light);
  border-top: 1px solid #eee;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  width: 100%;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden; 
  background-color: #000;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background-image: url('assets/hero-bg.jpg'); 
  background-size: cover;
  background-position: center;
  opacity: 0.5; 
  z-index: 1;
}

.hero-content { 
  position: relative; 
  z-index: 2; 
  max-width: 900px; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
}

.hero-title { font-size: clamp(3rem, 5vw, 5rem); color: white; margin-bottom: 2rem; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero-box { background-color: var(--color-purple-box); padding: 1.5rem 2.5rem; border-radius: 2px; color: white; font-size: 1.1rem; line-height: 1.6; max-width: 700px; margin-bottom: 2.5rem; backdrop-filter: blur(2px); }
.hero-cta { background-color: var(--color-gold-btn); color: #333; padding: 1rem 2.5rem; font-size: 1rem; font-weight: 700; border-radius: 4px; display: inline-flex; align-items: center; gap: 0.5rem; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: transform 0.2s; }
.hero-cta:hover { transform: translateY(-2px); }

/* --- COMMON SECTIONS --- */
.section-container { max-width: 1100px; margin: 0 auto; text-align: center; }
.section-title { font-size: 2.5rem; color: #333; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.05rem; color: var(--color-text-light); max-width: 700px; margin: 0 auto 3rem; line-height: 1.6; }

/* --- INFO CARD SECTION --- */
.info-section { background-color: var(--color-white-bg); padding: 6rem 1.5rem; display: flex; justify-content: center; }
.info-card { background-color: var(--color-cream-bg); padding: 4rem 3rem; max-width: 900px; width: 100%; text-align: center; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid #efeede; }
.info-title { color: var(--color-gold-icon); font-size: 2.5rem; margin-bottom: 1rem; }
.info-subtitle-italic { color: var(--color-text-light); font-size: 1.1rem; margin-bottom: 2rem; font-style: italic; font-family: 'Playfair Display', serif; }
.info-text { color: var(--color-text-light); font-size: 1.05rem; line-height: 1.8; max-width: 75ch; margin: 0 auto; }

/* --- WHY CHOOSE SECTION --- */
.why-choose-section { background-color: var(--color-cream-bg); padding: 6rem 1.5rem; }
.features-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-top: 2rem; }
@media (min-width: 900px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.icon-circle { width: 70px; height: 70px; border-radius: 50%; background-color: rgba(220, 176, 69, 0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; color: var(--color-gold-icon); }
.icon-circle svg { width: 32px; height: 32px; stroke-width: 1.5px; }
.feature-title { font-size: 1.25rem; margin-bottom: 1rem; color: #222; }
.feature-text { font-size: 0.95rem; line-height: 1.6; color: var(--color-text-light); }

/* --- VIDEO SECTION --- */
.video-section { background-color: var(--color-white-bg); padding: 6rem 1.5rem; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 900px; margin: 0 auto; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.15); }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* --- CTA SECTION --- */
.cta-section {
  background-color: var(--color-burgundy-dark);
  padding: 7rem 1.5rem;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cta-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; color: white; }
.cta-subtitle { font-size: 1.1rem; line-height: 1.6; max-width: 700px; margin-bottom: 2.5rem; color: rgba(255,255,255,0.9); }
.cta-btn {
  background-color: var(--color-cream-bg); color: #333; padding: 0.9rem 2rem; font-size: 0.95rem; font-weight: 700; border-radius: 4px; display: inline-flex; align-items: center; gap: 0.5rem; transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); background-color: #fff; }

/* --- PRICING PAGE STYLES --- */
.pricing-header { text-align: center; padding: 4rem 1.5rem 2rem; max-width: 900px; margin: 0 auto; }
.pricing-title { font-size: 3rem; margin-bottom: 1rem; color: #000; }
.pricing-subtitle { font-size: 1.1rem; color: var(--color-text-light); font-family: 'Lato', sans-serif; font-weight: 300; }

.pricing-container {
  max-width: 1400px; margin: 0 auto; padding: 2rem 1.5rem 6rem; display: grid; grid-template-columns: repeat(1, 1fr); gap: 1.5rem; align-items: stretch;
}
@media (min-width: 600px) { .pricing-container { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .pricing-container { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .pricing-container { grid-template-columns: repeat(5, 1fr); } }

.price-card {
  background-color: var(--color-card-bg); border: 1px solid #e0e0e0; border-radius: 6px; padding: 2rem 1.5rem; display: flex; flex-direction: column; text-align: center; position: relative; box-shadow: 0 4px 15px rgba(0,0,0,0.03); transition: transform 0.2s;
}
.price-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.06); }
.price-card.popular { border: 2px solid var(--color-gold-border); background-color: #fffdf5; }

.badge-popular {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background-color: var(--color-gold-btn); color: #333; font-size: 0.75rem; font-weight: 700; padding: 0.3rem 1rem; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card-title { font-size: 1.5rem; margin-bottom: 0.5rem; color: #000; }
.card-desc { font-size: 0.9rem; color: var(--color-text-light); line-height: 1.4; margin-bottom: 2rem; min-height: 2.5em; }
.card-price { font-size: 3rem; font-weight: 700; font-family: 'Playfair Display', serif; color: #000; margin-bottom: 0.25rem; }
.card-pages { font-size: 1rem; color: var(--color-text-light); margin-bottom: 2rem; font-weight: 400; }

.card-features { list-style: none; padding: 0; margin: 0 0 auto 0; text-align: left; font-size: 0.9rem; color: var(--color-text-light); }
.card-features li { margin-bottom: 0.75rem; display: flex; align-items: flex-start; gap: 0.5rem; }
.check-icon { color: var(--color-check-green); flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; }

.card-btn { display: block; width: 100%; padding: 0.8rem 0; margin-top: 2rem; border-radius: 4px; font-weight: 700; font-size: 0.9rem; text-align: center; transition: opacity 0.2s; }
.card-btn:hover { opacity: 0.9; }

.btn-gold { background-color: var(--color-gold-btn); color: #333; }
.btn-dark { background-color: var(--color-burgundy-dark); color: white; }

/* --- BLOG STYLES --- */
.blog-header { text-align: center; padding: 4rem 1.5rem 1rem; max-width: 900px; margin: 0 auto; }

.blog-filter-nav {
  display: inline-flex; justify-content: center; gap: 0.3rem; margin-top: 2rem; margin-bottom: 1rem; background-color: #e3e3dc; padding: 0.3rem; border-radius: 8px;
}
.filter-btn {
  background: none; border: none; padding: 0.5rem 1.2rem; border-radius: 6px; cursor: pointer; font-family: 'Lato', sans-serif; font-size: 0.9rem; font-weight: 700; color: #666; transition: all 0.2s;
}
.filter-btn:hover { color: #333; }
.filter-btn.active { background-color: white; color: #333; box-shadow: 0 2px 4px rgba(0,0,0,0.08); }

.blog-container {
  max-width: 1400px; margin: 0 auto; padding: 2rem 1.5rem 6rem; display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 700px) { .blog-container { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .blog-container { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  background-color: transparent; border: 1px solid #dcdcdc; border-radius: 8px; padding: 2rem; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; min-height: 350px; text-align: left;
}
.blog-card:hover { transform: translateY(-3px); background-color: #ffffff; box-shadow: 0 10px 25px rgba(0,0,0,0.05); }

.blog-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; width: 100%; }
.blog-date { font-size: 0.8rem; color: #777; margin-top: 4px; }
.blog-badge { background-color: #ffffff; padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.75rem; font-weight: 800; color: #222; border: 1px solid #eee; box-shadow: 0 1px 3px rgba(0,0,0,0.05); text-transform: capitalize; }
.blog-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; line-height: 1.3; margin-bottom: 1rem; color: #111; font-weight: 700; }
.blog-excerpt { font-family: 'Lato', sans-serif; font-size: 0.95rem; color: #555; line-height: 1.6; margin-bottom: 2rem; flex-grow: 1; }
.blog-author { font-size: 0.85rem; color: #888; margin-top: auto; }

/* --- ADMIN & CRUD STYLES --- */
.login-wrap {
  display: flex; justify-content: center; align-items: center; min-height: 60vh;
}
.login-card {
  background-color: white; padding: 3rem; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); border: 1px solid #e0e0e0; text-align: center; max-width: 400px; width: 100%;
}

.admin-header-actions {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem;
}
.btn-logout { font-size: 0.9rem; color: var(--color-red-btn); font-weight: 700; }

/* Admin Post List */
.admin-post-list {
  width: 100%; border-collapse: collapse; margin-top: 2rem; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.admin-post-list th, .admin-post-list td {
  padding: 1rem 1.5rem; text-align: left; border-bottom: 1px solid #eee;
}
.admin-post-list th {
  background-color: #f7f7f7; font-weight: 700; color: #333; font-size: 0.9rem;
}
.admin-post-list tr:last-child td { border-bottom: none; }
.admin-post-list tr:hover { background-color: #fafafa; }

/* Action Buttons */
.action-btn {
  display: inline-block; padding: 0.4rem 0.8rem; font-size: 0.8rem; font-weight: 700; border-radius: 4px; margin-right: 0.5rem; color: white;
}
.btn-edit { background-color: var(--color-gold-btn); color: #333; }
.btn-delete { background-color: #d9534f; }
.btn-delete:hover { background-color: #c9302c; }

.admin-form { display: flex; flex-direction: column; gap: 1.5rem; text-align: left; margin-top: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-weight: 700; color: #333; font-size: 0.95rem; }
.form-control { padding: 0.8rem; border: 1px solid #ccc; border-radius: 4px; font-family: 'Lato', sans-serif; font-size: 1rem; background-color: #fafafa; }
textarea.form-control { min-height: 200px; resize: vertical; }
.btn-submit { background-color: var(--color-burgundy-dark); color: white; padding: 1rem; font-weight: 700; border: none; border-radius: 4px; cursor: pointer; font-size: 1rem; transition: background 0.2s; }
.btn-submit:hover { background-color: var(--color-red-btn); }
.alert { padding: 1rem; margin-bottom: 2rem; border-radius: 4px; text-align: center; }
.alert-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Responsive adjustments */
@media (min-width: 900px) { .nav-links { display: flex; } }
@media (max-width: 600px) {
  header { padding: 1rem; }
  .brand-logo { height: 40px; }
  .hero-title, .pricing-title { font-size: 2.2rem; }
  .header-right { gap: 0.8rem; }
  .blog-filter-nav { flex-wrap: wrap; }
  .admin-post-list { display: block; overflow-x: auto; }
}