: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;
    --label-color: #8A8A8A;
}

/* First Section */
.banner_img {
    width: 100%;
    margin-top: 7rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

/* Second Section */
.second-section {
    margin-top: 3rem;
}

button:focus {
    outline: 5px auto white;
}

.tab-border {
    border: 1px solid rgba(204, 204, 204, 0.5);
    padding: 6px;
    border-radius: 10px;
}

.bg-maroon {
    background-color: rgba(93, 24, 26, 1);
}

.rounded-lg {
    border-radius: 0.5rem;
}

.border-none {
    border: none;
}

.event-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.event-box {
    border: 1px solid #D4B496;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    background: #f9f0e3;
    gap: 9px;
    padding: 10px;
}

.event-image {
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.event-details {
    padding: 15px;
    border: 1px solid #D1D1D1;
    border-radius: 10px;
    background: white;
}

.event-details h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.event-info {
    margin-bottom: 5rem;
}

.event-date, .event-location {
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.event-location {
    display: flex;
    gap: 8px;
}

.event-date i, .event-location i {
    margin-right: 8px;
}

.info-btn {
    background-color: #F8F0E2;
    border: 1px solid #5D181A;
    color: #5D181A;
    padding: 8px 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: 600;
}

.info-btn:hover {
    background-color: #5D181A;
    color: #fff;
}

.grey-color {
    color: #595959;
}

.line-clamp {
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.all-event {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

/* Third Section */

.third-section {
    margin-top: 4rem;
}

.quotes-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.quotes-item {
    border-radius: 10px;
    overflow: hidden;
}

.quotes-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fourth Section */

.event-gallery-grid {
    margin-top: 20px;
}

.event-gallery-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 3px;
}

.custom-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.custom-col {
    padding: 8px;
}

.modal-dialog {
    width: auto;
    max-width: none;
    margin: 0 auto;
}

.modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
}

.modal-body {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-img {
    width: 100%;
    border-radius: 10px;
}

.event-gallery-modal-img {
    border-radius: 10px;
}

/* Page Load */


.page-model-content {
    background: white;
}

.page-modal-dialog {
    width: 90%;
}

.page-modal-header {
    border-bottom: none;
}

.profile-img {
    height: 8rem;
    width: 8rem;
    border-radius: 50%;
}

.profile-photo-box {
    padding: 2rem 7rem;
}

.upload-box {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    color: #631c1f;
    margin-bottom: 20px;
    cursor: pointer;
    background: #F9F9F9;
}

.profile_photo {
    display: flex;
}

.page-modal-body {
    padding: 0 30px !important;
    display: block;
}

.iti {
    width: 100%;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 1rem;
    letter-spacing: 0.16px;
}

.profileLabel {
    color: var(--black-color) !important;
    font-weight: 500;
    line-height: normal;
}

.label-style {
    color: var(--label-color);
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0.14px;
}

@media (max-width: 393px) {

    .tab-border button {
        padding: 7px !important;
    }
}

@media (max-width: 576px) {
    .event-details h3 {
        font-size: 16px;
    }

    .event-date, .event-location {
        font-size: 12px;
    }

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

    .event-box {
        display: block;
    }

    .event-image {
        margin-bottom: 1rem;
    }

    .event-info {
        margin-bottom: 3rem;
    }

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

    .profile_photo {
        display: block;
    }
}

/* Desktop view */
@media (min-width: 768px) {
    .col-d-4 {
        width: 25%;
    }

    .col-d-3 {
        width: 33.33%;
    }
}

/* Mobile view */
@media (max-width: 767.98px) {
    .col-m-3 {
        width: 33.33%;
    }

    .col-m-2 {
        width: 50%;
    }
}

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

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

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

    .navbar-toggler {
        border: none;
    }

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

    .closebtn {
        display: block !important;
    }

    /* 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);
    }

    .mobile-button {
        background: #F2EDED;
        border-color: var(--dark-color);
        display: flex;
        align-items: center;
    }
}

/* 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;
    }
}