/* === MC Rules Accordion === */

.mc-rules-accordion {
  max-width: 100%;
  margin: 0 0 30px 0;
}

/* Header block */
.mc-rules-header {
  margin-bottom: 28px;
}

.mc-rules-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin: 0 0 12px;
}

.mc-rules-header p {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin: 0;
}

/* Hide old CTA block from page content on rules page */
body.page-id-30669 #content_pravilnik .social-wrapper {
  display: none !important;
}

/* Tabs */
.mc-rules-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
}

.mc-rules-tab {
  flex: 1;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s;
  background: #e8e4da;
  color: #777;
  outline: none;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.mc-rules-tab:first-child {
  border-top-left-radius: 4px;
}

.mc-rules-tab:last-child {
  border-top-right-radius: 4px;
}

.mc-rules-tab--active {
  background: #c45117;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.mc-rules-tab:hover:not(.mc-rules-tab--active) {
  background: #d9d5ca;
  color: #555;
}

/* Accordion items */
.mc-accordion {
  border-bottom: 1px solid #ddd;
  background: #fff;
}

.mc-accordion:first-child {
  border-top: none;
}

.mc-accordion__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
  font-family: inherit;
}

.mc-accordion__toggle:hover {
  background: #faf8f4;
}

.mc-accordion__title {
  font-size: 17px;
  font-weight: 600;
  color: #333;
}

.mc-accordion__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f0ede6;
  color: #888;
  transition:
    transform 0.3s,
    background 0.3s,
    color 0.3s;
}

.mc-accordion--open .mc-accordion__icon {
  transform: rotate(180deg);
  background: #c45117;
  color: #fff;
}

.mc-accordion__body {
  overflow: hidden;
  height: 0;
  transition: height 0.35s ease;
  padding: 0 20px;
  box-sizing: content-box;
}

.mc-accordion--open .mc-accordion__body {
  /* height set by JS */
}

.mc-accordion__body p {
  margin: 0 0 12px;
  line-height: 1.6;
  color: #444;
}

.mc-accordion__body ul,
.mc-accordion__body ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

/* Panels */
.mc-rules-panel {
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 600px) {
  .mc-rules-tab {
    font-size: 14px;
    padding: 12px 10px;
  }

  .mc-accordion__toggle {
    padding: 14px 15px;
  }

  .mc-accordion__title {
    font-size: 15px;
  }
}
