/* =====================================================
   SLOFIST / FFDIC Training Portal UI Kit
   Joomla article-safe classes
===================================================== */
:root {
  --ffd-red: #b60000;
  --ffd-red-dark: #860000;
  --ffd-black: #050505;
  --ffd-navy: #062b55;
  --ffd-border: #ddd;
  --ffd-light: #f5f5f5;
  --ffd-wrap: 1320px;
}

.ffd-dashboard,
.ffd-day-page,
.ffd-contacts-page,
.ffd-event-page {
  max-width: var(--ffd-wrap);
  margin: 0 auto;
  padding: 0 40px 50px;
  color: #111;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.ffd-dashboard *, .ffd-day-page *, .ffd-contacts-page *, .ffd-event-page * { box-sizing: border-box; }

/* Shared FFDIC header */
.ffd-page-header, .ffd-header {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  aspect-ratio: 6 / 1;
  min-height: 165px;
  max-height: 240px;
  padding: clamp(22px, 3vw, 42px);
  overflow: hidden;
  background: #050505;
  border-bottom: 5px solid var(--ffd-red);
}
.ffd-page-header::before, .ffd-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #000 0%, #000 34%, rgba(0,0,0,.82) 56%, rgba(0,0,0,.18) 100%);
  z-index: 1;
}
.ffd-page-logo, .ffd-logo { position: relative; z-index: 3; width: clamp(95px, 10vw, 155px); height: auto; flex-shrink: 0; }
.ffd-page-title, .ffd-header-text { position: relative; z-index: 3; margin-left: clamp(18px, 3vw, 34px); color: #fff; min-width: 0; }
.ffd-breadcrumb { margin-bottom: 8px; font-size: clamp(.75rem, 1vw, .95rem); font-weight: 700; color: #ddd; }
.ffd-breadcrumb a { color: #fff; text-decoration: none; }
.ffd-breadcrumb span { margin: 0 8px; color: #ff3030; }
.ffd-course-label { display: inline-block; margin-bottom: 8px; color: #ff3030; font-size: clamp(.75rem, 1vw, 1rem); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.ffd-page-title h1, .ffd-header-text h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: .95; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; color: #fff; }
.ffd-page-title p, .ffd-header-text p { margin: 10px 0 0; font-size: clamp(.9rem, 1.8vw, 1.35rem); font-weight: 700; text-transform: uppercase; color: #fff; }
.ffd-page-image, .ffd-header-image { position: absolute; right: 0; top: 0; width: 60%; height: 100%; background: url("/images/ffdicskullheader.png") center right / cover no-repeat; opacity: .92; z-index: 2; }

/* Dashboard cards */
.ffd-intro { padding: 26px 0 16px; }
.ffd-intro h2 { margin: 0; font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 900; text-transform: uppercase; }
.ffd-intro p { margin: 4px 0 0; font-size: 1.15rem; color: #333; }
.ffd-card-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.ffd-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 180px; padding: 18px 14px 12px; background: #fff; color: #3b3b3b; text-align: center; text-decoration: none; border: 1px solid #d7d7d7; border-radius: 2px; box-shadow: 0 5px 16px rgba(0,0,0,.08); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.ffd-card::before { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: currentColor; }
.ffd-card:hover, .ffd-card:focus { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.15); border-color: currentColor; outline: none; }
.ffd-card i { font-size: clamp(2.4rem, 4vw, 3.6rem); margin-bottom: 14px; color: currentColor; }
.ffd-card h3 { margin: 0 0 6px; font-size: clamp(.95rem, 1.25vw, 1.25rem); line-height: 1.08; font-weight: 950; text-transform: uppercase; color: #050505; overflow-wrap: anywhere; }
.ffd-card p { max-width: 230px; margin: 0; font-size: clamp(.8rem, 1vw, .98rem); line-height: 1.22; color: #222; }
.ffd-card.red { color: #b60000; } .ffd-card.orange { color: #d95b00; } .ffd-card.blue { color: #004b93; } .ffd-card.green { color: #176f32; } .ffd-card.purple { color: #53148c; } .ffd-card.navy { color: #062b55; } .ffd-card.dark { color: #3b3b3b; }

/* Day pages */
.ffd-day-nav { display: flex !important; flex-wrap: wrap; gap: 8px; margin: 18px 0 28px; padding: 0; }
.ffd-day-nav a { display: inline-block; padding: 10px 18px; background: #fff; color: #111; border: 1px solid #ccc; border-bottom: 4px solid #555; text-decoration: none; font-weight: 900; text-transform: uppercase; }
.ffd-day-nav a:hover, .ffd-day-nav a:focus { color: var(--ffd-red); border-bottom-color: var(--ffd-red); }
.ffd-day-nav a.active { background: var(--ffd-red); color: #fff; border-color: var(--ffd-red); }
.ffd-day-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; }
.ffd-day-left { display: flex; flex-direction: column; gap: 22px; }
.ffd-day-main { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.ffd-mini-timeline, .ffd-alert-panel, .ffd-side-panel, .ffd-info-panel, .ffd-course-content, .ffd-content-block, .ffd-contact-card { background: #fff; border: 1px solid var(--ffd-border); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.ffd-mini-timeline { border-top: 5px solid var(--ffd-red); padding: 20px; }
.ffd-mini-timeline h2, .ffd-alert-panel h2, .ffd-side-panel h2, .ffd-info-panel h2, .ffd-course-content > h2 { margin: 0 0 14px; text-transform: uppercase; color: #111; font-weight: 900; }
.ffd-mini-time { display: block; position: relative; padding: 0 0 16px 22px; border-left: 3px solid var(--ffd-red); color: #111; text-decoration: none; }
.ffd-mini-time::before { content: ""; position: absolute; left: -8px; top: 3px; width: 13px; height: 13px; background: var(--ffd-red); border-radius: 50%; box-shadow: 0 0 0 4px #f4d6d6; }
.ffd-mini-time strong { display: block; color: var(--ffd-red); font-size: .95rem; }
.ffd-mini-time span { display: block; font-weight: 800; line-height: 1.25; }
.ffd-alert-panel { border-left: 5px solid var(--ffd-red); background: #fff7f7; padding: 20px; }
.ffd-side-panel { border-top: 5px solid var(--ffd-navy); padding: 20px; }
.ffd-info-panel { border-left: 5px solid var(--ffd-navy); padding: 24px; }
.ffd-course-content { border-top: 5px solid var(--ffd-red); padding: 24px; }
.ffd-content-block { scroll-margin-top: 90px; border-left: 5px solid var(--ffd-red); padding: 20px; margin-bottom: 18px; box-shadow: 0 3px 12px rgba(0,0,0,.06); }
.ffd-content-block:last-child { margin-bottom: 0; }
.ffd-block-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 18px; align-items: start; margin-bottom: 14px; }
.ffd-block-time { margin: 0 0 6px; color: var(--ffd-red); font-weight: 900; }
.ffd-block-title h3, .ffd-content-block h3 { margin: 0; font-size: 1.35rem; text-transform: uppercase; color: #111; }
.ffd-block-instructors { display: flex; flex-direction: column; gap: 8px; }
.ffd-block-instructor { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; background: #f6f6f6; border: 1px solid #ddd; padding: 8px; }
.ffd-block-instructor img { width: 54px; height: 54px; object-fit: cover; background: #ddd; }
.ffd-block-instructor strong { display: block; color: #111; font-size: .95rem; }
.ffd-block-instructor span { display: block; color: #555; font-size: .82rem; text-transform: uppercase; font-weight: 800; }
.ffd-break-content { border-left-color: #555; background: #f6f6f6; }
.ffd-download-box { background: #f4f4f4; border: 1px dashed #bbb; padding: 14px; margin-top: 12px; }
.ffd-download-box h4 { margin: 0 0 8px; font-size: .95rem; color: var(--ffd-navy); text-transform: uppercase; }

/* Contacts */
.ffd-section-head { margin-bottom: 22px; }
.ffd-section-head h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; text-transform: uppercase; }
.ffd-section-head p { margin: 6px 0 0; font-size: 1.1rem; color: #444; }
.ffd-contact-search { margin-bottom: 26px; }
.ffd-contact-search input { width: 100%; max-width: 520px; padding: 14px 16px; border: 2px solid #ccc; font-size: 1.05rem; }
.ffd-contact-search input:focus { outline: none; border-color: var(--ffd-red); box-shadow: 0 0 0 3px rgba(182,0,0,.15); }
.ffd-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.ffd-contact-card { border-top: 5px solid var(--ffd-red); padding: 20px; }
.ffd-contact-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #eee; margin-bottom: 16px; }
.ffd-contact-card h2 { margin: 0 0 4px; font-size: 1.35rem; font-weight: 900; color: #111; }
.ffd-contact-title { margin: 0 0 14px; color: var(--ffd-red); font-weight: 900; text-transform: uppercase; font-size: .9rem; }
.ffd-contact-card p { margin: 8px 0; }
.ffd-contact-card a { color: #111; text-decoration: none; }
.ffd-contact-card a:hover { color: var(--ffd-red); text-decoration: underline; }

/* Event Booking / Phoca broad styling */
#eb-event-page, .eb-container, .eb-event-page { max-width: var(--ffd-wrap); margin: auto; padding: 35px; }
.eb-event, .eb-event-container, .eb-box, .eb-info-box, .eb-description, .eb-location, .eb-event-details, .pd-category, .pd-subcategory, .pdfile, .pd-document { background: #fff; border: 1px solid var(--ffd-border); border-top: 5px solid var(--ffd-red); box-shadow: 0 6px 20px rgba(0,0,0,.08); padding: 24px; margin-bottom: 24px; }
.eb-event-title, .eb-title { font-size: clamp(2.2rem,5vw,4rem); font-weight: 900; text-transform: uppercase; color: #111; }
.btn-primary, .eb-register-button, .eb-register-btn, .pd-button-download { background: var(--ffd-red) !important; border: 2px solid var(--ffd-red) !important; color: #fff !important; font-weight: 900; text-transform: uppercase; border-radius: 0 !important; }
.btn-primary:hover, .eb-register-button:hover, .eb-register-btn:hover, .pd-button-download:hover { background: var(--ffd-red-dark) !important; border-color: var(--ffd-red-dark) !important; }

@media (max-width: 1100px) { .ffd-card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .ffd-day-page, .ffd-dashboard, .ffd-contacts-page, .ffd-event-page { padding: 0 26px 40px; } .ffd-day-grid { grid-template-columns: 1fr; } .ffd-block-header { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .ffd-page-header, .ffd-header { aspect-ratio: 16 / 7; min-height: 220px; max-height: none; flex-direction: column; align-items: flex-start; } .ffd-page-title, .ffd-header-text { margin: 16px 0 0; } .ffd-page-image, .ffd-header-image { width: 100%; opacity: .28; } .ffd-day-nav a { flex: 1 1 calc(50% - 8px); text-align: center; } .ffd-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ffd-day-page, .ffd-dashboard, .ffd-contacts-page, .ffd-event-page { padding: 0 18px 34px; } .ffd-card-grid { grid-template-columns: 1fr; } }
/* SLOFIST - EventBooking listing cleanup */

.eb-event,
.eb-event-container,
.eb-events .eb-event {
  max-width: 1180px;
  margin: 0 auto 24px;
  padding: 22px;
  border: 1px solid #ddd;
  border-top: 5px solid #b60000;
  background: #fff;
  box-shadow: 0 5px 16px rgba(0,0,0,.08);
}

.eb-event-title,
.eb-title,
.eb-events h2,
.eb-events h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.25rem) !important;
  line-height: 1.1;
  margin-bottom: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.eb-event-image img,
.eb-events img {
  max-height: 260px;
  width: 100%;
  object-fit: cover;
}

.eb-description,
.eb-event-description {
  font-size: 1rem;
  line-height: 1.55;
  max-width: 900px;
}

.eb-description p,
.eb-event-description p {
  margin-bottom: 12px;
}

.eb-description ul,
.eb-event-description ul {
  margin-bottom: 16px;
  padding-left: 22px;
}

.eb-description li,
.eb-event-description li {
  margin-bottom: 6px;
}

.eb-event-date,
.eb-event-location,
.eb-price {
  font-size: 1rem !important;
  line-height: 1.35;
}

.eb-register-button,
.eb-register-btn,
.eb-event .btn-primary {
  padding: 10px 18px !important;
  min-height: 44px;
  font-size: .95rem;
  font-weight: 900;
  text-transform: uppercase;
  background: #b60000 !important;
  border-color: #b60000 !important;
  border-radius: 0 !important;
}

.eb-register-button:hover,
.eb-register-btn:hover,
.eb-event .btn-primary:hover {
  background: #850000 !important;
  border-color: #850000 !important;
}

/* listing view: make rows/cards more compact */
.eb-events .eb-event {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  align-items: start;
}

.eb-events .eb-event-image {
  margin: 0;
}

.eb-events .eb-event-image img {
  height: 180px;
}

/* Mobile */
@media (max-width: 760px) {
  .eb-event,
  .eb-event-container,
  .eb-events .eb-event {
    padding: 18px;
  }

  .eb-events .eb-event {
    grid-template-columns: 1fr;
  }

  .eb-event-image img,
  .eb-events .eb-event-image img {
    max-height: 220px;
    height: auto;
  }
}
/*****************************************************************
 SLOFIST Event Details Page
*****************************************************************/

/* Main Container */

#eb-event-page,
.eb-event-page,
.eb-event-detail,
.eb-event-container {

    max-width: 1320px;
    margin: 40px auto;
    padding: 0 30px;
}

/************************************************************
 Hero Image
************************************************************/

.eb-event-image {
    margin-bottom: 30px;
}

.eb-event-image img {

    width: 100%;
    max-height: 500px;

    object-fit: cover;

    border-radius: 0;

    border: 1px solid #ddd;

    box-shadow: 0 10px 30px rgba(0,0,0,.15);

}

/************************************************************
 Title
************************************************************/

.eb-event-title,
.eb-title {

    font-size: clamp(2.4rem,4vw,4.2rem);

    font-weight: 900;

    text-transform: uppercase;

    line-height: 1;

    color: #111;

    margin-bottom: 15px;

}

/************************************************************
 Date/Location Bar
************************************************************/

.eb-event-meta,
.eb-event-info {

    display: flex;
    flex-wrap: wrap;
    gap: 16px;

    margin-bottom: 30px;

}

.eb-event-meta > div,
.eb-event-info > div {

    background: #f6f6f6;

    border-left: 4px solid #b60000;

    padding: 14px 18px;

    font-weight: 700;

}

/************************************************************
 Two Column Layout
************************************************************/

.eb-row,
.eb-event-layout {

    display: grid;

    grid-template-columns: 1fr 340px;

    gap: 35px;

}

/************************************************************
 Description
************************************************************/

.eb-description,
.eb-event-description {

    background: #fff;

    border: 1px solid #ddd;

    border-top: 6px solid #b60000;

    padding: 35px;

    box-shadow: 0 6px 20px rgba(0,0,0,.08);

}

.eb-description h2,
.eb-description h3 {

    font-size: 1.8rem;

    text-transform: uppercase;

    margin-top: 40px;

    margin-bottom: 18px;

    color: #111;

}

.eb-description p {

    line-height: 1.8;

    font-size: 1.05rem;

    color: #333;

}

.eb-description ul {

    padding-left: 24px;

}

.eb-description li {

    margin-bottom: 10px;

}

/************************************************************
 Registration Sidebar
************************************************************/

.eb-sidebar,
.eb-right-col {

    position: sticky;

    top: 110px;

    align-self: start;

}

.eb-register-box {

    background: #fff;

    border: 1px solid #ddd;

    border-top: 6px solid #111;

    padding: 30px;

    box-shadow: 0 8px 24px rgba(0,0,0,.10);

}

/************************************************************
 Price
************************************************************/

.eb-price {

    font-size: 2.8rem;

    font-weight: 900;

    color: #b60000;

    margin-bottom: 20px;

}

/************************************************************
 Register Button
************************************************************/

.eb-register-button,
.btn-primary {

    width: 100%;

    padding: 18px;

    background: #b60000 !important;

    border: none;

    color: white;

    text-transform: uppercase;

    font-weight: 900;

    font-size: 1.05rem;

    border-radius: 0;

}

.eb-register-button:hover {

    background: #850000 !important;

}

/************************************************************
 Information Table
************************************************************/

.eb-table {

    width: 100%;

    border-collapse: collapse;

}

.eb-table td {

    padding: 14px;

    border-bottom: 1px solid #eee;

}

.eb-table td:first-child {

    font-weight: 700;

    width: 170px;

    color: #666;

}

/************************************************************
 Speaker Blocks
************************************************************/

.eb-speaker {

    display: flex;

    gap: 18px;

    margin-bottom: 25px;

}

.eb-speaker img {

    width: 90px;

    height: 90px;

    object-fit: cover;

    border-radius: 50%;

}

/************************************************************
 Mobile
************************************************************/

@media (max-width:980px){

.eb-row,
.eb-event-layout{

grid-template-columns:1fr;

}

.eb-sidebar,
.eb-right-col{

position:static;

}

#eb-event-page{

padding:18px;

}

.eb-description{

padding:22px;

}

}
