/* CSS Variables */
:root {
  --theme-primary: rgba(255, 255, 255, 255);
  --theme-secondary: #FFDEAD;
  --theme-secondary-dark: #000000;
  --theme-primary-dark: rgba(240, 240, 240, 255);
  --theme-light: rgba(255, 255, 255, 255);
  --theme-dark: rgba(64, 64, 64, 255);
  --navbar-thickness: 70px;
  --footer-thickness: 150px;
  --inset-thickness: 20%;
  
  /* Additional variables needed */
  --color-background: #ffffff;
  --vt-c-white: #ffffff;
  --vt-c-black: #181818;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  font-weight: normal;
}

html, body {
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  color: var(--theme-dark);
  background: var(--color-background);
  line-height: 1.6;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  font-size: 15px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: justify;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-thickness);
  background: var(--theme-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 20px;
}

.nav-brand {
  font-size: 24px;
  font-weight: 300;
  font-family: 'Times New Roman', Times, serif;
  color: var(--theme-dark);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-tabs {
  display: flex;
  gap: 0;
}

.nav-tab {
  text-decoration: none;
  color: var(--theme-dark);
  padding: 0 12px;
  height: var(--navbar-thickness);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
  background: transparent;
}

.nav-tab:hover {
  background: #F0F0F0;
  color: var(--theme-dark);
}

.nav-tab.active {
  background: transparent;
  color: var(--theme-dark);
  font-weight: normal;
}

.nav-tab.active:hover {
  background: #F0F0F0;
  color: var(--theme-dark);
}

.contact-btn {
  background: transparent;
  color: var(--theme-dark);
  padding: 10px 20px;
  border: 2px solid #000000;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-left: 8px;
  display: inline-block;
}

.contact-btn:hover {
  background: #F0F0F0;
  color: var(--theme-dark);
  border-color: #000000;
}

/* Main Content */
.content {
  margin-top: var(--navbar-thickness);
  width: 100%;
  background: var(--theme-primary-dark);
}

/* Banner */
.banner-main {
  background: var(--theme-primary);
  width: 100%;
  display: flex;
  flex-direction: column;
  color: var(--theme-dark);
  text-align: center;
}

.image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  background: var(--theme-dark);
  max-height: 300px;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-text-container {
  padding: 30px;
}

.banner-title {
  font-size: 40px;
  font-family: 'Times New Roman', Times, serif;
  font-weight: bold;
}

/* Cards Container */
.container {
  width: 100%;
  background: var(--theme-primary-dark);
  height: 100%;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 0 var(--inset-thickness);
}

/* Split Cards Layout */
.cards-row {
  display: flex;
  gap: 25px;
  margin: 25px 0;
}

.card-left {
  flex: 0.6;
  padding: 0 !important;
}

.card-right {
  flex: 1;
}

/* Special proportions for rows where key image needs more space */
.cards-row:nth-child(2) .card-right {
  flex: 0.75;
}

.cards-row:nth-child(2) .card-left {
  flex: 0.8;
}

.card-left .card-image {
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.card-left .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Special styling for key images that fill the entire card */
.key-image-container {
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  width: 100% !important;
}

.key-image-container img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 12px !important;
}

.card-right .card-text {
  font-size: 18px;
  line-height: 1.6;
}

/* Ensure consistent text sizing across all cards */
.card .card-text {
  font-size: 18px;
  line-height: 1.6;
}

/* Special styling for "For Young People" card */
.for-young-people {
  background: #FFDEAD !important;
}

.for-young-people .card-text h1 {
  color: var(--theme-secondary-dark);
  font-size: 32px;
  margin-bottom: 25px;
  font-family: 'Times New Roman', Times, serif;
  font-weight: bold;
}

.for-young-people .card-text p {
  color: var(--theme-secondary-dark);
  font-size: 20px;
  line-height: 1.5;
}

/* Special styling for "The Impact" card */
.the-impact {
background: #FFDEAD !important;
}

.the-impact .card-text h1 {
  color: var(--theme-secondary-dark);
  font-size: 32px;
  margin-bottom: 25px;
  font-family: 'Times New Roman', Times, serif;
  font-weight: bold;
}

.the-impact .card-text p {
  color: var(--theme-secondary-dark);
  font-size: 20px;
  line-height: 1.5;
}

@media (max-width: 1373px) {
  .container {
    padding: 0;
  }
}

/* Cards */
.card {
  background: var(--theme-primary);
  margin: 25px 0;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 30px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.card.image-left-text {
  flex-direction: row;
}

.card.image-right-text {
  flex-direction: row-reverse;
}

.card-image {
  flex-shrink: 0;
}

.card-image img {
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.card-text {
  flex: 1;
}

.card-text h1 {
  font-family: 'Times New Roman', Times, serif;
  font-weight: bold;
  margin-bottom: 18px;
  color: var(--theme-dark);
  font-size: 28px;
  line-height: 1.3;
}

.card-text h2 {
  font-family: 'Times New Roman', Times, serif;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--theme-dark);
  font-size: 24px;
  line-height: 1.3;
}

.card-text p {
  margin-bottom: 16px;
  line-height: 1.7;
  color: var(--theme-dark);
  font-size: 16px;
}

/* Sales Cards */
.sales-card {
  flex-direction: column;
  text-align: center;
  gap: 20px;
}

.sales-card .card-image {
  order: -1;
}

.sales-card .card-text {
  text-align: center;
}

.price {
  font-size: 24px;
  font-weight: bold;
  color: var(--theme-secondary-dark);
  margin: 15px 0;
}

/* Link Buttons */
.link-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--theme-primary);
  color: var(--theme-dark);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--theme-secondary);
}

