/* =========================================================
   STHAN MEDIA - GLOBAL CSS
   Covers:
   Media
   News
   Press Releases
   Blogs
   Events
   Downloads
   All detail pages
   ========================================================= */


/* =========================================================
   GLOBAL VARIABLES
   ========================================================= */

:root {
    --red: #da0138;
    --purple: #7210a8;
    --purple-alt: #8414b3;
    --violet: #5c1bd1;
    --violet-alt: #651be0;

    --gold: #d7aa38;

    --ink: #17131b;
    --ink-alt: #16161b;

    --muted: #707070;
    --muted-alt: #777;

    --line: #ece8f0;
    --line-alt: #ececf0;
}

#media-page .header .login-link-sec {
  top: 34px;
}
#media-page .header.active .login-link-sec {
  top: 22px;
}

/* =========================================================
   COMMON PAGE WRAPPER
   ========================================================= */

.page-wrap {
    max-width: 1180px;
    margin: 0 auto 80px;
    padding: 0 6%;
    position: relative;
}


/* Media index originally uses negative margin */
.wrap {
    max-width: 1180px;
    margin: -28px auto 80px;
    padding: 0 6%;
    position: relative;
}


/* =========================================================
   COMMON MEDIA TOOLBAR
   ========================================================= */

.media-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 24px auto 0;
}

.breadcrumb {
    font-size: 13px;
    color: #777;
    white-space: nowrap;
    background:none;
    padding-left:0;
}

.breadcrumb span {
    margin:0 7px;
}

.breadcrumb a {
    color: var(--purple);
    text-decoration: none;
    font-weight: 700;
}


/* =========================================================
   COMMON SEARCH
   ========================================================= */
.media-search {
    display: flex;
    gap: 8px;
    max-width: 520px;
    margin: 0 0 0 auto;
    /*margin: 24px auto 0;*/
}

.media-search input {
    flex: 1;
    min-width: 0;
    border: 1px solid #ddd6e4;
    border-radius: 100px;
    padding: 14px 16px;
    font-size: 15px;
    background: #fff;
}

.media-search button {
    background: linear-gradient(45deg, #da0138 0%, #8414b3 50%, #651be0 100%);
      color: #fff !important;
      padding: 13px 20px;
      border-radius: 100px;
      font-weight: 400;
      text-transform: uppercase;
      font-size: 13px;
      border: none;
      cursor: pointer;
      text-decoration: none !important;
}
.media-search button:hover {
    background: linear-gradient(-45deg, #da0138 0%, #8414b3 50%, #651be0 100%);
}

.media-search a {
    align-self: center;
    color: var(--purple);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}


/* Media index search */
.wrap > .media-search {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 0 6%;
    position: relative;
    z-index: 6;
}


/* =========================================================
   COMMON TABS
   ========================================================= */

.tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);

    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;

    box-shadow: 0 15px 40px #00000010;
}

.tabs a {
    text-decoration: none;
    text-align: center;
    padding: 20px 10px;
    font-weight: 700;
    border-right: 1px solid var(--line);
    font-size: 14px;
}

.tabs a:last-child {
    border-right: 0;
}

.tabs a:hover,
.tabs a.active {
    background: linear-gradient(
        45deg,
        var(--purple),
        var(--violet)
    );

    color: #fff;
}


/* =========================================================
   COMMON CONTENT
   ========================================================= */

.content {
    margin-top: 20px;
    margin-bottom: 20px;
    background: #fff;
  border: #ddd 1px solid;
  padding: 25px;
  border-radius: 10px;
}
.content h2 {
    margin-bottom:15px;
    font-size:24px;
}


/* =========================================================
   FEATURED CONTENT
   ========================================================= */

.featured {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;

    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;

    overflow: hidden;
    margin-bottom: 45px;

    box-shadow: 0 12px 35px #0000000a;
}

.featured img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    display: block;
}

.featured-copy {
    padding: 42px;
}

.featured h2 {
    font-size: 36px;
    line-height: 1.15;
    margin: 12px 0;
}


/* =========================================================
   COMMON SECTION
   ========================================================= */

/*.section {
    margin-top: 58px;
}*/

.wrap .section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 22px;
}

.wrap .section-title {
    font-size: 30px;
    margin: 0;
}

.wrap .section-desc {
    margin: 7px 0 0;
    color: var(--muted);
}

.wrap .viewall {
    color: var(--purple);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.section-rule {
    height: 1px;
    background: var(--line);
    margin-top: 46px;
}


/* =========================================================
   COMMON GRID
   ========================================================= */

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}


/* =========================================================
   COMMON CARD
   ========================================================= */

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;

    overflow: hidden;

    box-shadow: 0 8px 28px #00000007;

    transition: 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px #00000012;
}

.card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #eee;
    display: block;
}

.body {
    padding: 19px;
}

.card h3 {
    font-size: 19px;
    line-height: 1.35;
    margin: 8px 0;
}

