/* Global reset */

/*new reset */
/* Universal box-sizing and reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
@font-face {
  font-family: 'Roboto';
  src: url('/fonts/roboto/Roboto-Regular.woff2') format('woff2'),
       url('/fonts/roboto/Roboto-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('/fonts/poppins/Poppins-Regular.woff2') format('woff2'),
        url('/fonts/poppins/Poppins-Regular.woff') format('woff');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

/* Ensure full-width layout */
html, body {
    width: 100%;
    /*height: 100%;*/
}
html, body {
    margin: 0;
    padding: 0;
    font-family: "Roboto", Serif;
    background-color: #f9f9f9;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

main {
    margin: 0;
    padding: 0;
}

 h1 {
     color: #00487F;
     margin: 1em;
 }
 
 h2 {color: #1e7e34; margin: 1rem;}
 h3 {
     color: #0078D4;
     }
 tbody {
     font-weight: 500;
 }
.container {
    max-width: 1000px; /* was 800 */
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
    /*text-align: center;*/ /* Commented out - confirm if titles should center */
    /*background-color: red; for debugging*/
}
.container h1, .container h2 {
    margin: 0 auto;
    /*text-align: center;*/ /* Commented out - confirm if titles should center */
    width: fit-content;
    
   
}

/* Site Horix Logo - added 12-9-25 */
.site-logo {
    max-height:120px;
    width: auto;
    display: block;
    margin: 0 auto;
}

@media screen and (max-width: 600px) {
    .site-logo {
        max-height: 80px;
    }
}

.fallback-text {
    display: none;
}


/* End of site logo css */
.text-content {
    margin-left: 20px;
}
.text-content p {
    text-align: left !important;
    margin: 20px; /* Added units */
}
.footer {
    max-width: 1000px; /* Match .container width */
    margin: 0 auto;
    padding: 20px;
    background-color: #f4f4f4;
    box-sizing: border-box;
    position: relative; /* For pseudo-element positioning */
    font-size: 1.0em;
}
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%; /* Start from the center of the viewport */
    transform: translateX(-50%); /* Shift left by half to align with viewport edge */
    width: 100vw; /* Full viewport width */
    height: 4px; /* Match border thickness */
    background-color: #0078D4; /* Border color */
    z-index: 0; /* Visible above body but behind footer content if needed */
}
.footer .text-content {
    margin-left: 20px; /* Consistent with main content */
}
.footer .text-content p {
    text-align: left !important; /* Restored for consistency */
    margin: 20px; /* Consistent with main content */
}
.footer-container {
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    
}

.footer-left,
.footer-right {
    flex: 1;
    min-width: 200px;
}
.footer-left h3 {
    color: #00487F ;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 6px;
    font-weight: 400;
}

.footer-links a {
    color: black;
    text-decoration: none;
    font-size: 1.0em;
}

.footer-links a:hover {
    text-decoration: none;
    background-color: #0078d4;
    color: white;
    padding:3px;
    border-radius: 4px;
}




.footer-copy {
  
    text-align: center;
}
.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #f4f4f4 url('/images/header-bg.png') no-repeat center center;
    background-size: cover;
    border-bottom: 4px solid #0078D4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease;
}
.topbar.scrolled {
    box-shadow: 0 6px 50px rgba(0, 120, 212, 0.15);
}
.title-box {
    /*background-color: #f4f4f4; Taken out 12-9-25*/
    padding: 10px 20px;
    border-radius: 4px;
    display: inline-flex;
    flex-direction: column;
   /* margin: 20px 20px 20px 40px; Taken out 12-9-25 */
}
.site-title {
    font-size: 2rem;
    font-weight: bold;
    color: #000;
    margin: 0;
    white-space: nowrap;
}
.site-tag {
    font-size: 1rem;
    font-weight: normal;
    font-style: italic;
    color: #000;
    margin: 0;
    text-align: left;
    white-space: nowrap;
}
.nav-box {
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 4px;
    margin: 20px 40px 20px 20px;
}
nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}
nav ul li a,
nav ul li .desk-menu-heading {
    display: block;
    padding: 0.75rem 1rem;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
    border-radius: 4px;
}

nav ul li a:hover,
nav ul li .desk-menu-heading:hover,
nav ul li .desk-menu-heading:focus {
    background-color: #0078D4;
    color: white;
}

