/* General Styles */
div#page{
    background-color: #141414!important; /* Darker background */
    z-index: -1;
}

div.container.martial-art-content{
    margin-top:-630px!important;
    z-index: 2;
}
div#body.martial-art-content{
    margin-top: -95px;
    z-index: 1;
}
p.martial-art-description{
    color: #eee!important;
}
h1.martial-art-title{
    text-transform: uppercase;
    font-size: 4rem!important;
}

h2.section-header {
    color: #FFF!important;
}
/* Hero Section */
.hero-section {
    position: relative;
    height: 140vh;
    overflow: hidden;
    display: flex;
    align-items: start;
    justify-content: center;
    color: #fff;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgb(15, 15, 15) 80%);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) grayscale(70%); /* Darkened brightness */
    object-position: top;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 80%, rgba(14, 14, 14, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 80%, rgba(17, 17, 17, 0) 100%);
}

.hero-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(34, 34, 34, 0.3));
    z-index: 1;
}

.hero-overlay {
    max-width: 55%;
    text-align: left!important;
    z-index: 2;
    padding-top:250px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}



.button.join-now {
    background: #e74c3c;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.button.join-now:hover {
    background: #c0392b;
}

/* Section Headers */
.section-header {
    font-size: 2rem;
    margin: 80px 0 20px;
    text-align: center;
    color: #333;
}

/* Card Grid */
div.container div.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    overflow:visible!important;
}

.card {
    background: #f3f3f3;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.card-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    object-position: top;
}

.card-img#instructors{
    height: 500px;

}


.card-content {
    padding: 20px;
    text-align: left;
}

.card-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.card-subtitle {
    font-size: 1rem;
    color: #888;
    margin-bottom: 15px;
    font-style: italic;
}

.card-description {
    font-size: 1rem!important;
    width: 100%!important;
    color: #555;
}

/* Upcoming Classes Section */
.upcoming-classes {
    padding: 20px 20px;
    text-align: left;
    color: #eee;
    margin: 10px auto 60px auto!important;
    max-width: 1200px;
}

.upcoming-classes h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: #f7d65e; /* Accent color for the title */
}
.class-group {
    margin-bottom: 0px;
}

.class-row-label {
    font-size: 1.8rem;
    font-weight: bold;
    color: #f7d65e;
    margin: 40px 0 20px 0 !important;
}

.class-list {
    display: flex; /* Use flexbox for layout */
    flex-wrap: wrap; /* Allow items to wrap to the next row */
    gap: 20px; /* Maintain spacing between items */
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: flex-start; /* Align items to the left */
}

.class-list li {
    position: relative; /* Enable positioning for pseudo-element */
    background: #fbfbfb;
    padding: 15px;
    max-width: 300px; /* Set a maximum width for each box */
    flex: 1 1 300px; /* Allow items to grow and shrink, maintaining 300px base width */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden; /* Ensure the pseudo-element doesn't overflow */
}

.class-list li::before {
    content: ""; /* Empty content for pseudo-element */
    position: absolute;
    top: 50%; /* Center vertically */
    left: 60%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Perfect centering */
    width: 100%; /* Full width of the list item */
    height: 100%; /* Full height of the list item */
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.22), /* Subtle black overlay */
        rgba(255, 255, 255, 0.76) /* Faded white overlay */
    ), url(/images/SYMBOL.png) no-repeat center center; /* Center the image */
    background-size: cover; /* Ensure the image scales properly */
    z-index: 0; /* Keep it behind the content */
    opacity: 0.2; /* Make it faded */
    pointer-events: none; /* Make it unclickable */
}

.class-list li > * {
    position: relative; /* Ensure the content is above the pseudo-element */
    z-index: 1; /* Layer content above the background symbol */
}
.class-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    background: #f0f0f0;
}

.class-list li span.time {
    font-size: 1rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 5px;
}

.class-list li strong {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
}

.class-list li p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    line-height: 1.4rem;
}

/* View Schedule Button */
.button.view-schedule {
    display: block;
    background: #e74c3c;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    margin: 30px auto 0 auto;
    max-width: 300px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.button.view-schedule:hover {
    background: #c0392b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 100vh;
    }

    .hero-image {
        -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0) 100%);
        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0) 100%);
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
    div.card-grid .card{
        margin: 0 10px!important;
    }

    .card-description {
        font-size: 1rem!important;
        color: #555;
        line-height: 25px;
    }
    .hero-overlay {
        max-width: 85%;
        padding-top: 140px;
    }
    p.martial-art-description {
        font-size:1rem!important;
        line-height: 20px!important;
        width: 100%!important;
    }
    .hero-overlay h1.martial-art-title {
        padding: 5px 0 0 0 !important;
        text-transform: uppercase;
        font-size: 2rem!important;
    }

    .section-header {
        margin:70px auto 20px auto!important;
        font-size:2rem!important;
    }
    div.container.martial-art-content{
        margin-top:-230px!important;
        z-index: 1;
    }
}
