/* FTR Kongre Program — frontend (Excel'e uygun renk paleti) */
.fkp-wrapper {
    /* Excel colors */
    --fkp-header-bg: #FFE598;
    --fkp-panel-bg: #FFFFFF;
    --fkp-panel-fg: #000000;
    --fkp-satellite-bg: #FBE4D5;
    --fkp-coffee-bg: #FFF2CB;
    --fkp-coffee-fg: #B15D24;
    --fkp-lunch-bg: #FFF2CB;
    --fkp-lunch-fg: #C00000;
    --fkp-ceremony-bg: #E2EEDA;
    --fkp-ceremony-fg: #0070C0;
    --fkp-oral-bg: #E2EEDA;
    --fkp-oral-fg: #0070C0;
    --fkp-border: #7F7F7F;
    --fkp-border-light: #BFBFBF;
    --fkp-tab-active: #0070C0;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #000;
    max-width: 100%;
    margin: 20px 0;
    box-sizing: border-box;
}
.fkp-wrapper *, .fkp-wrapper *::before, .fkp-wrapper *::after { box-sizing: border-box; }

/* Outer card wrapper */
.fkp-wrapper .fkp-panel,
.fkp-wrapper .fkp-tabs {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), inset 0 0 0 1px rgba(255,255,255,0.6);
}

