/* Custom styles to override Tailwind defaults */

/* Import Noto Serif and Inter fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Base styles */
:root {
  --font-heading: 'Noto Serif', serif;
  --font-body: 'Inter', sans-serif;
  --color-heading: #333333;
  --default-bg-color: #f0eeea;
  --color-primary: #3a3a3a;
  --color-primary-darker: #161616;
}

/* Body styles */
.site-body {
  margin: 0;
  background-color: var(--default-bg-color);
}

/* Theme colors are handled via inline style using the data-theme-color attribute */

/* Apply Noto Serif font to all headings */
.font-serif {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

p {
  font-family: var(--font-body);
}


/* Add any additional custom styles below */ 

.text-orange-500 {
  color: #f97316;
}

ol.breadcrumb > li {
  display: inline;
  font-size: 12px;
}

ol.breadcrumb > li:not(.active) {
  text-decoration: underline;
}

ol.breadcrumb > li.separator {
  text-decoration: none;
}

/* Article grid styling */
.grid .overflow-hidden img {
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.grid a:hover img {
  transform: scale(1.05);
}

/* Article PARTIAL styling - improved for mobile */

.product {
  margin: 20px 0;
  background-image: linear-gradient(to right, #000 0, #000 25%, transparent 25%);
  background-repeat: repeat-x;
  background-size: 4px 1px;
  padding-top: 30px;
  display: block;
}

@media (max-width: 640px) {
  .product {
    margin: 20px 0;
    padding-top: 20px;
    width: 100%;
  }
}

.product h3 {
  margin-bottom: 20px;  
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
}

@media (max-width: 640px) {
  .product h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    text-align: center;
  }
}

/* Grid layout with improved spacing */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

    /* Modern card styling */
    .card {
      background-color: #fff;
      border-radius: 0.75rem;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
      transition: all 0.2s ease;
      height: 100%;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      position: relative;
  }

  .card:hover {
      transform: translateY(-4px);
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }

  .card-header {
      padding: 1.5rem;
      padding-bottom: 0.75rem;
  }

  .card-title {
      font-size: 1.25rem;
      font-weight: 700;
      line-height: 1.4;
  }

  .card-content {
      padding: 0 1.5rem;
      flex-grow: 1;
  }

  .card-footer {
      padding: 1.5rem;
      padding-top: 0.75rem;
      margin-top: auto;
  }

  /* Topic cards - earthy color palette */
  .topic-color-1 {
      background-color: #CCD5AE;
  }

  .topic-color-2 {
      background-color: #E9EDC9;
  }

  .topic-color-3 {
      background-color: #FEFAE0;
  }

  .topic-color-4 {
      background-color: #FAEDCD;
  }

  .topic-color-5 {
      background-color: #D4A373;
  }

  /* Topic heading style */
  .topic-heading {
      font-size: 1.25rem;
      font-weight: 700;
      margin: 2rem 0 1rem;
      border-bottom: 1px solid #eaeaea;
      padding-bottom: 0.5rem;
  }

  /* Article card specific styling */
  .article-card {
      background-color: white;
  }

  .article-image-container {
      overflow: hidden;
      height: 160px;
  }

  .article-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
  }

  .card:hover .article-image {
      transform: scale(1.05);
  }

  /* Category label styling */
  .category-label {
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      color: #666;
      margin-bottom: 0.5rem;
      display: block;
  }

  /* Utility classes */
  .clickable-card {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 10;
      cursor: pointer;
  }

/* Hero background styling */
.hero-background {
    background-image: url('/img/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.hero-background > * {
    position: relative;
    z-index: 2;
}

.text-muted-gold {
  color: #D4A373;
}

#lead-paragraph {
  font-weight: 700;
}

#end-paragraph {
    margin: 40px 0px;
    font-style: italic;
}

/* Contact Form Styles */
#form-status:not(.hidden) {
    display: block;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

#form-status.success {
    background-color: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

#form-status.error {
    background-color: #fee2e2;
    border-color: #ef4444;
    color: #b91c1c;
}

.cf-turnstile {
    margin: 10px 0;
}

.bg-primary {
    background-color: var(--color-primary);
}

.bg-primary-darker {
    background-color: var(--color-primary-darker);
}

.text-primary {
    color: var(--color-primary);
}

.focus\:ring-primary:focus {
    --tw-ring-color: var(--color-primary);
    --tw-ring-opacity: 0.5;
}

/* Button states */
button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Section list mobile styling */
.section-list {
    display: none;
}

@media (max-width: 1023px) {
    .section-list {
        display: block;
        margin-bottom: 2rem;
        padding: 1rem;
        background-color: white;
        border-radius: 0.5rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .section-list h3 {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.875rem;
        font-weight: 500;
        color: #6b7280;
        margin-bottom: 1rem;
    }

    .section-list nav {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .section-list a {
        color: #4b5563;
        font-size: 0.875rem;
        text-decoration: none;
        padding: 0.25rem 0;
    }

    .section-list a:hover {
        color: #111827;
    }
}


div.product > div {
  padding: 20px 10px;
  margin-bottom: 20px;
  background-color: #fff;
}

div.product img {
  margin: 0 auto;
  max-height: 250px;
  width: auto;
}

.product h5 {
  font-family: var(--font-body);
  font-weight: bold;
  font-size: 1.3rem;
  line-height: 22px;
  text-align: left;
}

@media (max-width: 640px) {
  .product h5 {
    font-size: 1.1rem;
    line-height: 1.3;
    text-align: left;
  }
}

.product .price {
  display: none;
}

.product .currency {
  font-size: 18px; 
  font-weight: bold; 
  margin-bottom: 15px;
  text-align: left;
}

.product p {
  line-height: 1.5;
  text-align: left;
  margin-top: 15px;
}

a.product-button {
  display: block; 
  width: 300px; 
  max-width: 100%;
  padding: 12px 0; 
  background: white; 
  color: black; 
  text-align: center; 
  font-weight: bold; 
  border: 2px solid black; 
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 13px;
  box-shadow: 3px 4px 0 0 rgba(0, 0, 0, 1);
  border: 1px solid #000;
  border-radius: 2px;
  text-decoration: none;
  transition: all .1s ease-in-out;
}

@media (max-width: 640px) {
  a.product-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 0;
    font-size: 14px;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

h2[id^="section"] {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 30px;
}

div.article-content > div {
  margin-top: 32px;
}