/******************************************** BODY ********************************************/
/* Body light mode */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.body {
    padding-top: 55px;
    padding-bottom: 75px;
    background-color: #ffffff;
}

/* Body dark mode */
.dark-mode {
    background-color: #121212 !important;
    color: #ffffff !important;
}

/*Ensure the content stays above the footer*/
.main-content {
    flex-grow: 1;
    padding-top: 55px;
    padding-bottom: 75px;
}

.main-content p, .main-content ul, .main-content li {
    text-align: justify;
}


.secondary-color-text {
    color: #b0cadf !important;
}

.dark-mode .secondary-color-text {
    color: #8badca !important;
}



/******************************************** BOOTSTRAP TEXT AND BUTTONS ********************************************/
.btn-primary {
    background-color: #095daa;
    border-color: #095daa;
}

.dark-mode .btn-primary {
    background-color: #311ea1 !important;
    border-color: #311ea1 !important;
}

.text-primary{
    color: #000000 !important;
}

.dark-mode .text-primary {
    color: #ffffff !important;
}


/******************************************** JUMBOTRON ********************************************/
.jumbotron {
    background:
            linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
            url("../images/background-photo.jpg") no-repeat center center;
    background-size: cover;
    border-radius: 10px 10px 10px 10px;
    min-height: 450px;
    max-width: 800px; /* Keeps a maximum width */
    width: 100%; /* Ensures it scales responsively */
    margin: 0 auto; /* Centers the jumbotron horizontally */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Navbar dark mode styling */
.dark-mode .jumbotron {
    background-color: #0f0749 !important;
}

/******************************************** SECONDARY BOX ********************************************/
/* Secondary boxes, such a reviews */
.secondary-box {
    border-radius: 10px 10px 10px 10px;
    background-color: #f6f7f8 !important;
}

.dark-mode .secondary-box {
    color: #ffffff;
    background-color: #292727 !important;
}

/******************************************** SECONDARY BOX ********************************************/
/*Make sure the list in the about page does not get a background applied to it*/
.list-group-item {
    background-color: transparent !important;
}

.dark-mode .list-group-item {
    color: #ffffff;
}


/******************************************** SERVICES TABLE ********************************************/

/* Light Mode */
.service-table {
    width: 100%;
    max-width: fit-content;
    margin: 30px auto;
    border-collapse: separate; /* Ensures rounded corners apply properly */
    border-spacing: 0; /* Avoids unwanted gaps */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden; /* Ensures nothing overflows */
    background-color: #ffffff;
    color: #000000;
}

.service-table th,
.service-table td {
    padding: 12px 20px;
    border: none; /* Remove default borders to prevent cut-off corners */
    text-align: left;
}

/* Header styling */
.service-table th {
    background-color: #0d47a1;
    color: #ffffff;
    font-size: 1.2rem;
}

.service-table td strong {
    font-size: 1.2rem; /* Make service titles larger */
}

.service-table td small {
    font-size: 1.1rem; /* Slightly increase description text */
    color: #52525e !important; /* Darken the text for better readability */
}

.dark-mode .service-table td small {
    font-size: 1.1rem; /* Slightly increase description text */
    color: #767680 !important; /* Darken the text for better readability */
}

/* Zebra striping */
.service-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Rounded corners */
.service-table thead th:first-child,
.service-table tbody tr:first-child td:first-child {
    border-top-left-radius: 10px;
}

.service-table thead th:last-child,
.service-table tbody tr:first-child td:last-child {
    border-top-right-radius: 10px;
}

.service-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

.service-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

/* Dark Mode */
.dark-mode .service-table {
    background-color: #1e1e1e;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.dark-mode .service-table th {
    background-color: #311ea1;
    color: #ffffff;
}

.dark-mode .service-table td {
    border: none;
}

.dark-mode .service-table tbody tr:nth-child(even) {
    background-color: #292727;
}

/******************************************** CONTACT CARD ********************************************/
.card {
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.dark-mode .card {
    background: #1e1e1e;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1) !important;
}


/******************************************** NAVBAR ********************************************/
/* Navbar light mode styling */
.navbar {
    background-color: #004b8d;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 55px;
    z-index: 1050;
    border-bottom: none;
    box-shadow: none;
}

/* Navbar dark mode styling */
.dark-mode .navbar {
    background-color: #0f0749 !important;
}

/* Color of collapsed menu */
.dark-mode .navbar-collapse {
    background-color: #0f0749 !important;
}

/* Set color of pages text in the navbar */
.navbar-nav .nav-link {
    color: #c7d7e8 !important;
}

/* Set contrast when hovering on the pages text in the navbar */
.navbar-nav .nav-link:hover {
    color: #ffffff !important;
}

/* Set color of pages text in the navbar for dark mode */
.dark-mode .navbar-nav .nav-link {
    color: #b9c7da !important;
}

/* Set contrast when hovering on the pages text in the navbar for dark mode*/
.dark-mode .navbar-nav .nav-link:hover {
    color: #ffffff !important;
}


/******************************************** FOOTER ********************************************/
/* Footer light mode styling */
.footer {
    position: fixed; /* Ensure the footer always stays at the bottom of the screen */
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #01437e;
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
    color: white;
    z-index: 1030; /* Ensures it stays above other content */
    height: 75px;
}

/* Footer dark mode styling */
.dark-mode .footer {
    background-color: #0d063c !important;
}



/******************************************** SCREEN SIZES ********************************************/
/* Large Screens */
@media (min-width: 992px) {
    .container-fluid {
        position: static; /* Remove centering constraint */
    }

    #navbarNav {
        position: absolute;
        left: 50%;
        transform: translateX(-50%); /* Center navbar links relative to screen */
    }

    #navRightControls {
        margin-left: auto; /* Pushes dark mode & toggler to the right */
        display: flex;
        align-items: center;
    }

    #darkModeToggle {
        margin-left: auto;
    }

    .navbar-toggler {
        display: none; /* Hide menu toggler on large screens */
    }

    /* Space out all menu items */
    .navbar-nav .nav-link {
        margin: 0 15px; /* Adjust horizontal spacing between items */
    }

    /* Different highlight style for the active page */
    .navbar-nav .nav-link.active {
        background-color: #095daa;
        color: #ffffff !important;
        margin: 0 15px; /* Allow some margins around the active link */
        padding: 5px 10px;
        border-radius: 5px; /* Optional: adds a slight rounded effect */
    }
}


/* Small Screens */
@media (max-width: 991px) {
    .container-fluid {
        position: relative; /* Establishes positioning context for the bubble */
    }

    #navRightControls {
        display: flex;
        justify-content: flex-end; /* Aligns items to the right */
        align-items: center;
    }

    /* Dark Mode Button (to the left of the toggler) */
    #darkModeToggle {
        order: 1;
        margin-right: 10px;
    }

    /* Menu Toggler (remains at the far right) */
    .navbar-toggler {
        order: 2;
    }

    #navbarNav {
        position: absolute;
        top: 0; /* Starts right below the navbar */
        margin-top: 47px;
        right: 0;
        background-color: #004b8d;
        z-index: 1029;
        border-radius: 0 0 5px 5px;
        padding: 0 10px 10px;
    }

    /* Highlight page currently on */
    .navbar-nav .nav-link.active {
        background-color: #095daa;
        color: #ffffff !important;
        margin-left: -10px;
        margin-right: -10px;
        padding-left: 10px;
        padding-right: 10px;
    }
}


@media (max-width: 575.98px) {
    .footer {
        padding-bottom: 50px; /* Adjust this value as needed */
    }
}
