:root {
    --dark-grey: #2a2a2a;
    --pink: #ff69b4;
    --parrot: #6ccf00;
    --light-line: #ccc;
    --purple: #6f42c1;
    --crowe-yellow: #f7b400;
    --crowe-blue: #005c97;
    --blue: #004b7d;
    --crowe-bg: #f6f9ff;
}

body {
    /*    font-family: Arial sans-serif;*/
    font-family: Roboto;
    background-color: var(--crowe-bg);
    color: #333;
}

.bg-dark-header {
    background-color: var(--dark-grey);
    color: white;
    text-align: center;
    padding: 70px 15px 50px;
}
/*    ------------navbar Code------------------*/
.navbar {
    background-color: white;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #ddd;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

    .navbar-brand img {
        margin-right: 8px;
    }

    .navbar-brand span {
        font-size: 1.5rem;
        font-weight: bold;
    }

.navbar-nav .nav-link {
    color: var(--crowe-blue);
    font-weight: bold;
    margin-left: 25px;
    transition: color 0.3s ease;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus,
    .navbar-nav .nav-link:active {
        color: var(--crowe-blue);
    }

/* Icon Row */
.icon-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 5px;
}

    .icon-row .dropdown-toggle::after {
        display: none;
    }

    .icon-row i {
        font-size: 1.2rem;
        color: #999;
        margin-left: 20px;
        cursor: pointer;
    }

        .icon-row i:hover {
            color: var(--crowe-blue);
        }

/* Notifications Dropdown */
.notifications-dropdown {
    width: 350px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

    .notifications-dropdown h6 {
        color: var(--crowe-blue);
        font-weight: bold;
        margin-bottom: 10px;
        padding-bottom: 8px;
        border-bottom: 1px solid #ddd; /* grey line under heading */
    }

.notification-item {
    display: flex;
    align-items: start;
    margin-bottom: 12px;
}

    .notification-item img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        margin-right: 10px;
    }

    .notification-item div {
        font-size: 14px;
    }

    .notification-item small {
        color: gray;
    }

.see-more {
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd; /* grey line above See More */
}

    .see-more a {
        text-decoration: none;
        font-weight: bold;
        color: var(--crowe-blue);
    }

/* Dropdown menu styling */
.dropdown-menu a {
    color: black;
    text-decoration: none;
    display: block;
    padding: 8px 15px;
}

.dropdown-menu a:hover {
   color: var(--crowe-blue);
   background-color: #f8f9fa;
}

.dropdown-divider {
    margin: 0.5rem 0;
}

.powered-by {
    font-size: 12px;
    text-align: center;
    color: #666;
}

.powered-by img {
    height: 20px;
    margin: 5px 0;
}


.section1-box {
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.section-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--crowe-blue);
    margin-bottom: 15px;
}

.section-title i {
    color: #05c971;
}

.btn-register {
    background-color: var(--purple);
    color: white;
    width: 160px;
    border-radius: 8px;
}

.btn-update {
    background-color: var(--purple);
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.icon-text {
    color: var(--parrot);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.social-icons i {
    font-size: 1.2rem;
    margin-right: 12px;
}

.fa-facebook {
    color: #3b5998;
}

.fa-whatsapp {
    color: #25D366;
}

.fa-linkedin {
    color: #0077b5;
}

.fa-twitter {
    color: #1DA1F2;
}

.fa-instagram {
    color: #C13584;
}

.fa-copy {
    color: #555;
}

hr.divider {
    border-top: 1px solid var(--light-line);
    margin: 25px 0;
}

.box1 {
    width: 30%;
    max-width: 400px;
    min-width: 200px;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,0.15);
    border: 1px solid #000;
    border-radius: .5rem;
    padding: 1.5rem;
    background: #fafafa;
    margin-bottom: 2rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    margin: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    border-radius: 50%;
    text-decoration: none;
}

.facebook {
    background: #3b5998;
}

.whatsapp {
    background: #25d366;
}

.linkedin {
    background: #0077b5;
}

.telegram {
    background: #0088cc;
}

.x {
    background: #000;
}


.gmail-icon {
    background: #db4437;
}

.divider {
    border-top: 1px solid #ccc;
    margin: 1rem 0;
}

@media (min-width: 992px) {
    .left-section {
        width: 28%;
        margin-top: -50px; /* further up */
    }

    .right-section {
        width: 68%;
    }
}

/*css 2 merged  dashboard and eventdetil page */

.bg-dark-header {
    background-color: var(--dark-grey);
    color: white;
    text-align: center;
    padding: 70px 15px 50px;
}

.section-box {
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.section-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--crowe-blue);
    margin-bottom: 15px;
}

    .section-title i {
        color: var(--crowe-blue);
    }

