/* Flex Center */
div.hero-section,
div.homepage-card-container div.homepage-card a.card-button,
div.community-card div.video-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
div.hero-section {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 60px 20px;
}

div.hero-section::before, body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

div.hero-section::before {
    background-color: rgba(255, 255, 255, 0.7);
}

div.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

h1.hero-title {
    font-size: 24px;
    color: #1a3a52;
    line-height: 1.3;
    font-weight: 400;
}

div.hero-search-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

input.hero-search-input {
    width: 100%;
    max-width: 500px;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #ffffff;
    color: #333;
    outline: none;
}

input.hero-search-input::placeholder {
    color: #999;
}

input.hero-search-input:focus {
    border-color: #00a1df;
    box-shadow: 0 0 5px rgba(0, 161, 223, 0.3);
}

div.homepage-card-container {
    margin-top: 28px;
    margin-bottom: 48px;
}

div.homepage-card-container div.homepage-card {
    border-radius: 12px;
    padding: 1px 20px 20px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

div.homepage-card-container div.homepage-card h3.card-title {
    font-size: 28px;
    color: #6a4c93;
    margin-bottom: 15px;
}

div.homepage-card-container div.homepage-card p.description {
    font: 400 16px 'Lato', sans-serif;
    line-height: 1.3;
    color: #333;
}

div.homepage-card-container div.homepage-card a.card-button {
    background-color: #00a1df;
    border: none;
    border-radius: 6px;
    padding: 12px;
    color: white !important;
    gap: 8px;
    margin-top: 16px;
}

div.homepage-card-container div.homepage-card a.card-button {
    font: 500 16px 'Lato', sans-serif;
}

/* Blockquote */
div.author-quote-section,
div.introduction-section {
    margin-bottom: 20px;
}

div.author-quote-section {
    border: 1px solid #0094d9;
    border-radius: 12px; /* Rounded corners */
    background-color: #fdfaf3; /* Light beige background to match the image */
    padding: 10px 50px 0 50px;
}

.author-quote-section .quote-wrapper {
    position: relative;
}

div.author-quote-section blockquote {
    position: relative;
    padding: 1.5rem 1.2rem;
    width: 100%;
    margin: 0;
    border-left: 0;
    font: 400 1.8rem 'lato';
    line-height: 1.3;
}

div.author-quote-section blockquote::before,
div.author-quote-section blockquote::after {
    position: absolute;
    color: #fde3e1;
    font-size: 10rem;
}

div.author-quote-section blockquote::before {
    content: "\201c";
    top: -24px;
    right: 100%;
}

div.author-quote-section blockquote::after {
    content: "\201e";
    left: 100%;
    top: auto;
    bottom: -30px;
}

div.author-quote-section p.author-name {
    font: italic 600 1.8rem 'Lato', sans-serif;
    text-align: right;
    margin-top: -10px;
    margin-right: 10px;
    margin-bottom: 0;
    color: #333;
}

div.author-quote-section .author-image {
    max-height: 150px; /* Approximate sizing based on image */
    float: right;
}

div.introduction-section {
    border-radius: 20px; /* Rounded corners */
    background-color: #fbf5ff;
    padding: 40px 20px;
}

div.introduction-section div.introduction-row:not(:last-child) {
    margin-bottom: 30px;
}

div.introduction-section h3.introduction-subtitle {
    font-size: 32px;
}

div.introduction-section h4.introduction-subtitle {
    font-size: 24px;
}

div.introduction-section p.introduction-description {
    font: 400 16px 'Lato', sans-serif;
    line-height: 1.3;
    color: #333;
}

/* Community Card Styling */
div.introduction-section div.community-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 100%;
}

div.community-card div.video-thumbnail {
    height: 106px;
}

div.community-card div.video-thumbnail iframe.youtube-embed-iframe {
    transform: scale(0.75);
    transform-origin: center;
}

div.community-card h4.community-card-title {
    color: #00a1df;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

div.community-card p.description {
    font-size: 14px;
    line-height: 1.5;
}

/* Center odd card on sm screens */
@media (min-width: 768px) and (max-width: 991px) {
    div.homepage-card-row > div:nth-child(3) {
        margin-left: 25%;
        margin-right: 25%;
    }
}

@media (max-width: 991px) {
    div.richard-webb-quote-img {
        display: flex;
        justify-content: center;
    }
}