/* ======================================
   SITE FONT + BODY BACKGROUND
====================================== */
body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: url('/images/bg-texture-paper.jpg') repeat;
    background-color: #e9eef2;
}
html {
    scroll-behavior: smooth;
}

/* ======================================
   GLOBAL RESPONSIVE IMAGES
   (Content images only)
====================================== */

/* Default: all images scale to container */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent inline images from adding baseline gaps */
img {
    display: block;
}


/* ======================================
   GLOBAL HEADINGS
====================================== */

h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 22px 0;
    color: #000;
}

h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 26px 0 14px 0;
    color: #000;
}


/* GLOBAL LINK STYLE */
a {
    color: #0066cc;                /* stronger classic blue */
    text-decoration: underline;    /* always underlined */
    font-size: inherit;            /* match surrounding text */
}

a:hover {
    color: #004c99;                /* darker on hover */
    text-decoration: underline;
}


/* ======================================
   SHRINKED HEADER — STRUCTURAL RESIZE
====================================== */

#header-bg,
#header-container,
#logo-div img {
    transition: all 0.25s ease-in-out;
}

#header-container.header-condensed {
    height: 100px !important;
    align-items: flex-end;   /* natural vertical pull upward */
    padding-top: 6px;
}

#header-container.header-condensed #logo-div img {
    width: 300px;
    height: auto;
    padding-bottom: 6px;
}

/* optional top-menu tweak for spacing consistency */
#header-container.header-condensed #top-menu {
    margin-top: 0 !important;
}

#header-container.header-condensed #menu {
    margin-top: 6px; /* same breathing space as logo */
}

/* Center logo vertically when header shrinks */
#header-container.header-condensed #logo-div {
    display: flex;
    align-items: center;   /* vertically center */
    justify-content: flex-start; /* keep left alignment */
    height: 100%;          /* match new container height */
    padding-top: 4px;      /* fine tuning */
}




/* ======================================
   FULL-WIDTH HEADER BACKGROUND
====================================== */
#header-bg {
    width: 100%;
    /*height: 140px;*/
    background-image: url('/images/headerBG.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

    position: sticky; /* <-- THIS replaces relative */
    top: 0;
    z-index: 5000;
}


/* ======================================
   HEADER CONTENT
====================================== */
#header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    height: 140px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* LOGO */
#logo-div {
    width: 367px;
    height: 110px;
    display: flex;
    align-items: center; 
}

/* RIGHT SIDE WRAPPER */
#right-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
}

/* DARKEN LEFT + RIGHT EDGES ONLY */
#header-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.45) 0%,       /* left edge darker */
        rgba(0, 0, 0, 0.30) 10%,      /* fade inward */
        rgba(0, 0, 0, 0.00) 25%,      /* center stays bright */
        rgba(0, 0, 0, 0.00) 75%,      /* center stays bright */
        rgba(0, 0, 0, 0.30) 90%,      /* fade to right */
        rgba(0, 0, 0, 0.45) 100%      /* right edge darker */
    );
    z-index: 0;
}

/* Ensure logo + menus stay above the overlay */
#header-bg > * {
    position: relative;
    z-index: 1;
}


/* ======================================
   TOP MENU — must align to purple line
====================================== */
#top-menu {
    width: 260px;
    background: #ffffff;
    height: 32px;
    padding-right: 20px;
	padding-left: 20px;


    margin-top: -6px; /* UPDATED — aligns with purple line */

    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    box-sizing: border-box;
}

#top-menu .top-menu-level-1 {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 6px 0 0 0;
}

#top-menu a {
    color: #000;
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
}

#top-menu a i {
    margin-right: 6px;
    color: #000;
    transition: color .25s ease;
}

#top-menu a:hover i {
    color: #1a5eff;
}
/* When header shrinks, move top menu down slightly */
#header-container.header-condensed #top-menu {
    margin-top: 6px !important;  /* tweak value as needed */
}


/* ======================================
   MAIN MENU
====================================== */
#menu {
    width: 100%;
    background: #ffffff;
    height: 40px;
    padding-right: 20px;
    padding-left: 20px;
    margin-top: 26px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-bottom: none;
    box-sizing: border-box;
}

#menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#menu .menu-level-1 {
    display: flex;
    gap: 0;
    align-items: center;
}

#menu .menu-level-1 > li {
    position: relative;
}

/* MENU LINKS */
#menu li a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: #000 !important;
    text-decoration: none;
    font-size: 16px;
    line-height: 40px;
    transition: color .25s ease;
}

#menu li a i {
    margin-right: 6px;
    font-size: 18px;
    color: #000;
    transition: color .25s ease;
}