.btn-register {
    background-color: var(--purple);
    color: white;
    width: 160px;
    border-radius: 8px;
}

.btn-update {
    background-color: var(--purple);
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.icon-text {
    color: var(--parrot);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

hr.divider {
    border-top: 1px solid var(--light-line);
    margin: 25px 0;
}

@media (min-width: 992px) {
    .left-section {
        width: 28%;
        margin-top: -50px; /* further up */
    }

    .right-section {
        width: 68%;
    }
}

.crw-box {
    width: 100%;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,0.15);
    border-radius: .5rem;
    padding: 1.5rem;
    background: #fafafa;
    margin-bottom: 2rem;
}

.crw-box2 {
    width: 100%;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,0.15);
    border-radius: .5rem;
    padding: 1.5rem;
    background: #fff;
}

.crw-divider {
    border-top: 1px solid #ccc;
    margin: 1rem 0;
}

.crw-social-icon {
    width: 50px;
    height: 50px;
    margin: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    border-radius: 50%;
    text-decoration: none;
}

.crw-facebook {
    background: #3b5998;
}

.crw-linkedin {
    background: #0077b5;
}

.crw-telegram {
    background: #0088cc;
}

.crw-instagram {
    background: #;
}

.crw-social-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* Event Section */
.crw-event-section {
    width: 100%;
    padding: 1rem;
}

.crw-event-card {
    position: relative;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    background: #fff;
    border-radius: .5rem;
    padding: 1rem 1.5rem;
    margin-top: 20px;
    /*    height:200px;*/
}

.crw-share-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    color: black;
    background: none;
    border: none;
    cursor: pointer;
}

.crw-event-details h5 {
    font-weight: bold;
    margin-bottom: .5rem;
}

.crw-event-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .9rem;
    color: #444;
    margin-bottom: .25rem;
}

    .crw-event-meta-line i {
        color: black;
        margin-right: .25rem;
    }

.crw-address {
    font-size: .9rem;
    color: #444;
    margin-bottom: 0.5rem;
}

    .crw-address i {
        color: black;
        margin-right: .25rem;
    }

.crw-badge-ongoing,
.crw-badge-upcoming, .crw-badge-ended {
    background-color: var(--crowe-yellow);
    color: #fff;
    font-size: .9rem;
    padding: .4rem .8rem;
    border-radius: 10px;
}

.crw-btn-view {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: var(--crowe-blue);
    color: #fff;
    font-weight: 600;
}

    .crw-btn-view:hover {
        border: 1px solid var(--crowe-blue);
        border-radius: 5px;
        color: var(--crowe-blue);
    }

/* Alumni Box */
.crw-alumni-box {
    position: relative;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    background: #fff;
    border-radius: .5rem;
    padding: 1rem;
    width: 100%;
}

.crw-alumni-img {
    width: 50%;
    max-height: 280px;
    object-fit: cover;
    border: 1px solid #ddd;
}

/* Discussion Section */
.crw-discussion-btn {
    background-color: var(--crowe-blue);
    color: white;
    font-weight: 600;
    padding: 0.6rem 1rem;
    width: 100%;
    border: none;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    transition: 0.3s ease;
}

    .crw-discussion-btn:hover {
        background-color: #00447a;
    }

