:root {
    --primary-color: #D4B496;
    --text-color: #000;
    --border-highlight: #C05E1A;
    --secondary-color: #fff;
    --secondary-hover-bg: #6c757d;
    --secondary-hover-text: #fff;
    --white: #fff;
    --dark-color: #5D181A;
}

/* Navbar Start */

.navbar {
    background-color: var(--primary-color);
    padding: .5rem 15rem !important;
}

.navbar-light .navbar-toggler-icon {
    background-image: none;
    margin-top: -11px;
}

.navbar-brand img {
    height: 56px;
}

.welcome-text {
    color: var(--text-color);
    font-weight: 500;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 8px;
}

.btn-outline-secondary {
    border-color: var(--white);
    background-color: var(--white);
    color: var(--dark-color);
}

.btn-outline-secondary:hover {
    background-color: var(--white);
    color: var(--dark-color);
    border: none;
}

.padding-right-22 {
    padding-right: 22px;
}

.border-right {
    border-right: 2px solid var(--dark-color) !important;
}

.user-name {
    color: var(--white);
}

.navbar-buttons {
    padding: 4px 15px !important;
    font-weight: 500;
}

.account_btn {
    display: none;
}

/* Sidebar styles */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.sidebar a, .sidebar .btn {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 18px;
    color: var(--border-highlight);
    display: block;
    transition: 0.3s;
    margin-bottom: 10px;
    width: 90%;
    text-align: left;
}

.closebtn {
    position: absolute;
    top: 17px;
    font-size: 36px;
    margin-left: 20px;
    display: none;
    font-weight: 500;
    font-size: 21px;
}

.margin-right-button {
    margin-right: 5px;
}

a:hover {
    color: inherit;
    text-decoration: none !important;
}

.navbar-buttons.active {
    background-color: var(--dark-color) !important;
    color: white !important;
    border-color: var(--dark-color) !important;
}

/* Adjust navbar for mobile */
@media (max-width: 991px) {
    .navbar {
        padding: .5rem 1rem !important;
        background-color: #F2EDED;
    }

    .user-name {
        color: rgba(93, 24, 26, 1);
    }

    .navbar-collapse {
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 0;
        background-color: var(--primary-color);
        transition: 0.5s;
        z-index: 1000;
        padding-top: 41px;
    }

    .navbar-collapse.show {
        width: 100%;
    }

    .navbar-toggler {
        border: none;
    }

    .navbar-toggler:focus {
        outline: none;
    }

    .closebtn {
        display: block !important;
    }

    .account_btn {
        display: block;
    }

    /* Stack buttons vertically in mobile view */
    .navbar-buttons {
        display: block;
        width: 90%;
        margin: 10px auto;
    }

    .margin-right-button {
        margin-right: auto;
    }

    .event-container {
        grid-template-columns: 1fr;
    }

    .second-section div.d-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .tab-border {
        margin-top: 15px;
        width: 100%;
        display: flex;
    }

    .tab-border button {
        width: 50%;
    }

    .mobile-tab-css {
        width: 100%;
    }

    .quotes-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ensure buttons are inline on desktop */
@media (min-width: 992px) {
    .navbar-collapse {
        position: static;
        height: auto !important;
        width: auto !important;
        background-color: transparent;
        padding-top: 0;
    }

    .navbar-buttons {
        display: inline-block;
        margin-right: 1rem;
        /* Adjust spacing between buttons */
    }
}

@media (max-width: 1199px) {
    .quotes-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1431px;
    }
}