.menu-toggle {
    display: none;
    background: #0078D4;
    color: white;
    border: none;
    padding: 0.75rem;
    font-size: 1.2rem;
    cursor: pointer;
}
.login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f4f4f4;
    
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* Include padding in width */
    border: 3px solid #28a745;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.form-group button {
    background-color: #0078D4;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: auto; /* Default to natural width on desktop */
    box-sizing: border-box;
}
.form-group button:hover {
    background-color: #005A9E;
}
.error {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    background-color: #f8d7da;
    color: #721c24;
}
.message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
}
.success {
    background-color: #d4edda;
    color: #155724;
}
.register-link {
    margin-top: 15px;
    text-align: center;
}
.register-link a {
    color: #0078D4;
    text-decoration: none;
    font-weight:900;
}
.register-link a:hover {
    text-decoration: underline;
}
.register-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 3px solid #28a745;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}
.register-form input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.register-form button {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
        width: 150px; /* Fixed width for desktop, adjust as needed */
        box-sizing: border-box;
}
.register-form button:hover {
    background-color: #0056b3;
}
.error {
    color: red;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
}
.success {
    color: green;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
}
@media (max-width: 768px) {
    .topbar {
        flex-wrap: wrap;
        padding: 0;
    }
    .container {
        padding: 10px;
    }
    .text-content {
        margin-left: 10px;
    }
    .footer {
        width: 100%; /* Full width on mobile */
        padding: 10px;
    }
    .footer::before {
        height: 4px; /* Ensure border thickness */
    }
    .footer .text-content {
        margin-left: 10px;
    }
    .container h1, .container h2 {
        margin: 0 auto;
        text-align: center;
    }
    .title-box {
        margin: 10px;
        padding: 10px;
    }
    .nav-box {
        margin: 0;
        width: 100%;
    }
    nav ul {
        flex-direction: column;
        width: 100%;
        display: none;
    }
    nav ul.show {
        display: flex;
    }
    nav ul li a {
        text-align: center;
        padding: 0.75rem;
        background-color: #0078D4;
        color: white;
    }
    nav ul li a:hover {
        background-color: #005A9E;
    }
    .menu-toggle {
        display: block;
        width: 100%;
        text-align: left;
        margin: 10px 0;
    }
    .login-form input,
    .login-form button {
        font-size: 16px; /* Adjust for mobile readability */
    }
    .form-group button {
        width: 100%; /* Full width on mobile */
    }
    .register-form input,
    .register-form button {
        font-size: 16px; /* Adjust for mobile readability */
    }
    .register-form button {
        width: 100%; /* Full width on mobile */
    }
    
   
}





/* /home/digigrid/public_html/styles.css */
.contact-form button#submit-button:disabled, .contact-form button#submit-button.disabled {
    background-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    border: none !important;
}
.contact-form button#submit-button.enabled {
    background-color: #0078D4 !important;
    color: #ffffff !important;
    cursor: pointer !important;
    opacity: 1 !important;
    border: none !important;
}
.contact-form button#submit-button {
    background-color: #3498db;
    color: #ffffff;
    cursor: pointer;
    opacity: 1;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
}
.contact-form { margin-top: 20px; 
padding:1.4rem;
border: 3px solid #28a745;
border-radius:8px;    
}
.form-group { margin-bottom: 15px; }
.message.error { color: red; }
.message.success { color: green; }
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* ... other styles ... */
/* Forgot Password Link */
.forgot-password {
    margin-top: 10px;
    text-align: center;
}
.forgot-password a {
    color: #007bff; /* Blue link color, adjust to match your theme */
    text-decoration: none;
    font-size: 0.9rem;
    font-weight:900;
}
.forgot-password a:hover {
    text-decoration: underline;
    color: #0056b3; /* Darker blue on hover */
}

/* Forgot Password Form */
.forgot-password-form {
    max-width: 400px;
    margin: 20px auto;
   
    background: #f8f9fa; /* Light gray background, adjust to match login-form */
    
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 3px solid #28a745;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}
.forgot-password-form .form-group {
    margin-bottom: 15px;
}
.forgot-password-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333; /* Dark text, adjust to match */
}
.forgot-password-form input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}
.forgot-password-form input[type="text"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}
.forgot-password-form button {
    width: 100%;
    padding: 10px;
    background: #007bff; /* Match login button color */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}
.forgot-password-form button:hover {
    background: #0056b3; /* Darker on hover */
}

/* Reset Password Form */
.reset-password-form {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: #f8f9fa; /* Match forgot-password-form */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.reset-password-form .form-group {
    margin-bottom: 15px;
}
.reset-password-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}
.reset-password-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}
.reset-password-form input[type="password"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}
.reset-password-form button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}
.reset-password-form button:hover {
    background: #0056b3;
}

