@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,600;1,700;1,800;1,900");
* {
    margin: 0;
    padding: 0;
}
html,
body {
    font-family: "Nunito Sans", sans-serif;
    position: relative;
    font-size: 1.01rem;
    height: 100%;
}
ol,
ul {
    list-style: none;
}
a,
a:hover {
    text-decoration: none;
}

button:focus,
a:focus,
input:focus,
textarea:focus {
    box-shadow: inherit !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #30323a;
    margin: 0 0 10px;
    font-weight: 500;
    line-height: 1.1;
}

.fs-7 {
    font-size: 0.875rem;
}
.fs-8 {
    font-size: 0.7rem;
}

.section_padding {
    padding-top: 50px;
    padding-bottom: 40px;
}

.modal {
    z-index: 10066;
}

/***
====================================================================
                    Header nav ber cord CSS
====================================================================
**/

/* Dropdown animation and hover open */
.navbar .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s;
    min-width: 11rem;
    display: block;
    pointer-events: none;
}
.navbar .dropdown:hover > .dropdown-menu,
.navbar .dropdown:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    border-radius: 0px;
    padding: 0px;
}
/* Position nested dropdowns to the right */
.dropdown-menu .dropdown-menu {
    left: 100%;
    top: 10px;
    margin-left: 0;
    margin-top: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: block;
    pointer-events: none;
}
.dropdown-menu > .dropdown:hover > .dropdown-menu,
.dropdown-menu > .dropdown:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu .dropdown-item {
    
}

.dropdown-menu .dropdown-item,
.dropdown-menu .nav-link {
    
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .nav-link:hover {
    background: #f5f5f5;
    color: #212529;
    transition: background 0.2s, color 0.2s;
}
/* For submenu toggle carets */
.dropdown-menu .dropdown-toggle::after {
    border-top: 0.3em solid transparent;
    border-bottom: 0.3em solid transparent;
    border-left: 0.3em solid; /* right-pointing arrow */
    border-right: none;
    vertical-align: middle;
    margin-left: 0.255em;
    transform: none; /* remove Bootstrap's rotate */
}



/* ========================================
   POST FORM AND DISPLAY STYLES (Consolidated)
   ======================================== */

/***
====================================================================
                   Footer CSS
====================================================================
**/

footer.section_padding {
    background-color: #0e424a !important;
    padding-bottom: 0 !important;
}
footer .contain_aria {
    margin-top: 20px;
}
footer .copy_write {
    border-top-width: 1px;
    border-top-style: solid;
    margin-top: 40px;
    padding: 20px 0;
    font-size: 14px;
}

footer .footer_menu ul {
    padding-left: 2px;
}
footer .footer_menu ul li {
    line-height: 30px;
}
footer .footer_menu ul li a {
    font-size: 15px;
}

footer a.icon {
    margin-left: 5px;
    font-size: 15px;
    width: 30px;
    height: 30px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    line-height: 30px;
}

.avatar_image img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}
.avatar_image span {
    cursor: pointer;
}

.form-group {
    margin-bottom: 1rem;
}

.form-control {
    border-color: #bbc6c8;
}

select:focus {
    box-shadow: none !important;
}

.nav-home-page .nav-link {
    color: #fff !important;
}
.nav-other-page {
    background-color: #d4f1f2;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}
.nav-other-page .nav-link.active,
.navbar-nav .show > .nav-link {
    color: #000;
}
.nav-home-page {
    background-color: rgb(11 81 92 / 90%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}
.nav-other-page a.nav-link {
    color: #000;
}
.login-btn {
    background-color: #00aab2;
    border: transparent;
    color: #fff !important;
}
.login-btn:hover {
    background-color: #114c56;
}
.sign-up-btn {
    background-color: #114c56;
    color: #fff !important;
}
.menu_header {
    margin-top: 56px;
}

#dropdownMenuButton1 span {
    color: #000000;
}

.nav-home-page #dropdownMenuButton1 span {
    color: #ffffff;
}

.nav-home-page ul ul li a.nav-link {
    color: #000 !important;
}

/* Posts specific styles - kept for future use */
.post-section {
    margin-top: 2.5rem;
}
.post-item {
    border-radius: 0.8rem !important;
    border: 1px solid #eff3f4;
    background-color: #fff !important;
    box-shadow: 0 1px 2px #00000033;
    padding: 12px !important;
}

