/* Cambodia Tourism Federation — Global utility styles
   Enqueued by the CTF Website Manager plugin. Brand colours use var(--ctf-*, <fallback>):
   change them at Settings → CTF Site Styles (wp-admin). Add overrides in that page's
   Custom CSS box — no need to edit this file by hand. */

/* Force 2x2 grid for the homepage Departments cards */
#ctf-departments-grid,
#ctf-departments-grid > .e-con-inner {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
}
#ctf-departments-grid > .e-con,
#ctf-departments-grid > .e-con-inner > .e-con {
  width: auto !important;
  max-width: none !important;
}

/* Force 3-col grid for Summit Featured Speakers */
#ctf-speakers-grid,
#ctf-speakers-grid > .e-con-inner {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 16px !important;
}
#ctf-speakers-grid > .e-con,
#ctf-speakers-grid > .e-con-inner > .e-con {
  width: auto !important;
  max-width: none !important;
}

/* Force horizontal layout for News filter pills */
#ctf-news-filter,
#ctf-news-filter > .e-con-inner {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
}
#ctf-news-filter > .e-con,
#ctf-news-filter > .e-con-inner > .e-con {
  width: auto !important;
  max-width: none !important;
}

/* Force 4-col horizontal layout for City Highlights labels */
#ctf-highlights-labels,
#ctf-highlights-labels > .e-con-inner {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
}
#ctf-highlights-labels > .e-con,
#ctf-highlights-labels > .e-con-inner > .e-con {
  width: auto !important;
  max-width: none !important;
}

/* About → Our Story timeline: 4-across, dots connected by a horizontal line */
#ctf-story-timeline { position: relative; }
#ctf-story-timeline > .e-con-inner {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 24px !important;
}
#ctf-story-timeline > .e-con-inner > .e-con {
  flex: 1 1 0 !important; width: auto !important; max-width: none !important; position: relative; z-index: 1;
}
#ctf-story-timeline::before {
  content: ''; position: absolute; top: 7px; left: 12%; right: 12%; height: 2px;
  background: rgba(200, 155, 60, 0.35); z-index: 0;
}

/* Events → month calendar grid (7 columns) */
#ctf-cal-head, #ctf-cal-head > .e-con-inner,
#ctf-cal-body, #ctf-cal-body > .e-con-inner {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 0 !important;
}
#ctf-cal-body > .e-con,
#ctf-cal-body > .e-con-inner > .e-con { width: auto !important; max-width: none !important; }
#ctf-cal-body .ctf-cal-cell { border-right: 1px solid #EEEEEE; border-bottom: 1px solid #EEEEEE; }
#ctf-cal-body .ctf-cal-ev .elementor-heading-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Contact → Office location rows (city | address | phone/email | directions) */
.ctf-office-row { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 24px !important; flex-wrap: nowrap !important; }
.ctf-office-row > .e-con:nth-of-type(1) { flex: 0 0 24% !important; width: auto !important; max-width: none !important; }
.ctf-office-row > .e-con:nth-of-type(2) { flex: 0 0 32% !important; width: auto !important; max-width: none !important; }
.ctf-office-row > .e-con:nth-of-type(3) { flex: 0 0 24% !important; width: auto !important; max-width: none !important; }
.ctf-office-row > .e-con:nth-of-type(4) { flex: 1 1 auto !important; width: auto !important; max-width: none !important; }
@media (max-width: 768px) {
  .ctf-office-row { flex-wrap: wrap !important; }
  .ctf-office-row > .e-con { flex: 1 1 100% !important; }
}

