/* Map Container Styles */
#map-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    clip-path: polygon(0% 0%, 20% 10%, 30% 5%, 70% 5%, 80% 10%, 100% 0%, 100% 90%, 80% 85%, 70% 90%, 30% 90%, 20% 85%, 0% 90%);
    z-index: 1;
}

#map-container::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 50px;
    background: white;
    z-index: 3;
}

/* Footer Styles */
.footer-container {
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    padding: 100px 50px 1px 50px;
    margin-top: -25px;
    z-index: 2;
}

.footer-top, .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 10px 0;
}

.footer-section {
    flex: 1;
    padding: 10px;
}

.footer-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section.start {
    text-align: left;
}

.footer-section.center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-section.end {
    text-align: end;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
}

.social-icons {
    right: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    color: rgb(0, 0, 0);
    font-size: 20px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #ff6600;
}

.footer-bottom .footer-section {
    display: flex;
}

/* Button Styles */
.btn-primary {
    padding: 5px 20px;
    transition: transform 0.2s ease-in-out, background-color 0.3s ease, color 0.3s ease;
    transform: skew(-25deg);
    border-radius: 0;
    border: 1px solid transparent;
    background-color: orange;
    color: black;
    border: 1px solid orange;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-primary:hover {
    background-color: black;
    color: white;
    border: 1px solid green;
    transform: skew(-12.5deg) scale(1.1);
}

/* Class Card Styles */
.class-text h3 {
    margin-bottom: 6px;
}

.separator {
    width: 50%;
    height: 4px;
    background-color: #f97316;
    margin: 0.5rem auto 1rem auto;
    border-radius: 0;
    display: block;
}

.classes-container {
    max-width: min(90vw, 1200px);
    margin: 0 auto;
    padding: 10px 20px;
    margin-top: 60px; 
}

.class-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 20px;
    padding: 0 10px;
}

@media (max-width: 992px) {
    .class-row {
        justify-content: center;
        text-align: center;
    }
    .class-row .class-text,
    .class-row .class-card-container {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    .class-row .class-text {
        margin-bottom: 2rem;
    }
}

/* Card Styles */
.class-card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 350px;
    margin: 10px 0;
}

.class-card {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.class-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 8px 20px;
    background-color: transparent !important;
    border-radius: 4px;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    color: #333;
    min-width: 60px;
}

.meta-item i {
    font-size: 18px;
    color: #ff6600;
    margin-bottom: 2px;
}

.meta-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin-bottom: 6px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.class-card:hover {
    transform: scale(1.05);
}

.class-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.class-card video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Hover Effects */
.class-card:hover img {
    opacity: 0;
}

.class-card:hover .youtube-container {
    opacity: 1;
}

.youtube-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.youtube-iframe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.youtube-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Text Container Styles */
.class-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 300px;
    text-align: center;
    padding: 10px 0;
}

.class-row.right {
    flex-direction: row;
}

.class-row.left {
    flex-direction: row-reverse;
}

/* Responsive Styles */
@media (min-width: 768px) {
    .class-card {
        width: 200px;
        height: 200px;
    }
    .class-text {
        max-width: 25%;
    }
}

@media (min-width: 1200px) {
    .class-card {
        width: 275px;
        height: 275px;
    }
    .class-text {
        max-width: 25%;
        font-size: 1.2rem;
    }
}

@media (max-width: 799px) {
    .class-row {
        flex-direction: column;
        align-items: center;
    }

    .class-text {
        position: static;
        transform: none;
        width: 90%;
        max-width: 90%;
        margin-bottom: 20px;
    }

    .class-card {
        width: 90%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
}

/* Category Filter Styles */
.category-btn.active {
    background: none;
    border: none;
    padding: 0;
    transform: scale(1.3);
}

.category-btn.active img {
    filter: brightness(0) sepia(1) hue-rotate(0deg) saturate(1000%) brightness(0.8);
}

.category-btn {
    width: 100%;
    max-width: 60px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.category-btn {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.category-btn:hover {
    transform: scale(1.1);
}

.icon-filter-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 5rem !important;
    padding: 2rem;
}

@media (max-width: 576px) {
    .category-btn {
        max-width: 45px;
    }
}

@media (min-width: 768px) {
    .category-btn {
        max-width: 70px;
    }
}

@media (min-width: 992px) {
    .category-btn {
        max-width: 90px;
    }
}

@media (min-width: 1200px) {
    .category-btn {
        max-width: 100px;
    }
}

.filter-section {
    padding-top: 2.5rem;
}

/* Navigation Button Styles */
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #f97316;
    border: none;
    cursor: pointer;
    font-size: 4rem;
    z-index: 10;
    background: none;
    padding: 0;
    transition: transform 0.2s ease-in-out, color 0.3s;
}

.nav-button:hover {
    transform: translateY(-50%) scale(1.3);
    color: #ff6a00;
}

/* Section Animation Styles */
.section-shape {
    position: relative;
    padding: 20px 0;
    z-index: 1;
    overflow: hidden;
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@media (min-width: 993px) {
    .section-shape.right {
        transform: translateX(-160px);
    }
    
    .section-shape.left {
        transform: translateX(160px);
    }
    
    .section-shape.visible {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 992px) {
    .section-shape {
        transform: translateY(80px);
    }
    
    .section-shape.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .class-row {
        flex-direction: column;
    }
    
    .class-text {
        order: -1;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .class-card-container {
        margin: 0 auto;
    }
}

/* Title Animation Styles */
.title-animated {
    opacity: 0;
    transform: translateY(-50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.title-animated.active {
    opacity: 1;
    transform: translateY(0);
}

.title-animated.hide {
    opacity: 0;
    transform: translateY(-50px);
}

/* Class Item Highlight */
.class-item {
    transition: background-color 0.3s ease;
}

/* Category Container Styles */
.filter-section {
    padding: 40px 0;
    margin: 30px 0;
}

.category-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
    width: 140px;
    padding: 25px 15px;
    transition: all 0.3s ease;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: none;
    opacity: 0;
    transform: translateY(-80px);
    animation: slideDown 1s ease-out forwards;
}

/* Stagger the animation for each item */
.category-container:nth-child(1) { animation-delay: 0.2s; }
.category-container:nth-child(2) { animation-delay: 0.4s; }
.category-container:nth-child(3) { animation-delay: 0.6s; }
.category-container:nth-child(4) { animation-delay: 0.8s; }
.category-container:nth-child(5) { animation-delay: 1s; }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 165, 0, 0.1), transparent);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.category-container:hover {
    transform: translateY(-3px);
}

.category-container:hover::before {
    transform: translateY(0);
}

.category-container.active {
    background: rgba(255, 165, 0, 0.05);
    border: 2px solid #f97316;
}

.category-label {
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    text-transform: capitalize;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.category-btn {
    width: 80px;
    height: 80px;
    transition: all 0.3s ease;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.category-container:hover .category-btn {
    transform: scale(1.1);
}

.category-container.active .category-btn {
    transform: scale(1.2);
}

.category-container.active .category-label {
    margin-top: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #f97316;
}

.category-container:hover .category-label {
    color: #f97316;
}

.filter-section .container {
    max-width: 1200px;
}
