/* General Styles */
body {
    font-family: 'Roboto', Arial, sans-serif;  /* Updated to Roboto */
    margin: 0;
    padding: 0;    
    background-image: url('/static/images/hcmc.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: #333; /* Dark text color for better contrast */
    line-height: 1.8;
    font-size: 16px;
}

/* Header Section Styling */
header {    
    background-image: url('/static/images/banner.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: #fff;
    height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    text-align: right;
    padding-right: 2rem;
    font-family: 'Roboto', Helvetica, Arial, sans-serif;  /* Updated to Roboto */
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Main Content Area Styling */
main {
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.85); /* White background with slight opacity for readability */
    border-radius: 8px;
    margin: 3rem auto;
    max-width: 1200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 2.5rem;
    color: #2c3e50; /* Deep color for headings */
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #f5a623;
    padding-bottom: 0.5rem;
}

p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
    text-align: justify;
    line-height: 1.8;
    font-weight: 400;
}

p span {
    font-weight: 700;
    color: #f5a623;
}

footer {
    background-color: #333;   /* Same background color as in admin.html */
    color: white;              /* Set the text color to white */
    text-align: center;        /* Center-align the text horizontally */
    padding: 1rem;             /* Set padding to match admin footer */
    display: flex;             /* Use flexbox for centering */
    justify-content: center;   /* Center content horizontally */
    align-items: center;       /* Center content vertically */
}

footer span {
    font-size: 0.8rem;         /* Set font size to 0.8rem */
    color: #bbb;               /* Set color to lighter gray */
}

/* Navigation Bar Styling */
nav1 {
    background-color: #333;
    color: white;
    padding: 1rem 2rem;
    text-align: center; /* Center text for large screens */
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;    
    align-items: center;
    gap: 0.5rem; /* Add spacing between menu items */
    width: 100%;
    flex-wrap: nowrap; /* Prevent wrapping */
}
nav {
    background-color: #333;
    color: white;
    padding: 1rem 4rem;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    padding: 10px 15px; /* Ensure even spacing */
    white-space: nowrap; /* Prevent text from wrapping */
}

nav a:hover {
    color: #f5a623; /* Subtle hover effect with a golden color */
    text-decoration: underline;
}

/* Dropdown Menu Styling */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #333;
    min-width: 160px;
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f5a623;
    color: white;
}

/* Pagination Styles */
.pagination {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.pagination button {
    background-color: #f5a623;
    color: white;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    margin: 0 5px;
}

.pagination button:disabled {
    background-color: #ddd;
    cursor: not-allowed;
}

/* Responsive Design for Mobile (iPhone, Android) */
@media screen and (max-width: 768px) {
    header {
        font-size: 2rem;
        height: 200px;
        padding-right: 1rem;
    }

    main {
        padding: 1rem;
        margin: 2rem auto;
        max-width: 100%;
    }

    h2 {
        font-size: 1.8rem;
    }

    .section {
        padding: 1.5rem;
    }

    .data-grid th, .data-grid td {
        font-size: 0.9rem;
    }

    .link-button {
        font-size: 1rem;
        padding: 8px 16px;
    }

    footer {
        font-size: 0.7rem;
        padding: 0.8rem;
    }

    nav {
        flex-direction: column; /* Stack the items vertically on mobile */
        padding: 1rem;
        justify-content: flex-start; /* Align to the start of the screen */
    }

    nav a {
        margin: 0.5rem 0;
        font-size: 1rem;
    }

    .pagination {
        flex-direction: column;
    }
}

/* Responsive Design for Very Small Screens (e.g., Portrait Mobile Phones) */
@media screen and (max-width: 480px) {
    header {
        font-size: 1.5rem;
        padding-right: 0.5rem;
        height: 150px;
    }

    .section {
        padding: 1rem;
    }

    .data-grid th, .data-grid td {
        font-size: 0.8rem;
    }

    .link-button {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    footer {
        font-size: 0.6rem;
        padding: 0.6rem;
    }
}