/* Responsive Design */
@media (max-width: 600px) {
    .forgot-password-form,
    .reset-password-form {
        padding: 15px;
        margin: 10px;
    }
    .forgot-password a,
    .forgot-password-form label,
    .reset-password-form label {
        font-size: 0.9rem;
    }
    .forgot-password-form button,
    .reset-password-form button {
        font-size: 0.9rem;
        padding: 8px;
    }
}
/*css added re change pw and email 7-9-25 */
.change-password-form,
.change-email-form {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 3px solid #28a745;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.change-password-form .form-group,
.change-email-form .form-group {
    margin-bottom: 15px;
}
.change-password-form label,
.change-email-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    
}
.change-password-form input[type="password"],
.change-password-form input[type="email"],
.change-email-form input[type="password"],
.change-email-form input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}
.change-password-form input:focus,
.change-email-form input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}
.change-password-form button,
.change-email-form button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}
.change-password-form button:hover,
.change-email-form button:hover {
    background: #0056b3;
}
/* Delete Account CSS */
.delete-account-form {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 3px solid red;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.delete-account-form .form-group {
    margin-bottom: 15px;
}
.delete-account-form label {
    display: flex; /* Use flexbox to align checkbox and text inline */
    align-items: center; /* Vertically center checkbox with text */
    font-weight: normal; /* Remove bold to match form text */
    color: #333;
}
.delete-account-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}
.delete-account-form input[type="password"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}
.delete-account-form input[type="checkbox"] {
    width: auto; /* Override full width for checkbox */
    margin-right: 10px; /* Space between checkbox and text */
    margin-top: 0; /* Ensure no extra top margin */
}
.delete-account-form button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}
.delete-account-form button:hover {
    background: #0056b3;
}
/* Admin CSS */
/* /home/digigrid/public_html/css/styles.css (relevant section) */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}
.form-group input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}
.form-group button {
    padding: 10px 20px; /* Reduced padding for compact size */
    width: auto; /* Let button size to content */
    max-width: 250px; /* Optional: cap width */
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-block; /* Ensure inline behavior */
    font-weight:900;
}
.form-group button:hover {
    background: #0056b3;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.admin-table th, .admin-table td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
}
.admin-table th {
    background: #007bff;
    color: white;
    font-weight: bold;
}
.admin-table tr:nth-child(even) {
    background: #e9ecef;
}
.delete-button {
    padding: 5px 10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    width: auto; /* Compact size */
    display: inline-block;
}
.delete-button:hover {
    background: #c82333;
}
.refresh-button {
    padding: 5px 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    width: auto; /* Compact size */
    display: inline-block;
}
.refresh-button:hover {
    background: #0056b3;
}
.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    margin: 10px 0;
}
.success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    margin: 10px 0;
}
/* award.css */
/* /home/digigrid/public_html/css/styles.css */
.logo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo img {
    max-width: 150px;
    height: auto;
    margin: 0 10px;
}
.title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
}
.subtitle {
    font-size: 20px;
    margin: 10px 0;
}
.name {
    font-size: 28px;
    font-weight: bold;
    margin: 15px 0;
    color: #2c3e50;
}
.details {
    margin: 20px auto;
    width: 90%;
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
}
.details span {
    display: inline-block;
    margin: 0 15px;
}
.date {
    margin-top: 20px;
    font-size: 18px;
    text-align: center;
}
button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    background: #3498db;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}
button:hover {
    background: #2980b9;
}

/* Responsive tweaks for small screens */
@media (max-width: 720px) {
    .logo-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    .logo img {
        max-width: 80px;
        margin: 0 5px;
    }
    .title {
        font-size: 24px;
    }
    .name {
        font-size: 22px;
    }
    .subtitle, .details, .date, button {
        font-size: 16px;
    }
    button {
        padding: 8px 16px;
    }
}

