/* navmen.css CodingFleet
   Based on Eric Meyer's reset: http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126 | License: public domain
*/

/* Reset
-------------------------------------------------------------- */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, nav, section {
	display: block;
}

body {
	line-height: 1;
}

ol, ul {
	list-style: none;
}

blockquote, q {
	quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
	content: '';
	content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Default Styles
-------------------------------------------------------------- */

@font-face {
	font-family: 'IconicStroke';
	src: url('https://apsmaroondah.org.au/css/iconic/iconic_stroke.eot');
	src:
		url('https://apsmaroondah.org.au/css/iconic/iconic_stroke.eot?#iefix') format('embedded-opentype'),
		url('https://apsmaroondah.org.au/css/iconic/iconic_stroke.otf') format('truetype'),
		url('https://apsmaroondah.org.au/css/iconic/iconic_stroke.svg#iconic') format('svg');
	font-weight: normal;
	font-style: normal;
}

/* Global page look
   If you want these to live in a global layout CSS instead, you can move them. */
body {
	
	
}

/* Utility classes */

.clearfix {
	clear: both;
}

/* Container for nav bar */
.wrap {
    width: 100%;
    max-width: 1400px; /* Limits the maximum width on huge screens */
    margin: 0 auto;
}

/* Navigation Styles
-------------------------------------------------------------- */

/* Menu Bar Background */
nav {
    font-family: 'Droid Sans', sans-serif;
    background: linear-gradient(#fff, #ccc);
    border-radius: 6px;
    box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, 0.4);
    padding: 0 10px;
    position: relative;
    z-index: 10;
}

/* Top-level Flexbox Container */
.navmen {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap neatly on smaller screens */
    justify-content: center; /* Centers the menu items in the bar */
    margin: 0;
    padding: 0;
}

.navmen li {
    position: relative; /* Required for dropdown positioning */
    list-style: none;
}

/* Link Styling */
.navmen li a {
    color: #444;
    display: flex;
    align-items: center; /* Perfectly vertically aligns the icon and text */
    gap: 8px; /* Adds a neat space between the icon and the text */
    font-size: 14px;
    padding: 8px 12px;
    margin: 6px 4px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

/* Persistent hover state for parent item */
.navmen li a:hover,
.navmen li:hover > a {
    background: linear-gradient(#ededed, #fff);
    border-radius: 12px;
    box-shadow: inset 0px 0px 1px 1px rgba(0, 0, 0, 0.1);
    color: #222;
}

/* Dropdown styles (second level)
-------------------------------------------------------------- */
.navmen ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(#dbdbdb, #fff);
    border-radius: 0 0 12px 12px;
    box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.4);
    min-width: 220px; /* Gives dropdowns a consistent width */
    
    /* Modern hiding technique (replaces left: -9999px) */
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px); /* Slight slide-up animation */
    transition: all 0.3s ease;
    z-index: 20;
}

/* Show dropdown on hover */
.navmen li:hover > ul {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.navmen ul li {
    width: 100%;
}

.navmen ul li a {
    margin: 0;
    padding: 12px 15px;
    border-radius: 0;
    box-shadow: none;
}

/* Hover for dropdown items */
.navmen ul li a:hover {
    background: linear-gradient(#ededed, #fff);
    border-radius: 12px;
}

/* Third-level dropdowns (sub-submenus)
-------------------------------------------------------------- */
.navmen ul ul {
    top: 0;
    left: 100%; /* Automatically positions exactly to the right of the parent! */
    border-radius: 12px;
    margin-left: 2px; /* Tiny gap between the menus */
}


