/*!
 * Talk Python Training - Landing Page CSS (Bulma Version)
 * Adapted from Bootstrap 3 Start Bootstrap template to Bulma
 * Original licensed under the Apache License v2.0.
 */

body,
html {
    width: 100%;
    height: 100%;
}

body,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Work Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
}

.topnav {
    font-size: 14px;
}

/* Bulma's equivalent to Bootstrap's .lead */
.is-size-5 {
    font-size: 18px;
    font-weight: 400;
}

.intro-header {
    margin-top: 0; /* Body already has padding-top for fixed navbar */
    padding-top: 50px;
    padding-bottom: 50px;
    text-align: center;
    color: #f8f8f8;
    background-size: cover;
}

.intro-message {
    position: relative;
    padding-bottom: 30%;
    padding-top: 15%;
}

/* Override Bulma's dark theme heading colors for hero section */
/* Use rem to avoid body font-size scaling (5em at 16px base = 80px) */
.intro-message > h1,
.intro-message h1 {
    margin: 0;
    margin-top: -15%;
    margin-bottom: 0;
    font-size: 5rem;
    color: #333;
    font-weight: 700;
}

.intro-divider {
    width: 400px;
    border-top: 1px solid #f8f8f8;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

/* Override Bulma's dark theme heading colors for hero section */
.intro-message > h3, 
.intro-message > h2,
.intro-message h2,
.intro-message h3 {
    color: #333;
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0;
}

/* Hero CTA button - ensure white text */
.intro-message .button,
.intro-message a.button {
    color: #fff !important;
    font-size: 20px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: rgba(0,0,0, .6);
    padding: 15px;
    display: inline-block;
    height: auto;
    margin-top: 0;
}

.content-section-a h3, .content-section-b h3 {
    font-size: 30px;
}

/* Newsletter signup danger button - match Bootstrap's btn-danger styling */
.newsletter-signup .button.is-danger,
.newsletter-signup a.button.is-danger {
    background-color: #d9534f; /* Bootstrap's danger red */
    border-color: #d43f3a;
    color: #fff !important;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.newsletter-signup .button.is-danger:hover {
    background-color: #c9302c;
    border-color: #ac2925;
}

/* Top Courses Section - match Bootstrap grid spacing */
.top-courses .columns {
    margin-left: -15px;
    margin-right: -15px;
}

.top-courses .columns > .column {
    padding-left: 15px;
    padding-right: 15px;
}

/* Course images should fill container and have consistent sizing */
.top-courses .course-image-container {
    text-align: center;
    margin-bottom: 15px;
}

.top-courses .course-image-container .img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Course title and details text - smaller to match Bootstrap */
.top-courses .pitch h3 {
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 3px;
    line-height: 1.3;
}

.top-courses .pitch h3 a {
    color: #ddd;
}

.top-courses .subtext {
    font-size: 14px;
    font-weight: 300;
    color: #999;
}

.top-courses .subtext .time,
.top-courses .subtext .price {
    color: #999;
}

/* More courses link - keep it compact, less vertical gap */
.top-courses .more-courses {
    text-align: center;
    margin-top: 10px;
}

.top-courses .more-courses a {
    color: #2aabd2;
    font-weight: normal;
    font-size: 18px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .intro-message {
        padding-bottom: 15%;
    }

    .intro-message > h1,
    .intro-message h1 {
        font-size: 3rem;
    }

    ul.intro-social-buttons > li {
        display: block;
        margin-bottom: 20px;
        padding: 0;
    }

    ul.intro-social-buttons > li:last-child {
        margin-bottom: 0;
    }

    .intro-divider {
        width: 100%;
    }
}

.network-name {
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
}

.content-section-a {
    padding: 50px 0;
    background-color: #f8f8f8;
}

.content-section-b {
    padding: 50px 0;
    border-top: 1px solid #e7e7e7;
    border-bottom: 1px solid #e7e7e7;
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading-spacer {
    float: left;
    width: 200px;
    border-top: 3px solid #e7e7e7;
}

.banner {
    padding: 100px 0;
    color: #f8f8f8;
    background-size: cover;
}

.banner h2 {
    margin: 0;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.6);
    font-size: 3em;
}

.banner ul {
    margin-bottom: 0;
}

.banner-social-buttons {
    float: right;
    margin-top: 0;
}

@media (max-width: 1200px) {
    ul.banner-social-buttons {
        float: left;
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .banner h2 {
        margin: 0;
        text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.6);
        font-size: 3em;
    }

    ul.banner-social-buttons > li {
        display: block;
        margin-bottom: 20px;
        padding: 0;
    }

    ul.banner-social-buttons > li:last-child {
        margin-bottom: 0;
    }
}

footer {
    padding: 50px 0;
    background-color: #f8f8f8;
}

p.copyright {
    margin: 15px 0 0;
}

