/* Custom UI for 1:1 Envato Recreation */

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 100px;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg-light);
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--color-primary);
  font-weight: 700;
  text-wrap: balance;
}

p, li {
  text-wrap: pretty;
}

.text-gold {
  color: var(--color-secondary);
}

.bg-dark-section {
  background-color: #111111;
  color: #ffffff;
}
.bg-dark-section h2, .bg-dark-section h3 {
  color: #ffffff;
}

/* Offset Block Image Style */
.offset-image-container {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.offset-image-container::before {
  content: '';
  position: absolute;
  top: 30px;
  left: -30px;
  width: 100%;
  height: 100%;
  background-color: var(--color-secondary);
  z-index: -1;
  border-radius: 4px;
}

.offset-image-container.right-offset::before {
  left: 30px;
  top: 30px;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 4px;
  font-family: 'Roboto', sans-serif;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: #000000;
  border: 2px solid var(--color-secondary);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-secondary);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}

.btn-outline:hover {
  background-color: var(--color-secondary);
  color: #000000;
}

/* Navbar */
.nav-link {
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: var(--color-secondary);
}

/* Event Card (Product Card analog) */
.event-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.bg-dark-section .event-card {
  background: #1a1a1a;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.event-card:hover {
  transform: translateY(-5px);
}
.event-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.event-card-content {
  padding: 1.5rem;
}

/* Special Decorative offset behind specific cards */
.card-offset-wrapper {
  position: relative;
  z-index: 1;
}
.card-offset-wrapper::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80%;
  height: 80%;
  background-color: var(--color-secondary);
  z-index: -1;
  border-radius: 8px;
}

/* Leaf / Decorative graphics */
.decorative-leaf {
  position: absolute;
  opacity: 0.1;
  pointer-events: none;
}

/* ====================================================
   Document / Page Content Styling (.document-content)
   ==================================================== */
.document-content {
  font-family: 'Roboto', sans-serif;
  color: #374151;
  font-size: 1.0625rem;
  line-height: 1.85;
  word-break: break-word;
}

/* Headings */
.document-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

.document-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 2.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--color-secondary);
  line-height: 1.3;
}

.document-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 2.25rem;
  margin-bottom: 0.875rem;
  line-height: 1.35;
}

.document-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #222222;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.document-content h5,
.document-content h6 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #333333;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Paragraphs */
.document-content p {
  margin-bottom: 1.5rem;
  color: #374151;
  line-height: 1.85;
}

.document-content p:last-child {
  margin-bottom: 0;
}

/* Bold / Strong */
.document-content strong,
.document-content b {
  font-weight: 700;
  color: #111827;
}

.document-content em,
.document-content i {
  font-style: italic;
}

/* Links */
.document-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.document-content a:hover {
  color: var(--color-primary);
}

/* Lists */
.document-content ul {
  list-style-type: disc;
  margin-left: 1.75rem;
  margin-bottom: 1.75rem;
  color: #374151;
  line-height: 1.8;
}

.document-content ol {
  list-style-type: decimal;
  margin-left: 1.75rem;
  margin-bottom: 1.75rem;
  color: #374151;
  line-height: 1.8;
}

.document-content li {
  margin-bottom: 0.6rem;
  padding-left: 0.35rem;
}

.document-content ul li::marker {
  color: var(--color-secondary);
}

.document-content ol li::marker {
  color: var(--color-secondary);
  font-weight: 700;
}

.document-content ul ul,
.document-content ol ol,
.document-content ul ol,
.document-content ol ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Blockquotes */
.document-content blockquote {
  border-left: 4px solid var(--color-secondary);
  background: #FAF7F0;
  padding: 1.25rem 1.75rem;
  margin: 2rem 0;
  font-style: italic;
  color: #1F2937;
  border-radius: 0 0.75rem 0.75rem 0;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.document-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Tables */
.document-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.25rem 0;
  font-size: 0.95rem;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
}

.document-content th {
  background-color: #F9FAFB;
  font-weight: 700;
  color: var(--color-primary);
  padding: 0.85rem 1rem;
  border: 1px solid #E5E7EB;
  text-align: left;
}

.document-content td {
  padding: 0.85rem 1rem;
  border: 1px solid #E5E7EB;
  color: #4B5563;
}

.document-content tr:nth-child(even) {
  background-color: #FCFDFE;
}

/* Code & Pre */
.document-content code {
  background: #F3F4F6;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-size: 0.875em;
  color: #9D174D;
  font-family: monospace;
}

.document-content pre {
  background: #111827;
  color: #F9FAFB;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.75rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.document-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* Images & Figures */
.document-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.75rem auto;
  display: block;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07);
}

.document-content figure {
  margin: 2rem 0;
  text-align: center;
}

.document-content figcaption {
  font-size: 0.85rem;
  color: #6B7280;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Separator HR */
.document-content hr {
  border: 0;
  height: 1px;
  background: #E5E7EB;
  margin: 2.75rem 0;
}
