@import url('./plugins/fontawesome/css/all.min.css');
@import url('./plugins/Gallery/CSS-Gallery.css');
@import url('./plugins/home-printer/styles.css');

:root {
	--button-bg-color: #85AD44;
	--button-bg-color-hover: #92DA1E;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
    max-width: 2560px;
	margin: 0px auto;
	padding: 0px;
    display: block;
	background-color: white;
    text-align: center;
	font-size: medium;
	font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    font-variation-settings:
    "wdth" 100,
    "YTLC" 500;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0px;
	padding: 0.5em 0px;
}

img {
	max-width: 100%;
	border-style: none;
}

textarea {
	resize: vertical;
}

ul li {
     text-align: left;
}

a[href^='tel:'],
a[href^='mailto:'] {
	white-space: nowrap;
}

.Admin {
     background-color:#E9EDF1;  
    display: block;
    width: 100%;
    text-align: left;
}

.Admin a {
     display: inline-block;
    padding: 5px 0px 10px 5px;
    font-size: xx-small;
    color:#C5C7C8;
    text-decoration: none;
}

/* Back-to-top styles */
.BackToTop {
	position: fixed;
	z-index: 10;
	right: 10px;
	bottom: 10px;
	background-color: #fcf7f7;
	padding: 10px;
	color: white;
	font-family: sans-serif;
	border-radius: 5px;
	opacity: 0;
	visibility: hidden;
	font-size: medium;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
}

.BackToTop a {
	display: inline-block;
	padding: 10px;
	background-color: #85AD44;
	border-radius: 5px;
	color: #E5F1D3;
	text-decoration: none;
	box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
	font-size: 0.8em;
	transition: color 0.25s, background-color 0.25s;
	line-height: normal;
	height: 50px;
	box-sizing: border-box;
	text-align: center;
}

.BackToTop a:hover {
	color: #ffffff;
	background-color: #AA2123;
}

.BackToTop #BackToTop {
	position: relative;
	display: inline-block;
	cursor: pointer;
	font-size: 20px;
	width: 50px;
}

.BackToTop #BackToTop i {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

.BackToTop #CloseBTT {
	position: absolute;
	left: -10px;
	top: -10px;
	width: 20px;
	height: 20px;
	cursor: pointer;
}

.Box-2 {
     padding: 35px;
    width: 49.5%;
    display: inline-block;
    vertical-align: middle;
}

    .Box-2 .Box-2 i {
         display: inline-block;
        font-size: 1.5em;
        padding: 15px;
        border-radius: 180px;
        border: 1px solid;
    }

        .Box-2i i {
         display: inline-block;
        font-size: 1.5em;
        padding: 15px;
        border-radius: 180px;
        border: 1px solid;
        margin-top: 20px;
    }

.Box-2 img {
     border-radius: 16px;   
}

.Box-2 p {
     text-align: left;
    line-height: 1.5em;
}

.Box-20 {
     display: inline-block;
    padding: 35px;
    vertical-align: middle;
    width: 20%;
}

.Box-20 i {
     padding: 35px;
    background-color: #85AD44;
    color: #E5F1D3;
    font-size: 4em;
    border-radius: 16px;
}

.Box-3 {
     display: inline-block;
    width: 32.5%;
    padding: 35px;
    min-width: 300px;
    vertical-align: top;
}

.Box-80 {
    display: inline-block;
    padding: 35px;
    vertical-align: middle;
    width: 79.5%;
    max-width: 800px;
}

.Box-80 p {
     text-align: left;
    line-height: 1.5em;
}

.Box-Green {
     background-color: #85AD44;
    color: #E4E8DD;
    text-align: left;
    padding-left: 15px !important;
    paddding-right: 15px !important;
}

.Box-Text-Large {
     font-size: x-large;   
}

.Button a {
     padding: 7px 15px;
    color: white;
    background-color: #85AD44;
    text-decoration: none;
    border-radius: 16px;
}

.Button a:hover {
     background-color: #92DA1E;
    text-shadow: 2px 2px 4px black;
}

/* CAPTCHA styles */
.captcha-field {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1em; /* Space between CAPTCHA image and refresh button */
}

.captcha {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.captcha-image {
    max-height: 60px; /* Ensures the image doesn't get too tall */
    margin-right: 10px;
}

.captcha-refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    cursor: pointer;
}

.Container {
	width: 1400px;
	display: inline-block;
	max-width: 90%;
    position: relative;
}

.Container-Contact {
    	width: 1400px;
	display: inline-block;
	max-width: 90%;
}