/* CARET */
#menu .has-sub > a .menu-text::after {
    content: " ▾";
    font-size: 14px;
    color: #000;
    margin-left: 4px;
    top: -1px;
    position: relative;
    opacity: 1;
    transition: opacity .2s ease;
}

#menu .has-sub.open > a .menu-text::after {
    opacity: 0;
}

/* UNDERLINES */
#menu li.active > a::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0033aa;
}

#menu li a::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 0;
    width: var(--underline-width, 0%);
    height: 2px;
    background: #1a5eff;
    transition: width .25s ease;
}

#menu li:hover > a i {
    color: #1a5eff;
}

/* SUBMENU */
#menu .menu-level-2 {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    background: #ffffff;
    min-width: 180px;
    z-index: 9999;
    border: 1px solid #dcdcdc;
    padding: 0;
}

#menu .menu-level-2 li a {
    height: 40px;
    padding: 0 18px;
    color: #000;
    white-space: nowrap;
    border-top: 1px solid #efefef;
}

#menu .menu-level-2 li:first-child a {
    border-top: none;
}

#menu .menu-level-2 li a:hover {
    background: #f1f1f1;
}

/* REMOVE underline on submenu hover */
#menu .menu-level-2 li a::after {
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}


#container {
    width: 100%;
    max-width: 1400px;     /* same as slider */
    margin: 0 auto;
    background: transparent;
    min-height: 0;
    box-sizing: border-box;
}


#container > *:first-child {
    margin-top: 0 !important;
}
/*PayPal Button*/
.paypal {
	background-color: #eeeeee;
	padding-left: 22px;
	padding-top: 16px;
	width: 500px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

/* ================================
   HOME PAGE SLIDER (INSIDE 1400PX CONTAINER)
================================ */

#slider-container {
    width: 100%;           /* let it shrink/grow with window */
    max-width: 1400px;     /* but never wider than design */
    margin: 0 auto;
    padding: 16px 48px;
    box-sizing: border-box;
    background: #f5f5f5;
}

/* Slider fills whatever width is left inside container */
#home-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 0;       /* keep square corners */
    background: #000;       /* prevents white flash */
}

/* Slides */
#home-slider .slide {
    width: 100%;
    opacity: 0;
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    transition: opacity 1500ms ease-in-out;
}

/* First slide stays visible so height is defined */
#home-slider .slide:first-child {
    position: relative !important;
    display: block !important;
    opacity: 1 !important;
}

/* Slide images */
#home-slider .slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* ================================
   SLIDER ARROWS
================================ */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.40);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
}

.slider-arrow i {
    color: #fff;
    font-size: 22px;
}

.left-arrow { left: 20px; }
.right-arrow { right: 20px; }

.slider-arrow {
    opacity: 1;
}

/* ================================
   SLIDER PAUSE / PLAY BUTTON
================================ */
#slider-pause-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: rgba(0,0,0,0.45);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 30;
}

#slider-pause-btn i {
    color: white;
    font-size: 48px;
}

#home-slider:hover #slider-pause-btn {
    opacity: 1;
}

/* ================================
   TACHOMETER TIMER (GAUGE STYLE)
================================ */
#slide-timer.tach-timer {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 100px;
    height: 100px;
    z-index: 40;
    pointer-events: none;
}

/* Gauge background */
#slide-timer .tach-bg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
}

/* Needle */
#tach-needle.tach-needle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 3px;
    height: 30px;
    background: #e8c96f; /* Norton Gold */
    border-radius: 2px;
    box-shadow: 0 0 4px rgba(0,0,0,0.7);
    transform-origin: 50% 85%;
    transform: translate(-50%, -50%) rotate(-120deg);
    z-index: 42;
    transition: transform linear, background 0.25s ease;
}



/* Glass reflection overlay */
.tach-glass {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 44;
    pointer-events: none;
    border-radius: 50%;

    background: radial-gradient(circle at 30% 20%,
        rgba(255,255,255,0.22) 0%,
        rgba(255,255,255,0.10) 35%,
        rgba(0,0,0,0.15) 100%
    );
    opacity: 0.55;
}


/* ================================
   GLOBAL CONTENT SECTIONS
   (Used for Home and all future pages)
================================ */
/* SECTION BACKGROUND — matches footer */

.content-section {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0px 0 22px 0;   /* top 16px, bottom 50px */
    background: #f5f5f5;   /* same grey as footer */
    box-sizing: border-box;
}

