
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 200px; /* Desktop padding */
    background-color: #ad013d;
    box-sizing: border-box;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

/* Logo */
.logo img {
    width: 40px;
    height: 40px; /* Adjust as needed */
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between logo image and text */
}

.logo-text {
    font-size: 1.2rem; /* Adjust font size */
    font-weight: bold; /* Make text bold */
    color: white; /* Match the navbar's color theme */
    text-decoration: none; /* Remove any default text underline */
    padding-left: 5px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none; /* Remove underline for the link */
    color: inherit;
    font-family: Comic Sans MS;
    font-style: bold;
}

/* Navigation Links */
.menu a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 0px;
    padding: 20px;
    font-size: 1rem;
    font-weight: bold;
}

/* Hover effect for links */
.menu a:hover {
    color: #ffbfbf;
}

/* Hamburger Menu */
.hamburger {
    display: none; /* Initially hidden on larger screens */
    font-size: 24px;
    cursor: pointer;
    color: #ffffff;
    z-index: 1001; /* Ensure it's above other elements */
}
.side-menu {
    display: none; /* Hides the side menu on larger screens */
    position: fixed;
    top: 0;
    right: -50%; /* Initially hidden off the right side */
    width: 50%; /* Take half the screen width */
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    z-index: 999; /* Above other content */
}

/* Responsive Design for Navbar */

/* Tablet View */
@media (max-width: 900px) {
    .navbar {
        padding: 20px 50px; /* Reduce padding for tablets */
    }

    .menu a {
        font-size: 1rem;
    }
}

/* Mobile View */
@media (max-width: 658px) {
    .navbar {
        padding: 20px 20px; /* Adjust padding for mobile */
    }

    /* Hide the menu links and show hamburger */
    .menu {
        display: none;
    }

    .hamburger {
        display: block;
    }

    /* Side Menu (Initially hidden on the right) */
    .side-menu {
        display: flex;
    }

    .side-menu a {
        color: white;
        font-size: 1rem;
        margin: 15px 0;
        text-decoration: none;
        font-weight: bold;
    }

    /* When the menu is active (open), slide it in */
    .side-menu.active {
        right: 0;
    }
}

/* Main Content Styling */
.main-content {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px; /* Add some space below breadcrumb */
}

.content-wrapper p {
    text-align: justify;
}

/* Content Wrapper */
.content-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr 300px; /* Left, main content, right sidebar */
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sidebar Left */
.sidebar-left {
    background-color: #0000ff;
    height: auto;

}

/* Sidebar Right */
.sidebar-right {
    background-color: #00ff00;
    height: auto;

}

/* Responsive Design */
@media (max-width: 1040px) {
    /* Hide sidebar-left for medium screens (768px - 1039px) */
    .sidebar-left {
        display: none;
    }

    /* Adjust the layout for screens between 768px and 1039px */
    .content-wrapper {
        grid-template-columns: 1fr 300px; /* Only main content and right sidebar */
    }
}

@media (max-width: 768px) {
    /* Hide both sidebars for screens smaller than 768px */
    .sidebar-left, .sidebar-right {
        display: none;
    }

    /* Adjust the layout for small screens */
    .content-wrapper {
        grid-template-columns: 1fr; /* Only main content */
    }
}

/* Footer */
.footer {
    background-color: #ad013d;
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%; /* Ensure it covers the full width of the screen */
    margin: 0; /* Remove any default margin */
    text-align: center;
    padding: 20px 0;
    color: #ffffff;
    font-size: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

/* Display social icons in a single row */
    .footer-links li:nth-child(n+4) { /* Selects links from after privacy policy (index 4 and beyond)*/
        display: inline-block;
        margin: 0 3px; /* Add some vertical spacing */
    }
    
.footer-links li:nth-child(-n+3) { /* Select the first 3 links */
        display: inline-block;
        margin: 0 15px; /* Add some vertical spacing */
    }



.footer-links li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
}

.footer-links li a:hover {
    text-decoration: underline;
    color: #ffb592;
}

/* Style the icons */
.footer-links li a i {
    margin-right: 5px; /* Space between icon and text */
    font-size: 1.2em; /* Adjust icon size as needed */
    vertical-align: middle; /* Align the icon vertically */
}

.copyright {
    margin-top: 10px;
    font-size: 14px;
    color: #ffffff;
}

