/**
 * Shared layout: header (#header) + footer (.et-footer).
 * Single source of truth — do not duplicate in Blade <style> blocks.
 */

html,
body {
  overflow-x: hidden;
}

/* ----- Header (partials/header-new) ----- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
}

body {
    padding-top: 120px !important;
}

@media (min-width: 992px) {
    body {
        padding-top: 140px !important;
    }
}

#header .et-topbar {
    background: #25348B;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 14px;
    line-height: 1.2;
    color: #ffffff;
}

#header .et-topbar,
#header .et-topbar * {
    color: #ffffff !important;
}

#header .et-topbar .et-header-social a {
    text-decoration: none;
    margin-left: .6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#header .et-topbar .et-header-social i {
    font-size: 16px;
}

#header .et-navbar {
    background: #ffffff !important;
}

#header .et-main .nav-item {
    margin-left: .25rem;
    margin-right: .25rem;
}

#header .et-navbar .nav-link {
    color: #111827 !important;
    font-weight: 500;
    font-size: 15px;
    padding-top: .55rem;
    padding-bottom: .55rem;
    padding-left: .65rem !important;
    padding-right: .65rem !important;
    border-radius: 6px;
}

#header .et-navbar .nav-item:hover > .nav-link,
#header .et-navbar .nav-item.show > .nav-link,
#header .et-navbar .nav-link.active {
    background: #25348B !important;
    color: #ffffff !important;
}

@media (min-width: 992px) {
    #header .navbar .dropdown:hover > .dropdown-menu {
        display: block;
    }
}

#header .et-navbar .dropdown-menu {
    border-radius: 0;
    min-width: 220px;
    max-width: 260px;
    padding: 0;
}

#header .et-navbar .dropdown-item {
    color: #111827 !important;
    white-space: normal;
    padding: .55rem 1rem;
    font-size: 14px;
}

#header .et-navbar .dropdown-item:hover,
#header .et-navbar .dropdown-item:focus {
    background: #25348B !important;
    color: #ffffff !important;
}

#header .et-navbar .dropdown-toggle::after {
    display: none;
}

#header .et-navbar .dropdown.show > .nav-link {
    color: #ffffff !important;
    background: #25348B !important;
}

#header .navbar-brand img {
    max-width: 200px;
    height: auto;
}

/* ----- Footer ----- */
.et-footer {
    background-color: #EEF6FB;
    color: #000000;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    padding: 42px 0 24px;
}

.et-footer a {
    color: #000000;
    text-decoration: none;
}

.et-footer a:hover {
    color: #25348B;
}

.et-footer .et-social a[aria-label="Facebook"]:hover i {
    color: #1877F2 !important;
}

.et-footer .et-social a[aria-label="YouTube"]:hover i {
    color: #FF0000 !important;
}

.et-footer .et-social a[aria-label="LinkedIn"]:hover i {
    color: #0A66C2 !important;
}

.et-footer .et-social a[aria-label="Instagram"]:hover i {
    color: #C13584 !important;
}

.et-footer .et-social a[aria-label="X"]:hover i {
    color: #1DA1F2 !important;
}

.et-footer .et-social a[aria-label="Pinterest"]:hover i {
    color: #BD081C !important;
}

.et-footer h5 {
    font-weight: 700;
    margin-bottom: 14px;
}

.et-footer ul {
    padding-left: 0;
    margin-bottom: 0;
}

.et-footer li {
    margin-bottom: 10px;
    list-style: none;
}

.et-footer .et-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0;
    border-radius: 6px;
    color: #000000;
    text-decoration: none;
    background: transparent;
}

.et-footer .et-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    max-width: 170px;
}

.et-footer .et-social a:hover {
    background: rgba(37, 52, 139, 0.10);
    color: #25348B;
}

@media (max-width: 991.98px) {
    .et-footer .et-social {
        max-width: none;
    }
}

.et-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    margin-top: 26px;
    padding-top: 18px;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.85);
}

/* ----- Fixed right social rail (Facebook, YouTube, Instagram, LinkedIn) ----- */
.et-social-rail {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1035;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.et-social-rail__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0;
    padding: 0;
    color: #ffffff !important;
    text-decoration: none !important;
    background: linear-gradient(180deg, #221b6e 0%, #1a0a78 45%, #151056 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-right: none;
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 4px 14px rgba(10, 8, 40, 0.22);
    transition: background 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.et-social-rail__btn:hover,
.et-social-rail__btn:focus-visible {
    color: #ffffff !important;
    background: linear-gradient(180deg, #2e2688 0%, #221b8a 50%, #1a1570 100%);
    filter: brightness(1.05);
    transform: translateX(-2px);
    outline: none;
}

.et-social-rail__btn:focus-visible {
    box-shadow: -4px 4px 14px rgba(10, 8, 40, 0.22), 0 0 0 2px #ffffff, 0 0 0 4px #1a0a78;
}

.et-social-rail__btn i {
    font-size: 1.35rem;
    line-height: 1;
}

@media (max-width: 991.98px) {
    .et-social-rail {
        display: none !important;
    }
}