.image-aria {
    width: 8%;
    height: 50px;
}
.image-aria img {
    width: 100%;
    border-radius: 50%;
    border: 1px solid #00000033;
    height: 50px;
    padding: 5px;
}

.text_aria {
    width: 92%;
    padding-left: 0;
    padding-right: 15px !important;
}
.text_aria h2 {
    font-size: 19px;
    margin-bottom: 0;
    color: #0b515ce6;
    font-weight: bold;
}

.sidebar_image {
    width: 25%;
}
.sidebar_image img {
    width: 100%;
    border-radius: 50%;
    border: 1px solid #00000033;
    height: 55px;
    width: 55px;
    padding: 5px;
}

.sidebar_text_aria {
    width: 75%;
}
.sidebar_text_aria h2 {
    font-size: 19px;
    margin-bottom: 0;
    color: #0b515ce6;
    font-weight: bold;
}

.menu-left {
    background-color: white;
    max-height: 500px;
    overflow-y: hidden;
    transition: overflow-y 0.3s ease;
}

.menu-left:hover {
    overflow-y: auto;
}

.menu-left::-webkit-scrollbar {
    width: 6px;
}

.menu-left::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.menu-left::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.menu-left::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.post-activity {
    background: #ebebeb;
    display: inline-block;
    padding: 5px 13px;
    border-radius: 5px;
}
.post-activity a {
    font-size: 17px;
    display: inline-block;
    color: #00aab2 !important;
}

.post-activity a:first-child {
    padding-right: 10px;
    border-right: 1px solid #ccc;
}
.post-activity a:last-child {
    padding-left: 10px;
}
.post-activity a:hover {
    color: #0b515ce6 !important;
}

/* Improved Post Activity Buttons */
.post-activity .activity-btn {
    border-radius: 50%;
    font-size: 0.75rem;
    padding: 0;
    transition: all 0.2s ease;
    border-width: 1px;
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.post-activity .activity-btn .btn-icon {
    font-size: 0.75rem;
}

.post-activity .activity-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Ensure post count numbers display correctly */
.post-count-number {
    position: static !important;
    display: inline !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    top: auto !important;
    right: auto !important;
}

.post-activity .activity-btn:active {
    transform: translateY(0);
}

.post-activity .activity-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.post-activity .like-btn.btn-primary {
    background-color: #00aab2 !important;
    border-color: #00aab2 !important;
    color: white !important;
}

.post-activity .like-btn.btn-outline-primary {
    background-color: transparent;
    border-color: #00aab2;
    color: #00aab2;
}

.post-activity .dislike-btn.btn-secondary {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
}

.post-activity .dislike-btn.btn-outline-secondary {
    background-color: transparent;
    border-color: #6c757d;
    color: #6c757d;
}

/* Search styles */
.search-aria {
    position: relative;
}

.search-aria span {
    position: absolute;
    right: 17px;
    top: 13px;
    padding: 2px;
    border-left: 1px solid #d1d5db;
}

.search-aria .form-input {
    height: 55px;
    text-indent: 33px;
    border-radius: 10px;
}

.search-aria .form-input:focus {
    box-shadow: none;
}

.dropdown-content {
    opacity: 0;
    position: absolute;
    background-color: #f6f6f6;
    min-width: 100%;
    overflow: auto;
    border: 1px solid #d1d5db;
    z-index: 999;
    border-radius: 10px;
}
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    border-bottom: 1px solid #d1d5db;
    display: block;
    text-align: left !important;
}

.posts .offcanvas-header{
    border-bottom: 1px solid #8a949d;
    padding: 10px 16px;
}

.posts .offcanvas{
    background-color: #6c757d !important;
}

.posts .nav-item .nav-link{
    color:#ffffff;
}



#offCanvasIcon span {
    font-size: 25px;
    color: #fff;
    padding: 8px 12px;
    background-color: #00aab278;
    border-radius: 8px;
}

.navbar-nav .nav-link.active, 
.navbar-nav .show>.nav-link {
    color: var(--bs-navbar-active-color);
}

.dropdown-menu a.nav-link {
    display: block;
    width: 100%;
    padding: var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);
    clear: both;
    font-weight: 400;
    color: var(--bs-dropdown-link-color) !important;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

