/* Set minimum height for the section so it can expand */
.search {
    min-height: 40vh; /* Ensure it takes up the full height of the screen */
    position: relative; /* Ensure relative positioning for dropdown and modal */
}

.search-container {
    text-align: left;
    margin-left: 0;
    width: 100%; /* Full width */
    position: relative;
}

.search-bar-background {
    background-color: rgb(2, 75, 7);
    padding: 30px;
    display: flex;
    align-items: center;
    color: #ffffff;

}

label {
    font-weight: bold;
    margin-right: 20px;
    font-size: 18px;
}

.jk {
    position: relative; /* Positioning context for absolute positioning */
    left: 50%; /* Move it to the right */
    right: 50%; /* Move it to the left */
    margin-left: -50vw; /* Offset by half the viewport width */
    margin-right: -50vw; /* Offset by half the viewport width */
    width: 99.47vw; /* Full viewport width */
    box-shadow: 0 8px 6px -6px black;
    overflow: hidden; /* Ensure pseudo-element doesn't exceed bounds */
    background: #023d1a;
}

/* Pseudo-element for the overlay */
.jk::before {
    content: "";
    position: absolute; /* Position it relative to the .jk element */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/Gray Gold Black Elegant Calligraphy Illustration Wedding Wine Label (1).png'); /* Replace with your image URL */
    background-size: cover; /* Cover the entire element */
    background-position: center; /* Center the image */
    opacity: 0.5; /* Adjust opacity for the overlay */
    z-index: 1; /* Make sure it's behind any text/content */
}


/* If you have text/content inside .jk */
.jk > * {
    position: relative; /* Positioning for content above the overlay */
    z-index: 2; /* Make sure it's above the overlay */
}

#search-bar {
    flex-grow: 1;
    padding: 10px;
    border: 2px solid green;
    border-radius: 5px;
    font-size: 16px;
}

button {
    margin-left: 20px;
    padding: 10px;
    background-color: green;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: darkgreen;
}

#subject-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: absolute;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid green;
    border-top: none;
    z-index: 2;
    display: none;
    align-items: left;
}

/* Ensure that the dropdown doesn't overflow its container */
#subject-list li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

#subject-list li:hover {
    background-color: lightgreen;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10; /* Ensure it sits above all other content */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black background with transparency */
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid green;
    width: 80%;
    max-width: 600px;
    max-height: 80vh; /* Limit modal height to 80% of the viewport height */
    overflow-y: auto;  /* Enables scrolling within the modal */
    border-radius: 10px;
    text-align: left;
    position: relative;
}

.close {
    position: absolute;
    color: red;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    right: 10px;
    top: 10px;
}

.close:hover {
    color: darkred;
}

#modal-search-bar {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 2px solid green;
    border-radius: 5px;
    font-size: 16px;
}

#modal-subject-list {
    list-style-type: none;
    padding: 0;
}

#modal-subject-list li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

#modal-subject-list li:hover {
    background-color: lightgreen;
}

#clubs-and-societies-div-container {
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Adjust min size */
    gap: 20px; /* Space between grid items */
    padding: 10px;
    
  }
  .club-and-societies-div {
    width: 100%; /* Fill available space */
    max-width: 200px; /* Max width */
    height: auto; /* Allow height to adjust based on content */
    text-align: center; /* Centers the text */
    background-color: rgb(255, 255, 255);
    border: 2.4px solid rgba(4, 71, 4, 0.9);
    border-radius: 25px;
    padding: 10px; /* Padding inside the div */
    display: flex; /* Flexbox for layout */
    flex-direction: column; /* Aligns content vertically */
    justify-content: center; /* Centers content vertically */
    align-items: center; /* Centers content horizontally */
    overflow-wrap: break-word; /* Allows long words to break */
    word-wrap: break-word; /* For older browsers */
    box-shadow:  10px 10px 5px rgba(0, 0, 0, 0.5);
    
  }
  
  .clubs-title {
    font-size: 24px; /* Adjusted font size for better fit */
    color: rgba(4, 71, 4, 0.9);
    font-weight: bold;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    margin: 0; /* Removes default margin */
    text-align: center;
    overflow-wrap: break-word; /* Allows long words to break */
    word-wrap: break-word; /* For older browsers */
    line-height: 1.2; /* Line height for better spacing */
  }
  
  .clubs-description {
    color: rgb(145, 143, 143);
    font-weight: normal; /* Changed to normal for less emphasis */
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    margin: 0; /* Removes default margin */
    text-align: center; /* Center text */
    overflow-wrap: break-word; /* Allows long words to break */
    word-wrap: break-word; /* For older browsers */
    line-height: 1.5; /* Improves readability */
    max-width: 100%; /* 
    Prevents overflowing beyond parent */
  }

  

  #sport-and-performing-arts-container {
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-between; 
    padding: 50px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
}

.sp {
    background-color: rgb(255, 255, 255);
    padding: 50px 20px;
    text-align: center;
    width: 100%;
}

.sport-and-art-showcase {
    display: flex;
    background-color: rgb(247, 247, 247);
    width: 45%;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(4, 71, 4, 0.9);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.sport-and-art-showcase:hover {
    transform: translateY(-10px);
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.4);
}

.column-1 {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: white;
}

.column-2 {
    flex: 1;
    overflow: hidden;
}

.column-2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sport-and-art-showcase:hover .column-2 img {
    transform: scale(1.1);
}

.sport-and-art-title {
    font-size: 36px;
    font-weight: bold;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: rgba(4, 71, 4, 0.9);
    margin-bottom: 10px;
}

.sport-and-art-description,
.sport-and-art-description1 {
    font-size: 24px;
    color: rgb(106, 106, 106);
    line-height: 1.4;
}


hr {
    margin: 10px 0;
    border: none;
    border-bottom: 3px solid rgba(4, 71, 4, 0.9);
    width: 60px;
}

@media (max-width: 768px) {
    .sport-and-art-showcase {
        width: 100%;
        flex-direction: column;
    }

    .column-2 img {
        height: 250px;
    }
}
