/* Header */
header {
    line-height: normal;
    background: #fff;
    color: rgb(30, 36, 55);
    position: sticky;
    top: 0;
    z-index: 12000;
    padding: 0.5rem 3%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Logo */
.logo img {
    width: auto;
    display: block;
    max-height: 80px; 
    width: auto;
}

/* Navigation */
nav ul {
    list-style: none;
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center; /* Align items vertically in the middle */
}

/* Navigation Links */
nav ul li a {
    text-decoration: none;
    color: rgb(30, 36, 55);
    font-size: 20px;
    font-weight: 600;
    font-family: Modern Era, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif;
    transition: color 0.3s;
}

/* Hover State for Links */
nav ul li a:hover {
    color: #1d1c1c;
    text-decoration: underline;
}

.user-dropdown {
    position: relative;
}

.avatar-trigger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.user-avatar-container {
    text-align: center;
}

.user-avatar-icon {
    font-size: 25px;
    color: #555;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-name {
    font-size: 20px;
    text-align: center;
    text-transform: capitalize;
}

.dropdown-menu {
    display: none;
    position: absolute;
    padding: 5px;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 140px;
    z-index: 1000;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 5px 0px 5px 10px;
    margin-bottom: 5px;
    color: #333;
    text-decoration: none;
    font-size: 20px;
}

.dropdown-menu li a:hover {
    background-color: #f0f0f0;
}

/* Show dropdown on hover */
.user-dropdown:hover .dropdown-menu {
    display: block;
}

/* Footer */
.custom-footer {
    letter-spacing: 0px;
    background-color: #101828;
    color: #ffffff;
    padding: 1.5rem 20px;
    font-family: Modern Era, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif !important;
    width: 100%;
    box-sizing: border-box;
}

/* Main Footer Section */
.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1600px;
    margin: 10px auto;
    padding-top: 10px;
    align-items: flex-start;
    gap: 180px;
}

/* Footer Logo */
.footer-logo img {
    max-height: 100px;
    max-width: 100px;
    object-fit: contain;
    display: block;
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    flex-grow: 1;
}

/* Footer Columns */
.footer-column {
    min-width: 250px;
    flex-grow: 1;
    max-width: 500px;
}

/* Footer Column Titles */
.footer-column h2 {
    font-size: 26px;
    margin-bottom: 3px;
    font-weight: 450;
}

/* List Style for Links */
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 3px;
}

.footer-column ul li a {
    color: #ffffffcc;
    text-decoration: none;
    font-size: 20px;
    font-weight: 450;
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: rgb(253, 236, 210);
    padding-left: 4px;
    text-decoration: overline;
}

/* Social Icons */
.social-icons {
    margin-top: 5px;
}

.social-icons a {
    color: #ffffffcc;
    margin-right: 5px;
    font-size: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    color: #00bfff;
    transform: scale(1.2);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    margin: 0px auto;
    font-size: 18px;
    font-weight: 350;
    color: rgba(255, 255, 255, 0.25);
}
.footer-bottom p{
    margin: 2px auto;
    font-size: 18px;
}
@media (max-width: 768px) {
    header {
        padding: 0.5rem 5%;
        display: flex;
        flex-direction: row; /* Important: Keep row! */
        justify-content: space-between;
        align-items: center;
    }

    nav ul {
        flex-direction: row; /* Keep links side by side */
        gap: 0.5rem;
        margin-top: 0; /* Remove top margin if unnecessary */
    }

    nav ul li a {
        font-size: 16px;
    }

    .logo img {
        max-height: 50px;
    }

    .custom-footer {
        background-color: #101828;
        color: #ffffff;
        padding: 0.1rem 1px;
        font-family: Modern Era, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif !important;
        width: 100%;
        box-sizing: border-box;
    }

    .footer-main {
        flex-direction: column;
        gap: 0px;
        align-items: center;
    }

    .footer-logo img {
        max-height: 40px;
        max-width: 40px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .footer-column {
        min-width: 100%;
        text-align: center;
    }

    .footer-column h2 {
        font-size: 20px;
    }

    .footer-column ul li a {
        font-size: 16px;
    }

    .footer-bottom {
        font-size: 14px;
        padding: 6px;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    .social-icons {
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .social-icons a {
        font-size: 18px;
    }
}


/* Further Responsive Styles for Smaller Devices (320px - 375px) */
@media (max-width: 480px) {
    header {
        padding: 0.5rem 3%;
    }

    nav ul li a {
        font-size: 12px;
    }

    .logo img {
        max-height: 50px;
    }

    .user-avatar-icon {
        font-size: 15px;     /* Icon size */
        color: #555;         /* Icon color */
        width: 15px;
        height: 15px;
        border-radius: 50%;  /* Circular shape */
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }
    
    .user-name {
        text-align: center; 
        font-size: 12px;     
    }

    .dropdown-menu {
        min-width: 90px;
    }

    .dropdown-menu li a {
        display: block;
        margin-bottom: 3px;
        padding:2px 0px 2px 5px;
        color: #333;
        text-decoration: none;
        font-size: 12px;
    }
    
    
    .custom-footer {
        background-color: #101828;
        color: #ffffff;
        padding: 0.1rem 1px;
        font-family: Modern Era, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif !important;
        width: 100%;
        box-sizing: border-box;
    }

    .footer-main {
        flex-direction: column;
        gap: 5px;
        padding: 0.5rem 0;
    }

    .footer-logo img {
        max-height: 40px;
        max-width: 40px;
    }

    .footer-column h2 {
        font-size: 15px;
    }

    .footer-column ul li a {
        font-size: 12px;
    }

    .footer-bottom {
        font-size: 12px;
    }

    .social-icons a {
        font-size: 14px;
    }

    .footer-bottom p {
        font-size: 12px;
    }
}