/* Media queries */
@media (max-width: 575px) {
    .nav-other-page,
    .nav-home-page {
        background-color: #163f46;
    }
    .nav-other-page a.nav-link,
    #dropdownMenuButton1 span {
        color: #f8f9f9;
    }
    .header-menu-aria > ul {
        width: 100%;
    }
    .header-menu-aria > ul > li {
        padding-left: 20px;
    }
    .header-menu-aria .login-btn,
    .header-menu-aria .sign-up-btn {
        background-color: transparent;
    }

    .header-menu-aria .sign-up-btn {
        border: none;
    }
    a#dropdownMenuButton1 {
        display: block !important;
    }

    .post-section {
        margin-top: 0rem;
    }
}

@media (max-width: 768px) {
    .mobileLogo {
        width: 25% !important;
        text-align: left !important;
    }
    .other_aria {
        width: 75% !important;
    }
    .menu-left {
        width: 96%;
        margin: auto;
        margin-bottom: 15px;
    }
    .post-form-footer .row > div {
        margin-bottom: 10px;
    }
    
    .post-form-footer .text-md-end {
        text-align: center !important;
    }
    
    .upload-box {
        min-height: 80px;
        padding: 15px;
    }
    
    .post-textarea {
        font-size: 1rem;
        padding: 12px;
    }
    
    .avatar-container, .avatar-img {
        width: 40px;
        height: 40px;
    }
    
    .post-avatar-container, .post-avatar-img {
        width: 40px;
        height: 40px;
    }
    
    .company-info .company-name,
    .post-company-info .post-company-name {
        font-size: 0.9rem;
    }
    
    .post-time {
        font-size: 0.8rem;
    }
}

@media (max-width: 575px) {

}

@media screen and (max-width: 1700px) {
    .image-aria {
        width: auto;
    }
    .text_aria {
        width: 77%;
    }
}

@media screen and (max-width: 1199px) {
    .sidebar_image, .sidebar_text_aria {
        width: 100%;
    }
    .sidebar_image img {
        width: auto;
    }
    .sidebar_text_aria h2 {
        padding-left: 15px;
        line-height: inherit;
    }
}

/* ========================================
   POST FORM AND DISPLAY STYLES
   ======================================== */

/* Post Form Styles */
.avatar-container {
    width: 50px;
    height: 50px;
}

.avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    object-fit: cover;
}

.company-info .company-name {
    font-weight: 600;
    color: #0b515c;
    font-size: 1rem;
}

.post-textarea {
    border: 1px solid #ced4da;
    resize: none;
    font-size: 1.1rem;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 12px;
    min-height: 100px;
}

.post-textarea:focus {
    box-shadow: 0 0 0 3px rgba(0, 170, 178, 0.1);
    border-color: #00aab2;
    background-color: #fff;
}

.char-counter {
    margin-top: 5px;
    font-size: 0.875rem;
    margin-right: 5px;
}

.post-form-content {
    padding-left: 0;
}

.post-form-footer {
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    margin-top: 10px;
}

/* Post Display Styles */
.post-header {
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f3f4;
}

.post-avatar-container {
    width: 48px;
    height: 48px;
}

.post-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.post-avatar-img:hover {
    transform: scale(1.05);
}

.post-company-info .post-company-name {
    font-weight: 600;
    color: #0b515c;
    font-size: 1rem;
    line-height: 1.2;
}

.post-company-info .post-company-name:hover {
    color: #00aab2;
    transition: color 0.2s ease;
}