/* ---------------------------
   Canonical slide-out (LEFT) + glass
   This is the single authoritative .dg-* block.
   Place at end so it overrides earlier rules.
   --------------------------- */

/* Core positioning: slide from LEFT */
.dg-offcanvas {
    position: fixed;
    top: 0;
    left: -280px;                 /* hidden off-screen to the left */
    width: 280px;
    height: 100%;
    transition: left 0.32s cubic-bezier(.2,.8,.2,1);
    z-index: 5000;
    overflow: hidden;
}

/* When open */
.dg-offcanvas.open {
    left: 0 !important;
}

/* Strong glassmorphism + theme colour (force it) */
.dg-offcanvas {
    background: rgba(0, 30, 70, 0.40) !important;          /* translucent deep-blue */
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-right: 4px solid #0078D4 !important;           /* DigiGrids accent */
    box-shadow: 6px 0 30px rgba(0, 0, 0, 0.35) !important;
}

/* Inner content */
.dg-offcanvas-inner { padding: 20px; height: 100%; display:flex; flex-direction:column; }

/* Header/title */
.dg-offcanvas-title { color:#fff; font-size:1.6rem; margin:0 0 6px 0; font-weight:700; text-shadow:0 2px 6px rgba(0,0,0,0.35); }

/* Close button styling */
.dg-close-btn {
    background: rgba(255,255,255,0.12) !important;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 22px;
    cursor: pointer;
    backdrop-filter: blur(6px) !important;
}

/* Nav list */
.dg-offcanvas-nav { padding-top: 10px; flex:1; overflow-y:auto; }
.dg-offcanvas-nav ul { list-style:none; margin:0; padding:0; display:block !important; }
.dg-offcanvas-nav li { margin: 8px 0; }
.dg-offcanvas-nav a {
    display:block;
    color:#ffffff !important;
    text-decoration:none;
    font-size:1.1rem;
    padding:10px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background .22s ease, transform .16s;
}
.dg-offcanvas-nav a:hover,
.dg-offcanvas-nav a:focus {
    background: rgba(255,255,255,0.10) !important;
    transform: translateX(6px);
}

/* Overlay (glassified fallback) */
.dg-offcanvas-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 4500;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    transition: opacity .25s ease;
    opacity: 0;
}
.dg-offcanvas-overlay.show {
    display: block;
    opacity: 1;
}

/* Toggle button: hidden on desktop, visible on mobile */
.dg-menu-toggle { display: none; }

/* slogan on each award at the bottom */
.slogan {
    text-align: center; 
    padding-top:30px; 
    font-weight: 900; 
    font-style:italic; 
    font-size: 20px;
}
/* Desktop: ensure desktop nav visible, hide mobile panel */
@media (min-width: 901px) {
    .dg-menu-toggle { display: none !important; }
    .dg-offcanvas { display: none !important; }
    .dg-offcanvas-overlay { display: none !important; }
    .nav-box { display: block !important; }   /* ensure your old nav remains visible */
}

/* Mobile: show the toggle and hide nav-box (desktop nav) */
@media (max-width: 900px) {
    .nav-box { display: none !important; }    /* hide desktop nav on mobile */
    .dg-menu-toggle {
        display: inline-block !important;
        background: #0078D4 !important;
        color: #fff !important;
        border: none !important;
        padding: 10px 14px !important;
        font-size: 15px !important;
        border-radius: 6px !important;
        cursor: pointer !important;
        margin-right: 8px !important;
    }
}

/* Focus outlines */
.dg-offcanvas a:focus,
.dg-close-btn:focus,
.dg-menu-toggle:focus {
    outline: 3px solid rgba(0,120,212,0.28);
    outline-offset: 2px;
}

/* Prevent page scroll while open */
body.dg-offcanvas-open { overflow: hidden !important; }
/* menu specific taken from header.php 23-12-25 */
    /* ---------- Help submenu ---------- */

.has-submenu {
    position: relative;
}
.desk-menu-heading {
    cursor: pointer;
    color: Black;
    font-weight: 800;
   padding:  1.5rem 0.75rem;
    display: inline-block;
}
.menu-heading {
    cursor: pointer;
    color: white;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    display: inline-block;
}


/* Submenu base */
.submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Desktop dropdown */
.nav-box .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid #ddd;
    display: none;
    z-index: 1000;
}

.nav-box .submenu li a {
    display: block;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
}

