/* ============================
   SOCIAL DROPDOWN
   ============================ */

.social-dropdown {
    position: relative;
}

.social-trigger {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #648381;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.social-trigger:hover {
    background: #2a3a38;
    transform: scale(1.08);
}

.social-trigger svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* Dropdown panel */
.social-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.14);
    min-width: 190px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 500;
}

.social-dropdown.open .social-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.social-panel a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    text-decoration: none;
    color: #2a3a38;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

.social-panel a:hover {
    background: #f0f5f5;
    color: #648381;
}

.social-panel a i {
    width: 18px;
    text-align: center;
    font-size: 1rem;
    color: #648381;
}

.social-panel a:hover i {
    color: #f5a623;
}

/* Divider between groups */
.social-panel .social-divider {
    height: 1px;
    background: #eee;
    margin: 0.4rem 0;
}

/* ============================
   HEADER RIGHT GROUP
   ============================ */
.header-left {
    /* Mirrors header-right width to keep logo truly centred */
    flex: 1;
}

.header-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.header-logo-link {
    display: flex;
    justify-content: center;
}

.header-search {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2a3a38;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.header-search:hover {
    background: #648381;
    color: #fff;
}

/* Override top-logo grid to flex for this layout */
.top-logo {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 20px 50px;
    background: #fff;
}

.top-logo img {
    height: 90px;
    display: block;
}

@media (max-width: 767px) {
    .top-logo {
        padding: 14px 20px !important;
    }
    .top-logo img {
        height: 60px;
    }
    .header-left { display: none; }
    .header-right { flex: unset; }
}