/* Federations → Featured Federations 2-column grid */
#ctf-fed-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
#ctf-fed-grid > .e-con { width: auto !important; max-width: none !important; }
@media (max-width: 900px) { #ctf-fed-grid { grid-template-columns: 1fr !important; } }

/* Home → Upcoming Events: centered 1000px, forced horizontal card layout */
#ctf-home-events { max-width: 1000px !important; width: 100% !important; margin-left: auto !important; margin-right: auto !important; }
.ctf-evt-card { display: flex !important; flex-direction: row !important; align-items: stretch !important; }
.ctf-evt-date { flex: 0 0 150px !important; width: 150px !important; }
.ctf-evt-body { flex: 1 1 auto !important; display: flex !important; flex-direction: row !important; align-items: center !important; gap: 24px !important; min-width: 0 !important; }
.ctf-evt-img { flex: 0 0 224px !important; }
.ctf-evt-img img { width: 224px !important; height: 144px !important; object-fit: cover !important; border-radius: 2px; display: block; }
.ctf-evt-info { flex: 1 1 auto !important; min-width: 0 !important; }
.ctf-evt-join { flex: 0 0 auto !important; }
@media (max-width: 768px) {
  .ctf-evt-card, .ctf-evt-body { flex-direction: column !important; }
  .ctf-evt-date, .ctf-evt-img { flex: none !important; width: 100% !important; }
  .ctf-evt-img img { width: 100% !important; }
}

/* Home → Upcoming Industry Events rows (gold-bordered cards) */
.ctf-ind-row { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 24px !important; transition: background-color .2s ease; }
.ctf-ind-row:hover { background: rgba(255, 255, 255, 0.10) !important; }
.ctf-ind-date { flex: 0 0 80px !important; width: 80px !important; }
.ctf-ind-info { flex: 1 1 auto !important; min-width: 0 !important; }
.ctf-ind-chev { flex: 0 0 auto !important; opacity: 0; transition: opacity .2s ease; }
.ctf-ind-row:hover .ctf-ind-chev { opacity: 1; }
/* 1/3 heading + 2/3 events column split */
#ctf-ind-section { align-items: center !important; }
#ctf-ind-section > .e-con:first-child { flex: 0 0 32% !important; max-width: 32% !important; }
#ctf-ind-section > .e-con:last-child { flex: 1 1 auto !important; min-width: 0 !important; }
@media (max-width: 900px) {
  #ctf-ind-section { flex-direction: column !important; }
  #ctf-ind-section > .e-con { flex: none !important; max-width: 100% !important; width: 100% !important; }
}

/* Summit → event-detail info card + stats panel (4 columns) */
#ctf-summit-info, #ctf-summit-info > .e-con-inner { width: 100% !important; }
#ctf-summit-info > .e-con-inner > .e-con, #ctf-summit-info > .e-con { width: 100% !important; max-width: none !important; }
#ctf-summit-stats { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 24px !important; width: 100% !important; }
#ctf-summit-stats > .e-con { width: auto !important; max-width: none !important; }
@media (max-width: 600px) { #ctf-summit-stats { grid-template-columns: repeat(2, 1fr) !important; } }

body, .elementor-widget-text-editor, .elementor-widget-heading {
  font-family: 'Suwannaphum', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Marquee strip used on the member-associations + alliances bands */
.ctf-marquee { overflow: hidden; width: 100%; padding: 28px 0; background: #ffffff; }
.ctf-marquee__track { display: inline-flex; gap: 56px; align-items: center; animation: ctf-scroll 38s linear infinite; }
.ctf-marquee:hover .ctf-marquee__track { animation-play-state: paused; }
.ctf-marquee img { height: 48px; width: auto; opacity: 0.95; transition: opacity .2s, transform .2s; }
.ctf-marquee img:hover { opacity: 1; transform: scale(1.05); }
@keyframes ctf-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Stat block (Federations + Summit) */
.ctf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 56px 24px; color: #ffffff; max-width: 1280px; margin: 0 auto; }
.ctf-stats__item { text-align: center; }
.ctf-stats__value { font-family: 'Suwannaphum', 'Inter', sans-serif; font-size: 56px; font-weight: 800; color: var(--ctf-gold-2, #FCCA66); line-height: 1; margin-bottom: 8px; }
.ctf-stats__label { font-size: 13px; opacity: .85; }
@media (max-width: 768px) { .ctf-stats { grid-template-columns: repeat(2, 1fr); } .ctf-stats__value { font-size: 40px; } }

/* Hero giant background text "BEYOND" */
.ctf-hero-watermark {
  position: absolute !important; inset: 0; margin: 0 !important;
  display: flex !important; align-items: center; justify-content: center;
  pointer-events: none; overflow: hidden; user-select: none; z-index: 1;
}
.ctf-hero-watermark .elementor-widget-container { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.ctf-hero-watermark span,
.ctf-hero-watermark .elementor-heading-title {
  color: rgba(255,255,255,0.05); font-weight: 800; line-height: 1;
  font-size: 30vw; letter-spacing: -.04em; text-transform: uppercase; white-space: nowrap;
}

/* Hero content — force side-by-side (headline | arrows+thumbnails), bottom-aligned, 1280 centered */
#ctf-hero { display: flex !important; flex-direction: column !important; justify-content: flex-end !important; }
#ctf-hero-row { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; justify-content: space-between !important; align-items: flex-end !important; max-width: 1280px !important; width: 100% !important; margin-left: auto !important; margin-right: auto !important; gap: 48px !important; }
#ctf-hero-left { flex: 0 1 700px !important; width: auto !important; max-width: 720px !important; }
#ctf-hero-right { flex: 0 1 560px !important; width: auto !important; max-width: 560px !important; display: flex !important; flex-direction: column !important; align-items: flex-end !important; gap: 28px !important; }
#ctf-hero-arrows { display: flex !important; flex-direction: row !important; gap: 12px !important; width: auto !important; }
#ctf-hero-thumbs { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; justify-content: flex-end !important; gap: 14px !important; width: auto !important; max-width: min(560px, 44vw) !important; }
.ctf-hero-thumb { flex: 0 0 auto !important; }
.ctf-hero-thumb img { width: clamp(132px, 9vw, 168px) !important; height: clamp(88px, 6vw, 112px) !important; object-fit: cover !important; }
@media (max-width: 900px) {
  #ctf-hero-row { flex-direction: column !important; align-items: flex-start !important; }
  #ctf-hero-left, #ctf-hero-right { max-width: 100% !important; align-items: flex-start !important; }
  #ctf-hero-thumbs { width: 100% !important; max-width: 100% !important; flex-wrap: wrap !important; justify-content: center !important; overflow-x: visible !important; padding-bottom: 0 !important; }
  .ctf-hero-thumb img { width: 128px !important; height: 86px !important; }
}

@media (max-width: 640px) {
  #ctf-hero-thumbs {
    gap: 12px !important;
  }

  .ctf-hero-thumb img {
    width: min(40vw, 140px) !important;
    height: 86px !important;
  }
}

/* Event/calendar grid */
.ctf-calendar { background: #ffffff; border: 1px solid #e5e7eb; max-width: 1100px; margin: 0 auto; }
.ctf-calendar__head, .ctf-calendar__row { display: grid; grid-template-columns: repeat(7,1fr); }
.ctf-calendar__head > div { padding: 12px; font-size: 12px; font-weight: 700; color: #444650; background: #F5F7FA; text-align: center; }
.ctf-calendar__row > div { padding: 14px 10px; min-height: 100px; border-top: 1px solid #eee; border-right: 1px solid #eee; font-size: 13px; color: #444650; }
.ctf-calendar__row > div:first-child { border-left: 1px solid #eee; }
.ctf-calendar__day { font-weight: 700; color: var(--ctf-navy, #001339); margin-bottom: 6px; }
.ctf-calendar__today { background: var(--ctf-gold-2, #FCCA66); color: var(--ctf-navy, #001339); padding: 2px 7px; border-radius: 50%; font-weight: 700; }
.ctf-calendar__event { background: var(--ctf-navy-2, #002662); color: #ffffff; padding: 3px 7px; border-radius: 3px; font-size: 11px; margin-top: 4px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctf-calendar__event.is-red { background: var(--ctf-red, #E02020); }
.ctf-calendar__event.is-gold { background: var(--ctf-gold-2, #FCCA66); color: var(--ctf-navy, #001339); }

/* Sidebar widgets on news article */
.ctf-sidebar { background: #ffffff; border: 1px solid #E5E7EB; padding: 24px; margin-bottom: 24px; }
.ctf-sidebar__title { font-family: 'Suwannaphum', 'Inter', sans-serif; font-size: 16px; font-weight: 700; color: var(--ctf-navy-2, #002662); margin: 0 0 16px; }
.ctf-sidebar__list { list-style: none; margin: 0; padding: 0; }
.ctf-sidebar__list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #F5F7FA; font-size: 14px; color: #444650; cursor: pointer; }
.ctf-sidebar__list li.is-active { color: var(--ctf-navy-2, #002662); font-weight: 700; }
.ctf-sidebar__list li:last-child { border-bottom: 0; }
.ctf-sidebar__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ctf-sidebar__tags span { background: #F5F7FA; color: var(--ctf-navy-2, #002662); padding: 6px 14px; border-radius: 4px; font-size: 12px; font-weight: 600; }

/* Static demo forms */
.ctf-form { background: #ffffff; border: 1px solid #E5E7EB; padding: 32px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); }
.ctf-form label { display: block; font-size: 12px; font-weight: 700; color: var(--ctf-navy-2, #002662); margin-bottom: 8px; }
.ctf-form input[type="text"], .ctf-form input[type="email"], .ctf-form select, .ctf-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #C4C6D1; background: #ffffff; font-family: inherit; font-size: 14px; color: var(--ctf-navy-2, #002662); margin-bottom: 18px; border-radius: 2px;
}
.ctf-form textarea { min-height: 120px; resize: vertical; }
.ctf-form button[type="submit"] { background: var(--ctf-navy-2, #002662); color: #ffffff; padding: 14px 28px; border: 0; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; width: 100%; transition: background .2s; }
.ctf-form button[type="submit"]:hover { background: var(--ctf-navy, #001339); }
.ctf-form--inline { display: flex; gap: 12px; max-width: 480px; }
.ctf-form--inline input { margin-bottom: 0; }
.ctf-form--inline button { width: auto; padding: 14px 24px; }
.ctf-form__row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .ctf-form__row-2 { grid-template-columns: 1fr; } .ctf-form--inline { flex-direction: column; } }

/* ---- Contact Form 7 → render like the design's .ctf-form ---- */
.wpcf7-form p { margin: 0; }
.wpcf7-form label { display: block; font-size: 12px; font-weight: 700; color: var(--ctf-navy-2, #002662); margin-bottom: 8px; }
.wpcf7-form .wpcf7-form-control-wrap { display: block; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #C4C6D1; background: #fff;
  font-family: inherit; font-size: 14px; color: var(--ctf-navy-2, #002662); margin-bottom: 18px; border-radius: 2px; box-sizing: border-box;
}
.wpcf7-form textarea { min-height: 120px; resize: vertical; }
.wpcf7-form .ctf-cf7-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.wpcf7-form .wpcf7-submit {
  background: var(--ctf-navy-2, #002662) !important; color: #fff; padding: 14px 28px; border: 0; font-family: inherit;
  font-size: 14px; font-weight: 700;
  cursor: pointer; width: 100%; transition: background .2s; margin-top: 4px;
}
.wpcf7-form .wpcf7-submit:hover { background: var(--ctf-navy, #001339) !important; }
.wpcf7-form .wpcf7-acceptance { display: block; margin: 0 0 16px; }
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7-form .wpcf7-acceptance label { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; font-weight: 400; color: #444650; text-transform: none; letter-spacing: 0; margin: 0; }
.wpcf7-form .wpcf7-acceptance input[type="checkbox"] { width: auto; margin: 3px 0 0; }
.wpcf7-form .wpcf7-not-valid-tip { color: var(--ctf-red, #E02020); font-size: 11px; margin: -12px 0 14px; }
.wpcf7 .wpcf7-response-output { margin: 8px 0 0; font-size: 13px; border-width: 1px; }
@media (max-width: 600px) { .wpcf7-form .ctf-cf7-row { grid-template-columns: 1fr; } }

/* Form submit color/shape modifiers (match per-section template buttons) */
.ctf-form-gold .wpcf7-submit { background: var(--ctf-gold, #C89B3C) !important; }
.ctf-form-gold .wpcf7-submit:hover { background: var(--ctf-gold-dark, #B8960C) !important; }
.ctf-form-pill .wpcf7-submit { border-radius: 9999px !important; }

/* Dark-card form (on navy sections): translucent white inputs, white labels, gold submit */
.ctf-form-dark .wpcf7-form label { color: #FFFFFF !important; }
.ctf-form-dark .wpcf7-form input[type="text"],
.ctf-form-dark .wpcf7-form input[type="email"],
.ctf-form-dark .wpcf7-form select,
.ctf-form-dark .wpcf7-form textarea {
  background: rgba(255,255,255,0.10) !important; border-color: rgba(255,255,255,0.20) !important; color: #FFFFFF !important;
}
.ctf-form-dark .wpcf7-form input::placeholder,
.ctf-form-dark .wpcf7-form textarea::placeholder { color: rgba(255,255,255,0.5) !important; }
.ctf-form-dark .wpcf7-form .wpcf7-submit { background: var(--ctf-gold, #C89B3C) !important; }
.ctf-form-dark .wpcf7-form .wpcf7-submit:hover { background: var(--ctf-gold-dark, #B8960C) !important; }

/* Footer newsletter CF7 — inline white input + red SEND */
.ctf-newsletter-cf7 .wpcf7-form p { display: flex; max-width: 520px; margin: 0 auto; background: #fff; border-radius: 2px; overflow: hidden; }
.ctf-newsletter-cf7 .wpcf7-form .wpcf7-form-control-wrap { flex: 1; }
.ctf-newsletter-cf7 .wpcf7-form input[type="email"] { width: 100%; margin: 0; border: 0; border-radius: 0; background: #fff; color: #111; padding: 12px 16px; }
.ctf-newsletter-cf7 .wpcf7-form .wpcf7-submit { width: auto; margin: 0; border-radius: 0; background: var(--ctf-red, #e02020) !important; color: #fff; padding: 0 24px; font-size: 12px; }
.ctf-newsletter-cf7 .wpcf7-form .wpcf7-submit:hover { background: var(--ctf-red-dark, #b81818) !important; }
.ctf-newsletter-cf7 .wpcf7-spinner { display: none; }

/* Newsletter band */
.ctf-newsletter { padding: 80px 24px; text-align: center; color: #ffffff; }
.ctf-newsletter h3 { font-family: 'Suwannaphum', 'Inter', sans-serif; font-size: 36px; font-weight: 700; margin: 0 0 16px; color: #ffffff; }
.ctf-newsletter p { font-size: 16px; opacity: 0.85; max-width: 620px; margin: 0 auto 28px; line-height: 1.7; color: #ffffff; }
.ctf-newsletter form { max-width: 520px; margin: 0 auto; display: flex; gap: 0; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); border-radius: 4px; overflow: hidden; }
.ctf-newsletter input { flex: 1; padding: 16px 20px; background: transparent; border: 0; color: #ffffff; font-size: 14px; font-family: inherit; }
.ctf-newsletter input::placeholder { color: rgba(255,255,255,0.6); }
.ctf-newsletter button { padding: 0 24px; background: var(--ctf-gold-2, #FCCA66); color: var(--ctf-navy, #001339); border: 0; cursor: pointer; font-weight: 700; }

/* Cards (used everywhere) */
.ctf-card { background: #ffffff; border: 1px solid #E5E7EB; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.ctf-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.ctf-card__img { width: 100%; height: 240px; object-fit: cover; display: block; }
.ctf-card__body { padding: 24px; }
.ctf-card__cat { display: inline-block; background: #B8960C; color: #ffffff; padding: 4px 10px; border-radius: 0; font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.ctf-card__title { font-family: 'Suwannaphum', 'Inter', sans-serif; font-size: 18px; font-weight: 700; color: var(--ctf-navy-2, #002662); margin: 0 0 10px; line-height: 1.4; }
.ctf-card__meta { font-size: 12px; color: #888; margin-bottom: 10px; }
.ctf-card__desc { font-size: 14px; color: #444650; line-height: 1.6; margin: 0 0 14px; }
.ctf-card__link { font-size: 13px; font-weight: 700; color: var(--ctf-red, #E02020); text-decoration: none; }

/* Event row (dark backgrounds) */
.ctf-event-row { display: flex; gap: 24px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.ctf-event-row:last-child { border-bottom: 0; }
.ctf-event-row__date { flex: 0 0 88px; text-align: center; color: var(--ctf-gold-2, #FCCA66); font-weight: 700; }
.ctf-event-row__date .d { font-size: 32px; line-height: 1; }
.ctf-event-row__date .m { font-size: 12px; }
.ctf-event-row__body h4 { font-family: 'Suwannaphum', 'Inter', sans-serif; font-size: 18px; font-weight: 700; color: #ffffff; margin: 0 0 6px; }
.ctf-event-row__body p { font-size: 13px; color: rgba(255,255,255,0.7); margin: 0; }

/* Member directory table */
.ctf-table { width: 100%; border-collapse: collapse; background: #ffffff; border: 1px solid #E5E7EB; }
.ctf-table thead { background: var(--ctf-navy-2, #002662); color: #ffffff; }
.ctf-table th, .ctf-table td { padding: 16px 20px; text-align: left; font-size: 14px; }
.ctf-table th { font-size: 12px; font-weight: 700; }
.ctf-table tbody tr { border-top: 1px solid #F5F7FA; }
.ctf-table tbody tr:hover { background: #F5F7FA; }
.ctf-table .ctf-table__sector { font-size: 12px; background: #EFF3FF; color: var(--ctf-navy-2, #002662); padding: 4px 10px; border-radius: 2px; font-weight: 700; }
.ctf-table__action { color: var(--ctf-red, #E02020); font-weight: 700; font-size: 13px; text-decoration: none; }

/* Filter pills */
.ctf-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.ctf-pills span { padding: 8px 18px; border: 1px solid #C4C6D1; background: #ffffff; font-size: 13px; font-weight: 600; color: #444650; cursor: pointer; border-radius: 2px; }
.ctf-pills span.is-active { background: var(--ctf-navy-2, #002662); color: #ffffff; border-color: var(--ctf-navy-2, #002662); }

/* Breadcrumb */
.ctf-breadcrumb { font-size: 13px; color: rgba(255,255,255,0.75); }
.ctf-breadcrumb a { color: var(--ctf-gold-2, #FCCA66); text-decoration: none; }
.ctf-breadcrumb a:hover { color: #ffffff; }

/* Utility bar (HFE) */
.ctf-utility-bar__inner { display: flex; justify-content: flex-end; align-items: center; gap: 24px; font-size: 13px; color: var(--ctf-navy-2, #002662); width: 100%; }
.ctf-utility-bar__inner a { color: var(--ctf-navy-2, #002662); text-decoration: none; opacity: .7; }
.ctf-utility-bar__inner a:hover { opacity: 1; }
.ctf-utility-bar__social { display: flex; gap: 14px; }
.ctf-utility-bar__lang { border-left: 1px solid rgba(0,38,98,.15); padding-left: 18px; font-weight: 700; }

/* HFE menu styling override (so the menu reads the design) */
.hfe-nav-menu li a { font-weight: 700 !important; font-size: 15px; color: var(--ctf-navy-2, #002662) !important; }
.hfe-nav-menu li a:hover { color: var(--ctf-red, #E02020) !important; }
/* Active item: stays navy (NOT red) with a centered red dot below — matches template */
.hfe-nav-menu li.current-menu-item > a,
.hfe-nav-menu li.current-menu-item > a:hover { color: var(--ctf-navy-2, #002662) !important; position: relative; }
.hfe-nav-menu li.current-menu-item > a::after {
  content: ''; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  width: 6px; height: 6px; background: var(--ctf-red, #E02020); border-radius: 50%; margin: 0;
}
.hfe-nav-menu { gap: 28px !important; }

/* Footer */
.ctf-footer { background: var(--ctf-navy-3, #1A2740); color: #ffffff; padding: 72px 0 0; }
.ctf-footer__grid { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; }
.ctf-footer__col h4 { font-family: 'Suwannaphum', 'Inter', sans-serif; font-size: 14px; font-weight: 700; color: var(--ctf-gold-2, #FCCA66); margin: 0 0 20px; }
.ctf-footer__col p, .ctf-footer__col li, .ctf-footer__col a { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.8; }
.ctf-footer__col ul { list-style: none; padding: 0; margin: 0; }
.ctf-footer__col a { color: rgba(255,255,255,0.7); text-decoration: none; }
.ctf-footer__col a:hover { color: var(--ctf-gold-2, #FCCA66); }
.ctf-footer__brand p { margin: 14px 0; }
.ctf-footer__contact { display: flex; align-items: flex-start; gap: 12px; margin: 12px 0; color: rgba(255,255,255,0.7); }
.ctf-footer__contact i { color: var(--ctf-gold-2, #FCCA66); margin-top: 4px; }
.ctf-footer__newsletter { display: flex; gap: 0; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); }
.ctf-footer__newsletter input { flex: 1; background: transparent; border: 0; padding: 12px 14px; color: #ffffff; font-family: inherit; font-size: 13px; }
.ctf-footer__newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.ctf-footer__newsletter button { background: var(--ctf-red, #E02020); border: 0; color: #ffffff; padding: 0 20px; cursor: pointer; font-weight: 700; }
.ctf-footer__social { display: flex; gap: 12px; margin-top: 18px; }
.ctf-footer__social a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: #ffffff !important; }
.ctf-footer__social a:hover { background: var(--ctf-gold-2, #FCCA66); color: var(--ctf-navy, #001339) !important; border-color: var(--ctf-gold-2, #FCCA66); }
.ctf-footer__bottom { max-width: 1280px; margin: 56px auto 0; padding: 24px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 12px; color: rgba(255,255,255,0.5); }
@media (max-width: 900px) { .ctf-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .ctf-footer__grid { grid-template-columns: 1fr; } }

/* HFE Header's inner container should not break our utility bar layout */
.elementor-widget-html .ctf-utility-bar__inner { width: 100%; }

/* Make sure body has no theme top spacing */
body { margin: 0; padding: 0; }

/* ---------------------------------------------------------------------------
   Shortcode Featured Events, Calendar, and Homepage Events Styling
   --------------------------------------------------------------------------- */
.ctf-feat-event-card {
  display: flex !important;
  flex-direction: row !important;
  background: #ffffff !important;
  border: 1px solid #C4C6D1 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04) !important;
  overflow: hidden;
  align-items: stretch !important;
  border-radius: 4px;
}
.ctf-feat-event-img-col {
  width: 38% !important;
  min-height: 280px !important;
  background-size: cover !important;
  background-position: center center !important;
}
.ctf-feat-event-info-col {
  flex: 1 !important;
  padding: 32px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  box-sizing: border-box;
}
.ctf-feat-event-eyebrow {
  color: var(--ctf-gold-2, #FCCA66) !important;
  font-family: 'Suwannaphum', 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  margin-bottom: 12px !important;
  display: flex;
  align-items: center;
}
.ctf-feat-event-title {
  color: var(--ctf-navy-2, #002662) !important;
  font-family: 'Suwannaphum', 'Inter', sans-serif !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  margin: 0 0 12px !important;
  line-height: 1.3 !important;
}
.ctf-feat-event-desc {
  color: #444650 !important;
  font-family: 'Suwannaphum', 'Inter', sans-serif !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  margin: 0 0 20px !important;
}
.ctf-feat-event-meta {
  display: flex !important;
  flex-direction: row !important;
  gap: 20px !important;
  color: var(--ctf-navy-2, #002662) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  margin-bottom: 20px !important;
}
.ctf-feat-event-meta-item {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.ctf-feat-event-actions {
  display: flex !important;
  flex-direction: row !important;
  gap: 12px !important;
}
.ctf-btn-reg {
  background-color: var(--ctf-gold, #C89B3C) !important;
  color: #ffffff !important;
  padding: 12px 24px !important;
  font-family: 'Suwannaphum', 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: background-color 0.2s;
  display: inline-block;
  border: 0;
  cursor: pointer;
  text-align: center;
}
.ctf-btn-reg:hover {
  background-color: var(--ctf-gold-dark, #B8960C) !important;
}
.ctf-btn-brochure {
  background-color: transparent !important;
  color: var(--ctf-navy-2, #002662) !important;
  border: 1px solid var(--ctf-navy-2, #002662) !important;
  padding: 12px 24px !important;
  font-family: 'Suwannaphum', 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: background-color 0.2s, color 0.2s;
  display: inline-block;
  cursor: pointer;
  text-align: center;
}
.ctf-btn-brochure:hover {
  background-color: var(--ctf-navy-2, #002662) !important;
  color: #ffffff !important;
}

/* Shortcode Calendar styling */
.ctf-calendar-wrapper {
  background: #ffffff !important;
  border: 1px solid #C4C6D1 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04) !important;
  font-family: 'Suwannaphum', 'Inter', sans-serif !important;
}
.ctf-calendar-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 20px 24px !important;
  border-bottom: 1px solid #EEEEEE !important;
}
.ctf-calendar-header h3 {
  margin: 0 !important;
  font-size: 22px !important;
  color: var(--ctf-navy-2, #002662) !important;
  font-weight: 700 !important;
  font-family: 'Suwannaphum', 'Inter', sans-serif !important;
}
.ctf-calendar-nav {
  display: flex !important;
  gap: 12px !important;
}
.ctf-cal-nav-btn {
  text-decoration: none !important;
  color: var(--ctf-navy-2, #002662) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 8px 16px !important;
  border: 1px solid #C4C6D1 !important;
  border-radius: 4px !important;
  transition: all 0.2s !important;
  background-color: #FFFFFF !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.ctf-cal-nav-btn:hover {
  background-color: #F5F7FA !important;
  border-color: var(--ctf-navy-2, #002662) !important;
}
.ctf-calendar-days-row {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  background: #F5F7FA !important;
  border-bottom: 1px solid #EEEEEE !important;
}
.ctf-calendar-days-row > div {
  padding: 12px 0 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--ctf-navy-2, #002662) !important;
  text-align: center !important;
}
.ctf-calendar-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  background-color: #EEEEEE !important;
  gap: 1px !important;
}
.ctf-cal-cell {
  background: #ffffff !important;
  min-height: 108px !important;
  padding: 8px !important;
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}
.ctf-cal-day-today {
  background: #FEFCE8 !important;
}
.ctf-cal-cell-num {
  text-align: right !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  margin-bottom: 6px !important;
}
.ctf-cal-day-current {
  color: var(--ctf-navy-4, #121C2A) !important;
}
.ctf-cal-day-other {
  color: #9CA3AF !important;
}
.ctf-cal-cell-events {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  flex: 1 !important;
  overflow: hidden !important;
}
.ctf-cal-cell-event {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: #F3F4F6 !important;
  padding: 3px 6px !important;
  border-radius: 3px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}
.ctf-cal-cell-event-dot {
  width: 5px !important;
  height: 5px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}
.ctf-cal-cell-event-title {
  font-size: 10px !important;
  color: #444650 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-weight: 500 !important;
}

/* Home activities buttons and adjustments */
.ctf-evt-join-btn:hover {
  background-color: var(--ctf-navy, #001339) !important;
}

@media (max-width: 768px) {
  .ctf-feat-event-card {
    flex-direction: column !important;
  }
  .ctf-feat-event-img-col {
    width: 100% !important;
    min-height: 200px !important;
  }
  .ctf-feat-event-actions {
    flex-direction: column !important;
  }
  
  .ctf-evt-card {
    flex-direction: column !important;
  }
  .ctf-evt-date {
    flex: none !important;
    width: 100% !important;
    border-right: 0 !important;
    border-bottom: 1px solid #E5E7EB !important;
  }
  .ctf-evt-body {
    flex-direction: column !important;
  }
  .ctf-evt-img {
    flex: none !important;
    width: 100% !important;
  }
  .ctf-evt-img img {
    width: 100% !important;
  }
}