/* Show submenu on hover or keyboard focus */
.nav-box .has-submenu:hover .submenu,
.nav-box .has-submenu:focus-within .submenu {
    display: block;
}

/* Mobile: always visible and indented */
.dg-offcanvas .submenu {
    padding-left: 1rem;
}

.dg-offcanvas .menu-heading {
    font-weight: 700;
    margin-top: 0.75rem;
    display: block;
}
.desk-menu-heading {
    background: none;
    border: none;
    font: inherit;
}
/* Make Help look identical to other top-level menu links */
.nav-box ul > li > a,


/* Hover and focus styling to match links */
.desk-menu-heading:hover,
.desk-menu-heading:focus {
    /*text-decoration: underline;*/
    outline: none;
}

/* Clear keyboard focus indication */
.desk-menu-heading:focus-visible {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}

/* Register form – force consistent control width */
.register-form input,
.register-form select {
    width: 100%;
}

/* Register form – match select height to inputs */
.register-form select {
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 1.4;
}
/*--------------------------------------------------*/
/* Ensure nav container uses flex with perfect vertical centering */
.nav-box nav ul {
    display: flex;
    align-items: center;          /* ← This is the magic: vertically centers all children */
    gap: 0.5rem;                  /* optional: consistent spacing between items */
}

/* Make the Guides button match links exactly in height, padding, etc. */
.desk-menu-heading {
    /* Reset button defaults to act like a link */
    appearance: none;             /* removes default button styling */
    background: none;
    border: none;
    padding: 0.75rem 1rem;        /* ← Match your existing <a> padding exactly */
    line-height: 1.4;             /* or inherit; ensures consistent text baseline */
    font: inherit;                /* same font-size/weight/family */
    color: inherit;
    cursor: pointer;
    border-radius: 4px;           /* keep your rounded look */
    transition: background 0.3s, color 0.3s;
}

/* Hover/focus to match links */
.desk-menu-heading:hover,
.desk-menu-heading:focus {
    background-color: #0078D4;
    color: white;
}

/* Focus visible outline (accessibility) */
.desk-menu-heading:focus-visible {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}

/* Force perfect vertical alignment using flex centering */
.nav-box nav ul {
    display: flex;
    align-items: center;          /* Centers all items (links + button) vertically */
    gap: 0.25rem;                 /* Small space between items – adjust if needed */
}

/* Reset button to behave & look exactly like your links */
.desk-menu-heading {
    /* Remove any button-specific quirks */
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    margin: 0;                    /* Reset any default margins */
    padding: 0.75rem 1rem;        /* ← Match your <a> padding EXACTLY */
    line-height: 1.4;             /* Consistent baseline with links */
    font: inherit;                /* Same font-size, weight, family */
    color: inherit;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}

/* Ensure hover/focus matches links */
.desk-menu-heading:hover,
.desk-menu-heading:focus {
    background-color: #0078D4;
    color: white;
}

/* Accessibility focus style */
.desk-menu-heading:focus-visible {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}
section h1,
article h1,
aside h1,
nav h1 {
  font-size: 2.5rem;   /* Force them to be large like top-level h1 */
}

/* Force ALL submenus to respect the hidden attribute + start closed */
/* Put this AFTER all other .submenu rules */

.submenu,
.dg-offcanvas .submenu,
.nav-box .submenu {
    display: none !important;          /* Strong override — use !important only if needed */
}

/* When JS removes hidden → show them properly */
.submenu:not([hidden]),
.dg-offcanvas .submenu:not([hidden]),
.nav-box .submenu:not([hidden]) {
    display: block !important;         /* Desktop needs block, mobile usually too */
}

/* Optional: nicer reveal animation (smooth height) */
.submenu {
    overflow: hidden;
    transition: max-height 0.28s ease-out, opacity 0.25s ease;
    max-height: 0;
    opacity: 0;
}

.submenu:not([hidden]) {
    max-height: 600px;                 /* Adjust higher if your menus are very long */
    opacity: 1;
}

.remember-label {
    display: inline-flex;       /* keep text + checkbox side by side */
    align-items: center;        /* vertically center them */
    gap: 6px;                   /* space between text and box */
    white-space: nowrap;        /* prevent wrapping */
    width: 20%;
                
}
.remember-label input[type="checkbox"] {
    margin: 0;
    flex: 0 0 auto;             /* keep checkbox snug next to text */
}