/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--color-scheme-1-text);
  background-color: var(--color-scheme-1-background);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Define Color Variables */
:root {
  --color-scheme-1-text: #333333;
  --color-scheme-1-background: #ffffff;
  --color-scheme-1-border: #e0e0e0;
  --color-neutral-darkest: #1a1a1a;
  --color-fuchsia-pink: #ff00ff;
  --color-white: #ffffff;
}

/* Navigation Bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4rem;
  height: 4rem;
  overflow: hidden;
}

.nav-left {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5rem;
}

.nav-menu {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--color-scheme-1-text);
  font-size: 16px;
  line-height: 24px;
}

.nav-link:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  cursor: pointer;
}

.btn-secondary {
  padding: 0.375rem 0.625rem;
  border-radius: 0.375rem;
  outline: 2px solid var(--color-neutral-darkest);
  background-color: transparent;
  color: var(--color-neutral-darkest);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border: none;
}

.btn-small {
  padding: 0.25rem 0.625rem;
}

.btn-primary {
  padding: 0.375rem 0.75rem;
  background-color: var(--color-fuchsia-pink);
  color: var(--color-white);
  border-radius: 0.375rem;
  outline: 1px solid var(--color-fuchsia-pink);
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
}

.btn:hover {
  opacity: 0.9;
}

/* Latest Posts Section */
.latest-posts {
  display: flex;
  padding: 1.5rem 4rem;
  border-bottom: 2px solid var(--color-scheme-1-border);
}

.sidebar {
  width: 200px;
  margin-right: 2rem;
}

.sidebar-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  margin-bottom: 1rem;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-link {
  font-size: 16px;
  line-height: 24px;
}

.content {
  flex: 1;
}

.post-card {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 0;
}

.post-image {
  width: 160px;
  height: 105px;
  object-fit: cover;
}

.post-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.post-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.post-description {
  font-size: 14px;
  line-height: 21px;
}

.stream-here {
  font-size: 14px;
  line-height: 21px;
  text-decoration: underline;
  color: var(--color-fuchsia-pink);
  cursor: pointer;
}

.stream-here:hover {
  opacity: 0.8;
}

/* Newsletter Section */
.newsletter {
  padding: 7rem 4rem;
  background-color: var(--color-scheme-1-background);
}

.newsletter-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 50%;
}

.newsletter-header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section-label {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.section-title-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-title {
  font-family: 'BioRhyme', serif;
  font-size: 48px;
  line-height: 57.6px;
  font-weight: 400;
}

.section-subtitle {
  font-size: 18px;
  line-height: 27px;
}

.newsletter-feature {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-title {
  font-family: 'BioRhyme', serif;
  font-size: 20px;
  line-height: 28px;
  font-weight: 400;
}

.feature-description {
  font-size: 16px;
  line-height: 24px;
}

/* Contact Form Section */
.contact {
  padding: 7rem 4rem;
  background-color: var(--color-scheme-1-background);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.contact-header {
  width: 768px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.contact-form {
  width: 768px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1.5rem;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-input {
  border: none;
  border-bottom: 2px solid var(--color-neutral-darkest);
  background-color: transparent;
  padding: 0.5rem 0;
  font-family: inherit;
  font-size: 16px;
}

.form-textarea {
  border: none;
  border-bottom: 2px solid var(--color-neutral-darkest);
  background-color: transparent;
  padding: 0.75rem 0;
  height: 180px;
  font-family: inherit;
  font-size: 16px;
  resize: none;
}

.form-section {
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.radio-row {
  display: flex;
  gap: 1.5rem;
}

.radio-option, .checkbox-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  cursor: pointer;
}

.radio-option input, .checkbox-option input {
  display: none;
}

.radio-custom {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--color-neutral-darkest);
  display: inline-block;
  position: relative;
}

.radio-option input:checked + .radio-custom::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-neutral-darkest);
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border-radius: 2px;
  border: 2px solid var(--color-neutral-darkest);
  display: inline-block;
  position: relative;
}

.checkbox-option input:checked + .checkbox-custom::after {
  content: "✓";
  position: absolute;
  top: -2px;
  left: 3px;
  font-size: 14px;
  color: var(--color-neutral-darkest);
}

.radio-label, .checkbox-label {
  font-size: 16px;
  line-height: 24px;
}

.checkbox-label {
  font-size: 14px;
  line-height: 21px;
}

/* Footer */
.footer {
  padding: 5rem 4rem;
  background-color: var(--color-scheme-1-background);
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
}

.footer-columns {
  display: flex;
  width: 100%;
  gap: 8rem;
}

.footer-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-heading {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  margin-bottom: 0.5rem;
}

/* Social icon styling */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  position: relative;
  z-index: 1;
}

.social-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  position: relative;
  z-index: 1;
}

