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

body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* 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 */
.nav-links ul li.dropdown {
    position: relative;
}

.nav-links ul li.dropdown .dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 8px;
    top: 100%;
    left: 0;
    padding: 10px 0;
    border: 1px solid #e0e0e0;
}

.nav-links ul li.dropdown .dropdown-content a {
    color: #333333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav-links ul li.dropdown .dropdown-content a:hover {
    background-color: #eeeeee;
    color: #333333;
    padding-left: 25px;
}

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

/* Hamburger Icon for Mobile */
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: 12px;
        cursor: pointer;
    }
    
    .nav-links .bi-list {
        position: absolute;
        top: 20px;
        left: 20px;
        padding: 5px;
        margin-bottom: 30px;
    }
    
    /* 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;
    }
}

/* Banner Section */
.sub-header {
    min-height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(203, 205, 214, 0.7), rgba(203, 205, 214, 0.7)), url(images/town.JPG);
    background-position: center;
    background-size: cover;
    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;
}

/* Performing Arts Section */
.perfoming-a {
    width: 80%;
    margin: auto;
    padding-top: 80px;
    padding-bottom: 50px;
    text-align: justify;
}

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

.perfoming-col {
    flex-basis: 48%;
    padding: 30px 2px;
}

.perfoming-col img {
    width: 100%;
    border-radius: 10px;
}

.perfoming-col h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.perfoming-col p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 25px;
}

.grey-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    color: #777;
    border: 1px solid #777;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.grey-btn:hover {
    background-color: #777;
    color: #fff;
}

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

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

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .perfoming-col {
        flex-basis: 100%;
    }

    .sub-header h1 {
        font-size: 28px;
    }

    .perfoming-col h1 {
        font-size: 1.5rem;
    }

    .perfoming-col p {
        font-size: 14px;
    }
}