.card h3 a {
    text-decoration: none;
}

.card p {
    color: #666;
    font-size: 14px;
    line-height: 1.65;
    margin: 10px 0 14px;
}


/* =========================================================
   COMMON TAG / DATE / TEXT
   ========================================================= */

.tag {
    display: inline-block;
    color: var(--purple);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.date {
    color: #888;
    font-size: 13px;
}

.excerpt {
    color: #666;
    line-height: 1.75;
}

.search-note {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 14px;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 50px;
    text-align: center;
    color: #777;
}


/* =========================================================
   DOWNLOAD CARDS
   ========================================================= */

.downloads {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 18px;
}

.download {
    background: #1a0a27;
    color: #fff;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #412052;
}

.download small {
    color: #dcb8ea;
}

.download h3 {
    margin: 8px 0;
}

.download p {
    color: #ddd;
    line-height: 1.6;
    font-size: 14px;
}

.download a {
    display: inline-block;
    margin-top: 10px;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
}


/* Download index */
.download-card {
    display: flex;
    flex-direction: column;
}

.download-card .body {
    flex: 1;
}

/*.download-btn {
    display: inline-block;
    margin-top: 10px;

    color: #fff;
    background: linear-gradient(
        45deg,
        var(--purple),
        var(--violet)
    );

    padding: 11px 15px;
    border-radius: 8px;

    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
}*/

.detail-link {
    display: inline-block;
    margin-top: 8px;
    margin-bottom: 8px;
    color: var(--purple);
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
}


/* =========================================================
   DETAIL PAGE HEADER
   ========================================================= */

.sm-header {
    /*height: 78px;*/
    height: 25vh;
    background: #09090c;
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6%;
}

.sm-header img {
    width: 64px;
}

.sm-nav {
    display: flex;
    gap: 25px;
    font-size: 14px;
}

.sm-nav a {
    color: #fff;
    text-decoration: none;
}


/* =========================================================
   DETAIL ARTICLE
   ========================================================= */

.article-wrap {
    max-width: 980px;
    margin: auto;
    /*padding: 55px 6% 80px;*/ 
    padding: 35px 0 80px;
}
.article-wrap h2 {
    font-size:24px;
}

.back {
    display: inline-block;
    text-decoration: none;
    color: var(--purple-alt);
    font-weight: 700;
    margin-bottom: 25px;
}

.meta {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--purple-alt);
    font-weight: 800;
}

.article-wrap h1 {
    /*font-size: clamp(38px, 6vw, 64px);*/
    line-height: 1.08;
    margin: 12px 0;
    font-size:36px;
}

.article-wrap .date {
    color: #888;
    font-size: 14px;
}

.hero-img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: 18px;
    margin: 32px 0;
}

.lead {
    font-size: 22px;
  line-height: 1.75;
  font-weight: 400;
}
/*
.content {
    font-size: 17px;
    line-height: 1.9;
    color: #333;
}
*/
.content p {
    margin: 0 0 23px;
}


/* =========================================================
   DETAIL EVENT META
   ========================================================= */

.event-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 25px 0;
}

.event-meta div {
    background: #fff;
    border: 1px solid var(--line-alt);
    border-radius: 10px;
    padding: 15px;
}

.event-meta strong {
    display: block;
    font-size: 12px;
    color: var(--purple-alt);
    text-transform: uppercase;
    margin-bottom: 5px;
}


/* =========================================================
   DETAIL GALLERY
   ========================================================= */

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 35px 0;
}

.gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
}


/* =========================================================
   DETAIL SHARE
   ========================================================= */

