/* =========================================================
   ACE BATT - DOWNLOADS PAGE
   FINAL FIGMA 1:1
   WordPress / Kadence / Custom HTML
   ========================================================= */


/* =========================================================
   01. FONTS
   Headings: Sofia Sans Extra Condensed
   UI / body / buttons: Inter
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Sofia+Sans+Extra+Condensed:wght@500;600;700;800&display=swap");


/* =========================================================
   02. DESIGN VARIABLES
   Κοινές τιμές για όλο το Downloads section
   ========================================================= */

:root {

  --dl-primary: #002A5C;
  --dl-red: #C90000;
  --dl-green: #2D9A27;

  --dl-white: #FFFFFF;
  --dl-black: #1F1F1F;
  --dl-text: #3C3C3C;
  --dl-muted: #537083;

  --dl-border: rgba(83, 112, 131, 0.40);

  --dl-bg: #F3F4F6;

  --dl-font-heading:
    "Sofia Sans Extra Condensed",
    "Arial Narrow",
    Arial,
    sans-serif;

  --dl-font-body:
    "Inter",
    Arial,
    sans-serif;

  /* Figma dimensions */
  --dl-outer-width: 1284px;
  --dl-content-width: 1260px;

  --dl-filter-width: 157px;
  --dl-main-width: 1055px;

  --dl-gap: 48px;

  --dl-radius-card: 12px;
  --dl-radius-pill: 999px;
}


/* =========================================================
   03. KADENCE SAFE BASE
   Αποτρέπει unwanted margins / overflow
   ========================================================= */

html,
body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body {
  font-family: var(--dl-font-body) !important;
  color: var(--dl-text) !important;
}

.downloads-section,
.downloads-section *,
.downloads-section *::before,
.downloads-section *::after {
  box-sizing: border-box !important;
}

