
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Ensure modal is on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* Adjusted for better alignment */
    padding: 20px;
    border: 1px solid #888;
    width: 50%; /* Adjust size as needed */
    border-radius: 10px; /* Rounded edges */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Consistent with form styling */
    position: relative; /* For positioning the close button */
    z-index: 1001; /* Ensure content is above the overlay */
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center; /* Ensures that all items in the header are centered */
    text-align: center; /* Centers the text for h2 and p elements */
}

.modal-footer {
    display: flex;
    flex-direction: row; /* Aligns children horizontally */
    justify-content: space-between; /* Places one child at each end */
    width: 100%; /* Ensures the footer spans the full width of its container */
    padding: 10px; /* Optional: adds some padding inside the footer */
}


.modal-socials {
    padding: 20px;
    margin-top: 20px; /* Adds space above the social links section */
    margin-bottom: 20px; /* Adds space below the social links section before the schedule accordion */
    background-color: #f9f9f9; /* Light background to differentiate the section */
    border-radius: 8px; /* Softens the edges of the section */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Enhanced shadow for more depth */
    border: 1px solid #eaeaea; /* Subtle border for definition */
}

.social-links, .contact-info {
    margin-bottom: 20px; /* Increased space between social links and contact info for better separation */
}

@media (max-width: 768px) {
    .modal-header {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centers the content on mobile */
    }

    .button-group {
        width: 100%; /* Allows buttons to fill the container */
        justify-content: center; /* Center-align buttons for consistency */
        flex-wrap: wrap; /* Allows buttons to wrap if needed */
    }

    .button-group .btn {
        margin: 5px; /* Adds spacing around buttons */
        flex-grow: 1; /* Allows buttons to grow and fill the space */
    }

    #modal-club-type, #modal-club-affiliation {
        text-align: center; /* Centers text for a cleaner look */
    }
    
    .close-button {
        top: 5px; /* Adjusts position to not overlap */
        right: 5px;
        font-size: 20px; /* Adjust size for better touch */
    }
}

.modal-socials h3 {
    margin-bottom: 10px; /* Increased space from the title to the social links */
}

.modal-socials .social-links {
    justify-content: center; /* Centers the social links */
    display: inline-block; /* Adjust display for alignment */
    vertical-align: top; /* Align at the top with the preferred contact method section */
    width: 60%; /* Allocate width to give more space around icons */
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 15px rgba(0, 0, 0, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 25px rgba(0, 0, 0, 0.6); }
    100% { transform: scale(1); box-shadow: 0 0 15px rgba(0, 0, 0, 0.4); }
}

.preferred-highlight {
    animation: pulse 2s infinite;
    background-color: #f0f0f0; /* Light background for emphasis */
    border-radius: 50%; /* Circular highlight */
    display: inline-block;
    padding: 5px; /* Adjust based on your design */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4); /* More pronounced shadow for visibility */
}

/* Social Links Container */

.modal-socials .social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff; /* White background */
    color: #000000; /* Black icons */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* More pronounced shadow for depth */
    margin: 0 15px 15px 0; /* Increase space around icons */
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Smooth transitions for hover effects */
}

/* Hover Effect for Social Links */
.modal-socials .social-links a:hover {
    transform: translateY(-3px); /* Slight lift */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5); /* Enhanced shadow for lift effect */
}

.modal-socials .social-links {
    justify-content: center; /* Centers the social links */
    flex-wrap: wrap; /* Allows items to wrap in smaller spaces */
    display: flex; /* Changes display to flex to use justify-content */
    margin: auto; /* Centers the container itself */
}

.modal-content {
    text-align: center; /* Ensures text and inline-block elements are centered */
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
    .modal-socials {
        padding: 20px; /* Adjusts padding for smaller screens */
    }

    .modal-socials .social-links, .modal-socials .contact-info {
        display: block; /* Stacks links and contact info vertically */
    }

    .social-link, .contact-info p {
        margin: 10px auto; /* Centers links and info paragraphs and provides spacing */
        display: block; /* Ensures each item takes its own line */
    }
}


/* Add this media query below your existing CSS */
@media (max-width: 768px) {
    .modal-content {
        width: 80%; /* Makes the modal wider on mobile devices */
        margin: 10% auto; /* Keeps the modal centered */
    }
}
.modal-content h2, .modal-content p, .modal-content a {
    border-bottom: 1px solid #dbe2ef; /* Adds a subtle line under each item for distinction */
    padding-bottom: 10px; /* Adds space below each item */
    margin-bottom: 20px; /* Additional space to separate items */
}

