html, body {
    margin: 0;
    padding: 0;
    width: 100%;                  /* instead of 100vw */
    height: 100%;/* safety net: never allow horizontal scroll */
    box-sizing: border-box;
    overflow-x: hidden; /* 🔥 CRITICAL FIX */
}

*, *::before, *::after {
    box-sizing: border-box;
}

.after-caousel{
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
}

.welcome-section {
    padding: 80px 5% 60px;                /* generous vertical spacing */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f1fb 100%);
    color: #333;
}

.welcome-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: stretch; /* IMPORTANT */
}
.welcome-container {
    grid-template-columns: 1.8fr minmax(420px, 1.2fr);
}
.welcome-message,
.welcome-calendar {
    height: 630px;
    display: flex;
    flex-direction: column;
}

/* Welcome Message Styles */
.welcome-message {
    text-align: justify;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.8;
    padding: 25px;

    background: linear-gradient(145deg, #ffffff, #f8f5ef);
    border-radius: 18px;

    /* subtle gold border */
    border: 1px solid rgba(201, 166, 70, 0.25);

    /* etched + gold glow */
    box-shadow:
        inset 2px 2px 6px rgba(0,0,0,0.05),
        inset -2px -2px 6px rgba(255,255,255,0.8),
        0 10px 25px rgba(0,0,0,0.08),
        0 0 0 1px var(--gold-glow);
}
.welcome-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 3.8rem);
    color: var(--primary, #0066cc);
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.welcome-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, var(--gold-primary), transparent);
    border-radius: 2px;
}

.welcome-message h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 3.8rem);
    color: var(--primary, #0066cc);       /* matches your navbar primary */
    margin: 0 0 1.5rem;
    font-weight: 700;
}

.welcome-message p {
    font-size: 1.15rem;
    color: #444;
}

.welcome-message .signature {
    font-style: italic;
    margin: 2rem 0 1rem;
    color: #555;
    font-size: 1.1rem;
    font-style: italic;
    margin: 2rem 0 1rem;
    color: #555;
    font-size: 1.1rem;

    border-left: 3px solid var(--gold-primary);
    padding-left: 12px;
}

.welcome-message .author {
    font-weight: 600;
    color: #222;
    font-size: 1.1rem;

    margin-top: 10px;
    padding-top: 10px;

    border-top: 1px dashed rgba(201, 166, 70, 0.4);
}

.scroll-box {
    position: relative;
    height: 300px; /* adjust depending on your layout */
    overflow: hidden;
    border-radius: 12px;

    /* soft gold inner glow */
    box-shadow: inset 0 0 15px var(--gold-glow);
}

.scroll-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    animation: scrollUp 25s linear infinite;
}

/* Calendar Wrapper – slightly smaller feel */
.welcome-calendar {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    overflow: hidden;                     /* clean edges */
    padding: 0;                        /* subtle inner spacing */
}

/* Make your existing calendar look better in this context */
.entire-calendar {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: transparent;
    margin: 0;
    padding: 0;
    display: block;
    justify-content: center;
}

.calendar-container {
    max-width: 100%;
    width: 100%;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap; /* allows stacking */
}

.calendar-header h2 {
    font-size: 1.4rem;
    color: var(--primary, #0066cc);
}

.calendar-header select {
    width: auto;
    min-width: 140px;
    background: #f0f4f8;
    border: 1px solid #d0d8e0;
}

select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    cursor: pointer;
}

.month {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}
.month.active {
    display: block;
}

table {
    width: 100%;
    height: 100%;
    border-collapse: collapse;
    margin-top: 0;
    table-layout: fixed; /* ensures equal column width */
}

th, td {
    text-align: center;
    padding: 10px;
    border: 1px solid #eee;
    font-size: 0.95rem;   /* slightly bigger */
    white-space: nowrap;  /* prevents WEDS from breaking */
}

th {
    background: #C00000;
    color: #fff;
}
.market-days{
    color: #C00000;
}

td {
    background: #fafafa;      
    font-weight: 500;
    transition: background 0.3s;
}

td:hover {
    background: #e6f0ff;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollUp {
    0% {
        transform: translateY(0%);
    }
    100% {
        transform: translateY(-100%);
    }
}
.scroll-box:hover .scroll-content {
    animation-play-state: paused;
}
.scroll-box::before,
.scroll-box::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 40px;
    z-index: 2;
}