/* Form styles */
.form {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.form-input-field.required {
    flex: 1;
}

.form-row {
    display: flex;
    flex-direction: row;
    gap: 1em;
    flex-wrap: wrap;
}

.form-row .form-input-field {
    flex: 1;
}

.button {
    padding: 0.75em 1em;
    background-color: #C4C6C8;
    color: black;
    font-weight: bold;
    font-size: 1em;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    text-transform: capitalize;
    cursor: pointer;
    transition: color 0.25s, background-color 0.25s;
}

.button:hover {
    background-color: #A8BBCE;
    color: black;
}

.form-input-field {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    text-align: left;
    min-width: 200px;
}

.form-field-label,
.form-field-input {
    width: 100%;
    font-size: 1em;
}

.form-field-input {
    padding: 0.5em;
    border: none;
    background-color: rgb(245, 245, 245);
    border-radius: 10px;
}

.form-field-input[type='date'],
textarea.form-field-input {
    font-size: 1.15em;
}

.form-field-input[type='file'] {
    cursor: pointer;
}

.form-input-field.required {
    flex: 1;
}

.form-input-field.required .form-field-label::before {
    content: '*';
    color: red;
}

footer {
    display: inline-block;
    width: 100%;
    background-color: #E4E8DD;
    padding-top: 35px;
    color: #8B947B
}

.Footer-Logo img {
     width: 215px;   
}

header {
    display: inline-block;
    padding: 15px 0;
    width: 1400px;
    max-width: 90%;

    position: relative;  /* allows menu overlay positioning context */
    z-index: 2000;       /* keeps header/menu above Hero */
}

.Header-Right {
    display: inline-block;
    float: right;
    width: auto;
    margin-top: 50px;
    padding-left: 15px;
    border-left: 1px solid #85AD44;
    margin-left: 12px;
}

.Header-Right-Button {
     display: inline-block;
}

.Header-Right-Button a { 
    background-color: #AA2123; 
    color: white; 
    border-radius: 180px; 
    padding: 5px 15px; 
    margin-left: 15px; 
    text-decoration: none;
    display: inline-block;
} 

.Header-Right-Button a:hover {
     text-decoration: underline;
}

.Hero {
	display: inline-block;
    position: relative;
    width: 100%;
}

.Hero img {
     border-radius: 16px; 
    width: 1400px;
}

.Hero-Inset {
    position: absolute;
    left: 0;
    right: 0;

    /* inset controls (change this to play with spacing) */
    padding-left: clamp(12px, 2vw, 28px);
    padding-right: clamp(12px, 2vw, 28px);

    /* match your vertical placement intent */
    bottom: 60px;

    /* ensures overlay */
    z-index: 5;

    /* optional safety */
    box-sizing: border-box;
}

.Hero-Text {
    position: relative;  /* NOT absolute anymore */
    margin: 0;
    width: 30vw;
    max-width: 500px;
    padding: 25px;
    background-color: #85AD44;
    border-radius: 16px;
    text-align: left;
    color: #E5F1D3;
}

.Hero-Text .Button a {
    background-color: #51701E;
}

.Hero-Text .Button a:hover {
     background-color: #92DA1E;
    text-shadow: 2px 2px 4px black;
}

.Hero-Text h1, .Hero-Text h2 {
    padding: 0 !important;
    margin: 0 !important;
}

/* hil styles */
.hil-container {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr auto;
    grid-template-areas: 'sidebar main' 'sidebar pagination';
    width: 100%;
    height: 90vh;
    border: 1px solid #ccc;
    text-align: left;
}

.hil-sidebar {
	grid-area: sidebar;
	display: flex;
	flex-direction: column;
	gap: 1em;

	border-right: 1px solid #ccc;
	background-color: #f5f5f5;
}

.hil-search-form {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-rows: auto auto;
	grid-template-areas: 'input button' 'lang lang';
	row-gap: 1em;
	padding: 1em;
}

.hil-search-form .search-input {
	grid-area: input;
	padding: 0.25em 0.5em;
	border: none;

	border-top-left-radius: 10px;
	border-bottom-left-radius: 10px;
}

.hil-search-form .search-btn {
    grid-area: button;
    background-color: #85ac45;
    color: #FFFFFF;
    border: none;
    padding: 0.5em 0.75em;
    cursor: pointer;
    transition: background-color 0.25s, color 0.25s;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.hil-search-form .search-btn:hover {
    background-color: #92DA1E;
    color: #FFFFFF;
}

.hil-search-form .input-radio {
	grid-area: lang;
}

.hil-search-form .input-radio .options {
	display: flex;
	justify-content: space-around;
	align-items: center;
}

.hil-menu {
	display: flex;
	flex-direction: column;
	height: 100%;

	padding: 0px;
	margin: 0px;
}

.hil-menu-link {
	display: flex;
	padding: 1em;

	background-color: transparent;
	color: inherit;

	transition: background-color 0.25s, color 0.25s;
}

.hil-menu-link:hover {
    background-color: #E9EDF1;
    color: black;
}

.hil-main {
	grid-area: main;
	display: flex;
	flex-direction: column;
	row-gap: 2em;

	width: 100%;
	height: 100%;

	padding: 2em 10%;

	overflow-y: auto;
	overflow-x: hidden;
}

.hil-article {
	border: 1px solid #ccc;
	padding: 1em 2em;
}

.hil-pagination {
	grid-area: pagination;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	flex-wrap: wrap;

	border-top: 1px solid #ccc;
}

.hil-pagination .print-friendly {
	flex: 1;
}

.hil-pagination .print-friendly,
.hil-pagination .info,
.hil-pagination .pages {
	padding: 1em;
}

.hil-pagination .info {
	border-right: 1px solid #ccc;
}

.hil-pagination .pages {
	display: flex;
	gap: 1em;

	margin: 0px;
}

.Logo {
    display: inline-block;
    float: left;
    width: 137px;
} 

/* Navigation styles */ 

.Nav-Row {
    display: inline-block;
    font-weight: bold;
    margin-top: 39px;
    float: right;
} 

.Nav-Inline-Block { 
    display: inline-block; 
    color: black; 
} 

nav { 
    display: flex; 
    list-style: none; 
    justify-content: center; 
} 
nav menu { 
    display: flex; 
    flex-wrap: wrap; 
    align-items: center; 
    list-style-type: none; 
    list-style-image: none; 
    padding-left: 0px; 
    margin: 0px; } 

nav li { 
    display: flex; 
    flex-direction: row; 
    justify-content: center; 
    align-items: center; 
    margin-top: 0; 
    margin-bottom: 0; 
    position: relative; 
    height: 100%; 
} 
nav li ul { 
    padding-left: 0px;
    text-align: left; 
} 
nav li ul li { 
    text-align: left; 
    padding-left: 0px; 
    display: block; 
} 
nav a { 
    text-decoration: none; 
    color: #333; 
    padding: 1em; 
    display: inline-block; 
} 
nav a:hover { 
    text-decoration: underline; 
}

.Page-Heading {
     background-color: #85AD44;
    color: #E5F1D3;
}

.Page-Heading .Container {
     text-align: left;
}

.Page-Heading h1 {
     font-weight: normal;
    padding: 35px;
}

.Page-Heading span {
     display: inline-block;
    border-left: 1px solid;
    padding-left: 8px;
}

.menu-toggle {
    display: none;
    font-family: inherit;
    font-size: inherit;
}

/* Dropdown content */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #FFFFFF;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    top: 100%; /* Position the dropdown below the menu item */
    left: 0;
}

.dropdown-content a {
    text-align: left;
    display: block;
    padding: 8px 12px; /* Bring items closer to the left edge */
}

/* Show dropdown when active */
.dropdown-content.show {
    display: block;
}

.Row-Color {
     display: inline-block;
    margin-top: 35px;
    padding-bottom: 35px;
    width: 100%;
    position: relative;
}

.Row-Contact {
    background-color: #E4E8DD;
    padding: 1em;
    display: inline-block;
    width: 100%;
}

.Video {
     border-radius: 8px;   
}



/* Scroll to highlight styles */
@keyframes highlight-ani {
    0% {
        background-color: transparent;
    }
    25% {
        background-color: #fff59d;
    }
    75% {
        background-color: #fff59d;
    }
    100% {
        background-color: transparent;
    }
}

.ScrollToHighlight-anchor-highlight {
    animation: highlight-ani 2s ease;
}

.ScrollToHighlight-anchor-highlight:after {
	content: '';
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0px;
	top: 0px;
	z-index: 9999999999;
	opacity: 0.25;
	pointer-events: none;
	animation-name: ScrollToHighlight-highlight-ani;
	animation-duration: 1.5s;
	animation-iteration-count: 1;
}

/* Scroll to highlight styles */
@keyframes highlight-ani {
	0% {
		background-color: transparent;
	}
	25% {
		background-color: #fff59d;
	}
	75% {
		background-color: #fff59d;
	}
	100% {
		background-color: transparent;
	}
}

.ScrollToHighlight-anchor-highlight {
	position: relative;
}

/* Media Queries */

@media (max-width: 1150px) {
    
    .Box-2 {
         width: 100%;
        padding: 17px 0px;
    }
    
    .Box-2 .Box-2 {
        width: 400px;
        max-width: 100%;
    }

    .Box-2 img {
        width: 700px;
    }
    
    .Box-20 {
         width: 100%;   
    }
    
    .Box-80 {
         width: 100%;   
    }
    
    .Hero-Inset {
        position: relative;

        /* inset controls (change this to play with spacing) */
        padding-left: 0;
        padding-right: 0;

        /* match your vertical placement intent */
        bottom: 0px;
    }
    
    .Hero-Text {
        width: 100%;
        max-width: 100%;
    }
    
}

@media screen and (max-width: 850px) {
	.hil-container {
		display: flex;
		flex-direction: column;
	}

	.hil-menu {
		display: none;
	}
}

@media only screen and (max-width: 1200px) {
	nav {
		flex-direction: column;
		width: 100%;
		align-items: center;
	}

	nav ul {
		margin-top: 0;
		padding-left: 0;
		width: 100%;
		text-align: center;
	}

	nav li {
		width: 100%;
		flex-direction: column;
		align-items: flex-start;
		position: relative;
	}

	nav li a {
		width: 100%;
	}

    .menu-toggle {
        display: flex;
        justify-content: center; /* Center the button horizontally */
        gap: 0.5em;
        align-items: center;
        padding: 1em;
        width: 100%;
        border: none;
        background-color: transparent;
        cursor: pointer;
    }

	.menu-toggle i {
		font-size: 1.5em;
	}
    
    #main-nav {
    position: relative;  /* anchor for absolute #main-menu */
    width: 100%;
    }
    
    #main-nav button {
        background-color: white;
    }

    #main-menu {
        display: none;
        background-color: #FFFFFF;
        width: 200px;
        max-width: 90vw;
        border-radius: 16px;
        margin-top: 3px;
        text-align: left;

        position: absolute;      /* key: overlay instead of pushing content */
        top: 100%;               /* directly below the toggle button area */
        left: 0;
        z-index: 3000;

        box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    }


	.menu-toggle .close {
		display: none;
	}

	#main-nav.active .menu-toggle .close {
		display: var(--fa-display, inline-block);
	}

	#main-nav.active .menu-toggle .open {
		display: none;
	}

	#main-nav.active #main-menu {
		display: flex;
		flex-direction: column;
	}

	.dropdown-content {
		position: static;
		width: 100%;
		margin: 0;
		padding: 0;
	}

	.dropdown-content.show {
		display: block;
	}

	/* Prevent underlining dropdown links on hover/focus */
	nav .dropdown-content a, 
	nav .dropdown-content a:active, 
	nav .dropdown-content a:focus {
		text-decoration: none !important;
	}
    
    /* Center dropdown items on mobile */
     .dropdown-content a {
        text-align: center;
    }
}