.modal-content a {
    display: inline-block; /* Ensures the border-bottom applies correctly */
    color: #3f72af; /* Styles the link to match your color scheme */
    text-decoration: none; /* Removes underline from the link */
}

.modal-image {
    width: 100%; /* Full width of the modal content */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px; /* Rounded edges for the image */
    margin-bottom: 20px; /* Space between image and text content */
}


/* Style adjustments for better alignment and spacing */
.modal h2, .modal p, .modal a {
    margin-bottom: 10px; /* Consistent spacing */
}

.close-button {
    position: absolute;
    top: 5px; /* Adjust as needed to fit within the modal's padding */
    right: 5px; /* Adjust as needed to fit within the modal's padding */
    cursor: pointer;
    background-color: transparent; /* Making background transparent for simplicity */
    color: #333; /* Color for the '×', adjust as needed */
    padding: 4px 6px; /* Reduced padding */
    font-size: 14px; /* Smaller font size for subtlety */
    border: none; /* No border for simplicity */
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto; /* Adjust based on content */
    height: auto; /* Adjust based on content */
    border-radius: 0; /* Removing circular appearance */
}

.close-button:hover, .close-button:focus {
    background-color: #e6e6e6; /* Slight background color on hover for feedback */
    outline: none; /* Remove outline to maintain simplicity */
}




#modal-schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px; /* Space between the link and the table */
}

#modal-schedule-table th, #modal-schedule-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#modal-schedule-table th {
    background-color: #4CAF50;
    color: white;
}

.accordion-item {
    background-color: #f9f7f7;
    color: #444;
    margin-bottom: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    overflow: hidden;
}

.accordion-header {
    background-color: #3f72af;
    color: white;
    cursor: pointer;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #314e6e;
}

.accordion-header.active {
    background-color: #2c3e50;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    padding: 0 15px; /* Add padding for visual consistency */
}


.accordion-content p {
    padding: 10px;
    margin: 0;
    border-bottom: 1px solid #eee;
}


/* Combined Button Styles for Both Top and Bottom Positions */
#add-to-calendar-top, #add-to-calendar-bottom,
#print-schedule-top, #print-schedule-bottom {
    padding: 15px 25px; /* Increased padding for larger buttons */
    font-size: 18px; /* Increased font size for better readability */
    cursor: pointer;
    border-radius: 8px;
    margin: 5px 0;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.2);
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff; /* White text for clarity */
}

/* Specific Styles for Add to Calendar Buttons */
#add-to-calendar-top, #add-to-calendar-bottom {
    background-color: #3498db; /* Softer blue for 'Add to Calendar' */
}

#add-to-calendar-top:hover, #add-to-calendar-bottom:hover {
    background-color: #2980b9; /* Darker shade of blue on hover */
}

/* Specific Styles for Print Schedule Buttons */
#print-schedule-top, #print-schedule-bottom {
    background-color: #e67e22; /* Vibrant orange for 'Print Schedule' */
}

#print-schedule-top:hover, #print-schedule-bottom:hover {
    background-color: #d35400; /* Darker shade of orange on hover */
}

@media (max-width: 768px) {
    /* Adjustments for mobile devices */
    #add-to-calendar-top, #add-to-calendar-bottom,
    #print-schedule-top, #print-schedule-bottom {
        padding: 12px 20px; /* Optimized padding for smaller screens */
        font-size: 16px; /* Adjusted font size for mobile readability */
    }

}


/* Fallback Location Modal */
#location-fallback-modal .modal-content {
    width: 80%;
    max-width: 500px;
}

#location-fallback-modal .modal-header {
    margin-bottom: 20px;
}

#location-fallback-modal .modal-body {
    text-align: center;
}

#location-fallback-modal input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#location-fallback-modal button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #3f72af;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#location-fallback-modal button:hover {
    background-color: #314e6e;
}

#location-fallback-modal .allow-location {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #eaeaea;
}

#location-fallback-modal .allow-location h3 {
    margin-bottom: 10px;
}

#location-fallback-modal .allow-location ol {
    text-align: left;
    padding-left: 20px;
}

#location-fallback-modal .allow-location ol li {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    #location-fallback-modal .modal-content {
        width: 90%;
    }
}

/* Icon Styles */
.modal-header h2 i {
    margin-right: 10px;
    color: #3f72af;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.input-wrapper input {
    padding-left: 30px;
}

#submit-location i {
    margin-right: 5px;
}

.allow-location h3 i {
    margin-right: 10px;
    color: #3f72af;
}

.allow-location ol i {
    margin-right: 10px;
    color: #3f72af;
}