/* INNER WHITE CONTENT BOX — NO shadow, NO radius */
.content-wrapper {
    width: 100%;
    max-width: 1100px;
    padding: 36px 36px;
    background: #ffffff;   /* white content card */
    box-sizing: border-box;
	margin-top: 16px;
}



.content-wrapper p {
    font-size: 18px;                /* Your choice */
    line-height: 1.55;
    margin-bottom: 22px;
    color: #000;
}

.footer-webmaster {
    margin-bottom: 12px;   /* clean spacing above the © line */
    font-size: 17px;
}

#footer {
    width: 100%;
    max-width: 1400px;
    margin: 16px auto 0 auto;

    background: #f5f5f5;
    text-align: center;
    
    padding: 20px 0;
    font-size: 16px;
    box-sizing: border-box;
}


    /* Hide mobile menu by default — prevents flashing */
    #mobile-menu {
        display: none;
    }
	
	/* ======================================
   WHEN MOBILE MENU IS OPEN, HIDE SLIDER UI
====================================== */

body.mobile-menu-open #home-slider .slider-arrow,
body.mobile-menu-open #home-slider #slider-pause-btn,
body.mobile-menu-open #home-slider #slide-timer,
body.mobile-menu-open #home-slider #tach-needle,
body.mobile-menu-open #home-slider .tach-glass {
    opacity: 0;
    pointer-events: none;
    /* If you prefer to completely remove them from layout:
       display: none !important;
    */
}
/* PRESIDENT'S AWARD GRID */
.award-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
    margin-top: 20px;
}

.award-card {
    background: #ffffff;
    padding: 14px;
    text-align: center;
    border: 1px solid #e2e2e2;
    box-sizing: border-box;
}

.award-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.award-meta {
    margin-top: 10px;
}

.award-year {
    font-size: 17px;
    font-weight: 600;
    color: #012768;
}

.award-name {
    font-size: 18px;
    font-weight: 600;
    margin-top: 4px;
}
/* PRESIDENTS AWARD — uniform thumb formatting */
.award-card img {
    width: 100%;
    height: 360px;        /* fixed height so grid aligns */
    object-fit: cover;    /* crops edges but NEVER distorts */
    object-position: center top; /* keeps heads in view */
    border-radius: 4px;
}


/* ================================
   FILES / LINKS LIST
================================ */
/* If link already contains a file icon (e.g. PDF), suppress external-link icon */
.file-list li a:has(.file-icon)::before {
    content: none !important;
}



.file-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.file-list li {
    margin: 6px 0;               /* tighter spacing */
    font-size: 18px;
    line-height: 1.55;
}

/* link styling + bullet icon positioning */
.file-list li a {
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding-left: 18px;          /* space for icon */
    display: inline-block;
}

/* insert lightweight “opens in a new tab” icon */
.file-list li a::before {
    content: "\F1C5";            /* bootstrap-icons external-link icon */
    font-family: "bootstrap-icons";
    font-size: 11px;
    position: absolute;
    left: 0;
    top: 4px;
    opacity: 0.65;
    transition: opacity 0.2s ease;
}

.file-list li a:hover::before {
    opacity: 1;
}

/* metadata text */
.file-meta {
    font-size: 14px;
    color: #555;
    margin-left: 6px;
}

/* FA/BI icons for file/media previews */
.file-icon {
    margin-right: 6px;
    font-size: 1.15em;
    color: #b72222; /* deep PDF red */
}

.file-icon.bi-film {
    color: #444; /* neutral grey */
}

/******** Video Preview block ********/
.file-thumb {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 22px 0;
}

.file-thumb img {
    width: 240px;
    height: auto;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.file-caption {
    line-height: 1.4;
}


/* ================================
   LINKS PAGE — TAB BAR + HEADINGS
================================ */

/* Top tab strip */
.links-tabbar {
    margin: 0px 0 26px 0;
    padding: 10px 12px;
    background: #f3f5f7;
    border: 1px solid #d3d7dd;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Individual "tab" links */
.links-tabbar a {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #c3c9d2;
    background: #ffffff;
    font-size: 14px;
    text-decoration: none;          /* override global underline */
    color: #012768;
    line-height: 1.2;
    white-space: nowrap;
}

.links-tabbar a:hover {
    background: #012768;
    color: #ffffff;
    border-color: #012768;
}

/* Section spacing a bit tighter */
.links-section {
    margin-bottom: 26px;
}

/* Heading + inline up-arrow aligned nicely */
.links-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 26px 0 10px 0;
    font-size: 19px;

    scroll-margin-top: 140px; /* matches your sticky desktop header */
}


/* Small circular up-arrow next to each heading */
.links-section .up-arrow {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #c3c9d2;
    background: #ffffff;
    font-size: 12px;
    text-decoration: none;          /* no underline on the little button */
    color: #012768;
    cursor: pointer;
}

.links-section .up-arrow:hover {
    background: #012768;
    color: #ffffff;
    border-color: #012768;
}

/* ======================================
   SCROLL-TO-TOP BUTTON
   Appears after scrolling down
====================================== */

#scroll-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 48px;
    height: 48px;
    background: #012768;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 5000;
}