.link-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: var(--theme-secondary);
  color: var(--theme-secondary-dark);
}

/* FAQ Image Cards - smaller images */
.faq-image-card {
  flex: 0.4 !important;
  padding: 0 !important;
}

.faq-image-card .card-image {
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.faq-image-card .card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 12px !important;
}

/* FAQ Text Cards - ensure proper padding */
.cards-row .card .card-text {
  padding: 30px !important;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--theme-dark);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--navbar-thickness);
  right: -100%;
  width: 100%;
  height: calc(100vh - var(--navbar-thickness));
  background: var(--theme-primary);
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  z-index: 1000;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu .nav-tab {
  width: 100%;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  text-align: center;
  font-size: 18px;
}

.mobile-menu .contact-btn {
  margin: 20px;
  text-align: center;
  display: block;
}

/* Mobile Responsiveness */
@media (max-width: 819px) {
  .nav-tabs {
    display: none;
  }
  
  .contact-btn {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-brand {
    font-size: 18px;
  }
  
  .banner-title {
    font-size: 32px;
  }
  
  .banner-text-container {
    padding: 20px;
  }
  
  .card {
    flex-direction: column !important;
    text-align: center;
    gap: 20px;
    margin: 15px 0;
    padding: 25px;
  }
  
  .card-text h1 {
    font-size: 24px;
  }
  
  .card-text h2 {
    font-size: 20px;
  }
  
  .card-text p {
    font-size: 15px;
  }
  
  .card-image img {
    max-width: 100%;
    height: auto;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .sales-card {
    flex-direction: column;
  }
  
  .social-links-container {
    flex-direction: column;
    gap: 10px;
  }
  
  .social-link {
    min-width: 100%;
    justify-content: center;
    padding: 15px 20px;
    font-size: 16px;
  }
  
  .social-link i {
    font-size: 20px;
  }
  
  .social-media {
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .social-icon {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
  
  .link-button {
    padding: 14px 24px;
    font-size: 16px;
  }
  
  .cards-row {
    flex-direction: column;
    gap: 15px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-copyright {
    max-width: 100%;
    text-align: center;
  }
  
  .social-media {
    justify-content: center;
  }
}

/* Social Links Container (for cards) */
.social-links-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--theme-primary);
  border: 2px solid var(--theme-secondary);
  border-radius: 8px;
  text-decoration: none;
  color: var(--theme-dark);
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 120px;
  justify-content: center;
}

.social-link:hover {
  background: var(--theme-secondary);
  color: var(--theme-secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-link i {
  font-size: 18px;
}

.social-link.facebook:hover {
  background: #1877f2;
  color: white;
  border-color: #1877f2;
}

.social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
  border-color: #e6683c;
}

.social-link.youtube:hover {
  background: #ff0000;
  color: white;
  border-color: #ff0000;
}

.social-link.tiktok:hover {
  background: #000000;
  color: white;
  border-color: #000000;
}

.social-link.substack:hover {
  background: #ff6719;
  color: white;
  border-color: #ff6719;
}

/* Footer */
.footer {
  background: var(--theme-primary);
  padding: 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-copyright {
  font-size: 12px;
  color: var(--theme-dark);
  line-height: 1.4;
  text-align: left;
  max-width: 60%;
}

.social-media {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.social-icon {
  font-size: 24px;
  text-decoration: none;
  transition: all 0.3s ease;
  color: var(--theme-dark);
  padding: 10px;
  border-radius: 50%;
  background: var(--theme-primary);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon:hover {
  transform: scale(1.1);
  background: var(--theme-secondary);
}

.social-icon.facebook:hover {
  background: #1877f2;
  color: white;
}

.social-icon.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}

.social-icon.youtube:hover {
  background: #ff0000;
  color: white;
}

.social-icon.tiktok:hover {
  background: #000000;
  color: white;
}

.social-icon.substack:hover {
  background: #ff6719;
  color: white;
}

/* Utility Classes */
.workbook-wrapper {
  white-space: nowrap;
  display: inline-block;
}

.workbook-icon {
  width: 1em;
  height: 1em;
  vertical-align: middle;
  margin: 0 0.3em 0 0.2em;
  display: inline-block;
}

.book-title {
  font-family: serif;
  font-weight: bold;
}

.website-links {
  text-align: center;
}

.website-link {
  color: rgb(100, 100, 200);
}

/* Links */
a {
  text-decoration: none;
  transition: 0.4s;
  padding: 3px;
}

a:hover {
  color: var(--theme-secondary);
}