.crw-discussion-container {
    margin-top: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.crw-discussion-header {
    display: flex;
    position: relative;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.crw-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    color: #555;
    transition: color 0.3s ease;
}

    .crw-tab:hover {
        color: var(--crowe-blue);
    }

    .crw-tab.active {
        color: var(--crowe-blue);
    }

.crw-tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 50%;
    background-color: var(--crowe-blue);
    transition: transform 0.3s ease;
}

.crw-discussion-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.crw-input-title,
.crw-textarea-desc {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.crw-textarea-desc {
    height: 120px;
    resize: vertical;
}

.crw-btn-post {
    align-self: flex-end;
    background-color: var(--crowe-blue);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.fa-solid {
    cursor: pointer;
    transition: transform 0.2s;
}

    .fa-solid:hover {
        transform: scale(1.2);
    }

.hidden {
    display: none;
}

/*event details page as itis*/

.event-section {
    width: 100%;
    padding: 1rem;
}

.event-card {
    position: relative;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    background: #fff;
    border-radius: .5rem;
    padding: 1rem 1.5rem;
    margin-top: 20px;
}

.share-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    color: black;
    background: none;
    border: none;
    cursor: pointer;
}

.event-details h5 {
    font-weight: bold;
    margin-bottom: .5rem;
}

.event-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: baseline;
    font-size: .9rem;
    color: #444;
    margin-bottom: .25rem;
}

    .event-meta-line i {
        color: black;
        margin-right: .25rem;
    }

.address {
    font-size: .9rem;
    color: #444;
    overflow-wrap: break-word;
    margin-bottom: 0.5rem;
}

    .address i {
        color: black;
        margin-right: .25rem;
    }

.badge-ongoing,
.badge-upcoming {
    background-color: var(--crowe-yellow);
    color: #fff;
    font-size: .9rem;
    padding: .4rem .8rem;
    border-radius: 10px;
}

.btn-view {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: var(--crowe-blue);
    color: #fff;
    font-weight: 600;
}

.box {
    width: 100%;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,0.15);
    /* border: 1px solid #000; */ /* Removed */
    border-radius: .5rem;
    padding: 1.5rem;
    background: #fafafa;
    margin-bottom: 2rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    margin: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    border-radius: 50%;
    text-decoration: none;
}

.fa-facebook {
    background: #3b5998;
}

.whatsapp {
    background: #25d366;
}

.linkedin {
    background: #0077b5;
}

.telegram {
    background: #0088cc;
}

.x {
    background: #000;
}

.instagram {
    background: #e4405f;
}

.gmail-icon {
    background: #db4437;
}

.divider {
    border-top: 1px solid #ccc;
    margin: 1rem 0;
}

.discussion-btn {
    background-color: var(--crowe-blue);
    color: white;
    font-weight: 600;
    padding: 0.6rem 1rem;
    width: 100%;
    border: none;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: block;
    transition: 0.3s ease;
}

    .discussion-btn:hover {
        background-color: var(--crowe-blue);
    }

.alumni-box {
    position: relative;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    background: #fff;
    border-radius: .5rem;
    padding: 1rem;
    width: 100%;
}

