/* General Styles */
body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f4f4f4;
    margin: 0;
    gap: 30px; /* Increased space between cards */
    flex-wrap: wrap; /* Allows cards to wrap to the next line if needed */
    padding: 0; /* Adds padding around the body */
}

.faculty-cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.faculty-card {
    width: 250px; /* Reduced width */
    height: 200px;
    perspective: 1000px; /* Adds 3D perspective */
    cursor: pointer;
    margin: 20px; /* Increased space around each card */
}

.faculty-card .front,
.faculty-card .back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden; /* Hides the back side when rotated */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to the top */
    align-items: center;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.6s ease;
    padding: 20px;
}

/* Heading */
.back .heading {
    background-color: #FFDB58; /* Mustard color */
    color: #333;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    margin-bottom: 15px; /* Space below the heading */
    text-align: center;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    box-sizing: border-box;
}

/* Banner Section */
.sub-header {
    min-height: 30vh;
    width: 100%;
    background-image: linear-gradient(rgba(217, 216, 216, 0.8), rgba(217, 216, 216, 0.8)), url(images/tcampus.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sub-header h1 {
    font-size: 36px;
    color: rgb(79, 77, 77);
    margin-top: 20px;
}

/* Navigation Bar */
nav {
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav img {
    width: 60px;
}

.nav-links {
    flex: 1;
    text-align: right;
}

.nav-links ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
}

.nav-links ul li {
    padding: 8px 12px;
    position: relative;
}

.nav-links ul li a {
    color: rgb(72, 71, 71);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.nav-links ul li::after {
    content: "";
    width: 0%;
    height: 2px;
    background: rgb(243, 179, 3);
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after {
    width: 100%;
}

/* Dropdown Menu Styles for Navigation Bar */
.nav-links ul li.dropdown {
    position: relative;
}

.nav-links ul li.dropdown .dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff; /* White background */
    min-width: 200px; /* Wider dropdown for better readability */
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1); /* Soft shadow */
    z-index: 1000; /* Ensure it appears above other elements */
    border-radius: 8px; /* Rounded corners */
    top: 100%; /* Position below the parent link */
    left: 0;
    padding: 10px 0; /* Add padding for spacing */
    border: 1px solid #e0e0e0; /* Light border */
}

.nav-links ul li.dropdown .dropdown-content a {
    color: #333333; /* Dark text color */
    padding: 12px 20px; /* Increased padding for better spacing */
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 14px; /* Slightly smaller font size */
    transition: all 0.3s ease; /* Smooth hover effect */
}

.nav-links ul li.dropdown .dropdown-content a:hover {
    background-color: #eeeeee; /* Light gray background on hover */
   /* background-color: #fde49c;*/
    color: #333333; /* Change text color on hover */
    padding-left: 25px; /* Slight indent on hover */
}

.nav-links ul li.dropdown:hover .dropdown-content {
    display: block;
}


/* Hamburger Icon */
nav .bi-list {
    display: none;
    font-size: 22px;
    cursor: pointer;
    color: #111111;
    margin: 10px;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        background: #f8f8f8;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: right 0.5s ease;
    }
    
    .nav-links ul {
        flex-direction: column;
        padding: 20px;
        /* Add padding-top to create space below the close icon */
        padding-top: 50px;
        text-align: left; /* Ensure list is left-aligned */
        margin: 0; /* Remove default margin */
        padding-left: 10px; /* Add some padding from the left edge */
    }
    
    /*  mobile menu list */
    .nav-links ul li {
        margin: 0;
        padding: 6px 0;
        position: relative;
        text-align: left;
        list-style: none; /* Remove bullet points */
        display: block; /* Make items block-level */
        width: 100%; /* Take full width */
    }
    
    .nav-links ul li a {
        color: #3C3D37;
        text-decoration: none;
        display: block; /* Make links block-level */
        width: 100%; /* Take full width */
        padding-left: 10px; /* Add some padding from the left edge */
    }
    
    .nav-links ul li::after {
        background: #FFB22C; /* Changed from white to #FFB22C */
    }
    
    nav .bi-list {
        display: block;
        color: #3C3D37;
        margin: 10px 15px;
        font-size: 24px;
        cursor: pointer;
    }
    
   /* .nav-links .bi-list {
        position: absolute;
        top: 20px;
        left: 20px;
        padding: 5px;
        margin-bottom: 30px;
    }
    */
    
    
     /* Added: Style for X icon when menu is open */
    nav .bi-x-lg {
        display: none; /* Hidden by default */
        color: #3C3D37;
        margin: 10px 15px;
        font-size: 24px;
        cursor: pointer;
    }
    
    /* When menu is active, show X and hide hamburger */
    nav.menu-active .bi-list {
        display: none;
    }
    
    nav.menu-active .bi-x-lg {
        display: block;
    }
    
    .nav-links .bi-x-lg {
        position: absolute;
        top: 20px;
        left: 20px;
        padding: 5px;
        margin-bottom: 30px;
        font-size: 24px; /* Match size with hamburger */
    }
    
    
    /* Dropdown behavior for mobile */
    .nav-links ul li.dropdown .dropdown-content {
        position: static;
        box-shadow: none;
        min-width: 100%;
        background-color: #eeeeee;
        display: none;
        padding-left: 0; /* Remove any left padding */
        margin: 5px 0 0 0; /* Add small top margin, remove others */
    }
    
    .nav-links ul li.dropdown:hover .dropdown-content {
        display: block;
    }
    
    /* Fix for mobile dropdown menu hover jump */
    .nav-links ul li.dropdown .dropdown-content a {
        padding: 8px 10px 8px 35px; /* Increased left padding for more indentation */
        transition: background-color 0.3s ease, color 0.3s ease; /* Only animate color/bg, not padding */
        position: relative; /* Add position relative for the ::after element */
        display: block; /* Make links block-level */
        width: calc(100% - 45px); /* Account for padding */
    }
    
    /* Add the hover line effect to dropdown items */
    .nav-links ul li.dropdown .dropdown-content a::after {
        content: '';
        width: 0%;
        height: 2px;
        background: #FFB22C; /* Changed from #3C3D37 to #FFB22C */
        display: block;
        margin: 0; /* Remove auto margin to align left */
        transition: 0.5s;
        position: absolute;
        bottom: 5px;
        left: 35px; /* Align with the start of text - adjusted to match new padding */
        margin-left: 0; /* Remove any left margin */
    }
    
    .nav-links ul li.dropdown .dropdown-content a:hover::after {
        width: 60%; /* Adjust width as needed */
    }
    
    .nav-links ul li.dropdown .dropdown-content a:hover {
        padding-left: 35px; /* Keep the same as non-hover state - adjusted */
        background-color: #eeeeee;
        color: #333333;
    }
}

/* Slider Section */
.slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    height: 300px;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    height: 100%;
}