/* Responsive Design for Footer */
@media (max-width: 960px) {
    .footer-links li {
        margin: 0 10px; /* Slightly reduce margin between links */
    }

    footer {
        padding: 15px 0;
    }
}

@media (max-width: 658px) {
    .footer-links {
        padding: 0;
    }

    /* Stack Contact, Terms & Conditions, Privacy Policy */
    .footer-links li:nth-child(-n+3) { /* Select the first 3 links */
        display: block;
        margin: 5px 0; /* Add some vertical spacing */
    }

    /* Display social icons in a single row */
    .footer-links li:nth-child(n+4) { /* Selects links from after privacy policy (index 4 and beyond)*/
        display: inline-block; /* Display in a row */
        margin: 5px 5px;/* reduce the margin on the social icons*/
    }

    footer {
        padding: 10px 0;
    }

    .copyright {
        margin-top: 5px;
        font-size: 12px; /* Smaller copyright text */
    }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: max-content;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    list-style: none;
    padding: 0px;
    border-radius: 4px;
    margin-top: 15px;
}

.dropdown-content a {
    color: #ad013d;
    text-decoration: none;
    padding: 10px 10px;
    display: block;
}

.dropdown-content a:hover {
    background-color: #ffbfbf; /* Existing background change */
    color: #504f4f; /* Existing text color change */
    border-left: 3px solid #c5396a; /* Add a left border */
    padding-left: 12px; /* Adjust padding to account for the added border */
}

/* Toggle visibility on hover */
.dropdown:hover .dropdown-content {
    display: block;
    width: auto;
}

/* Chevron animation */
.fas.fa-chevron-down {
    margin-bottom: 5px;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

/* Side menu dropdown */
.dropdown-side {
    width: 100%; /* Full width in the side menu */
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 60%;
    padding: 0px 0 0px 0;/* Center-align the dropdown-toggle */
}

.dropdown-toggle {
    color: white;
    text-decoration: none;
    padding: 10px 0; /* Adjust padding for centering */
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
    width: 100%; /* Ensure full width */
    text-align: center; /* Center text */
}

.dropdown-content-side {
    display: none;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px;
    margin-left: 20px;
    max-height: calc(3 * 40px); /* Show 7 items; assume each is ~40px */
    overflow-y: auto; /* Enable vertical scrolling for extra items */
    scrollbar-width: thin; /* Firefox: Thin scrollbar */
    scrollbar-color: #fff rgba(255, 255, 255, 0.2);
    width: auto;
    transition: max-height 0.3s ease; /* Smooth expand/collapse */
     text-align: center;
}
.dropdown-content-side::-webkit-scrollbar {
    width: 8px;
}

.dropdown-content-side::-webkit-scrollbar-thumb {
    background-color: #c5396a;
    border-radius: 5px;
}

.dropdown-side.open .dropdown-content-side {
    display: flex;
}

/* 1. Navbar breaks for screen size 900 to 960, same for 600 to 658 also
2. Form has no space on the left side for screen size 768 to 1040 */
@media (max-width: 960px) {
    .navbar {
        padding: 10px 30px; /* Adjust padding for better alignment */
    }

    .menu a {
        font-size: 0.9rem; /* Slightly reduce font size */
        margin: 0 5px; /* Adjust spacing between links */
    }
}

@media (max-width: 658px) {
    .navbar {
        padding: 10px 15px; /* Further adjust padding for narrow screens */
    }

    .menu {
        display: none; /* Hide menu links for smaller screens */
    }

    .hamburger {
        display: block; /* Ensure hamburger menu is visible */
    }

    .side-menu {
        display: flex;
        flex-direction: column;
    }

    .side-menu a {
        margin: 10px 0; /* Add spacing between side-menu items */
    }
}
@media (max-width: 1040px) and (min-width: 768px) {
    .content-wrapper {
        padding: 20px; /* Add padding inside the content-wrapper */
        gap: 15px; /* Adjust gap between grid columns */
        grid-template-columns: 1fr 300px; /* Main content and right sidebar */
    }

    .main-content {
        padding-left: 15px; /* Add padding to the left of the form */
    }
}
@media (max-width: 768px) {
    .content-wrapper {
        padding: 15px 0; /* Add some padding for smaller screens */
    }

    .main-content {
        padding: 15px 0; /* Ensure left padding for form content */
    }

    .footer {
        padding: 10px 0; /* Adjust footer padding for small screens */
    }
}

.dropdown:hover .fas.fa-chevron-down {
    transform: rotate(180deg);
}