@media only screen and (max-width: 600px) {
    .captcha-field {
        flex-direction: column; /* Stack elements vertically */
        align-items: flex-start;
    }

    .captcha {
        display: flex;
        flex-direction: row; /* Ensure the CAPTCHA image and refresh button are side by side */
        align-items: center;
        justify-content: flex-start;
        width: 100%;
    }

    .captcha-image {
        margin-right: 10px; /* Ensure space between the CAPTCHA image and the refresh button */
        max-width: 75%; /* Ensure the image doesn't take up too much space */
    }

    .captcha-refresh-btn {
        margin-top: 0; /* Remove top margin */
        padding: 0;
        height: 100%; /* Align with the height of the CAPTCHA image */
    }

    .form-input-field.required {
        width: 100%; /* Ensure the input field takes full width */
    }
}

@media (max-width: 570px) {
    .Nav-Row {
         float: none; 
        width: 100%;
        margin-top: -11px;
    }
    
     .Nav-Inline-Block {
        width: 100%;  
    }
    
    #main-menu {
        width: 90vw;
        border-radius: 16px;
        margin-top: 3px;
        text-align: center;
        
        left: 50%;
        transform: translateX(-50%);
    }
}

@media screen and (max-width: 520px) {
	.hil-pagination .print-friendly {
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		flex: 100%;
	}

	.hil-pagination .info,
	.hil-pagination .pages {
		flex: 1;
	}

	.hil-pagination .info {
		text-align: center;
	}
}

@media (max-width: 520px) {
     .Header-Right {
        border-left: none;
        margin: 0;
        padding-left: 0px;
        width: 100%;
    }
    
    .Header-Right-Button {
         margin-top: 11px;   
    }
    
    .Nav-Row {
         width: auto;
        margin-top: 11px;
    }
    
        #main-menu {
        width: 90vw;
        border-radius: 16px;
        margin-top: 3px;
        text-align: center;
        
        left: 50%;
        transform: translateX(-60%);
    }
}
