/* Readable consent controls; keep both choices equally accessible. */
#cookie-notice .cn-buttons-container .cn-button:not(.cn-revoke-cookie) {
    background: #ffffff !important;
    color: #12344d !important;
    border: 1px solid #ffffff !important;
    border-radius: 4px;
    min-height: 40px;
    padding: 8px 14px !important;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.4 !important;
    text-shadow: none;
}
#cookie-notice .cn-button:focus-visible,
#cookie-notice .cn-close-icon:focus-visible {
    outline: 3px solid #8ed1ef;
    outline-offset: 3px;
}
#cookie-notice .cn-close-icon { opacity: 1; }
#cookie-notice .cn-close-icon::before,
#cookie-notice .cn-close-icon::after { background-color: #ffffff; }
@media (max-width: 767px) {
    /* Compact mobile logo/menu row; search is intentionally hidden on phones. */
    .header-holder .header-mobile__logo {
        padding: 12px 76px 12px 16px !important;
        min-height: 88px;
    }
    .header-mobile__logo .logo { display: block; padding: 0 !important; }
    .header-mobile__logo .logo img {
        display: block;
        width: 220px;
        max-width: 100%;
        height: auto;
    }
    .header-holder .top-bar-mobile { display: none !important; }
    .header-mobile .header-mobile__nav-control { width: 60px; }
    .header-mobile .header-mobile__control-line { left: 20px; right: auto; }
    /* The first builder text block contains only a style tag, not visible copy. */
    .home #post-19 .entry-content > .vc_row:first-of-type > .wpb_text_column:first-child {
        margin-bottom: 0;
    }
    #cookie-notice .cookie-notice-container { padding: 10px 14px; }
    #cookie-notice .cn-text-container {
        display: block; margin: 0 20px 8px 0;
        font-size: 13px; line-height: 1.4;
    }
    #cookie-notice .cn-buttons-container { display: inline-flex; gap: 10px; }
    #cookie-notice .cn-buttons-container .cn-button:not(.cn-revoke-cookie) { margin: 0; }
    #cookie-notice .cn-close-icon { top: 8px; right: 6px; margin-top: 0; }
}

/* Keep white slide text readable while revealing the photo on mobile. */
@media (max-width: 767px) {
    .home #rev_slider_1_1 .leftFullHeightBgDarkBlue {
        background: linear-gradient(90deg,
            rgba(1, 27, 58, 0.94) 0%,
            rgba(1, 27, 58, 0.90) 44%,
            rgba(1, 27, 58, 0.72) 70%,
            rgba(1, 27, 58, 0.16) 100%) !important;
    }
}

/* Give the counter glyphs a full line box, preserving the icon/text layout. */
.stm-stats .stm-stats__content {
  display: flow-root;
  overflow: visible;
}
.stm-stats .stm-stats__value {
  height: auto;
  line-height: 1.25;
  padding-top: .08em;
}
.stm-stats .stats__value-number {
  display: inline-block;
  line-height: inherit;
}
/* Separate the course accordion controls and make their action visible. */
@media (max-width: 767px) {
  .home #post-19 .vc_tta-tabs .vc_tta-panel {
    margin-bottom: 12px;
  }
  .home #post-19 .vc_tta-tabs .vc_tta-panel-heading {
    background: #386b89 !important;
    border: 1px solid #386b89 !important;
    border-radius: 6px !important;
    margin: 0 !important;
  }
  .home #post-19 .vc_tta-tabs .vc_tta-panel-title > a {
    position: relative;
    display: block;
    padding: 16px 48px 16px 18px !important;
    color: #fff !important;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
  }
  .home #post-19 .vc_tta-tabs .vc_tta-panel-title > a::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    width: 9px;
    height: 9px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: translateY(-70%) rotate(45deg);
  }
  .home #post-19 .vc_tta-tabs .vc_active > .vc_tta-panel-heading {
    background: #2c5873 !important;
  }
  .home #post-19 .vc_tta-tabs .vc_active > .vc_tta-panel-heading a {
    color: #fff !important;
  }
  .home #post-19 .vc_tta-tabs .vc_active > .vc_tta-panel-heading a::after {
    transform: translateY(-20%) rotate(225deg);
  }
  .home #post-19 .vc_tta-tabs .vc_tta-panel-title > a:focus-visible {
    outline: 3px solid #80b918;
    outline-offset: 3px;
  }
}

/* A gentle blue accent for the five course detail links on mobile and desktop. */
.home #post-19 .vc_tta-tabs .vc_tta-panel-body a.vc_btn3 {
  background: #dceef7 !important;
  background-image: none !important;
  border: 1px solid #b5d5e5 !important;
  color: #28546d !important;
  font-weight: 600;
  box-shadow: none;
  text-shadow: none;
}
.home #post-19 .vc_tta-tabs .vc_tta-panel-body a.vc_btn3:hover {
  background: #cbe4f1 !important;
  border-color: #87b9d0 !important;
}
.home #post-19 .vc_tta-tabs .vc_tta-panel-body a.vc_btn3:focus-visible {
  outline: 2px solid #28546d;
  outline-offset: 3px;
}

/* Consistent compact course paragraphs on wider screens, preserving column widths. */
@media (min-width: 768px) {
  body:is(
    .page-id-5128,
    .page-id-3986,
    .page-id-3524,
    .page-id-3509,
    .page-id-3511,
    .page-id-3518,
    .page-id-3520,
    .page-id-12486,
    .page-id-12487,
    .page-id-3522
  ) .content .wpb_text_column p {
    line-height: 1.4;
    margin-bottom: 14px;
  }
}

/* Separate the high-school introduction from the page title. */
.page-id-3522 .doc-liceu-page {
  padding-top: 24px;
}

/* Dedicated grade pages retain the compact desktop course spacing. */
.doc-class-course-page .doc-class-page {padding-top:24px;font-family:Arial,Helvetica,sans-serif;}
@media(min-width:768px){
 .doc-class-course-page .content .wpb_text_column p {line-height:1.4;margin-bottom:14px;}
 .home #post-19 .vc_tta-tabs .vc_tta-tabs-container {width:100%!important;margin:0!important;}
 .home #post-19 .vc_tta-tabs .vc_tta-tabs-list {display:flex;flex-wrap:wrap;justify-content:center;white-space:normal;gap:8px;width:100%;margin:0!important;padding:0!important;}
 .home #post-19 .vc_tta-tabs .vc_tta-tab {margin:0!important;padding:0!important;width:auto!important;flex:0 0 auto;}
 .home #post-19 .vc_tta-tabs .vc_tta-tab > a {padding:14px 16px!important;font-size:16px!important;line-height:1.4;white-space:nowrap;}
}

/* Course content refresh: compact paragraphs without narrowing the columns. */
.content .doc-course-copy {padding-top:24px;font-size:16px;}
.content .doc-course-copy img {display:block;max-width:100%;height:auto;margin:0 auto 24px;}
.content .doc-course-copy h2 {margin-top:24px;margin-bottom:10px;line-height:1.25;font-size:28px;}
.content .doc-course-copy ul {margin:0 0 18px;padding-left:24px;}
.content .doc-course-copy li {margin-bottom:7px;line-height:1.5;}
@media(min-width:768px){.content .doc-course-copy p {line-height:1.4;margin-bottom:14px;}}
@media(max-width:767px){.content .doc-course-copy h2 {font-size:24px;} .content .doc-course-copy p {line-height:30px;margin-bottom:14px;}}
