:root {
    --dark-gray: #757575;
}

.sr-only {
    display: none;
}

.pointer {
    cursor: pointer !important;
}

.bg-gray {
    background-color: #E5E5E5;
}

.bg-gray-d1 {
    background-color: var(--ksu-gray-20);
}

.row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

/* H1s & Breadcrumbs */
.blog-heading {
    margin: 12px auto;
    max-width: 1170px;
}

.blog-heading .brei-breadcrumbs {
    margin: 0;
    padding-bottom: 0;
}

/* END H1s & Breadcrumbs */

/* HERO */
.hero,
.sideby-image-text,
.article-hero {
    height: 475px;
    position: relative;
}

.hero .hero-img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1 {
    position: absolute;
    bottom: 50px;
    right: 60%;
    margin-left: 30px;
    padding: 32px;
    color: white;
    background: rgba(81, 40, 136, 0.85);
}

/* END HERO */

/* NEWS CARDS */
.news-cards {
    margin: 48px 30px 24px 30px;
}

.news-cards .card {
    width: calc(100% / 3 - 24px);
    margin-right: 24px;
    margin-top: 24px;
    text-align: center;
    transition: box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.news-cards .card:hover,
.news-cards .card:focus {
    border: 1px solid var(--ksu-purple-dark-25);
    box-shadow: 2px 2px 4px var(--ksu-gray-20);
    -webkit-box-shadow: 2px 2px 4px var(--ksu-gray-20);
    -moz-box-shadow: 2px 2px 4px var(--ksu-gray-20);
}

.news-cards .card:last-of-type {
    margin-right: unset;
}

.news-cards .card img {
    margin-bottom: 16px;
    height: 350px;
    width: 100%;
    object-fit: cover;
}

.news-cards .card-body {
    padding: 0 5px;
}

.news-cards h2 {
    color: var(--ksu-purple);
}

.news-cards a {
    text-decoration: none;
}

.news-cards a:not(.article-link):hover,
.news-cards a:not(.article-link):focus {
    text-decoration: underline;
}

.news-cards .card h3 {
    color: black;
    font-size: 24px;
}

/* END NEWS CARDS */

/* EXTERNAL NEWS */
.external-news {
    text-align: center;
    margin: 24px 30px 48px 30px;
}

.external-news h2 {
    margin-bottom: 32px;
    color: var(--ksu-purple);
}

/* END EXTERNAL NEWS */

/* SIDE BY IMAGE-TEXT */
.sideby-image-text {
    padding: 0;
    overflow: hidden;
}

.sideby-image {
    height: 475px;
    width: 50%;
}

.sideby-image img {
    min-height: 100%;
    object-fit: cover;
}

.sideby-text {
    width: 50%;
}

.sideby-text {
    display: flex;
    align-self: center;
    padding: 0 20px;
}

.sideby-text .text-wrapper {
    padding: 0 50px;
}

.sideby-text .text-wrapper>* {
    margin-bottom: 21px;
}

/* END SIDE BY IMAGE-TEXT */

/* EVENTS BLOCK BANNER */
.events-box {
    background: linear-gradient(80deg, #fff 84%, var(--ksu-yellow) 16%);
    padding: 30px 0;
}

.events-box .events-col {
    border-right: 4px solid var(--ksu-yellow);
    padding: 4px 30px 4px 24px;
    width: calc(100% / 5);
    align-content: center;
}

.events-box .events-col:first-of-type {
    padding-left: 30px;
}

.events-box .events-col:last-of-type {
    border-right: none;
}

.events-box .events-intro {
    display: flex;
    align-items: center;
}

.events-box h4 {
    font-size: 24px;
}

.events-box h5 {
    color: var(--ksu-purple);
    margin: 0;
    font-size: 20px;
}

.events-box a {
    text-decoration: none;
}

.events-box a:hover,
.events-box a:focus {
    text-decoration: underline;
}

.events-box a span {
    display: block;
    font-size: 16px;
}

.events-box .events-link {
    font-size: 16px;
    position: relative;
}

.events-box .events-link::after {
    content: "";
    display: inline-block;
    position: absolute;
    width: 14px;
    height: 16px;
    background-image: url("https://designstudio.moderncampus.com/clients/kansas-state-blogs/ksu-resources/images/svg/chevron-right.svg");
    margin-left: 10px;
    bottom: 1px;
}

/* END EVENTS BLOCK BANNER */

/* MORE STORIES */

.more-stories {
    margin: 0px 30px 48px 30px;
}

.more-stories h2 {
    color: var(--ksu-purple);
}

.more-stories h3 {
    margin-bottom: 0;
    line-height: 1.2;
}

.more-stories h3 a {
    text-decoration: none;
}

.more-stories h3 a:hover {
    text-decoration: underline !important;
}

.more-stories .news-item {
    display: flex;
    padding: 2rem 0;
    min-height: 200px;
    border-bottom: 1px solid transparent;
    background: linear-gradient(to right, var(--ksu-yellow) 50%, transparent 50%) repeat-x bottom;
    background-size: .9375rem 1px;
}

.more-stories .news-item:last-of-type {
    border-bottom: none;
    background: none;
}

.more-stories .news-text {
    flex: 1 1 auto;
}

.more-stories .news-image {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: .625rem;
	aspect-ratio: 1 / 1;
	max-width: 200px;
	width: 100%;
	overflow: hidden;
}

.more-stories .news-image img {
    object-fit: cover;
    width: 100%;
    height: 200px;
}

.more-stories .news-text span,
.more-stories .news-text a.taxonomy {
    font-size: 16px;
}

.more-stories .news-text span,
.more-stories .news-text p {
    margin-bottom: 12px;
}

.taxonomy {
    background-color: var(--white);
    border-radius: 100px;
    padding: 4px 16px;
    border: 2px solid var(--ksu-yellow);
}

.tags a.taxonomy {
    text-decoration: none;
    color: var(--ksu-purple);
    text-wrap: nowrap;
    font-weight: 700;
    font-size: 1rem;
	line-height: 2;
	padding: 0 .625rem;
    margin: 0.5rem 0.25rem;
}

.tags a.taxonomy:hover,
.tags a.taxonomy:focus {
    border-color: var(--ksu-purple-dark-25);
    color: var(--ksu-purple-dark-25);
}

.news-items .tags .taxonomy:nth-of-type(n + 6) {
  display: none;
}

@media (min-width: 640px) {
    .more-stories .news-item {
        display: grid;
        grid-template-columns: 1fr clamp(120px, 20vw, 200px);
        gap: 10px;
        align-items: center;
    }

    .more-stories .news-text {
        flex: unset;
        width: auto;
    }

    .more-stories .news-image {
        flex: unset;
        width: 100%;
        aspect-ratio: 1 / 1;
        max-width: 200px;
        overflow: hidden;
        justify-self: end;

        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.tags {
	display: flex;
	flex-wrap: wrap;
}

.more-stories nav {
    width: 100%;
}

.more-stories ul.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0;
}

.page-item a:link,
.page-item span {
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    padding: 10px;
}

.page-item a:link {
    color: var(--dark-gray);
}

.page-item a:link:hover,
.page-item a:link:focus {
    color: var(--ksu-purple);
}

.page-item.disabled {
    display: none;
}

.page-item.active {
    color: var(--ksu-purple);
    border-bottom: 4px solid var(--ksu-purple);
}

.page-link.next {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 12" width="8" height="12" fill="none"><path d="M7.19656 6.56509L2.68022 11.0814C2.36806 11.3936 1.86329 11.3936 1.55445 11.0814L0.803943 10.3309C0.491785 10.0188 0.491785 9.51399 0.803943 9.20515L4.00523 6.00387L0.803943 2.80258C0.491785 2.49042 0.491785 1.98565 0.803943 1.67682L1.55113 0.919666C1.86329 0.607507 2.36806 0.607507 2.6769 0.919666L7.19323 5.436C7.50871 5.74816 7.50871 6.25293 7.19656 6.56509Z" fill="%23A7A7A7"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
}

.page-link.next:hover,
.page-link.next:focus {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 12" width="8" height="12" fill="none"><path d="M7.19656 6.56509L2.68022 11.0814C2.36806 11.3936 1.86329 11.3936 1.55445 11.0814L0.803943 10.3309C0.491785 10.0188 0.491785 9.51399 0.803943 9.20515L4.00523 6.00387L0.803943 2.80258C0.491785 2.49042 0.491785 1.98565 0.803943 1.67682L1.55113 0.919666C1.86329 0.607507 2.36806 0.607507 2.6769 0.919666L7.19323 5.436C7.50871 5.74816 7.50871 6.25293 7.19656 6.56509Z" fill="%23512888"/></svg>');
}

.page-link.prev {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 12" width="8" height="12" fill="none"><path d="M0.80344 6.56509L5.31978 11.0814C5.63194 11.3936 6.13671 11.3936 6.44555 11.0814L7.19606 10.3309C7.50822 10.0188 7.50822 9.51399 7.19606 9.20515L3.99477 6.00387L7.19606 2.80258C7.50822 2.49042 7.50822 1.98565 7.19606 1.67682L6.44887 0.919666C6.13671 0.607507 5.63194 0.607507 5.3231 0.919666L0.806769 5.436C0.49129 5.74816 0.49129 6.25293 0.80344 6.56509Z" fill="%23A7A7A7"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
}

.page-link.prev:hover,
.page-link.prev:focus {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 12" width="8" height="12" fill="none"><path d="M0.80344 6.56509L5.31978 11.0814C5.63194 11.3936 6.13671 11.3936 6.44555 11.0814L7.19606 10.3309C7.50822 10.0188 7.50822 9.51399 7.19606 9.20515L3.99477 6.00387L7.19606 2.80258C7.50822 2.49042 7.50822 1.98565 7.19606 1.67682L6.44887 0.919666C6.13671 0.607507 5.63194 0.607507 5.3231 0.919666L0.806769 5.436C0.49129 5.74816 0.49129 6.25293 0.80344 6.56509Z" fill="%23512888"/></svg>');

}

/* END MORE STORIES */

/* ARTICLE HEROS */

.article-hero.hero-image,
.article-hero.hero-image + .figure-caption {
    max-width: 1170px;
    margin: auto;
}

.article-hero img.hero-img {
    min-width: 100%;
    height: 475px;
    object-fit: cover;
}

.figure-caption {
    color: #42484c;
    display: block;
    padding: 5px;
    font-style: italic;
    font-weight: 300;
    font-size: 16px;
    margin: 0 30px;
}

.article-hero.text-overlay {
    position: relative;
}

.article-hero.text-overlay .hero-text {
    background: rgba(81, 40, 136, 0.85);
    color: white;
    padding: 20px;
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
}

.article-hero.article-hero.text-overlay h1,
.article-hero.sideby-image-text h1 {
    line-height: normal;
}

.article-hero h1 {
    color: white;
}

.article-hero p {
    font-size: 24px;
}

.article-hero.sideby-image-text {
    background-color: var(--ksu-purple);
    color: white;
    text-align: center;
}

.article-hero.sideby-image-text .sideby-text {
    padding: 0 40px;
    width: 100%;
    flex: 0 0 40%;
}

.article-hero.sideby-image-text .sideby-image {
    max-height: unset;
    flex: 0 0 60%;
}

.article-hero.sideby-image-text img.hero-img {
    width: 100%;
    object-fit: cover;
}

.article-hero.sideby-image-text .sideby-image,
.article-hero.sideby-image-text .text-wrapper {
    width: 100%;
}

/* END ARTICLE HEROS */

/* ARTICLE CONTENT */

.article {
    margin: 48px auto;
    max-width: 970px;
}

.article h2 {
    color: var(--ksu-purple);
}

.article .news-cards {
    margin-left: unset;
    margin-right: unset;
}

.article .tags {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
}

/* CONTACT BANNER */
.contact-body {
    border-top: 5px solid var(--ksu-purple);
    padding: 24px 30px;
}

.contact-body span {
    font-weight: 700;
}

.contact-body h2 {
    margin-bottom: 20px;
}

.contact-body p {
    margin-bottom: 0;
}

/* END CONTACT BANNER */

/* TESTIMONIALS */
.testimonial {
    position: relative;
    max-height: 500px;
    margin-top: 32px;
}

.testimonial .testimonial-image,
.testimonial img {
    max-height: 500px;
}

.testimonial img {
    min-width: 100%;
    object-fit: cover;
    object-position: top;
}

.testimonial .testimonial-info {
    position: absolute;
    background: rgba(81, 40, 136, 0.85);
    color: white;
    padding: 20px 24px;
    width: 360px;
    bottom: 0;
    left: 30px;
}

.testimonial.testimonial-text-right .testimonial-info {
    right: 30px;
    left: unset;
}

.testimonial .testimonial-info p {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: unset;
}

.testimonial .testimonial-info span {
    text-transform: uppercase;
    margin-left: 8px;
}

.testimonial .testimonial-info span::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 3px;
    background-color: white;
    margin-right: 10px;
    margin-bottom: 5px;
}

.testimonial-banner {
    padding: 32px 97px;
    margin: 32px auto;
    border-top: 4px solid var(--ksu-yellow);
    border-bottom: 2px solid var(--ksu-yellow);
    display: block;
    max-width: 66%;
}

.testimonial-banner .quote {
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-banner p {
    font-size: 24px;
}

/* END TESTIMONIALS */

/* IMAGE WITH CAPTION */

figure.article-figure {
    width: 365px;
    float: left;
    margin: 8px 24px 15px 0;
}

figure.article-figure.float-right {
    margin-left: 24px;
    float: right;
}

figure.article-figure img {
    width: 365px;
    height: 265px;
    object-fit: cover;
    display: block;
}

figure.article-figure figcaption {
    width: 365px;
    font-size: 14px;
    line-height: 1.4;
    font-style: italic;
    margin-top: 5px;
}


/* END IMAGE WITH CAPTION */

/* DROPCAP */

.dropcap {
    float: left;
    line-height: 1;
    padding-right: 0.1em;
    font-size: 80px;
    font-style: normal;
    font-weight: 700;
}

.dropcap:before,
.dropcap:after {
    content: "";
    display: block;
}

.dropcap:before {
    margin-top: -0.2em;
}

.dropcap:after {
    margin-bottom: -0.15em;
}

.ksu-drop-cap::first-letter {
	color: #512888;
	font-weight: 700;
	font-size: 3.5rem;
	padding: 0 0.625rem 0 0;
	display: inline-block;
	float: left;
	line-height: 1;
	}

.sr-only:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* END DROPCAP */

/* BYLINE */

.article-byline {
    display: flex;
    flex-direction: column;
    margin: 32px 0;
    font-size: 16px;
}

.author-image {
    border-radius: 40px;
    width: 40px;
    height: 40px;
    object-fit: cover;
    margin-right: 5px;
}

.article-byline p {
    margin: 0;
}

.article-byline .date,
.ksu-news__dateline {
    font-weight: 700;
}

.article-byline .date {
    margin-top: 12px;
}

/* END BYLINE */
/* END ARTICLE CONTENT */

/* Responsive styles from blogs-responsive.css */
/* Portrait phones and smaller: XS */
@media only screen and (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }

    .news-cards .card img {
        height: 150px;
    }

    figure.article-figure.float-left,
    figure.article-figure.float-right {
        margin: unset;
        float: unset !important;
    }

    figure.article-figure,
    figure.article-figure img,
    figure.article-figure figcaption {
        width: unset;
    }

    .testimonial-banner {
        max-width: 100%;
    }

}

@media only screen and (min-width: 481px) and (max-width: 767px) {
    .news-cards .card img {
        height: 200px;
        object-position: top;
    }
}

/* Landscape phones and portrait tablets: SM */
@media only screen and (max-width: 767px) {
    .news-cards .row {
        flex-direction: column;
    }

    .news-cards .card {
        width: 100%;
        margin: 5px 0;
    }

    .event-item .event-text {
        line-height: 1.35;
    }

    .event-item .event-item-time-location .time,
    .event-item .event-item-time-location .location {
        display: block;
        margin-left: 0;
    }

    .event-item .event-date {
        vertical-align: top;
    }

    .more-stories .news-image {
        margin-bottom: 10px;
    }

    .more-stories .news-item {
        flex-direction: column-reverse;
    }

    .more-stories .news-image {
        flex: 0 0 100%;
        padding-left: 0;
    }

    .more-stories .news-text {
        flex: 0 0 100%;
    }

    .more-stories .news-image img {
        width: 100%;
        height: auto;
        max-height: 300px;
    }

    .testimonial {
        max-height: unset;
    }

    .testimonial .testimonial-info {
        position: unset;
        width: 100%;
        background-color: var(--ksu-purple);
    }

    .article-hero.sideby-image-text .sideby-text .text-wrapper>* {
        margin-bottom: 10px;
    }
}

/* Portrait tablets and small desktops: MD */
@media only screen and (min-width: 768px) and (max-width: 992px) {
    .testimonial .testimonial-info {
        width: 40%;
    }

    .article-hero.text-overlay .hero-text {
        padding: 10px 20px;
    }
}

@media only screen and (max-width: 992px) {
    .hero h1 {
        margin: 0;
        bottom: 0;
        right: 0;
        left: 0;
    }

    .sideby-image-text {
        height: unset;
    }

    .sideby-image-text .row {
        flex-direction: column;
    }

    .sideby-text,
    .sideby-image {
        width: 100%;
    }

    .sideby-image {
        overflow: hidden;
    }

    .article-hero .sideby-text {
        position: absolute;
        bottom: 0;
        opacity: 0.85;
        background-color: var(--ksu-purple);
    }

    .sideby-text .text-wrapper {
        padding: 20px 0;
    }

    .sideby-text .text-wrapper > * {
        margin-bottom: 5px;
    }

    .events-box .row {
        flex-direction: column;
    }

    .events-box h4 {
        font-size: 28px;
    }

    .events-box .events-col {
        border-bottom: 2px solid var(--ksu-yellow);
        border-right: none;
        padding: 20px;
        width: 100%;
    }

    .events-box .events-col:first-of-type {
        padding: 20px;
    }

    .events-box .events-col:last-of-type {
        border-bottom: none;
    }

    .more-stories .news-image {
        flex: 0 0 30%;
    }

    .more-stories .news-text {
        flex: 0 0 70%;
    }

    .article {
        margin: 0 40px;
    }

    .testimonial .testimonial-info p {
        font-size: 16px;
    }

    .testimonial-banner {
        padding: 32px;
    }

    .article-hero.text-overlay h1,
    .article-hero.sideby-image-text h1 {
        font-size: 24px;
    }

    .article-hero.text-overlay p.subtitle,
    .article-hero.sideby-image-text p.subtitle {
        font-size: 16px;
    }

}

/* // Extra large devices (large desktops, 1200px and up) */
@media only screen and (max-width: 1200px) {
    .blog-heading,
    .figure-caption,
    .article-hero.hero-image + .figure-caption {
        margin: 12px 30px;
    }
}

@media only screen and (min-width: 1200px) {
    
    .article-hero.text-overlay .hero-text {
        padding: 32px;
        bottom: 50px;
        right: 60%;
        margin-left: 30px;
    }

    .article-hero.sideby-image-text .row {
        flex-direction: row;
    }
}

@media only screen and (min-width: 1400px) {
    .news-cards,
    .more-stories,
    .external-news {
        max-width: 1320px;
        margin: 48px auto 24px auto;
    }

    .events-box .row {
        max-width: 1320px;
        margin: auto;
    }
}

/* Previous news styles from ksu-news.css */
/* Article styles */
.ksu-news__deck {
  margin-top: -0.75rem;
  margin-bottom: 1.5rem;
  color: #000;
  font-size: 1.40625rem;
  font-style: italic;
  font-weight: 700;
}

.ksu-news__byline {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.5; 
}

.ksu-news-byline__image {
  margin-right: var(--ksu-rhythm-horizontal);
}

.ksu-news-byline__image > img {
  height: 4.125rem;
}

.ksu-news__dateline {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.ksu-news__cutline {
  margin-top: -0.75rem;
  font-size: 1rem;
  font-style: italic;
}

.ksu-new-cutline > a {
  font-weight: bold;
}

.level-container__right ul > li {
  margin-bottom: 1.5rem;
}

/* TODO: this should probably be a site-wide change */
.link-button:active,
.link-button:focus,
.link-button:hover {
  color: var(--ksu-purple-dark-25);
  text-decoration: underline;
}

/* Homepage */
.home-news__feature {
  margin: 0 10px 0 10px;
}

.home-news__feature a:active,
.home-news__feature a:focus,
.home-news__feature a:hover {
  color: var(--ksu-purple-dark-25);
  text-decoration: underline;
}

.home-news__feature .news__image {
  margin-bottom: 0.5rem;
}

.home-news__feature .ksu-cell-text {
  margin-bottom: 2rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;  
}

.media-cta,
.news-layer,
.university-life,
.ksu-expert-news {
  margin-bottom: 4rem;
}

/* K-State Experts changes */
.ksu-expert-news__info a {
  text-decoration: none;
}

.ksu-expert-news__info a:active,
.ksu-expert-news__info a:focus,
.ksu-expert-news__info a:hover {
  color: var(--ksu-purple-dark-25);
  text-decoration: underline;
}


/* Arcticle list */
.news-list article {
  margin-bottom: 2rem;
}

.news-list article::after {
  clear: both;
}

.news-list article::before,
.news-list article::after {
  content: "";
  display: table;
}

.news-list a:link {
  text-decoration: none;
}

.news-list a:active,
.news-list a:focus,
.news-list a:hover {
  color: var(--ksu-purple-dark-25);
  text-decoration: underline;
}

.news-list h5 {
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.news-list img {
  width: 20%;
  margin-right: calc(var(--ksu-rhythm-horizontal) * 1.5);
  margin-bottom: 0;
}

.news-list p {
  margin-bottom: 0;
  font-size: 1.25rem;
  line-height: 1.4;
}

.ksu-news-date {
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
