/*
 * kdorcustom.css
 * ksrevenue.gov Bootstrap 5.3.3 migration
 * Companion to kdor.css — ONLY styles not already in kdor.css live here.
 * kdor.css handles: header, search, nav, dropdowns, footer, content-area base.
 * This file handles: buttons, accordion, tables, notices, homepage layout,
 *                    image utilities, form utilities, print.
 */

/* ============================================================
   BUTTONS — override Bootstrap default blue with kdor navy/gold
   ============================================================ */
.btn-primary {
  background-color: var(--kdor-blue);
  border-color: var(--kdor-blue);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:visited {
  background-color: var(--kdor-gold-dark);
  border-color: var(--kdor-gold-dark);
  color: #fff;
}

/* No underline on any link inside a button */
.btn,
.btn:hover,
.btn:focus,
.btn:visited,
.express-btn,
.express-btn:hover,
.express-btn-inline,
.express-btn-inline:hover {
  text-decoration: none !important;
}

/* ============================================================
   ACCORDION (kdor-accordion)
   kdor.css defines base .kdor-accordion styles.
   Nothing additional needed here unless overriding.
   ============================================================ */

/* ============================================================
   TABLES (kdor-table)
   ============================================================ */
.kdor-table {
  width: 100%;
  font-size: .9rem;
  border-collapse: collapse;
  margin-bottom: 0;
}
.kdor-table thead th {
  background-color: var(--kdor-blue);
  color: #fff;
  font-weight: 700;
  padding: .65rem .85rem;
  vertical-align: bottom;
  border-bottom: none;
}
.kdor-table tbody td,
.kdor-table tbody th {
  padding: .55rem .85rem;
  border-top: 1px solid #dde3ec;
  vertical-align: top;
}
.kdor-table tbody tr:nth-child(even) { background-color: #f4f7fb; }
.kdor-table tbody tr:hover { background-color: #e8edf5; }

/* ============================================================
   HOMEPAGE LAYOUT
   kdor.css sets #content-area { max-width:960px; padding:30px 20px 40px; }
   Divisional home pages need full-width with no top padding.
   Apply class="kdor-homepage" to <main id="content-area"> on home pages.
   ============================================================ */
main.kdor-homepage {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Express heading + button grid — centered, max 960px */
.kdor-homepage-express {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 20px 1.5rem;
  text-align: center;
}

.express-heading {
  font-size: 1.6rem;
  color: var(--kdor-blue);
  font-weight: 700;
  margin-bottom: 1rem;
}
.express-heading .express-word { color: var(--kdor-gold); }

.express-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background-color: var(--kdor-blue);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .05em;
  border: none;
  text-decoration: underline;
  transition: background-color .2s, color .2s;
}
.express-btn:hover,
.express-btn:focus  { background-color: var(--kdor-gold); color: #fff; text-decoration: underline; }
.express-btn:visited { color: #fff; }

/* Full-width notice band — direct child of main.kdor-homepage */
.notice-band {
  width: 100%;
  display: block;
  background-color: var(--kdor-blue);
  color: #fff;
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.notice-band h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 1rem;
  color: #fff !important;
}
.notice-band p { color: #fff; margin-bottom: 0; }
.notice-band a,
.notice-band a:visited  { color: #fff; text-decoration: underline; }
.notice-band a:hover,
.notice-band a:focus    { color: var(--kdor-gold); }

/* Two-card (image+text) section — centered, max 960px */
.kdor-homepage-cards {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* ============================================================
   CONTENT IMAGE SIZING UTILITIES
   ============================================================ */
.img-content-sm   { max-width: 160px; }
.img-content-md   { max-width: 280px; }
.img-content-lg   { max-width: 320px; }
.img-content-full { max-width: 100%; }
.img-border       { border: 1px solid #ccc; }

/* ============================================================
   FACEBOOK IFRAME EMBED
   ============================================================ */
.fb-embed {
  border: none;
  overflow: hidden;
  display: block;
}

/* ============================================================
   FORM / CALCULATOR UTILITIES
   ============================================================ */
.text-right-input  { text-align: right; }
.text-center-block { text-align: center; }
.text-italic       { font-style: italic; }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  #site-header,
  #main-nav,
  #site-footer,
  .skip-nav { display: none !important; }
  #content-area { margin: 0; padding: 0; }
}

/* ============================================================
   HOMEPAGE BAND (background section behind feature cards)
   ============================================================ */
.kdor-homepage-band {
  background-color: #f4f7fb;
  padding: 2rem 0;
  width: 100%;
}

/* Express button used inline (not full-width block) */
.express-btn-inline {
  display: inline-block;
  padding: .6rem 1.5rem;
  background-color: var(--kdor-blue);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .05em;
  border: none;
  text-decoration: underline;
  transition: background-color .2s, color .2s;
}
.express-btn-inline:hover,
.express-btn-inline:focus  { background-color: var(--kdor-gold); color: #fff; }
.express-btn-inline:visited { color: #fff; }

/* Card title size used on homepage feature cards */
.card-title-sm { font-size: 1rem; font-weight: 700; }

/* Homepage section h3 subheadings (Personal Tax Sections) */
.homepage-section-h3 { font-size: 1rem; font-weight: 700; }

/* Tax Institute band — image+text inside notice-band */
.notice-band-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  text-align: left;
}
.notice-band-inner-text { flex: 1; min-width: 200px; }
.notice-band-inner-text h2 { color: #fff; font-size: 1.2rem; font-weight: 700; margin-bottom: .75rem; }
.notice-band-inner-text p  { color: #fff; margin-bottom: .75rem; }
.notice-band-inner-text a,
.notice-band-inner-text a:visited { color: var(--kdor-gold); text-decoration: underline; }
.notice-band-inner-img { flex: 0 0 auto; }
.notice-band-inner-img img { max-width: 280px; }

/* Appointment banner spacing */
.kdor-appt-banner { padding: 1rem 20px .5rem; text-align: center; }

/* ============================================================
   GOLD CHECKMARK LISTS
   Use class="kdor-checklist" on <ul> for gold ✓ bullets
   ============================================================ */
.kdor-checklist {
  list-style: none;
  padding-left: 0;
}
.kdor-checklist li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: .4rem;
  line-height: 1.5;
}
.kdor-checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--kdor-gold);
  font-weight: 700;
  font-size: 1rem;
}

/* ============================================================
   FLIP CARDS (dovindex.html)
   CSS-only 3D flip on hover — no JS required
   ============================================================ */
.kdor-flip-card {
  perspective: 1000px;
  height: 350px;
}
.kdor-flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}
.kdor-flip-card:hover .kdor-flip-card-inner {
  transform: rotateY(180deg);
}
/* Vertical flip variant */
.kdor-flip-card-vertical:hover .kdor-flip-card-inner {
  transform: rotateX(180deg);
}
.kdor-flip-front,
.kdor-flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.kdor-flip-front {
  background: #fff;
}
.kdor-flip-front img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #fff;
}
.kdor-flip-back {
  background: var(--kdor-blue);
  color: #fff;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}
.kdor-flip-card-vertical .kdor-flip-back {
  transform: rotateX(180deg);
}
.kdor-flip-back h4 {
  color: #fff;
  font-weight: 700;
  margin-bottom: .75rem;
  font-size: 1.1rem;
}
.kdor-flip-back p {
  color: rgba(255,255,255,.9);
  font-size: .9rem;
  margin-bottom: 1rem;
}
.kdor-flip-back .btn {
  background: #fff;
  color: var(--kdor-blue);
  font-weight: 700;
  border: none;
  margin-bottom: .5rem;
  display: block;
  width: 100%;
}
.kdor-flip-back .btn:hover {
  background: var(--kdor-gold);
  color: #fff;
}

/* Navy feature card (DOV plate replacement, etc.) */
.card-navy {
  background-color: var(--kdor-blue);
}

/* Center-align buttons inside all cards site-wide, keep text left-aligned */
.card-body {
  text-align: left;
}
.card-body .btn {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

/* Homepage feature card borders — blue border on white cards, gold on navy cards */
.kdor-homepage-band .card {
  border: 2px solid var(--kdor-blue) !important;
}
.kdor-homepage-band .card.card-navy {
  border: 2px solid var(--kdor-gold) !important;
}

/* ============================================================
   ABC ONLINE SERVICES BAND — gold background
   ============================================================ */
.kdor-abc-services-band {
  background-color: var(--kdor-gold);
  width: 100%;
  margin-top: 2rem;
}
.kdor-abc-services-band h3 {
  color: var(--kdor-blue);
}
.kdor-abc-services-band p {
  color: var(--kdor-blue);
}
.kdor-abc-services-band a {
  color: var(--kdor-blue);
  font-weight: 600;
  text-decoration: underline;
}
.kdor-abc-services-band a:hover {
  color: var(--kdor-blue-dark);
}

/* ============================================================
   PAGE-SPECIFIC BAND BACKGROUND IMAGES
   ============================================================ */
.kdor-homepage-band-alcohol {
  background-image: url(img/alcohol.jpg);
  background-size: cover;
  background-position: center;
}
.kdor-homepage-band-highway {
  background-image: url(img/KSHighway57.jpg);
  background-size: cover;
  background-position: center;
}
.kdor-homepage-band-windmill {
  background-image: url(img/windmill.jpg);
  background-size: cover;
  background-position: center;
}
.kdor-homepage-band-coupe {
  background-image: url(img/coupe-driving.jpg);
  background-size: cover;
  background-position: center;
}
.kdor-homepage-band-kansas {
  background-image: url(img/kansas.png);
  background-size: cover;
  background-position: center;
}

/* ============================================================
   ABC ONLINE SERVICES BAND — blue top border
   ============================================================ */
.kdor-abc-services-band {
  border-top: 4px solid var(--kdor-blue);
}

/* ============================================================
   INDEX.HTML SPECIFIC
   ============================================================ */

/* Alert bar */
.kdor-alert-bar {
  background-color: var(--kdor-gold);
  color: var(--kdor-blue);
  text-align: center;
  padding: .6rem 1rem;
  font-size: .88rem;
  width: 100%;
}
.kdor-alert-bar a { color: var(--kdor-blue); font-weight: 700; }
.kdor-alert-bar a:hover { color: var(--kdor-blue-dark); }

/* News band — Capitol background */
.kdor-news-band {
  background-size: cover;
  background-position: center;
  width: 100%;
  padding: 2.5rem 0;
  margin-top: 0;
  position: relative;
  z-index: 0;
}
.kdor-news-band h2 { color: #fff; font-size: 1.6rem; }
.kdor-news-band h3 { font-size: 1rem; font-weight: 600; }
.kdor-news-band h3 a { color: #fff; }
.kdor-news-band h3 a:hover { color: var(--kdor-gold); }
.kdor-news-band p { color: rgba(255,255,255,.75); font-size: .85rem; }
.kdor-news-band article a img { opacity: .9; }
.kdor-news-band article a img:hover { opacity: 1; }

/* News article heading */
.kdor-news-heading { font-size: 1rem; font-weight: 600; }

/* Popular links feature boxes */
.kdor-feature-box {
  margin-bottom: 1.25rem;
}
.kdor-feature-title {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .15rem;
  color: var(--kdor-blue);
  line-height: 1.4;
}
.kdor-feature-icon {
  color: var(--kdor-gold);
  font-size: 1.3rem;
  font-style: normal;
  margin-right: .3rem;
  vertical-align: middle;
}
.kdor-feature-box p {
  font-size: .85rem;
  margin-bottom: 0;
  color: var(--kdor-text);
  padding-left: 1.7rem;
}

/* Secretary title label */
.kdor-secretary-title {
  color: var(--kdor-blue);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* POPULAR LINKS gold word */
.text-kdor-gold { color: var(--kdor-gold); }


/* ============================================================
   INDEX.HTML — CAROUSEL
   Both slides display at natural width; min-height ensures
   the shorter slide doesn't collapse
   ============================================================ */
#kdorCarousel {
  width: 100%;
}
/* Fixed slide height — background image fills it, no reflow between slides */
#kdorCarousel .carousel-item {
  height: 480px;
}
#kdorCarousel .carousel-item > img,
#kdorCarousel .carousel-item > a > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Caption button images — sized like buttons, not billboards */
#kdorCarousel .carousel-caption {
  bottom: 2rem;
}
#kdorCarousel .carousel-caption img {
  max-width: 380px;
  width: auto;
  height: auto;
}
@media (max-width: 768px) {
  #kdorCarousel .carousel-item { height: 300px; }
  #kdorCarousel .carousel-caption img { max-width: 240px; }
  #kdorCarousel .carousel-caption { bottom: 1rem; }
}

/* ============================================================
   INDEX.HTML — EXPRESS BUTTONS equal height per row
   ============================================================ */
.kdor-homepage-express .row {
  align-items: stretch;
}
.kdor-homepage-express .col-12 {
  display: flex;
}
.kdor-homepage-express .express-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   INDEX.HTML — POPULAR LINKS star alignment
   Star aligns to top of text, not center (matches original)
   ============================================================ */
.kdor-feature-box {
  align-items: flex-start;
}
.kdor-feature-icon {
  margin-top: .15rem;
  flex-shrink: 0;
}



/* ============================================================
   INDEX.HTML — NEWS DATE
   ============================================================ */
.kdor-news-date {
  color: rgba(255,255,255,.8);
  font-size: .85rem;
}

/* ============================================================
   SOCIAL ICONS — text-based, no icon font required
   ============================================================ */
.kdor-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255,255,255,.15);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s;
}
.social-links a:hover .kdor-social-icon {
  background-color: var(--kdor-gold);
  color: var(--kdor-blue);
}

/* ============================================================
   GLOBAL BUTTON ROUNDING — softer modern look
   ============================================================ */
.btn,
.express-btn,
.express-btn-inline,
.btn-primary,
.btn-light,
.btn-secondary {
  border-radius: 6px !important;
}

/* ============================================================
   GLOBAL ACCORDION ROUNDING
   ============================================================ */
.accordion-item {
  border-radius: 6px !important;
  overflow: hidden;
}
.accordion-button {
  border-radius: 6px !important;
}
.accordion-button:not(.collapsed) {
  border-radius: 6px 6px 0 0 !important;
}
.kdor-accordion .accordion-item {
  border-radius: 6px !important;
  overflow: hidden;
  margin-bottom: 3px;
}

/* ============================================================
   HOME ACCORDION
   ============================================================ */
/* THE FIX: kdor.css sets "#content-area h2 { margin: 28px 0 14px }" which
   outranks Bootstrap's .accordion-header via ID specificity. Accordion
   headers ARE h2 elements — that margin was the mystery gap. This selector
   matches the ID specificity and zeroes it for all accordions site-wide. */
#content-area h2.accordion-header {
  margin-top: 0;
  margin-bottom: 0;
}

#homeAccordion .accordion-item {
  margin-bottom: 4px;
  border-radius: 6px !important;
  overflow: hidden;
}
#homeAccordion .accordion-button {
  font-size: .78rem !important;
  letter-spacing: .04em;
  padding: .65rem 1rem;
}

/* Notice-box heading (used when h1 sits inside a kdor-notice box) */
.kdor-notice-heading {
  font-size: 1.4rem;
  font-weight: 700;
}

/* ============================================================
   OFFICE STATUS INDICATORS (open/closed)
   Used on appointment/office-status pages
   ============================================================ */
.open {
  background-color: #05FB4E;
  color: #000;
}
.closed {
  background-color: #FF0707;
  color: #fff;
}
