/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #fff;
    color: #2c2c25;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ===== Navbar Container ===== */
.nav-container {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background-color: white;
    height: 70px;
    z-index: 1000;
    border-bottom: 2px solid #d4af37;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* ===== Left Section (Logo + Text) ===== */
.left-navbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-link, .logo-text {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c2c25;
    font-weight: 700;
    font-size: 1.75rem;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.logo-link:hover, .logo-text:hover {
    transform: scale(1.05);
    background-color: rgba(212, 175, 55, 0.1);
}

.home-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-link:hover .home-logo {
    transform: scale(1.1);
}

/* ===== Center Section (Main Navigation) ===== */
.center-navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

.center-navbar > li {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #2c2c25;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 6px;
    transition: all 0.25s ease;
    white-space: nowrap;
    display: block;
}

.nav-link:hover {
    background-color: rgba(212, 175, 55, 0.1); /* Gold tint */
}

/* ===== Dropdown Icon ===== */
.dropdown > .nav-link::after {
    content: "▼";
    font-size: 0.6rem;
    margin-left: 6px;
    transition: transform 0.25s ease;
    display: inline-block;
}

.dropdown:hover > .nav-link::after {
    transform: rotate(180deg);
}

/* ===== Dropdown Menus ===== */
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background-color: white;
    list-style: none;
    min-width: 220px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    z-index: 999;
    padding: 8px 0;
}

.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: -10px;
    right: -10px;
    height: 20px;
    background: transparent;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    width: 100%;
    color: #2c2c25;
    padding: 12px 16px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(212, 175, 55, 0.1);
    transform: scale(1.02);
    padding-left: 20px;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
}

/* ===== Right Section ===== */
.right-navbar {
    list-style: none;
    display: flex;
    align-items: center;
    position: relative;
}

.right-navbar .dropdown {
    position: relative;
}

.user-name {
    color: #2c2c25 !important; /* Force black color */
    font-weight: 500;
}

.right-navbar a {
    text-decoration: none;
    color: #2c2c25;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.right-navbar a:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

/* ===== Right-aligned Dropdown Fix ===== */
.right-navbar .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 180px;
}

/* Ensure the dropdown appears below the name */
.right-navbar .dropdown-menu {
    top: 100%;
    margin-top: 5px;
}

.right-navbar .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 15px;
    width: 10px;
    height: 10px;
    background: white;
    transform: rotate(45deg);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    border-left: 1px solid rgba(212, 175, 55, 0.3);
}

/* ===== Divider ===== */
.nav-divider {
    width: 1px;
    height: 24px;
    background-color: rgba(212, 175, 55, 0.5);
    margin: 0 1rem;
}

/* ===== Responsive Behavior ===== */
@media (max-width: 1000px) {
    .center-navbar,
    .right-navbar {
        display: none;
    }

    .nav-container {
        padding: 0 1rem;
    }
}
/* ===== Footer ===== */
.footer {
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    margin: auto;
    background-color: #C6B069;
    padding: 20px;
}

.footer h2 {
    font-weight: bold;
    margin: 0 0 5px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-text p {
    font-size: large;
    margin: 0;
}

#ptyltd {
    font-size: smaller;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-links i,
.social-links svg {
    width: 24px;
    height: 24px;
    font-size: 24px;
}

.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #000;
    margin-top: 20px;
}