/* For mobile main navigation - dropdown behavior */
@media (max-width: 992px) {
    /* Prevent hover dropdown on mobile */
    .navbar .nav-item.dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .navbar .nav-item.dropdown .dropdown-menu.show {
        display: block;
    }
    
    .navbar-nav {
        margin-top: 1rem;
    }
    
    .nav-item {
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .nav-link {
        padding: 0.75rem 0 !important;
    }
    
    .dropdown-menu {
        box-shadow: none;
        border-radius: 0;
        padding-left: 1rem;
        background-color: rgba(94, 80, 63, 0.05);
    }
}
.navbar .nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.sticky-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.98);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
   
}



body.has-sticky-nav {
    padding-top: 80px;
}

.sticky-nav .navbar-brand img {
    height: 50px;
    transition: height 0.3s ease;
}

.custom-button {
    background-color: #5e503f; 
    color: #f4f4f4; 
    border: none; 
    border-radius: 30px; 
    transition: background-color 0.3s, transform 0.2s; 
    padding: 0.375rem 0.75rem; 
    font-size: 0.875rem; 
    font-weight: 400; 
    display: inline-flex; 
    align-items: center;
    justify-content: center; 
}

/* Enhanced Top Navigation Bar Styles */
.top-nav {
    background-color: #A0785A;
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    font-family: 'Roboto', sans-serif;
    padding: 0;
}

.top-nav-item1 {
    justify-content: left;
    align-items: center;
    color: #ffffff;
    padding: 0.5rem;
    display: flex;
}

.top-nav-item2 {
    justify-content: right;
    align-items: center;
    color: #ffffff;
    padding: 0.5rem;
    display: flex;
}

.top-nav-item span {
    font-size: 0.7rem; 
}

.top-nav-item .fa-lg {
    font-size: 1rem;
}

.icon-color-primary {
    color: #FFFFFF;
}

/* Footer styles */
.footer-heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #A0785A;
}

.social-link {
    color: white;
    text-decoration: none;
}

.social-icon {
    color: white !important;
    transition: all 0.3s ease;
}

.social-link:hover .social-icon {
    background-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-3px);
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

.footer-links a:hover {
    padding-left: 5px;
}

.footer-contact .icon {
    transition: all 0.3s ease;
}

.footer-contact li:hover .icon {
    background-color: rgba(255, 255, 255, 0.3) !important;
}

@media (max-width: 767px) {
    .footer-heading {
        margin-top: 1.5rem;
    }
} 

/* Top Navigation Contact Items */
.top-nav-contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 5px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-right: 15px;
    padding: 0 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-item:last-child {
    border-right: none;
}

.contact-item:hover {
    color: #ffc107;
}

.contact-icon {
    margin-right: 10px;
    width: 16px;
    text-align: center;
    color: #f8f9fa;
}

.contact-text {
    font-size: 0.85rem;
    line-height: 1.2;
    font-weight: 400;
}

/* Social media icons in top-nav */
.top-nav-social {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icon-top {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    margin-left: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.3s ease;
}

.social-icon-top:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Enhanced Navbar Styles */
.navbar {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
}

.navbar-brand {
    padding: 0;
}

.navbar-brand img {
    height: 60px;
    transition: all 0.3s ease;
}

.nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link.active {
    color: #5e503f;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0.5rem;
    left: 50%;
    background-color: #5e503f;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.nav-link:hover {
    color: #5e503f;
}

.dropdown-menu {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    color: #333;
    font-weight: 400;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(94, 80, 63, 0.1);
    color: #5e503f;
    padding-left: 1.75rem;
}

.custom-button:hover {
    background-color: #4a3f32;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(94, 80, 63, 0.3);
}

.member-icon {
    margin-left: 0.5rem;
    font-size: 0.9rem;
}


.sticky-nav .navbar-brand img {
    height: 50px;
}

/* IMPROVED MOBILE RESPONSIVENESS */

/* For mobile top navigation */
@media (max-width: 992px) {
    /* Hide the entire top navigation bar on mobile since this info is in the footer */
    .top-nav {
        display: none;
    }
}

/* For mobile main navigation */
@media (max-width: 992px) {
    /* Prevent hover dropdown on mobile */
    .navbar .nav-item.dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .navbar .nav-item.dropdown .dropdown-menu.show {
        display: block;
    }
    
    .navbar-nav {
        margin-top: 1rem;
    }
    
    .nav-item {
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .nav-link {
        padding: 0.75rem 0 !important;
    }
    
/* Remove ALL default Bootstrap dropdown indicators everywhere */
.dropdown-toggle::after,
.navbar-nav .dropdown-toggle::after,
.nav-link.dropdown-toggle::after,
.navbar .nav-item .dropdown-toggle::after {
    display: none !important;
}

/* Add our custom dropdown indicators only on mobile */
@media (max-width: 992px) {
    /* Create dropdown indicators for mobile - simple right arrow */
    .navbar .nav-item .dropdown-toggle:before {
        display: inline-block;
        content: '›';  /* Simple right-pointing arrow character */
        font-size: 20px;
        font-weight: bold;
        position: absolute;
        right: 15px;
        top: calc(50% - 12px);
        transition: transform 0.3s ease;
        color: #5e503f;
    }
    
    /* Rotate arrow when dropdown is open */
    .navbar .nav-item .dropdown-toggle[aria-expanded="true"]:before {
        transform: rotate(90deg);
    }
}
    
    .dropdown-menu {
        box-shadow: none;
        border-radius: 0;
        padding-left: 1rem;
        background-color: rgba(94, 80, 63, 0.05);
    }
    
    .quote-button {
        width: 100%;
        padding: 1rem 0;
        display: flex;
        justify-content: center;
    }
    
    .custom-button {
        width: 100%;
        max-width: 250px;
    }
}

/* For very small screens */
@media (max-width: 576px) {
    .navbar-brand img {
        height: 45px;
    }
    
    .contact-text {
        font-size: 0.75rem;
    }
}

/* Hide the Become A Member button on mobile devices */
@media (max-width: 992px) {
    /* Target the specific button in the navbar structure */
    .navbar .quote-button {
      display: none !important;
    }
    
    /* Target standalone button outside standard flow */
    .quote-button {
      display: none !important;
    }
  
    /* Target the button by its appearance (custom button class) */
    a.custom-button.rounded-10 {
      display: none !important;
    }
  }