/* ============================================
   COMPONENTS: Class images, list items, social
   ============================================ */

/* Classes Page - Featured Image Styling */
.class-image-wrapper {
    position: relative;
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: flex; /* Use flexbox to center content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically if height was fixed (optional here) */
    border-radius: 15px;
    overflow: hidden; /* Ensure nothing spills out */
}

.class-featured-img {
    width: auto; /* Allow width to adjust naturally */
    max-width: 100%; /* Constrain to container width */
    height: auto; /* Allow height to adjust naturally */
    max-height: 700px; /* Cap height to prevent super-tall images */
    object-fit: contain; /* Ensure the whole image is seen */
    border-radius: 15px; /* Rounded corners */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: block;
}

/* Responsive sizing for smaller screens */
@media (max-width: 768px) {
    .class-featured-img {
        max-height: 500px; /* Reduce max height on tablets */
    }
}

@media (max-width: 480px) {
    .class-featured-img {
        max-height: 400px; /* Reduce max height on mobile */
    }
}

/* Classes and Blog List - Item Styling */
.class-list-item,
.blog-list-item {
    padding: 1.5rem;
}

.class-list-item a,
.blog-list-item a {
    text-decoration: none !important;
}

.class-list-item h2 a,
.class-list-item h3 a,
.class-list-item h4 a,
.blog-list-item h2 a,
.blog-list-item h3 a,
.blog-list-item h4 a {
    border-bottom: none !important;
}

.class-list-item h2 a:hover,
.class-list-item h3 a:hover,
.class-list-item h4 a:hover,
.blog-list-item h2 a:hover,
.blog-list-item h3 a:hover,
.blog-list-item h4 a:hover {
    border-bottom: none !important;
}

.class-list-thumbnail {
    width: 100%;
    max-width: 180px;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.class-list-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Mobile: Stack image below text */
@media (max-width: 767px) {
    .class-list-item .col-md-4 {
        margin-top: 1rem;
    }

    .class-list-thumbnail {
        max-width: 150px;
        max-height: 150px;
    }
}

/* Contact Page Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0 1.5rem 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #515b3a;
    color: #fff !important;
    border-radius: 25px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #3d4629;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(81, 91, 58, 0.3);
}

.social-links a i {
    font-size: 1.1rem;
}