.social-link {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 1;
  padding: 5px 0;
}

.social-link span {
  position: relative;
  z-index: 1;
}

.social-link:hover {
  color: var(--color-fuchsia-pink);
}

.social-link:hover svg {
  fill: var(--color-fuchsia-pink);
}

/* Remove the old YouTube icon styling */
.youtube-icon::before,
.instagram-icon::before {
  content: none !important;
}

/* Ensure social links are clickable */
.social-links {
  position: relative;
  z-index: 2;
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-link {
  padding: 0.5rem 0;
  font-size: 14px;
  line-height: 21px;
}

.footer-newsletter {
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-text {
  font-size: 16px;
  line-height: 24px;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
}

.newsletter-input {
  flex: 1;
  border: none;
  border-bottom: 2px solid var(--color-neutral-darkest);
  background-color: transparent;
  padding: 0.5rem 0;
  font-family: inherit;
  font-size: 16px;
}

.footer-disclaimer {
  font-size: 12px;
  line-height: 18px;
}

/* Footer bottom styling */
.footer-bottom {
  margin-top: 30px;
}

.divider {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.copyright-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.copyright {
  margin-bottom: 15px;
  font-size: 14px;
  color: #666;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 10px;
}

.footer-modal-link {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
  padding: 5px 10px;
  border-radius: 4px;
}

.footer-modal-link:hover {
  color: #000;
  text-decoration: underline;
  background-color: rgba(0, 0, 0, 0.05);
}

/* Modal styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  margin: auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.close-modal {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.close-modal:hover {
  color: #000;
}

.modal-footer {
  margin-top: 20px;
  text-align: right;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

/* For smaller screens */
@media (max-width: 768px) {
  .legal-links {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}

/* Policy tooltips for desktop - completely hidden by default */
.policy-tooltip {
  position: relative;
  display: inline-block;
}

.policy-tooltip .tooltip-content {
  /* Use !important to override any inline styles */
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute;
  bottom: 125%;
  left: 0;
  background-color: white;
  color: #333;
  text-align: left;
  border-radius: 8px;
  padding: 15px;
  width: 320px;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transition: none; /* Remove transition to prevent any animation on load */
  pointer-events: none;
}

/* Only show tooltip on hover with !important to ensure it overrides */
.policy-tooltip:hover .tooltip-content {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto;
  transition: opacity 0.3s, visibility 0.3s; /* Add transition back for hover effect */
}

/* Tooltip content styling */
.tooltip-content h3 {
  margin-top: 0;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.tooltip-content p {
  font-size: 14px;
  margin: 8px 0;
  line-height: 1.4;
}

.tooltip-content .view-full-policy {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
  display: block;
}

/* Make sure modals are hidden by default */
.modal {
  display: none !important; /* Use !important to override any inline styles */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
  align-items: center;
  justify-content: center;
}

/* Hide tooltips by default */
.policy-tooltip .tooltip-content {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Hide cookie banner by default if user hasn't made a choice yet */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  padding: 15px;
}

/* Add more spacing between policy links */
.policy-link {
  margin-right: 20px; /* Space between links */
  display: inline-block; /* Ensures margin works properly */
}

/* Last policy link doesn't need right margin */
.policy-link:last-child {
  margin-right: 0;
}

/* If your links are in a footer container, you might want to add this */
.footer-policies {
  display: flex;
  justify-content: center; /* or flex-start if left-aligned */
  gap: 30px; /* Modern way to add space between flex items */
  margin: 20px 0;
}

/* If you're using spans with separators between links */
.policy-separator {
  margin: 0 15px; /* Increase the space around separators */
}
