/* Reset */
* {margin:0; padding:0;}

/* Container */
.month-buttons {
  max-width: 400px;
  margin: 0 auto;
  padding: 10px 0;
}

/* Base button style */
.month-btn {
  display: block;
  background: #2b6dcc;
  padding: 14px 18px;
  margin: 8px 0;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  position: relative;
}

/* RIGHT arrow circle */
.arrow-circle-right {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1em;
  color: #ffffff;
}

/* LEFT arrow circle */
.arrow-circle-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1em;
  color: #ffffff;
}

/* Indent text when arrow is on the left */
.month-btn.left-arrow {
  padding-left: 54px;   /* 18px normal padding + 28px circle + 8px spacing */
}

/* Hover effect */
.month-btn:hover {
  background: #1f5ab0;
}

@media screen {

  /* Backdrop */
  #modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    z-index: 9999;
  }

  /* Modal container */
  #modal-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    width: 90%;
    max-width: 650px;

    /* KEY FIXES */
    max-height: 90vh;      /* modal never exceeds screen height */
    overflow-y: auto;      /* modal scrolls if content is tall */
    padding: 0;            /* no padding so iframe can fill space */

    border-radius: 12px;
    display: none;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    box-sizing: border-box;
  }

  /* Iframe fills modal and grows with content */
  #modal-iframe {
    width: 100%;
    height: auto;          /* iframe grows naturally */
    min-height: 200px;     /* prevents tiny iframe */
    border: none;
    display: block;
  }

  /* Close button */
  #modal-close {
    width: 100%;
    padding: 12px;
    background: #2b6dcc;
    color: #fff;
    border: none;
    font-size: 1em;
    cursor: pointer;
    border-radius: 0 0 12px 12px;
  }

  #modal-close:hover {
    background: #1f5ab0;
  }

}

/* ============================================================
   CARD-BASED SELECTOR HUB & SELECT STYLES (Pillar 3)
   ============================================================ */

/* Container */
.selector-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 20px auto;
    max-width: 680px;
    padding: 10px 0;
}

/* Selector Card */
.selector-card {
    background: #ffffff;
    border: 1px solid #d4e2f5;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    box-sizing: border-box;
}

.selector-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(43, 109, 204, 0.12);
    border-color: #2b6dcc;
    background: #f8faff !important;
    color: inherit !important;
}

/* Card Title */
.selector-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.3;
}

/* Card Subtitle/Description */
.selector-card-desc {
    font-size: 0.88rem;
    color: #4a5568;
    line-height: 1.45;
    margin-bottom: 14px;
    flex-grow: 1;
}

/* Card Action Button */
.selector-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: #eef4fc;
    color: #2b6dcc !important;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
}

.selector-card:hover .selector-card-action {
    background: #2b6dcc;
    color: #ffffff !important;
}

.selector-card-action .action-arrow {
    transition: transform 0.2s ease;
}

.selector-card:hover .selector-card-action .action-arrow {
    transform: translateX(3px);
}

