/* Centered Page Header */
.classes-header {
    text-align: center;
    font-size: 2.5em;
    font-family: 'RoundStyle', serif;
    color: #f5deb3;
    margin-top: 50px;
    margin-bottom: 30px;
}

/* Container for all classes side-by-side */
.classes-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch; /* Ensures columns match heights */
    gap: 1px;
    margin-top: 20px; /* Adjust spacing below header */
}

/* Individual class sections */
.class-section {
    flex: 1;  
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0) 100%
    ); /* Default gradient */
    border-left: 1px solid #8B4513;
    border-right: 1px solid #8B4513;
    text-align: center;
    color: #f5deb3;
    padding-top: 60px;
    padding-bottom: 60px;
    padding-left: 20px;
    padding-right: 20px;
}

/* Make gradient solid black on mobile */
@media (max-width: 800px) {
    .class-section {
        background: black; /* Override gradient */
    }
}

/* Content area (image + paragraph) grows to fill space before button */
.class-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 20px;
}

/* Class images at 90% width */
.class-content img {
    max-width: 90%;
    height: auto;
    display: block;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Paragraph text styling */
.class-content p {
    font-size: 1em;
    font-family: 'Californian FB', serif;
    line-height: 1.4em;
    max-width: 500px;
    margin: 0 auto;
    margin-bottom: 0;
}

/* "View Cards" Button */
.class-button {
    background-color: #ccc;
    color: #222;
    display: inline-block;
    padding: 12px 20px;
    font-size: 1em;
    font-family: 'RoundStyle', Arial, sans-serif;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    margin-top: auto;
    align-self: center;
    transition: background-color 0.3s ease;
}

.class-button:hover {
    background-color: #bbb;
}

/* Mobile adjustments */
@media (max-width: 800px) {
    .classes-container {
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }
    .class-section {
        width: 90%;
        margin-bottom: 1px;
    }
}