/* custom.css */

/* Define the 'Ruda' font using the local font file */
@font-face {
    font-family: 'Ruda';
    src: url('Ruda-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 700;
    font-style: normal;
}

/* Apply 'Ruda' globally */
body {
    font-family: 'Ruda', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom navbar styles */
.custom-navbar {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    padding: 10px 2%;
    display: flex;
    align-items: center;
    z-index: 1000;
    background: none;
}

/* Logo styles */
.custom-navbar-brand {
    margin-right: 15px;
}

.custom-navbar-brand img {
    height: 70px;
    width: auto;
}

/* Menu container with rounded box */
.menu-container {
    background-color: #F2F2F2;
    border-radius: 15px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 60px;
    flex: 0 0 auto;
    position: relative;
    margin-left: auto;
}

/* Navbar collapse styles */
.custom-navbar-collapse {
    display: flex;
    align-items: center;
}

.custom-navbar-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-nav-item {
    margin: 0 15px;
    position: relative; /* Ensure correct positioning */
}

.custom-nav-link {
    color: #df208a;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Ruda', sans-serif;
    font-size: 18px;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

/* Add arrow down for dropdown items */
.custom-nav-item.custom-dropdown > .custom-nav-link::after {
    content: " \25BE";
    font-size: 14px;
    margin-left: 5px;
}

/* Dropdown styles */
.custom-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; /* Align directly below the menu item */
    left: 0;
    background-color: #F2F2F2;
    padding: 10px 0;
    border-radius: 5px;
    list-style: none;
    margin: 0;
    min-width: 160px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    z-index: 1000;
}

/* Adjusted to keep dropdown open when hovering over it */
.custom-nav-item:hover .custom-dropdown-menu,
.custom-nav-item .custom-dropdown-menu:hover {
    display: block;
}

.custom-dropdown-item {
    padding: 5px 20px;
}

.custom-dropdown-item a {
    color: #df208a;
    text-decoration: none;
    display: block;
    font-size: 16px;
}

.custom-dropdown-item a:hover {
    background-color: #F2F2F2;
}

/* Hamburger icon for mobile view */
.custom-navbar-toggler {
    display: none;
    border: none;
    background-color: transparent;
    font-size: 24px;
    cursor: pointer;
    margin-left: auto;
}

/* Cover image adjustments */
.cover-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Ensure content starts below the cover image */
.layout {
    margin-top: calc(100vh - 120px);
}

/* Main Content Styling */
.main-content {
    background-color: #F2F2F2;
    color: #df208a;
    padding: 20px; /* Optional: Add padding for better readability */
    font-family: 'Ruda', sans-serif; /* Ensure font is applied here */
}

/* Ensure all text elements within main-content use 'Ruda' */
.main-content h2 {
    font-family: 'Ruda', sans-serif;
    color: #df208a; /* Keeps the h2 color as #df208a */
}

.main-content p,
.main-content sup {
    font-family: 'Ruda', sans-serif;
    color: #1b6872; /* Changes the color of p and sup to #1b6872 */
}



/* Mobile view adjustments */
@media (max-width: 768px) {
    .custom-navbar {
        flex-wrap: wrap;
        top: 0;
    }

    .custom-navbar-toggler {
        display: block;
        margin-left: auto;
    }

    .menu-container {
        display: none;
        width: 100%;
        margin-top: 10px;
        background-color: #F2F2F2;
        border-radius: 15px;
        padding: 0 15px;
    }

    .menu-container.show {
        display: flex;
        flex-direction: column;
    }

    .custom-navbar-collapse {
        flex-direction: column;
        align-items: flex-start;
    }

    .custom-navbar-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .custom-nav-item {
        margin: 5px 0;
    }

    .custom-nav-link {
        font-size: 18px;
    }

    /* Adjust dropdown menu for mobile */
    .custom-dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: #F2F2F2;
        padding: 0;
        min-width: 0;
        margin-top: 5px;
    }

    .custom-dropdown-item a {
        padding-left: 20px;
        font-size: 16px;
    }

    .custom-dropdown-item a:hover {
        background-color: #F2F2F2;
    }

    /* Remove hover effect for mobile */
    .custom-nav-item:hover .custom-dropdown-menu,
    .custom-nav-item .custom-dropdown-menu:hover {
        display: none;
    }

    /* Show dropdown when parent is active */
    .custom-nav-item.active .custom-dropdown-menu {
        display: block;
    }

    /* Adjust layout margin-top for mobile */
    .layout {
        margin-top: auto;
    }
}