.entry-content .downloads-section {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.entry-content .downloads-section a {
  text-decoration: none !important;
}


/* =========================================================
   04. MAIN SECTION
   FIGMA:
   72px top
   72px bottom
   12px horizontal
   ========================================================= */

html body .downloads-section {
  width: 100vw !important;
  max-width: none !important;

  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;

  padding: 72px 12px !important;

  background: var(--dl-bg) !important;
}


/* =========================================================
   05. MAIN CONTAINER
   Figma frame: 1284px
   Inner usable content: 1260px
   ========================================================= */

html body
.downloads-section
.downloads-container {
  width: 100% !important;
  max-width: 1260px !important;

  margin-left: auto !important;
  margin-right: auto !important;

  padding: 0 !important;
}


/* =========================================================
   06. HEADING BLOCK
   ========================================================= */

html body
.downloads-section
.downloads-heading {
  width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;
}


/* =========================================================
   07. MAIN TITLE
   ========================================================= */

html body
.downloads-section
.downloads-heading h1 {
  margin: 0 !important;
  padding: 0 !important;

  font-family: var(--dl-font-heading) !important;

  font-size: 48px !important;
  font-weight: 800 !important;

  line-height: 1 !important;
  letter-spacing: -0.3px !important;

  color: var(--dl-black) !important;
}


/* =========================================================
   08. RED TITLE LINE
   ========================================================= */

html body
.downloads-section
.downloads-title-line {
  display: block !important;

  width: 48px !important;
  height: 3px !important;

  margin-top: 24px !important;

  background-color: var(--dl-red) !important;

  border-radius: 999px !important;
}


/* =========================================================
   09. INTRO DESCRIPTION
   ========================================================= */

html body
.downloads-section
.downloads-heading p {
  max-width: 640px !important;

  margin: 24px 0 0 !important;

  padding: 0 !important;

  font-family: var(--dl-font-body) !important;

  font-size: 16px !important;
  font-weight: 400 !important;

  line-height: 1.45 !important;

  color: var(--dl-text) !important;
}


/* =========================================================
   10. MAIN DOWNLOADS LAYOUT

   FIGMA:
   157px filters
   + 48px gap
   + 1055px files
   = 1260px total
   ========================================================= */

html body
.downloads-section
.downloads-layout {
  width: 100% !important;

  display: grid !important;

  grid-template-columns:
    157px minmax(0, 1055px) !important;

  column-gap: 48px !important;

  align-items: start !important;

  margin-top: 48px !important;

  padding: 0 !important;
}


/* =========================================================
   11. FILTERS SIDEBAR
   Exact Figma width: 157px
   ========================================================= */

html body
.downloads-section
.downloads-filters {
  width: 157px !important;
  max-width: 157px !important;

  min-width: 157px !important;

  margin: 0 !important;
  padding: 0 !important;
}


/* =========================================================
   12. FILTER GROUP
   ========================================================= */

html body
.downloads-section
.downloads-filter-group {
  display: flex !important;
  flex-direction: column !important;

  gap: 18px !important;

  margin: 0 !important;
  padding: 0 !important;
}


/* =========================================================
   13. FILTER TITLES
   ========================================================= */

html body
.downloads-section
.downloads-filter-group h3 {
  margin: 0 0 2px !important;
  padding: 0 !important;

  color: var(--dl-black) !important;

  font-family: var(--dl-font-body) !important;

  font-size: 15px !important;
  font-weight: 800 !important;

  line-height: 1.2 !important;
}


/* =========================================================
   14. RADIO LABEL
   ========================================================= */

html body
.downloads-section
.downloads-radio {
  display: flex !important;

  align-items: center !important;

  gap: 10px !important;

  margin: 0 !important;

  color: var(--dl-text) !important;

  font-family: var(--dl-font-body) !important;

  font-size: 14px !important;
  font-weight: 400 !important;

  line-height: 1 !important;

  cursor: pointer !important;
}


/* Hide native radio */

html body
.downloads-section
.downloads-radio input {
  position: absolute !important;

  opacity: 0 !important;

  pointer-events: none !important;
}


/* Custom circle */

html body
.downloads-section
.downloads-radio span {
  width: 20px !important;
  height: 20px !important;

  min-width: 20px !important;

  display: inline-flex !important;

  align-items: center !important;
  justify-content: center !important;

  border:
    2px solid rgba(83, 112, 131, 0.45) !important;

  border-radius: 50% !important;

  background: transparent !important;
}


/* Active radio */

html body
.downloads-section
.downloads-radio input:checked + span,

html body
.downloads-section
.downloads-radio.is-active span {
  border-color: var(--dl-primary) !important;
}


html body
.downloads-section
.downloads-radio input:checked + span::after,

html body
.downloads-section
.downloads-radio.is-active span::after {
  content: "" !important;

  width: 10px !important;
  height: 10px !important;

  border-radius: 50% !important;

  background-color:
    var(--dl-primary) !important;
}


/* =========================================================
   15. FILTER DIVIDER
   ========================================================= */

html body
.downloads-section
.downloads-filter-divider {
  width: 100% !important;
  height: 1px !important;

  margin: 24px 0 !important;

  background-color:
    rgba(83, 112, 131, 0.28) !important;
}


/* =========================================================
   16. CLEAR FILTERS BUTTON
   ========================================================= */

html body
.downloads-section
.downloads-clear-btn {
  min-height: 36px !important;

  margin-top: 28px !important;

  padding: 8px 14px !important;

  display: inline-flex !important;

  align-items: center !important;
  justify-content: center !important;

  gap: 8px !important;

  border:
    2px solid var(--dl-primary) !important;

  border-radius:
    var(--dl-radius-pill) !important;

  background:
    transparent !important;

  color:
    var(--dl-primary) !important;

  font-family:
    var(--dl-font-body) !important;

  font-size: 12px !important;
  font-weight: 700 !important;

  line-height: 1 !important;

  cursor: pointer !important;

  box-shadow: none !important;
}


/* =========================================================
   17. CLEAR X ICON
   ========================================================= */

html body
.downloads-section
.downloads-x-icon {
  position: relative !important;

  width: 18px !important;
  height: 18px !important;

  min-width: 18px !important;
}


html body
.downloads-section
.downloads-x-icon::before,

html body
.downloads-section
.downloads-x-icon::after {
  content: "" !important;

  position: absolute !important;

  top: 8px !important;
  left: 3px !important;

  width: 12px !important;
  height: 2px !important;

  background:
    currentColor !important;

  border-radius:
    2px !important;
}


html body
.downloads-section
.downloads-x-icon::before {
  transform:
    rotate(45deg) !important;
}


html body
.downloads-section
.downloads-x-icon::after {
  transform:
    rotate(-45deg) !important;
}


/* =========================================================
   18. RIGHT CONTENT
   Exact Figma width: 1055px
   ========================================================= */

html body
.downloads-section
.downloads-content {
  width: 100% !important;
  max-width: 1055px !important;

  min-width: 0 !important;

  margin: 0 !important;
  padding: 0 !important;
}


/* =========================================================
   19. SEARCH ROW
   ========================================================= */

html body
.downloads-section
.downloads-search {
  width: 100% !important;

  display: grid !important;

  grid-template-columns:
    minmax(0, 1fr) auto !important;

  gap: 8px !important;

  margin: 0 0 12px !important;

  padding: 0 !important;
}


/* =========================================================
   20. SEARCH FIELD
   ========================================================= */

html body
.downloads-section
.downloads-search-field {
  min-height: 40px !important;

  padding: 0 16px !important;

  display: flex !important;

  align-items: center !important;

  gap: 10px !important;

  border:
    1px solid var(--dl-border) !important;

  border-radius:
    var(--dl-radius-pill) !important;

  background-color:
    var(--dl-white) !important;
}


/* Search icon */

html body
.downloads-section
.downloads-search-field svg {
  width: 20px !important;
  height: 20px !important;

  min-width: 20px !important;

  color:
    var(--dl-muted) !important;
}


html body
.downloads-section
.downloads-search-field svg path {
  fill: none !important;

  stroke:
    currentColor !important;

  stroke-width:
    1.8 !important;

  stroke-linecap:
    round !important;

  stroke-linejoin:
    round !important;
}


/* Search input */

html body
.downloads-section
.downloads-search-field input {
  width: 100% !important;

  border: 0 !important;
  outline: 0 !important;

  background:
    transparent !important;

  color:
    var(--dl-text) !important;

  font-family:
    var(--dl-font-body) !important;

  font-size:
    14px !important;
}


html body
.downloads-section
.downloads-search-field input::placeholder {
  color:
    rgba(83, 112, 131, 0.65) !important;
}


/* =========================================================
   21. SEARCH BUTTON
   ========================================================= */

html body
.downloads-section
.downloads-search-btn {
  min-height: 40px !important;

  padding: 8px 18px !important;

  border: 0 !important;

  border-radius:
    var(--dl-radius-pill) !important;

  background-color:
    var(--dl-primary) !important;

  color:
    var(--dl-white) !important;

  font-family:
    var(--dl-font-body) !important;

  font-size: 12px !important;
  font-weight: 700 !important;

  cursor: pointer !important;

  box-shadow:
    none !important;
}


/* =========================================================
   22. FILE LIST
   ========================================================= */

html body
.downloads-section
.downloads-list {
  width: 100% !important;

  display: flex !important;

  flex-direction: column !important;

  gap: 8px !important;

  margin: 0 !important;
  padding: 0 !important;
}


/* =========================================================
   23. FILE CARD
   Figma exact:
   1055px × 80px
   Padding: 16px
   Radius: 12px
   ========================================================= */

html body
.downloads-section
.downloads-file-card {
  width: 100% !important;

  min-height: 80px !important;
  height: 80px !important;

  padding: 16px !important;

  display: grid !important;

  grid-template-columns:
    42px minmax(0, 1fr) 36px !important;

  align-items:
    center !important;

  gap: 18px !important;

  border:
    1px solid var(--dl-border) !important;

  border-radius:
    12px !important;

  background:
    var(--dl-white) !important;

  box-shadow:
    none !important;
}


/* =========================================================
   24. PDF ICON
   ========================================================= */

html body
.downloads-section
.downloads-file-icon {
  width: 34px !important;
  height: 42px !important;

  color:
    var(--dl-black) !important;
}


html body
.downloads-section
.downloads-file-icon svg {
  width: 100% !important;
  height: 100% !important;
}


html body
.downloads-section
.downloads-file-icon svg path {
  fill:
    none !important;

  stroke:
    currentColor !important;

  stroke-width:
    1.7 !important;

  stroke-linejoin:
    round !important;
}


html body
.downloads-section
.downloads-file-icon svg rect {
  fill:
    var(--dl-red) !important;

  stroke:
    none !important;
}


html body
.downloads-section
.downloads-file-icon svg text {
  fill:
    var(--dl-white) !important;

  font-family:
    var(--dl-font-body) !important;

  font-size:
    5px !important;

  font-weight:
    800 !important;

  text-anchor:
    middle !important;
}


/* =========================================================
   25. FILE TITLE
   ========================================================= */

html body
.downloads-section
.downloads-file-text h2 {
  margin:
    0 0 4px !important;

  color:
    var(--dl-black) !important;

  font-family:
    var(--dl-font-body) !important;

  font-size:
    16px !important;

  font-weight:
    800 !important;

  line-height:
    1.2 !important;
}


/* =========================================================
   26. FILE DESCRIPTION
   ========================================================= */

html body
.downloads-section
.downloads-file-text p {
  margin:
    0 !important;

  color:
    var(--dl-text) !important;

  font-family:
    var(--dl-font-body) !important;

  font-size:
    14px !important;

  font-weight:
    400 !important;

  line-height:
    1.25 !important;
}


/* =========================================================
   27. DOWNLOAD ACTION
   ========================================================= */

html body
.downloads-section
.downloads-file-action {
  width: 32px !important;
  height: 32px !important;

  display:
    inline-flex !important;

  align-items:
    center !important;

  justify-content:
    center !important;

  color:
    var(--dl-black) !important;

  border-radius:
    50% !important;

  background:
    transparent !important;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease !important;
}


html body
.downloads-section
.downloads-file-action svg {
  width:
    20px !important;

  height:
    20px !important;
}


html body
.downloads-section
.downloads-file-action svg path {
  fill:
    none !important;

  stroke:
    currentColor !important;

  stroke-width:
    1.8 !important;

  stroke-linecap:
    round !important;

  stroke-linejoin:
    round !important;
}


html body
.downloads-section
.downloads-file-action:hover {
  background-color:
    var(--dl-primary) !important;

  color:
    var(--dl-white) !important;

  transform:
    translateY(-2px) !important;
}


/* =========================================================
   28. PAGINATION
   ========================================================= */

html body
.downloads-section
.downloads-pagination {
  display:
    flex !important;

  align-items:
    center !important;

  justify-content:
    center !important;

  gap:
    14px !important;

  margin-top:
    48px !important;
}


html body
.downloads-section
.downloads-pagination a {
  width:
    24px !important;

  height:
    24px !important;

  display:
    inline-flex !important;

  align-items:
    center !important;

  justify-content:
    center !important;

  border-radius:
    50% !important;

  color:
    var(--dl-black) !important;

  font-family:
    var(--dl-font-body) !important;

  font-size:
    14px !important;

  font-weight:
    700 !important;
}


html body
.downloads-section
.downloads-pagination a.is-active {
  background-color:
    var(--dl-red) !important;

  color:
    var(--dl-white) !important;
}


/* =========================================================
   29. TABLET
   ========================================================= */

@media (max-width: 1024px) {

  html body .downloads-section {
    padding:
      72px 18px !important;
  }


  html body
  .downloads-section
  .downloads-layout {
    grid-template-columns:
      1fr !important;

    gap:
      32px !important;
  }


  html body
  .downloads-section
  .downloads-filters {
    width:
      100% !important;

    max-width:
      none !important;

    display:
      grid !important;

    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;

    gap:
      24px !important;
  }


  html body
  .downloads-section
  .downloads-filter-divider {
    display:
      none !important;
  }


  html body
  .downloads-section
  .downloads-clear-btn {
    grid-column:
      1 / -1 !important;

    margin-top:
      0 !important;
  }

}


/* =========================================================
   30. MOBILE
   ========================================================= */

@media (max-width: 767px) {

  html body .downloads-section {
    padding:
      56px 16px !important;
  }


  html body
  .downloads-section
  .downloads-heading h1 {
    font-size:
      40px !important;
  }


  html body
  .downloads-section
  .downloads-heading p {
    font-size:
      15px !important;
  }


  html body
  .downloads-section
  .downloads-layout {
    margin-top:
      40px !important;
  }


  html body
  .downloads-section
  .downloads-filters {
    grid-template-columns:
      1fr !important;
  }


  html body
  .downloads-section
  .downloads-search {
    grid-template-columns:
      1fr !important;
  }


  html body
  .downloads-section
  .downloads-search-btn {
    width:
      fit-content !important;
  }


  html body
  .downloads-section
  .downloads-file-card {
    height:
      auto !important;

    min-height:
      74px !important;

    padding:
      14px !important;

    grid-template-columns:
      36px minmax(0, 1fr) 32px !important;

    gap:
      12px !important;
  }


  html body
  .downloads-section
  .downloads-file-text h2 {
    font-size:
      14px !important;
  }


  html body
  .downloads-section
  .downloads-file-text p {
    font-size:
      13px !important;
  }

}