/* Update the slider images */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dancing Course Content Section */
.dance-content {
    padding: 50px 0;
    background-color: #fff;
    text-align: center;
}

.dance-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.dance-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: justify;
}

/* Update the dance features section */
.dance-features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.dance-features .feature {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dance-features .feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.dance-features .feature i {
    font-size: 2rem;
    color: #ff6f61;
    margin-bottom: 10px;
}

.dance-features .feature h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.dance-features .feature p {
    font-size: 15px;
    color: #666;
}

/* Events Section */
.events {
    padding: 50px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.events h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.events p {
    font-size: 15px;
    color: #666;
    max-width: 800px;
    margin: 0 auto 40px;
}

.events .row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.events-col {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.events-col:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.events-col img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.events-col h3 {
    font-size: 1.5rem;
    margin: 20px 0 10px;
    color: #333;
}

.events-col p {
    font-size: 15px;
    color: #666;
    padding: 0 20px;
    margin-bottom: 20px;
}

.event-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FABC37;
    color: white;
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.event-btn:hover {
    background-color: #FFC700;
}

/* Footer Section */
.footer {
    width: 100%;
    text-align: center;
    padding: 30px 0;
    background: #777;
}

.footer h4 {
    margin-bottom: 25px;
    margin-top: 20px;
    font-weight: 600;
}

.footer .icons svg {
    margin: 0 10px;
    cursor: pointer;
    color: #FFB22C;
}

.footer p {
    margin-top: 20px;
    font-size: 14px;
    color: #f4f4f4;
}