.post-time {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.btn-ghost {
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.btn-ghost:hover {
    background-color: #f8f9fa;
}

.btn-ghost:focus {
    box-shadow: 0 0 0 2px rgba(0, 170, 178, 0.2);
}

/* Image Upload Styles */
.image-upload-container {
    width: 100%;
}

.upload-box {
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.upload-box:hover {
    border-color: #00aab2;
    background-color: #e3f8f9;
}

.upload-content {
    text-align: center;
}

.preview-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-content img {
    max-height: 150px;
    max-width: 100%;
    border-radius: 8px;
}

.remove-preview {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Post Item Styles */
.post-item {
    position: relative;
    border-radius: 16px !important;
    border: 1px solid #e9ecef;
    background-color: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px !important;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.post-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: #d0d7de;
}

/* Post Image Styles */
.post-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background-color: #f8f9fa;
    max-height: 500px;
}

.post-image {
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 500px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    border-radius: 12px;
    background-color: #f8f9fa;
}

.post-image:hover {
    transform: scale(1.02);
}

.post-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.post-image-container:hover::before {
    transform: translateX(100%);
}

/* Loading State for Images */
.post-image[loading] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Image Breakpoints */
@media (max-width: 575px) {
    .post-image-container {
        max-height: 300px;
        border-radius: 8px;
    }
    
    .post-image {
        min-height: 150px;
        max-height: 300px;
        border-radius: 8px;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .post-image-container {
        max-height: 400px;
    }
    
    .post-image {
        min-height: 180px;
        max-height: 400px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .post-image-container {
        max-height: 450px;
    }
    
    .post-image {
        min-height: 200px;
        max-height: 450px;
    }
}

@media (min-width: 992px) {
    .post-image-container {
        max-height: 500px;
    }
    
    .post-image {
        min-height: 220px;
        max-height: 500px;
    }
}

/* Image Error Fallback */
.post-image[src*="error"], .post-image[src=""] {
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M6.002 5.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z'/%3E%3Cpath d='M2.002 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2h-12zm12 1a1 1 0 0 1 1 1v6.5l-3.777-1.947a.5.5 0 0 0-.577.093l-3.71 3.71-2.66-1.772a.5.5 0 0 0-.63.062L1.002 12V3a1 1 0 0 1 1-1h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60px 60px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image Modal Enhancements */
#imageModal .modal-dialog {
    max-width: 90vw;
    max-height: 90vh;
}

#imageModal .modal-body {
    padding: 0;
}

#imageModal img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Post Content Text Spacing */
.post-content .post-text {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #333;
    margin-top: 15px;
}

.post-content .post-text p {
    margin-bottom: 12px;
}

/* Legacy Support */
.post-image-clickable {
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 500px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    border-radius: 12px;
    background-color: #f8f9fa;
}

.post-text {
    line-height: 1.4;
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.post-text .line-break {
    display: block;
    height: 8px;
    content: "";
}

.post-content p{
    padding: 15px 10px;
}

/* Modal Styles */
.modal-body .alert {
    display: none;
}

.alert {
    padding: 5px;
}

.alert ul {
    margin-bottom: 0px;
}

@media (max-width: 576px) {
    .post-item {
        padding: 15px !important;
        margin-left: 5px;
        margin-right: 5px;
    }
    
    .d-flex.align-items-center {        
        align-items: stretch !important;
    }
    
    .d-flex.align-items-center .form-label {
        margin-bottom: 5px;
    }
    
    .post-header {
        padding-bottom: 10px;
    }
}

/* ========================================
   MOBILE HORIZONTAL POST TYPES NAVIGATION
   ======================================== */

.mobile-post-types-container {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.post-types-scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding: 0 15px 5px 15px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-behavior: smooth;
}

.post-types-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.post-type-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    color: #333;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.post-type-chip:hover {
    background-color: #e8e8e8;
    color: #333;
    transform: translateY(-1px);
}

.post-type-chip.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.post-type-chip.active:hover {
    background-color: #0b5ed7;
    color: white;
}

.post-type-chip i {
    font-size: 0.875rem;
}

.chip-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 4px;
}

.post-type-chip.active .chip-badge {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.post-type-chip:not(.active) .chip-badge {
    background-color: #0d6efd;
    color: white;
}

/* Mobile Company Info */
.mobile-company-info {
    background-color: #fafafa;
}

.mobile-company-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.mobile-company-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-company-text h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

.mobile-company-text small {
    font-size: 0.75rem;
}

.mobile-company-text a:hover h6 {
    color: #0d6efd;
}

/* Smooth scroll indicator (optional visual enhancement) */
.post-types-scroll::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 5px;
    width: 30px;
    background: linear-gradient(to right, transparent, white);
    pointer-events: none;
}

/* Animation for chip activation */
@keyframes chipActivate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.post-type-chip.active {
    animation: chipActivate 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 375px) {
    .post-type-chip {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .chip-badge {
        min-width: 18px;
        height: 18px;
        font-size: 0.7rem;
    }
}