:root {
    --color-primary: #092749;
    --color-secondary: #5E717C;
    --color-accents: #93032E;
    --color-border: #707070;
}

* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
html {
    font-size: 62.5%;
}

body {
    font-family: 'Roboto Slab', serif;
    color: var(--color-primary);
    line-height: 1.5;
}

h1 {
    font-size: 7rem;
    font-weight: 900;
}

h2 {
    font-size: 3rem;
    font-weight: 400;
}

h3 {
    font-size: 2.5rem;
}

p {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 2rem;
    color: var(--color-secondary);
}

.text--accent {
    color: var(--color-accents);
}

@media screen and (min-width: 1024px) {
    h1 {
        font-size: 8rem;
    }

    h2 {
        font-size: 4rem;
    }
}

/* Lists */
.list {
    list-style: none;
    padding-left: 0;
}

.list--tick {
    list-style-image: url("/static/videolectures/img/tick.svg");
    padding-left: 3rem;
}

.list--inline .list__item {
    display: inline-block;
    margin: 2rem;
}

/* Icons */
.icon {
    width: 40px;
    height: 40px;
}

.icon--primary {
    fill: var(--color-primary);
}

.icon--secondary {
    fill: var(--color-secondary);
}

.icon--white {
    fill: #fff;
}

.icon-container {
    align-items: center;
    border-radius: 100%;
    display: inline-flex;
    height: 64px;
    justify-content: center;
    width: 64px;
}

/* Buttons */
.btn {
    border-radius: 20px;
    border: none;
    padding: 5px 2.9rem;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    outline: 0;
    margin: 1rem 0;
    color: #fff;
}

.btn--primary {
    background: var(--color-primary);
}

.btn--primary:hover {
    background: #103d6f;
}

.btn--secondary {
    background: var(--color-secondary);
}

.btn--secondary:hover {
    background: #6a7f8a;
}

.btn--accent {
    background: var(--color-accents);
}

.btn--accent:hover {
    background: #b20434;
}

.btn--login {
    font-size: 2rem;
}

/* Cards */
.card-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    column-gap: 1rem;
    row-gap: 3rem;
}

.card {
    border-radius: 20px;
    border: 1px solid var(--color-border);
    text-align: center;
    width: 30rem;
    height: 100%;
}

.card__heading {
    font-weight: 400;
    font-size: 3rem;
}

.card__content {
    font-size: 2rem;
    margin-top: 1rem;
}

@media screen and (min-width: 1024px) {
    .card__heading {
        font-size: 3rem;
    }

    .card__content {
        font-size: 2rem;
    }
}


/* Grids */
.grid {
    display: grid;
}

.grid--2x3 {
    gap: 2rem;
}

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

@media screen and (min-width: 1024px) {
    .grid--2x3 {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }

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

}

@media screen and (min-width: 768px) {
    .grid--1x2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Blocks */
.block {
    padding: 0 2rem;
}

.block__header {
    text-align: center;
    margin-bottom: 4rem;
}

.block--secondary {
    background: var(--color-secondary);
}

@media screen and (min-width: 1024px) {
    .block__header {
        text-align: left;
    }
}

.container {
    max-width: 1140px;
    margin: 0 auto;
}

.collapsible__content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s;
}

.collapsible--expanded .collapsible__content {
    max-height: 100vh;
    opacity: 1;
}