#scroll-top i {
    color: white;
    font-size: 20px;
}

/* Visible state when scrolling */
#scroll-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Hover highlight */
#scroll-top:hover {
    background: #003b9c;
}

/* Simple page button */
.button-blue {
    display: inline-block;
    background: #012768;
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.button-blue:hover {
    background: #0044aa;
}

/* ======================================
   SIDE-BY-SIDE IMAGE ROW
====================================== */

.image-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    margin: 22px 0;
}

.image-row img {
    max-width: 100%;
    height: auto;
}
.image-row.equal-height {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    margin: 26px 0;
}

.image-row.equal-height img {
    width: 100%;
    max-width: 520px;      /* keeps them reasonable inside 1100px */
    height: 360px;         /* 👈 THIS enforces equal height */
    object-fit: cover;     /* crops edges, never distorts */
    object-position: center;
    display: block;
}

/* ======================================
   DESKTOP SHRINK ZONE (1275px → 1101px)
====================================== */
@media (max-width: 1275px) {

    /* Slight logo reduction */
    #logo-div img {
        width: 295px;   /* step-down from 367px */
        height: auto;
        padding-left: 22px;
    }

    #header-container {
        height: 120px;
    }

    #right-wrapper {
        margin-right: 16px;
    }

    /* Slightly reduce menu padding */
    #menu {
        padding-left: 10px;
        padding-right: 10px;
    }

    #menu li a {
        padding: 0 10px;
    }
}


/* ======================================
   MOBILE BREAKPOINT (1100px and below)
====================================== */
@media (max-width: 1100px) {
	


    /* When header shrinks on scroll — mobile version */
    #header-container.header-condensed {
        height: 80px !important;
    }

    #header-container.header-condensed #logo-div img {
        width: 200px !important; /* Prevents logo from growing on scroll */
        height: auto;
    }

    /* Inner content breathing room */
    .content-wrapper {
        padding: 16px 18px;
        margin: 0;
    }

    /* Hide desktop menus */
    #menu,
    #top-menu {
        display: none !important;
    }

    /* Default header height before scroll */
    #header-container {
        height: 110px;
    }

    /* Mobile logo baseline size */
    #logo-div img {
        width: 240px;
        height: auto;
        padding-left: 0;
    }

    /* Tachometer gauge scaling */
    #slide-timer.tach-timer {
        width: 50px !important;
        height: 50px !important;
    }

    #tach-needle.tach-needle {
        height: 18px !important;
        width: 2px !important;
        transform-origin: 50% 88% !important;
    }

    /* Slider arrows */
    .slider-arrow {
        width: 34px;
        height: 34px;
        border-radius: 50%;
    }

    .slider-arrow i {
        font-size: 16px;
    }

    /* Arrow placement */
    .left-arrow  { left: 10px; }
    .right-arrow { right: 10px; }

    /* Mobile slider container padding */
    #slider-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    /* Footer spacing */
    #footer {
        margin-top: 8px !important;
    }
}



@media (max-width: 768px) {
	
	/* Stack images on mobile */
    .image-row {
        flex-direction: column;
        align-items: center;
    }
	  .image-row.equal-height {
        flex-direction: column;
        align-items: center;
    }

    .image-row.equal-height img {
        height: auto;      /* natural height on mobile */
        max-width: 100%;
    }

    /* LINKS PAGE — compact on phones */
    .links-tabbar {
        padding: 8px;
        gap: 6px;
    }

    .links-tabbar a {
        font-size: 13px;
        padding: 5px 9px;
    }

    .links-section h2 {
        scroll-margin-top: 100px; /* mobile header height */
    }

    .links-section .up-arrow {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    /* Mobile content spacing */
    .content-wrapper {
        margin-left: 8px;
        margin-right: 8px;
    }

    .content-wrapper p {
        font-size: 16px;
        line-height: 1.5;
    }

    /* MOBILE HEADING SCALE */
    h1 {
        font-size: 20px;  /* down from 24 */
    }

    h2 {
        font-size: 17px;  /* down from 20 */
    }

    #slider-container {
        padding-left: 10px;
        padding-right: 10px;
    }
}