.scroll-box::before {
    top: 0;
    background: linear-gradient(to bottom, #ffffff, transparent);
}

.scroll-box::after {
    bottom: 0;
    background: linear-gradient(to top, #ffffff, transparent);
}

@media (max-width: 600px) {
    th, td {
        padding: 6px;
        font-size: 0.8rem;
    }
    .welcome-section {
        padding: 50px 5% 30px;
    }

    .welcome-message p {
        font-size: 1.05rem;
    }

    .calendar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .welcome-container {
        grid-template-columns: 1fr;
    }

    .welcome-message,
    .welcome-calendar {
        min-height: auto; /* prevent awkward tall blocks */
    }
    .welcome-message h2 {
    font-size: clamp(2.2rem, 7vw, 3rem);
    }

    .welcome-section {
    padding: 60px 4% 40px;
    }
}

.video-msg-section {
    padding: 10px 5%;
    background: linear-gradient(135deg, #f9f9f9, #eef3f8);
}

.video-msg-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* video slightly bigger */
    gap: 50px;
    align-items: center;
}
.video-youtube {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;

  border-radius: 18px;
  overflow: hidden;

  background: #000;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.15),
    0 0 0 1px rgba(201,166,70,0.2); /* subtle gold accent */

  transform: translateY(20px);
  opacity: 0;
  animation: fadeUp 1s ease forwards;
}

.video-youtube iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.msg-calendar {
  padding: 20px;
  border-radius: 18px;

  background: linear-gradient(145deg, #ffffff, #f8f5ef);

  border: 1px solid rgba(201,166,70,0.2);

  box-shadow:
    0 8px 25px rgba(0,0,0,0.08),
    inset 0 0 10px rgba(201,166,70,0.05);

  transform: translateY(20px);
  opacity: 0;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.3s;
}
.msg-calendar h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: #1a1a1a;
  margin-bottom: 15px;
  position: relative;
}

/* gold underline accent */
.msg-calendar h1::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  margin-top: 8px;
  background: linear-gradient(to right, #C9A646, transparent);
}
.msg-calendar p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
}

.msg-calendar span {
  display: block;
  margin-bottom: 12px;
}

.opacity-8 {
  opacity: 0.85;
  font-style: italic;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.video-youtube:hover {
  transform: translateY(-5px) scale(1.01);
  transition: all 0.4s ease;
}

.msg-calendar:hover {
  transform: translateY(-5px);
  transition: all 0.4s ease;
}
@media (max-width: 992px) {
  .video-msg-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .msg-calendar {
    text-align: left;
  }
}


.ukelle-clans-villages-section {
  padding: 0 5%;
  background: linear-gradient(135deg, #f8f9fa, #eef3f8);
}

.ukelle-clans-villages-section h1 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0;
  position: relative;
}

.ukelle-clans-villages-section h1::after {
  content: "";
  width: 90px;
  height: 3px;
  display: block;
  margin: 10px auto 0;
  background: linear-gradient(to right, #C9A646, transparent);
}

.ukelle-container {
  background: linear-gradient(
    to bottom right,
    rgba(243, 244, 246, 0.6),
    rgba(229, 231, 235, 0.6)
  );
  color: #1f2937;
  font-family: sans-serif;
  padding: 0.2rem;
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
  animation: fadeUp 0.9s ease;
}
.ukelle-clan {
  background: white;
  border: 1px solid rgba(201,166,70,0.25);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;

  box-shadow:
    0 6px 20px rgba(0,0,0,0.05),
    0 0 0 1px rgba(201,166,70,0.08);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ukelle-clan:hover {
  transform: translateY(-4px);
  box-shadow:
    0 14px 35px rgba(0,0,0,0.1);
}
.ukelle-btn {
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 100%;
  padding: 1.2rem 1.5rem;

  background: linear-gradient(135deg, #440E03, #701705);
  color: white;

  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 600;
  border: none;
  cursor: pointer;

  transition: all 0.3s ease;
}

.ukelle-btn:hover {
  background: linear-gradient(135deg, #701705, #8b1c07);
}

.ukelle-village {
  background: #ffffff;
  padding: 1.2rem;
  border-radius: 14px;

  border: 1px solid rgba(0,0,0,0.04);

  box-shadow: 0 6px 15px rgba(0,0,0,0.05);

  transition: all 0.35s ease;
}

.ukelle-village:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}
.ukelle-village h4 {
  font-size: 1.2rem;
}

.ukelle-village p {
  font-size: 0.95rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .ukelle-container {
    padding: 0.2rem;
  }

  .ukelle-btn {
    font-size: 1rem;
  }

  .ukelle-village h4 {
    font-size: 1.05rem;
  }

  .ukelle-village p {
    font-size: 0.9rem;
  }
}

.history-section {
  padding: 80px 5%;
  background: linear-gradient(135deg, #ffffff, #f8f5ef);
}

.history-container {
  max-width: 1300px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}

.history-image {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.15),
    0 0 0 1px rgba(201,166,70,0.25);

  transform: translateY(20px);
  opacity: 0;
  animation: fadeUp 1s ease forwards;
}

.history-image img {
  width: 100%;
  height: auto;
  display: block;
}

.history-text {
  padding: 25px;
  border-radius: 18px;

  background: linear-gradient(145deg, #ffffff, #f8f5ef);

  border: 1px solid rgba(201,166,70,0.25);

  box-shadow:
    0 8px 25px rgba(0,0,0,0.08),
    inset 0 0 10px rgba(201,166,70,0.05);

  transform: translateY(20px);
  opacity: 0;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.3s;
}

.sub-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #777;
  margin-bottom: 8px;
}

.history-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 15px;
  color: #1a1a1a;
  position: relative;
}

/* gold underline */
.history-text h1::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  margin-top: 8px;
  background: linear-gradient(to right, #C9A646, transparent);
}

.text-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
}

.text-content {
  opacity: 0.9;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.history-image:hover {
  transform: translateY(-5px) scale(1.01);
  transition: all 0.4s ease;
}

.history-text:hover {
  transform: translateY(-5px);
  transition: all 0.4s ease;
}

@media (max-width: 992px) {
  .history-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.mini-footer {
  background: #0f172a; /* deep but subtle */
  color: #cbd5e1;
  text-align: center;
  padding: 12px 10px;
  font-size: 0.85rem;
  border-top: 1px solid rgba(201,166,70,0.2); /* subtle gold line */
}

.mini-footer p {
  margin: 0;
}

.mini-footer .brand {
  color: #C9A646; /* soft gold highlight */
  font-weight: 500;
}

.mini-footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mini-footer a:hover {
  color: #E6C76B;
}