/* RESET & GLOBAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Playfair Display', serif;
  background-color: #ffffff;
  color: #333;
  overflow: hidden;
}

/* NAVIGATION BAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
}

.branding {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo {
  width: 25px;
  height: auto;
}

.branding-text {
  font-size: 1rem;
  color: #000;
  margin-left: 0.5rem;
  font-family: 'Playfair Display', serif;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-menu a {
  color: #000;
  text-decoration: none;
  font-family: 'Playfair Display', serif;
}

.nav-menu a:hover {
  text-decoration: underline;
}

/* MAIN LAYOUT */
.main-container {
  display: flex;
  flex-direction: row;
  height: calc(100vh - 80px);
  overflow: hidden;
}

/* CTA SECTION */
.cta {
  width: 50vw;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cta .logo {
  width: 80px;
  margin-bottom: 1rem;
}

.cta h1 {
  font-size: 2rem;
  margin: 0.5rem 0;
}

.tagline {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-size: 1.1rem;
  margin: 10px 0 20px;
  line-height: 1.4;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.waitlist-form input {
  padding: 0.5rem;
  width: 100%;
  max-width: 441px;
  border: 1px solid #ccc;
}

.waitlist-form button {
  padding: 0.5rem 1rem;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  max-width: 441px;
}

.disclaimer {
  font-size: 0.8rem;
  color: #666;
  margin-top: 4px;
}

/* NEWS SECTION */
.news-scroll-container {
  width: 50vw;
  max-width: 50vw;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  border-left: 1px solid #eee;
  padding: 1rem;
}

.news-scroll-container::-webkit-scrollbar {
  width: 8px;
}
.news-scroll-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
.news-scroll-container::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* NEWS CARD */
.news-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #ddd;
  scroll-snap-align: start;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}

.news-img {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 260px;
  position: relative;
}

.news-img img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.news-img img.dimmed {
  filter: brightness(40%);
}

.fallback-img {
  width: 240px;
  height: 240px;
  background-color: #ccc;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-family: sans-serif;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.news-meta {
  font-size: 0.85rem;
  color: #777;
  margin-top: 0.25rem;
}

.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.news-summary-block .summary-text {
  font-size: 1rem;
  line-height: 1.4;
}

.read-more-btn {
  color: #007bff;
  cursor: pointer;
  font-weight: bold;
  margin-top: 5px;
  border: none;
  background: none;
  font-size: 0.95rem;
}

.share-wrapper {
  display: block;
  margin-top: 8px;
}

.whatsapp-share-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: #25D366;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
}

.whatsapp-share-btn img {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}

.whatsapp-share-btn:hover {
  opacity: 0.9;
}

/* MODAL */
.news-modal {
  display: none;
  position: absolute;
  z-index: 10;
  top: 0;
  left: 260px;
  width: calc(100% - 260px);
  background-color: rgba(255, 255, 255, 0.98);
}

.modal-content {
  background: #fff;
  margin: 1rem;
  padding: 1.5rem;
  border-radius: 6px;
  max-height: 80vh;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.modal-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.modal-content .modal-body {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  white-space: pre-wrap;
}

.modal-content .modal-source {
  font-size: 0.9rem;
  color: #777;
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  background: #fff;
  padding: 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 5;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
    height: 100vh;
  }

  .cta {
    width: 100%;
  }

  .cta .logo,
  .cta h1 {
    display: none;
  }

  .tagline {
    max-width: 90%;
    text-align: center;
    word-break: break-word;
  }

  .news-scroll-container {
    width: 100% !important;
    max-width: 100% !important;
    height: calc(100vh - 250px);
    border-left: none;
    overflow-y: scroll;
    scroll-snap-type: none;
    scroll-behavior: smooth;
  }

  .news-card {
    flex-direction: column;
  }

  .news-img,
  .news-content {
    width: 100%;
  }
}