.alumni-img {
    width: 50%;
    max-height: 280px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.discussion-card {
    background: #fff;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,0.1);
    border-radius: .5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.discussion-container {
    margin-top: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.discussion-header {
    display: flex;
    position: relative;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    color: #555;
    transition: color 0.3s ease;
}

    .tab:hover {
        color: var(--crowe-blue);
    }

    .tab.active {
        color: var(--crowe-blue);
    }

.tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 50%;
    background-color: var(--crowe-blue);
    transition: transform 0.3s ease;
}

.discussion-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-title,
.textarea-desc {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.textarea-desc {
    height: 120px;
    resize: vertical;
}

.btn-post {
    align-self: flex-end;
    background-color: var(--crowe-blue);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

    .btn-post:hover {
        background-color: #00447a;
    }

.background-banner {
    //background-image: url('./medium-shot-people-with-glasses-posing-studio.jpg');
    background-image: url('../img/portal.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 300px;
    width: 100%;
    margin-top: 20px;
}

.pagination-btn, .icon-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.search-btn {
    border: none;
    padding: 0 15px;
    color: white;
}

.search-btn {
    background-color: var(--crowe-blue);
}

    .search-btn i {
        font-size: 18px;
    }

@media (max-width: 576px) {
    .pagination-btn, .icon-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

.member-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.image-wrapper {
    position: relative;
}

.member-img, .missing-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #f1f1f1;
}

.missing-img {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #333;
    flex-direction: column;
}

.message-icon {
    position: absolute;
    top: 165px;
    right: 10px;
    z-index: 1;
}

    .message-icon img {
        width: 32px;
        height: 32px;
        object-fit: cover;
        border-radius: 50%;
        border: 2px solid #fff;
    }

.btn-message {
    color: white;
    font-size: 14px;
    border-radius: 5px;
    border: none;
    padding: 6px 8px;
}

.btn-message {
    background-color: var(--crowe-blue);
}

.btn-help {
    color: white;
    font-size: 14px;
    border-radius: 5px;
    border: none;
    padding: 6px 8px;
}

.btn-help {
    background-color: var(--crowe-yellow);
}

/* Remove hover and active effects for message button */
.btn-message,
.btn-message:hover,
.btn-message:active,
.btn-message:focus,
.btn-message:visited {
    background-color: var(--crowe-blue) !important;
    color: white !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Remove hover and active effects for help button */
.btn-help,
.btn-help:hover,
.btn-help:active,
.btn-help:focus,
.btn-help:visited {
    background-color: var(--crowe-yellow) !important;
    color: white !important;
    box-shadow: none !important;
    outline: none !important;
}


.btn-view-section {
    border-top: 1px solid #ccc;
    margin-top: 10px;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

    .btn-view-section .btn {
        flex: 1;
        min-width: 100px;
        margin: 0;
    }

.member-info {
    padding: 10px 15px;
}

/* --- Sidebar --- */
.yb-left-sidebar {
    background: #fff;
    width: 300px;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.yb-sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

.yb-scrollable-section {
    overflow-y: auto;
    flex: 1;
    padding: 1rem;
}

/* --- Buttons --- */
.yb-btn-blue {
    background-color: var(--crowe-blue);
    color: #fff;
    font-weight: 500;
    border-radius: 6px;
    width: 100%;
    border: none;
}

.yb-btn-blue:hover,
.yb-btn-blue:focus {
    background-color: var(--blue);
    color: #fff;
}

/* --- Avatars --- */
.yb-avatar-circle {
    background-color: #cce0f5;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: #000;
}

.yb-chat-avatar {
    background-color: #cce0f5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    margin-right: 12px;
}

/* --- Lists --- */
.yb-chat-item, .yb-contact-item {
    margin-bottom: 1rem;
}

    .yb-contact-item img {
        width: 40px;
        height: 40px;
        object-fit: cover;
    }

/* --- Chat Area --- */
.yb-msg-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    align-items: flex-start;
}

    .yb-msg-row.me {
        justify-content: flex-end;
    }

.yb-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--crowe-blue);
    color: #fff;
    font-weight: 700;
}

    .yb-msg-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.yb-msg-bubble {
    max-width: 72%;
    background: #f1f3f5;
    border-radius: 14px;
    padding: 8px 12px;
}

.yb-msg-row.me .yb-msg-bubble {
    background: #d0ebff;
}

.yb-msg-meta {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 4px;
}

.yb-chat-area {
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    height: 80vh; /* full height */
}

.yb-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #ddd;
    position: relative;
}

    .yb-chat-header h5 {
        margin: 0;
        font-weight: 700;
    }

    .yb-chat-header small {
        color: #888;
    }

.yb-chat-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.yb-message-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 1rem;
    margin-bottom: 1rem;
}

.yb-chat-date {
    text-align: center;
    font-size: .85rem;
    color: #888;
    margin: 0.5rem 0 0.75rem;
}

/* --- Input Bar --- */
.yb-input-bar {
    border-top: 1px solid #ddd;
    padding-top: .5rem;
}

.yb-input-group {
    display: flex;
    align-items: center;
    gap: .5rem;
}

    .yb-input-group input {
        flex: 1;
        border: none;
        border-bottom: 2px solid #ccc;
        border-radius: 0;
        padding: .5rem .25rem;
    }

        .yb-input-group input:focus {
            outline: none;
            border-bottom: 2px solid var(--crowe-blue);
        }

    .yb-input-group .btn {
        background-color: var(--crowe-blue);
        color: #fff;
        border: none;
    }

        .yb-input-group .btn:hover {
            background-color: var(--blue);
        }

/* --- Dropdown (kebab) --- */
.yb-chat-header .dropdown {
    position: absolute;
    right: 0;
    top: 0;
}

/* --- Scrollbars --- */
.yb-scrollable-section::-webkit-scrollbar,
.yb-chat-content::-webkit-scrollbar {
    width: 6px;
}

.yb-scrollable-section::-webkit-scrollbar-thumb,
.yb-chat-content::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 5px;
}

/* --- Layout Wrapper --- */
.yb-container-fluid {
    display: flex;
    min-height: 80vh;
    gap: 0;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .yb-left-sidebar {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .yb-container-fluid {
        flex-direction: column;
    }

    .yb-left-sidebar {
        width: 100%;
        height: 45vh;
    }

    .yb-chat-area {
        height: auto;
        min-height: 55vh;
    }
}


/*--------------------------------------------------
---------------------profile page--------------------
-----------------------------------------------------*/

.new-top-bar {
    background-color: var(--crowe-blue);
    height: 150px;
}

.new-sidebar-box, .new-content-box {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: -80px;
}

.new-sidebar a {
    display: block;
    padding: 12px 15px;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
}

    .new-sidebar a.new-active, .new-sidebar a:hover {
        background-color: #e6f0fa;
        color: #0d6efd;
    }

.new-content-box {
    min-height: 200px;
}

.new-content-section {
    display: none;
    width: 100%;
}

    .new-content-section.new-active {
        display: block;
    }

.new-profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 80%;
    object-fit: cover;
    border: 3px solid #ddd;
}

.new-menu-container {
    position: relative;
    display: inline-block;
}

.new-menu {
    display: none;
    position: absolute;
    top: 30px;
    right: 0;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    padding: 8px 0;
    min-width: 140px;
    text-align: left;
    z-index: 10;
}

    .new-menu a {
        display: block;
        padding: 8px 15px;
        color: #000;
        text-decoration: none;
    }

        .new-menu a:hover {
            background-color: #f1f1f1;
        }

.new-form-control, .new-form-select {
    border: none;
    border-bottom: 2px solid #ccc;
    border-radius: 0;
    background: transparent;
    padding-left: 0;
    padding-right: 0;
}

    .new-form-control:focus, .new-form-select:focus {
        border-color: var(--crowe-blue);
        box-shadow: none;
    }

    .new-form-control::placeholder {
        color: #aaa;
    }

.new-btn-primary {
    background-color: var(--crowe-blue);
    border-color: var(--crowe-blue);
    color: #ffffff;
}

.new-add-link {
    text-decoration: none;
    color: #0d6efd;
    font-size: 0.9rem;
    align-self: center;
}

    .new-add-link:hover {
        text-decoration: underline;
    }

.new-skill-tag {
    background-color: #e5e5e5;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .new-skill-tag .new-remove-skill {
        cursor: pointer;
        font-weight: bold;
        font-size: 1.1rem;
    }

        .new-skill-tag .new-remove-skill:hover {
            color: red;
        }

textarea {
    resize: none;
}

.new-container-box {
    max-width: 700px;
    margin: 40px auto;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.1);
}

.new-error-msg {
    font-size: 0.85rem;
    color: red;
    margin-top: 4px;
    display: none;
}

.new-display-card {
    background-color: #f2f2f2;
    padding: 20px;
    border-radius: 10px;
    position: relative;
}

.new-edit-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
}