.share {
    margin-top: 35px;
    padding-top: 25px;

    border-top: 1px solid var(--line-alt);

    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.share a {
    padding: 9px 13px;
    border: 1px solid #ddd;
    border-radius: 8px;

    text-decoration: none;
    font-size: 13px;
}


/* =========================================================
   RELATED CONTENT
   ========================================================= */

.related {
    margin-top: 65px;
}

.related h2 {
    margin-bottom:15px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rel {
    background: #fff;
    border: 1px solid var(--line-alt);
    border-radius: 12px;

    overflow: hidden;
    text-decoration: none;
}

.rel img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.rel div {
    padding: 17px;
}

.rel strong {
    display: block;
    font-size: 18px;
    line-height: 1.35;
}

.rel small {
    color: #888;
}


/* =========================================================
   DETAIL BREADCRUMB
   ========================================================= */

.media-breadcrumb {
    max-width: 980px;
    margin: 24px auto 0;
    /*padding: 0 6%;*/
    padding: 0 0%;
    font-size: 13px;
    color: #888;
}

.media-breadcrumb a {
    color: var(--purple);
    text-decoration: none;
    font-weight: 700;
}

.media-breadcrumb .sep {
    margin: 0 7px;
    color: #bbb;
}


/* =========================================================
   DETAIL BACK BUTTON AREA
   ========================================================= */

.media-center-back {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;

    margin-top: 40px;
    padding-top: 25px;

    border-top: 1px solid var(--line-alt);
}

.media-center-back a {
    display: inline-block;

    padding: 11px 16px;

    border: 1px solid #ddd;
    border-radius: 8px;

    text-decoration: none;
    font-weight: 700;
    color: var(--purple);
    font-size:16px;
}


/* =========================================================
   DETAIL FOOTER
   ========================================================= */

.footer {
    background: #0b0b0e;
    color: #aaa;
    text-align: center;
    padding: 30px;
}

.footer strong {
    color: #fff;
}


/* =========================================================
   DOWNLOAD DETAIL
   ========================================================= */

.download-detail-content {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 12px 35px #0000000a;
}


/*
   Kept compatible with the original CSS.
   Original value was "display:column", which is not a valid
   display value, so it is intentionally not overridden here.
*/
.asset-head {
    /*display: column;
    grid-template-columns: minmax(260px, 420px) 1fr;
    gap: 34px;
    align-items: start;*/
    display: inline;
}

.asset-head img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #f5f3f7;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.asset-head .tag {
    display: inline-block;
}

.description {
    font-size: 16px;
    line-height: 30px;
    margin-top:20px;
}

.description p {
    margin: 0 0 16px;
}

.description ul,
.description ol {
    line-height: 1.8;
}

.actions {
    margin-top: 28px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 400;
    font-size: 13px;
}

.btn.primary {
    color: #fff;
    background: linear-gradient(
        45deg,
        var(--purple),
        var(--violet)
    );
}

.btn.secondary {
    color: var(--purple);
    border: 1px solid #d9cbe3;
    background: #fff;
}


/* =========================================================
   MEDIA INDEX ACCESSIBILITY
   ========================================================= */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 950px) {

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tabs {
        grid-template-columns: repeat(3, 1fr);
    }

    .tabs a:nth-child(3n) {
        border-right: 0;
    }

    .tabs a:nth-child(4),
    .tabs a:nth-child(5) {
        border-top: 1px solid var(--line);
    }
}


/* =========================================================
   RESPONSIVE - 700px
   ========================================================= */

@media (max-width: 700px) {

    .media-toolbar {
        display: block;
    }

    .breadcrumb {
        margin-bottom: 12px;
    }

    .media-search {
        max-width: none;
        margin: 0;
    }

    .featured {
        grid-template-columns: 1fr;
    }

    .featured img {
        min-height: 220px;
    }

    .featured-copy {
        padding: 28px;
    }

    .hero {
        padding-top: 60px;
    }

    .media-search {
        flex-wrap: wrap;
    }

    .media-search input {
        flex-basis: 100%;
        height: 50px;
    }

    .media-search button {
        height: 46px;
        width: 100%;
    }

    .media-search a {
        padding: 12px;
    }

    .section-head {
        display: block;
    }

    .sm-nav {
        display: none;
    }

    .article-wrap {
        padding: 35px 6%;
    }
    .media-breadcrumb {
        padding-left: 6%;
        padding-right: 6%;
    }
    .article-wrap h1 {
        font-size:22px;
        line-height: initial;
    }
    .lead {
      font-size: 19px;
      line-height: inherit;
    }

    .related-grid,
    .event-meta,
    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .asset-head {
        grid-template-columns: 1fr;
    }

    .download-detail-content {
        padding: 26px;
    }
    .wrap .section-head {
        display:block;
    }
    .content {
        padding:15px;
    }
    .featured h2 {
        font-size:22px;
    }
    .media-center-back {
        gap:5px;
    }
    .media-center-back a {
        padding: 8px 8px;
        font-size: 14px;
    }
}


/* =========================================================
   RESPONSIVE - 600px
   ========================================================= */

@media (max-width: 600px) {

    .grid,
    .downloads {
        grid-template-columns: 1fr;
    }

    .tabs {
        grid-template-columns: 1fr 1fr;
    }

    .tabs a:nth-child(n) {
        border-right: 0;
        border-top: 0;
    }
    .hero h1 {
        font-size:40px;
        margin: 35% 0 12px 0;
    }
    .hero p {
        font-size:15px;
    }
    .media-search button {
        height: 46px;
        width: 100%;
    }
    .wrap .section-head {
        display:block;
    }
    .content {
        padding:15px;
    }
    .featured h2 {
        font-size:22px;
    }
    .article-wrap {
        padding: 35px 6%;
    }
    .media-breadcrumb {
        padding-left: 6%;
        padding-right: 6%;
    }
    .article-wrap h1 {
        font-size:22px;
        line-height: initial;
    }
    .lead {
      font-size: 19px;
      line-height: inherit;
    }
    .media-center-back {
        gap:5px;
    }
    .media-center-back a {
        padding: 8px 8px;
        font-size: 14px;
    }
    
}