/* Tabs */
.fkp-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    padding: 10px 12px;
    background: #FAFAFA;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
}
.fkp-tab {
    background: #FFFFFF;
    color: #000;
    border: 1px solid var(--fkp-border-light);
    padding: 6px 14px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.fkp-tab:hover { background: #FFE598; }
.fkp-tab.active { background: var(--fkp-tab-active); color: #FFFFFF; border-color: var(--fkp-tab-active); }

.fkp-panel { display: none; padding: 12px; border-top: none; border-radius: 0 0 16px 16px; }
.fkp-panel.active { display: block; }

/* Day container — as a table */
.fkp-day {
    display: table;
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--fkp-border);
    border-radius: 4px;
    overflow: hidden;
}

/* Row = two-column: time | content */
.fkp-row {
    display: table-row;
}
.fkp-row > .fkp-time,
.fkp-row > .fkp-content {
    display: table-cell;
    padding: 8px 12px;
    border: 1px solid var(--fkp-border);
    vertical-align: middle;
    font-weight: 700;
}
.fkp-time {
    width: 130px;
    text-align: center;
    white-space: nowrap;
}
.fkp-content { line-height: 1.4; }

/* Break rows — Excel-colored */
.fkp-row-break.fkp-break-satellite > .fkp-time,
.fkp-row-break.fkp-break-satellite > .fkp-content {
    background: var(--fkp-satellite-bg); color: #000;
}
.fkp-row-break.fkp-break-coffee > .fkp-time,
.fkp-row-break.fkp-break-coffee > .fkp-content {
    background: var(--fkp-coffee-bg); color: var(--fkp-coffee-fg);
}
.fkp-row-break.fkp-break-lunch > .fkp-time,
.fkp-row-break.fkp-break-lunch > .fkp-content {
    background: var(--fkp-lunch-bg); color: var(--fkp-lunch-fg);
}
.fkp-row-break.fkp-break-ceremony > .fkp-time,
.fkp-row-break.fkp-break-ceremony > .fkp-content {
    background: var(--fkp-ceremony-bg); color: var(--fkp-ceremony-fg);
}
.fkp-row-break.fkp-break-oral > .fkp-time,
.fkp-row-break.fkp-break-oral > .fkp-content {
    background: var(--fkp-oral-bg); color: var(--fkp-oral-fg);
}
.fkp-row-break.fkp-break-other > .fkp-time,
.fkp-row-break.fkp-break-other > .fkp-content {
    background: #F2F2F2; color: #000;
}

/* Session rows — white background */
.fkp-row-session > .fkp-time,
.fkp-row-session > .fkp-content {
    background: var(--fkp-panel-bg); color: var(--fkp-panel-fg);
}

/* Panel header line: title + optional PANEL marker */
.fkp-panel-marker {
    display: block;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.fkp-session-title { font-size: 14px; font-weight: 700; }
.fkp-session-meta { margin-top: 4px; font-weight: 400; }
.fkp-session-meta > div { padding: 1px 0; }
.fkp-meta-label { font-weight: 700; }

/* Topic sub-rows (nested inside session) */
.fkp-topics { margin-top: 4px; padding-left: 0; list-style: none; }
.fkp-topic { padding: 3px 0; border-top: 1px dashed var(--fkp-border-light); }
.fkp-topic-title { font-weight: 700; }
.fkp-topic-speaker { font-weight: 400; color: #333; }

/* Course card (single row, single course) */
.fkp-course-name { font-size: 14px; font-weight: 700; display: inline-block; }
.fkp-course-kontenjan {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    background: #FFE598;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid var(--fkp-border-light);
}
.fkp-course-meta { margin-top: 4px; font-weight: 400; }
.fkp-course-meta > div { padding: 1px 0; }

/* Multiple parallel cells in one time slot (e.g., 10 courses at 13:30) — stack in content column */
.fkp-multi-cells {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.fkp-multi-cells > .fkp-cell-wrap {
    padding: 6px 0;
    border-top: 1px solid var(--fkp-border-light);
}
.fkp-multi-cells > .fkp-cell-wrap:first-child {
    border-top: none;
    padding-top: 0;
}
.fkp-multi-cells > .fkp-cell-wrap:last-child {
    padding-bottom: 0;
}

.fkp-empty { padding: 20px; background: #F2F2F2; text-align: center; color: #666; }

/* Satellite (rich) — logo on right */
.fkp-satellite-rich > .fkp-content { padding: 10px 14px; }
.fkp-sat-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}
.fkp-sat-details { flex: 1; min-width: 0; }
.fkp-sat-header {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 2px;
}
.fkp-sat-title {
    font-weight: 700;
    font-size: 13px;
    margin: 2px 0 6px;
    color: inherit;
}
.fkp-sat-line { font-weight: 400; font-size: 13px; padding: 1px 0; }
.fkp-sat-line .fkp-meta-label { font-weight: 700; }
.fkp-sat-logo {
    flex: 0 0 auto;
    max-width: 160px;
}
.fkp-sat-logo img {
    display: block;
    max-width: 100%;
    max-height: 60px;
    height: auto;
    width: auto;
}
@media (max-width: 600px) {
    .fkp-sat-inner { flex-direction: column; align-items: flex-start; }
    .fkp-sat-logo { align-self: flex-end; }
}

/* Accordion mode (Kurslar) — referans site tarzı */
.fkp-accordion-time-header {
    padding: 8px 0;
    margin: 0 0 8px;
    font-weight: 700;
    font-size: 14px;
    color: #000;
}
.fkp-accordion { display: block; }
.fkp-acc-item {
    margin: 0 0 6px;
    background: transparent;
}

/* Aggressive reset — override any WP/tema button styling */
.fkp-wrapper .fkp-acc-head {
    all: unset;
    box-sizing: border-box;
    width: 100%;
    display: flex !important;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #F5F5F5;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none;
    transition: background 0.15s;
}
.fkp-wrapper .fkp-acc-head:hover,
.fkp-wrapper .fkp-acc-head:hover:focus {
    background: #ECECEC !important;
    color: #000 !important;
}
.fkp-wrapper .fkp-acc-head:focus,
.fkp-wrapper .fkp-acc-head:focus-visible,
.fkp-wrapper .fkp-acc-head:active,
.fkp-wrapper .fkp-acc-head:focus:not(:hover) {
    background: #F5F5F5 !important;
    color: #000 !important;
    outline: none !important;
    box-shadow: none !important;
}
.fkp-acc-item.fkp-acc-open .fkp-acc-head,
.fkp-acc-item.fkp-acc-open .fkp-acc-head:focus,
.fkp-acc-item.fkp-acc-open .fkp-acc-head:hover {
    background: #F5F5F5 !important;
    color: #000 !important;
}

.fkp-acc-title {
    flex: 1;
    color: #000 !important;
    display: inline;
}
.fkp-acc-kontenjan {
    color: #6B7280 !important;
    font-size: 13px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
    margin-left: 4px;
}

/* Chevron on the right */
.fkp-acc-icon {
    width: 16px; height: 16px;
    flex: 0 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4B5563 !important;
    margin-left: auto;
    transition: transform 0.2s ease;
}
.fkp-acc-icon::before {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.2s ease;
}
.fkp-acc-item.fkp-acc-open .fkp-acc-icon::before {
    transform: rotate(-135deg) translate(-2px, -2px);
}

.fkp-acc-body {
    padding: 16px 20px 20px 40px;
    background: #FFFFFF;
    font-size: 14px;
    line-height: 1.7;
    color: #1F2937;
}
.fkp-acc-meta {
    padding: 0 0 10px;
    margin: 0 0 12px;
    border-bottom: 1px solid #F3F4F6;
}
.fkp-acc-meta > div { padding: 2px 0; font-size: 14px; color: #374151; }

.fkp-acc-section { margin-top: 16px; }
.fkp-acc-section:first-child { margin-top: 0; }
.fkp-acc-section-title {
    margin: 0 0 6px;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    text-transform: none;
    letter-spacing: 0;
    border: none;
}
.fkp-acc-section-body {
    color: #1F2937;
    white-space: pre-line;
}
/* Rich (WYSIWYG) content — let HTML control layout */
.fkp-acc-section-body.fkp-rich { white-space: normal; }
.fkp-acc-section-body.fkp-rich p { margin: 0 0 8px; }
.fkp-acc-section-body.fkp-rich p:last-child { margin-bottom: 0; }
.fkp-acc-section-body.fkp-rich ul,
.fkp-acc-section-body.fkp-rich ol { margin: 0 0 8px 20px; padding: 0; }
.fkp-acc-section-body.fkp-rich li { margin: 0 0 4px; }
.fkp-acc-section-body.fkp-rich strong,
.fkp-acc-section-body.fkp-rich b { font-weight: 700; }

@media (max-width: 600px) {
    .fkp-wrapper .fkp-acc-head { padding: 14px 16px; gap: 12px; font-size: 13px; }
    .fkp-acc-body { padding: 14px 16px 16px 28px; font-size: 13px; }
}

@media (max-width: 720px) {
    .fkp-day, .fkp-row, .fkp-row > .fkp-time, .fkp-row > .fkp-content { display: block; width: 100%; }
    .fkp-time { border-bottom: none; }
}
