/* ----------------------------------------------------
   DCCI Portal — Unified Styles for Portal + Area pages
   File: dcci-portal.css
---------------------------------------------------- */

/* Utility variables */
:root {
  --dcci-header-height: 110px;
  --dcci-max-width: 1400px;
}

/* Hide Astra header/footer ONLY on portal pages & areas */
body[class*="page-template-page-dcci-portal"] .site-header,
body[class*="page-template-page-dcci-portal"] #masthead,
body[class*="page-template-page-dcci-portal"] .main-header-bar,
body[class*="page-template-page-dcci-portal"] .site-footer,
body.post-type-apa_area .site-header,
body.post-type-apa_area #masthead,
body.post-type-apa_area .main-header-bar,
body.post-type-apa_area .site-footer {
  display: none !important;
}

/* Full-width content wrapper */
body[class*="page-template-page-dcci-portal"] .site-content,
body[class*="page-template-page-dcci-portal"] .site-main,
body[class*="page-template-page-dcci-portal"] .ast-container,
body.post-type-apa_area .site-content,
body.post-type-apa_area .site-main,
body.post-type-apa_area .ast-container {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* ----------------------------------------------------
   NEW PORTAL HEADER (FULL-WIDTH BAR)
---------------------------------------------------- */

.dcci-portal-header {
  background-image: url('https://dcciportal.co.uk/wp-content/uploads/2025/12/7cafc765-0751-4065-91c0-61aaccd1edfd.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 16px 24px;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.dcci-portal-header-inner {
  max-width: var(--dcci-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* LEFT: Logo + Back */
.dcci-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dcci-logo-wrap img.dcci-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
}

/* Back button */
.dcci-back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.45);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.1s ease, background 0.2s ease;
}

.dcci-back-button:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.22);
}

.dcci-back-icon {
  font-size: 18px;
}

/* CENTRE: Title banner */
.dcci-portal-header-centre {
  flex: 1;
  text-align: center;
}

.dcci-portal-title-link {
  text-decoration: none;
  color: inherit;
}

.dcci-portal-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.dcci-portal-subtitle {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 2px;
}

/* RIGHT: Search */
.dcci-search-form {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 999px;
  padding: 4px 10px 4px 14px;
  min-width: 200px;
  max-width: 260px;
}

.dcci-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  flex: 1;
}

.dcci-search-submit {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}

/* ----------------------------------------------------
   HERO SECTION
---------------------------------------------------- */

.dcci-hero {
  padding-top: calc(var(--dcci-header-height) + 40px);
  padding-bottom: 40px;
  text-align: center;
}

.dcci-hero-img {
  max-width: 620px;
  width: 90%;
  height: auto;
  margin: 0 auto 24px;
  display: block;
}

.dcci-title { display: none !important; }

/* ----------------------------------------------------
   BUTTON GRID (default layout)
---------------------------------------------------- */

.dcci-buttons {
  max-width: var(--dcci-max-width);
  margin: 0 auto 80px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.dcci-btn {
  padding: 22px 40px;
  border-radius: 28px;
  color: #fff !important;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1.25 !important;
  box-shadow:
    0 12px 22px rgba(0,0,0,0.25),
    inset 0 4px 4px rgba(255,255,255,0.25),
    inset 0 -6px 8px rgba(0,0,0,0.18);
  transition: all 0.14s ease;
}

.dcci-btn:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 28px rgba(0,0,0,0.3),
    inset 0 5px 5px rgba(255,255,255,0.3),
    inset 0 -7px 10px rgba(0,0,0,0.22);
  filter: brightness(1.05);
}

/* Button colours */
.dcci-buttons .dcci-btn:nth-child(1) { background: #E91E63; }
.dcci-buttons .dcci-btn:nth-child(2) { background: #229954; }
.dcci-buttons .dcci-btn:nth-child(3) { background: #1F618D; }
.dcci-buttons .dcci-btn:nth-child(4) { background: #8E44AD; }
.dcci-buttons .dcci-btn:nth-child(5) { background: #F1C40F; }
.dcci-buttons .dcci-btn:nth-child(6) { background: #560027; }
.dcci-buttons .dcci-btn:nth-child(7) { background: #3949AB; }
.dcci-buttons .dcci-btn:nth-child(8) { background: #D35400; }
.dcci-buttons .dcci-btn:nth-child(9) { background: #880E4F; }

/* ----------------------------------------------------
   OPTIONAL CONTENT
---------------------------------------------------- */

.dcci-main {
  max-width: 900px;
  margin: 20px auto 60px;
  background: rgba(255,255,255,0.9);
  border-radius: 16px;
  padding: 32px;
}

/* ----------------------------------------------------
   RESOURCES
---------------------------------------------------- */

.dcci-resources {
  max-width: 900px;
  margin: 0 auto 80px;
  text-align: center;
}

.dcci-resources-title { display: none; }

.dcci-resources-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.dcci-resource-btn {
  padding: 14px 26px;
  border-radius: 26px;
  font-weight: 700;
  font-size: 18px;
  color: #fff !important;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    0 10px 18px rgba(0,0,0,0.22),
    inset 0 3px 3px rgba(255,255,255,0.22),
    inset 0 -5px 7px rgba(0,0,0,0.18);
  transition: all 0.14s ease;
}

.dcci-resources-grid .dcci-resource-btn:nth-child(4n+1) { background: #E91E63; }
.dcci-resources-grid .dcci-resource-btn:nth-child(4n+2) { background: #229954; }
.dcci-resources-grid .dcci-resource-btn:nth-child(4n+3) { background: #1F618D; }
.dcci-resources-grid .dcci-resource-btn:nth-child(4n+4) { background: #8E44AD; }

.dcci-resource-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 24px rgba(0,0,0,0.28);
  filter: brightness(1.05);
}

/* ----------------------------------------------------
   FOOTER — with background image
---------------------------------------------------- */

.dcci-footer {
  background: url('https://dcciportal.co.uk/wp-content/uploads/2025/12/7cafc765-0751-4065-91c0-61aaccd1edfd.webp') !important;
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  color: #fff !important;
  padding: 24px 32px;
}

.dcci-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
}

.dcci-footer a {
  color: #fff !important;
  text-decoration: underline;
}

/* ----------------------------------------------------
   RESPONSIVE
---------------------------------------------------- */

@media (max-width: 900px) {
  .dcci-portal-header-inner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .dcci-header-left,
  .dcci-portal-header-centre,
  .dcci-search-form {
    width: 100%;
    justify-content: center;
  }
  .dcci-buttons {
    flex-wrap: wrap;
    white-space: normal;
  }
}

/* ----------------------------------------------------
   SPECIFIC LAYOUT OVERRIDES
---------------------------------------------------- */

/* CUSTOMER PORTAL — 2×2 layout */
.dcci-buttons-2x2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}
.dcci-buttons-2x2 .dcci-btn {
  flex: 0 1 calc(50% - 40px);
  max-width: calc(50% - 40px);
}

/* CPD COURSE ACTIVITIES — 3×3 */
.dcci-buttons-cpd-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.dcci-buttons-cpd-grid .dcci-btn {
  flex: 0 1 calc(33.333% - 40px);
  max-width: calc(33.333% - 40px);
}

/* Page-specific sign-off styling */
.dcci-signoff{
    display: block;
    margin-top: 20px;
    font-size: 20px;   /* adjust size here */
    font-weight: 700;
    color: #5d2758;
}