/* Navigation Bar */
.nav {
    background: var(--color-primary);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.nav__list {
    width: 100%;
    margin: 0 0 0 2rem;
    padding: 1rem 1rem 0 1rem;
    line-height: 4rem;
}

.nav__item {
    border-bottom: 0.5px solid cornflowerblue;
    font-size: 2rem;
}

.nav__item > a {
    color: #fff;
    text-decoration: none;
}

.nav__button {
    padding-top: 0.5rem;
    font-size: 2rem;
}

.nav__toggler {
    margin: auto 2rem;
}

.nav__heading {
    font-size: 3rem;
    font-weight: 600;
    color: #fff;
    padding: 10px;
    margin: auto 0;
}

.nav.collapsible--expanded .nav__toggler {
    transform: rotate(90deg);
    transition: transform 0.3s;
}

@media screen and (min-width: 768px) {
    .nav__toggler {
        display: none;
    }

    .nav__list {
        width: auto;
        display: flex;
        font-size: 1.6rem;
        max-height: 100%;
        opacity: 1;
    }

    .nav__item {
        border: 0;
        padding: 0 1rem;
        font-size: 1.6rem;
    }


}

@media screen and (min-width: 2560px) {
    .nav__heading {
        font-size: 4rem;
    }

    .nav__item {
        font-size: 4rem;
        padding: 3rem;
    }

    .nav__button {
        font-size: 4rem !important;
    }
}


/* Hero Element */
.hero__image {
    width: 100%;
}

.hero__heading {
    margin-top: 0;
    text-align: center;
    font-size: 4rem;
    text-shadow: 1px 30px 30px rgba(0, 0, 0, 0.5);
    padding-top: 1rem;
    line-height: 8rem;
}

@media screen and (min-width: 768px) {
    .hero__heading {
        padding-top: 2rem;
        font-size: 8rem;
    }
}

/* Features */
.features {
    justify-items: center;
    align-items: stretch;
}

.feature {
    text-align: center;
    max-width: 280px;
    margin: auto;
}

@media screen and (min-width: 768px) {
    .feature {
        margin: 0;
    }
}

/* Callouts */
.callout {
    margin-top: 3rem;
    background: var(--color-secondary);
}

.callout-grid {
    justify-items: center;
    align-items: center;
}

.callout__heading {
    text-align: center;
    font-weight: 700;
    font-size: 4rem;
}

.callout__button {
    font-size: 4rem;
    white-space: normal;
    margin: 0 2rem 1rem 2rem;
}

@media screen and (min-width: 768px) {
    .callout__heading {
        justify-self: start;
        margin-left: 4.5rem;
    }

    .callout__button-container {
        justify-self: end;
    }


    .callout__button {
        padding: 2rem;
        font-size: 4rem;
        margin-right: 4rem;

    }

}

/* Footer */
.footer {
    background: var(--color-primary);
}

.footer-text {
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 2rem;
}

/* Resources */
.resources {
    justify-items: center;
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 2rem;
}

.resources-heading1 {
    margin-bottom: 2rem;
}

.resources-heading2 {
    margin-top: 0;
}

.resources__module__heading {
    margin-top: 0;
}

.resources--greyed {
    color: grey;
}

/*.resources--greyed a {*/
/*    pointer-events: none;*/
/*}*/

/* Video Listing */
.video__thumbnail {
    max-width: 40vw;
    justify-self: end;
    margin: 1rem 0 1rem 1rem;
    border: 2px solid var(--color-primary);
    border-radius: 20px;
}

.video__container {
    margin: 1rem 0 1rem 1rem;
}

.video__title {
    align-self: center;
    font-size: 1.5rem;
    text-decoration: underline;
    padding-left: 1rem;
}

@media screen and (min-width: 768px) {
    .video__thumbnail {
        max-width: 20vw;
        justify-self: center;
        margin-bottom: 2rem;
    }

    .video__title {
        padding: 0;
        font-size: 2rem;
    }
}

/* Alerts */
.alert {
    margin-top: 2rem;
    width: 100%;
    font-size: 2rem;
    text-align: center;
}

.alert-warning {
    background: var(--color-accents);
    color: #fff;
}

.alert > a {
    text-decoration: underline;
}

.errorlist {
    font-size: 2rem;
    color: var(--color-accents);
}

@media screen and (min-width: 768px){
    .alert {
        font-size: 4rem;
    }
}


.plan {
    margin: 0 auto;
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    overflow: hidden; /* Ensure child elements respect border-radius */
    text-align: center;
}

.plan__heading {
    font-weight: 400;
    font-size: 3rem;
    padding: 1rem;
    margin-top: 0; /* Remove default margin */
    color: #fff;
}

.plan--primary .plan__heading {
    background: var(--color-primary);
    color: #fff;
}

.plan--outline .plan__heading {
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-primary);
}

.plan__price {
    font-size: 1.5rem;
}

.plan__content {
    font-size: 2rem;
    margin-top: 1rem;
}

.plan__features {
    text-align: left;
    margin-left: 2rem;
}

.grid__plan {
    margin: 1rem auto;
    width: 100%;
    max-width: 80%;
    display: grid;
    gap: 2rem;
}

@media screen and (min-width: 1024px) {
    .plan__heading {
        font-size: 3rem;
    }

    .plan__content {
        font-size: 2rem;
    }
}


/* Membership Bar */


.membership-bar {
    background: #e05345;
    color: #fff;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem;
}

.membership-bar h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.membership-bar p {
    font-size: 1.5rem;
    line-height: 1.5;
    color: #fff;
}

.membership-bar a {
    font-weight: bold;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
}

@media (max-width: 768px) {
    .membership-bar {
        font-size: 0.8rem;
    }
}

.membership__buttons {
    display: inline-block;
}


.search-form {
    width: 100%;
    text-align: center;
}


.search-input {
    width: 100%;
    padding: 15px;
    font-size: 1.5rem;
    border: none;
    outline: none;
    box-shadow: 0 2px 5px var(--color-primary);
}

/* Notes */
.notes__top-bar {
    background-color: var(--color-primary);
    color: #fff;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 1rem;
}

@media screen and (min-width: 768px) {
    .notes__top-bar {
        font-size: 2rem;
        border-radius: 10px;
    }
}

@media print {
    html, body {
        display: none;  /* hide whole page */
    }
}

#pdf-render {
    width: 100%;
    height: auto;
}

/* Blog App */
.blogpost_listing--header {
    font-size: 4rem;
    text-align: center;
    margin: 0 auto 1rem auto;
}

.blogpost_listing {
    border-top: 1px solid grey;
}

.container a:nth-of-type(even) .blogpost_listing {
    background: lightgrey;
}

.blogpost_listing__heading {
    margin: 0.5rem auto 0 auto;
    font-size: 2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blogpost_listing__shortdesc {
    margin: 0 auto;
    font-size: 1.5rem;
}

.blog {
    max-width: 100%;
    margin: 0 auto;
}

.blog__header {
    text-align: center;
    font-size: 2.4rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.blog h2 {
    font-size: 2rem;
}

.blog h3 {
    font-size: 1.8rem;
}

.blog p {
    font-size: 1.6rem;
}

.blog__author {
    font-size: 1.4rem !important;
    color: #555;
    margin-top: 5px;
}

.blog img {
    max-width: 100%;
    height: auto;
}

@media screen and (min-width: 768px) {
    .blog__header {
        text-align: left;
    }

    .blog__author {
        text-align: left;
    }
}

@media screen and (min-width: 1024px) {
    .blog {
        max-width: 768px;
    }

    .blog__header {
        font-size: 3.6rem;
    }

    .blog h2 {
        font-size: 2.8rem;
    }

    .blog h3 {
        font-size: 2.4rem;
    }

    .blog p {
        font-size: 1.8rem;
    }

    .blog__author {
        font-size: 1.2rem;
        margin-top: 3px;
    }
}