h2 {
    margin-bottom: 20px;
}

.new-form-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    color: #333;
}

input, select {
    width: 100%;
    padding: 8px 0;
    margin-bottom: 5px;
    border: none;
    border-bottom: 2px solid #ccc;
    outline: none;
    background: transparent;
    font-size: 14px;
    transition: border-color 0.3s;
    appearance: none;
}

    input:focus, select:focus {
        border-color: var(--crowe-blue);
    }

.new-error {
    font-size: 12px;
    color: red;
    margin-bottom: 10px;
}

.new-row {
    display: flex;
    gap: 10px;
}

    .new-row > div {
        flex: 1;
    }

button {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.new-save-btn {
    background: #007bff;
    color: white;
}

.new-cancel-btn {
    background: #f0f0f0;
}

.new-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .new-card h3 {
        margin: 0;
    }

    .new-card p {
        margin: 4px 0;
        color: #555;
    }

.new-edit-btn {
    cursor: pointer;
    background: none;
    border: none;
    font-size: 16px;
}
/* Force 30/70 split */
.new-custom-sidebar {
    flex: 0 0 30%;
    max-width: 30%;
}

.new-custom-content {
    flex: 0 0 70%;
    max-width: 70%;
}

.new-privacy-box {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 40px auto;
}

    .new-privacy-box h4 {
        font-weight: 600;
        margin-bottom: 20px;
    }

.new-privacy-options {
    margin-bottom: 20px;
    margin-right: 160px;
}

.new-form-check {
    margin-bottom: 10px;
}

.new-btn-cancel {
    border: 1px solid #ccc;
    background-color: white;
    color: black;
    font-weight: 600;
}

.new-btn-save {
    background-color: var(--crowe-blue);
    color: white;
    font-weight: 600;
}

.new-form-check {
    margin-bottom: 20px;
}

    .new-form-check small {
        display: block;
        color: #666;
        margin-left: 25px;
        margin-top: 5px;
    }

.new-form-select {
    margin-top: 30px;
}

.new-btnnn {
    min-width: 150px;
    border-radius: 8px;
    margin-left: 12px;
    padding: 10px 18px;
    border: none !important; /* border remove */
    box-shadow: none !important; /* outline/border shadow remove */
}

.new-btn-save {
    background-color: var(--crowe-blue);
    color: #fff;
}

    .new-btn-save:hover {
        background-color: #00497a;
    }

.new-btn-second {
    background-color: #6c757d;
    color: #fff;
}

    .new-btn-second:hover {
        background-color: #5a6268;
    }

.new-mt-4 {
    margin-top: 25px !important;
}

h4 {
    font-weight: 600;
    margin-bottom: 15px;
}

.new-section {
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.new-social-btn {
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
}

    .new-social-btn img {
        width: 20px;
        height: 20px;
    }

.new-btn-action {
    border-radius: 6px;
    padding: 10px 16px;
    min-width: 230px;
}

.new-btn-delete {
    background: none;
    color: var(--crowe-yellow);
    border: 1px solid var(--crowe-yellow);
}

    .new-btn-delete:hover {
        background: var(--crowe-yellow);
        color: #fff;
    }

.new-btn-demised {
    background: none;
    color: var(--crowe-blue);
    border: 1px solid var(--crowe-blue);
}

    .new-btn-demised:hover {
        background: var(--crowe-blue);
        color: #fff;
    }

/* Alumni form  */
.org-add-box {
    display: none;
    margin-top: 6px;
    gap: 8px;
}
.org-add-box.show {
    display: flex;
}

.org-add-box input {
    width: 70%;
    padding: 4px 8px;
}

.org-add-box button {
    background-color: #0056b3;
    border: none;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

    .org-add-box button:hover {
        background-color: #003f80;
    }

.click-to-add {
    cursor: pointer;
    color: #007bff;
    font-size: 0.9rem;
    margin-top: 4px;
}

.click-to-add:hover {
    text-decoration: underline;
}

.error-popup {
    color: #b00020;
    margin-top: 5px;
    font-size: 0.9rem;
    display: none;
}

#profilePreview {
    width: 140px;
    height: 140px;
    object-fit: cover; /* crop nicely */
    border-radius: 50%; /* circle */
    border: 2px solid #eee;
}

.alum-label {
    color: #012970;
}

.form-container {
    background-color: #ffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
}

.badge-services {
    background-color: #e0efff; /*  Soft blue tint background */
    color: #012970; /*    Dark blue text*/
    font-size: 14px;
    font-weight: 500;
    border-radius: 7px;
    padding: 5px 15px;
    display: inline-block;
    margin-bottom: 15px;
}


.profile-box {
    width: 100px;
    height: 100px;
    background-color: white;
    border: 1px solid #012970;
    margin-left: 60px;
}

.profile-img-box {
    padding-top: 100%;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    position: relative;
    padding: 0px;
    display: flex;
    align-items: center;
    /*    margin-left: 241px;*/
    /*    width: 130px;
    height: 126px;*/
}

.file-input {
    position: absolute;
    position: relative;
    width: 100px;
    display: flex;
    opacity: 0;
    cursor: pointer;
    top: 0;
    left: 0;
}

.spn {
    align-items: center;
    justify-content: center;
    padding-left: 27px;
    display: flex;
    position: absolute;
    cursor: pointer;
}

/*.profilepic-label {
    margin-left: 255px;
}*/

/* Click to add link */
.click-to-add {
    margin-top: 5px;
    color: #012970;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

/* Input + button hidden box */
.org-add-box {
    display: none;
    margin-top: 8px;
}

    .org-add-box input {
        padding: 6px;
        width: 65%;
        max-width: 200px;
        margin-right: 6px;
        font-size: 14px;
    }

    .org-add-box button {
        padding: 6px 12px;
        font-size: 14px;
        cursor: pointer;
        background-color: #FDB913;
        color: #012970;
        border: none;
        border-radius: 4px;
    }

/* Error popup box */
.error-popup {
    background-color: #f4f6f8;
    color: #012970;
    border: 1px solid #FDB913;
    padding: 8px 12px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 14px;
}


/* Checkbox styling */
.single-checkbox {
    margin-top: 5px;
    font-size: 14px;
}

    .single-checkbox input[type="checkbox"] {
        transform: scale(1.2);
        margin-left: 50px;
        accent-color: #012970; /* matches your text field color */
    }

.privacy-box {
    border: 1px solid #FDB913;
    border-radius: 6px;
    padding: 16px;
    background-color: #f4f6f8; /* Soft clean grey tint */
    font-size: 14px;
    color: #333;
}


/* Heading style */
.privacy-heading {
    color: #012970;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 6px;
}

/* Line below heading */
.privacy-line {
    border: none;
    height: 1px;
    background-color: #FDB913;
    margin-bottom: 15px;
}

/* Checkbox style */
.agree-label {
    color: #012970;
    font-weight: 700;
    margin-left: 6px;
}

#agreePrivacy {
    accent-color: #012970;
    appearance: auto;
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    border: none;
    margin: 0; 
    position: relative;
}

.privacy-check {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.privacy-box input[type="checkbox"] {
    transform: scale(1.2);
    accent-color: #012970;
}

/* Submit Button */
.submit-btn {
    background-color: #FDB913;
    color: white;
    border: none;
    padding: 8px 24px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .submit-btn:hover {
        background-color: #e0a800;
    }

/* Slightly darker golden on hover */
.bg-purple {
    background-color: #4B0049 !important;
}

.text-purple {
    color: #4B0049 !important;
}

.btn-purple {
    background-color: #4B0049 !important;
    color: #fff;
    border-radius: 4px;
}

.btn-purple:hover {
    background-color: #3a0038 !important;
}

.tab-switch {
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    border-color: transparent;
}

.tab-active {
    color: #4B0049;
    border-color: #4B0049 !important;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background-color: #1f2937;
    color: white;
    padding: 20px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
}

.sidebar h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
}

                .sidebar ul li a:hover {
                    background-color: #374151;
                }

/* Main content */
.main-content {
    margin-left: 300px;
    padding: 40px 20px;
    width: 100%;
}

.tabs-container {
    max-width: 700px;
    margin: auto;
    margin-top: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 25px;
}

.tabs {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    cursor: pointer;
    font-weight: 500;
    color: #888;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
    font-size: 16px;
}

.tab-button.active {
    color: #000;
}

.tab-indicator {
    height: 3px;
    width: 50%;
    background: #e11d48;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: left 0.3s ease;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-section input,
.form-section textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.form-section button {
    width: fit-content;
    padding: 8px 16px;
    background-color: #e11d48;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.poll-option-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.poll-option-group input {
    flex: 1;
}

/* picker popup ko sab par laao */
.emoji-picker {
    z-index: 999999 !important;
    position: absolute !important;
}

.crw-discussion-container, .crw-event-section {
    overflow: visible !important;
}

.emoji-picker {
    outline: 2px solid red; 
}

.profile-box {
    width: 100px;
    height: 100px;
    background-color: white;
    border: 1px solid#c1282a;
    margin-left: 60px;
}

.profile-upload-box {
    padding-top: 100%;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    position: relative;
    padding: 0px;
    display: flex;
    align-items: center;
    margin-left: 241px;
    width: 130px;
    height: 126px;
}

.file-input {
    position: absolute;
    position: relative;
    width: 100px;
    display: flex;
    opacity: 0;
    cursor: pointer;
    top: 0;
    left: 0;
}

.spn {
    align-items: center;
    justify-content: center;
    padding-left: 27px;
    display: flex;
    position: absolute;
    cursor: pointer;
}

.avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.avatar-fallback {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #aeaeae;
    color: #fff;
    font-weight: 700;
    font-size: 38px;
    user-select: none;
}

/*Preview or media*/
.post-preview-box {
    position: relative;
    border: 1px dashed #cbd5e1;
    background: #fafafa;
    border-radius: 10px;
    padding: 10px;
}

.post-preview-remove {
    position: absolute;
    top: 6px;
    right: 8px;
    border: none;
    background: #00000080;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.post-preview-meta {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
}

.card .card-body {
    padding: 12px 14px;
}

.card .border-top {
    border-top: 1px solid #eee !important;
}

.yb-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--crowe-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

#chatContent {
    min-height: 320px;
    max-height: 65vh;
    overflow-y: auto;
}

#chatList {
    max-height: 70vh;
    overflow-y: auto;
}

.yb-msg-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    align-items: flex-start;
}

.yb-msg-row.me {
    justify-content: flex-end;
}

.yb-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--crowe-blue);
    color: #fff;
    font-weight: 700;
}

.yb-msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yb-msg-bubble {
    max-width: 72%;
    background: #f1f3f5;
    border-radius: 14px;
    padding: 8px 12px;
}

.yb-msg-row.me .yb-msg-bubble {
    background: #d0ebff;
}

.yb-msg-meta {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 4px;
}
/*Request */
.page-title {
    font-weight: 600;
}

.card {
    border: none;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,0.15);
    border-radius: 16px;
}

.table thead th {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.status-badge {
    font-size: .75rem;
}

.search-wrap {
    gap: .75rem;
}

.pagination {
    margin-bottom: 0;
}

.offcanvas {
    width: 720px;
}

.kv {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 6px 12px;
}

    .kv .key {
        color: #6c757d;
    }

.avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eee;
}

.table tbody td {
    vertical-align: middle;
}
.notif-hidden {
    display: none !important;
}