/* ORIGINAL STYLES */
#content p,
#content ul,
#full-width-content p,
#full-width-content ul {
	text-align: justify;
}

#content .archive {
	clear:both;
}

h1 {
	font-size:26px;
}

#copyright .pad {
	padding-top:10px!important;
}

#copyright a {
	color:#999;
	font-weight: bold;
	text-decoration:none;
}

/* RESET */
html, body, div, span, object, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, address, code, img, small, strong, dl, dt, dd, ol, ul, li,
fieldset, form, label {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
}

ol, ul {
	list-style: none;
}

/* THEME STYLES */
body {
	background-image: url(/web/system/body-bg.png);
	background-color: #05243a;
	background-repeat: repeat;
	background-position: 0 0;
	color: #474747;
}

a {
	color: #0b4873;
}

#content blockquote,
#full-width-content blockquote {
	border-left-color: #c6c6c6;
}

#content img,
#full-width-content img,
#portfolio img {
	border-color: #c6c6c6;
	background-color: #f2f2f2;
}

#menu-wrapper {
	background-image: url(/web/system/menu-bg.png);
}

#main {
	border-color: #01101b;
}

#primary {
	background-image: url(/web/system/primary-bg.png);
	background-color: #ffffff;
}

#copyright {
	background-image: url(/web/system/footer-bg.png);
	color: #ffffff;
}

#copyright a {
	color: #ffffff;
	text-decoration: underline;
}

#logo {
	background-image: url(/web/system/logo.png);
}

#menu-wrapper .menu a {
	color: #f2f2f2;
}

#menu-wrapper .menu a:hover, #menu a.menu-home:hover {
	background-image: url(/web/system/menu-bg.png);
}

#menu-wrapper .menu li {
	background-image: url(/web/system/menu-divider.png);
}

#menu-wrapper .menu li ul {
	background: #073659;
	border-top: 1px solid #073659;
	border-bottom: 1px solid #01101b;
	border-right: 1px solid #01101b;
	border-left: 1px solid #01101b;
	margin-left: -2px;
}

#menu-wrapper .menu li ul ul {
	border: 1px solid #01101b;
}

#menu-wrapper .menu li li a:focus, #menu-wrapper .menu li li a:hover, #menu-wrapper .menu li li a:active {
	background: #03233a;
}

#menu-wrapper .menu li li a, #menu-wrapper .menu li li a:visited {
	color: #f2f2f2;
}

.sf-sub-indicator {
	background-image: url('/system/arrows.png');
}

#searchform div {
	border-color: #01101b;
	background-color: #0b4e7c;
	background-image: url(/web/system/search-input-bg.png);
}

#search-input {
	color: #f2f2f2;
}

#searchsubmit {
	background-image: url(/web/system/search-submit.png);
}

#content .entry h3 a, #content .archive h3 a {
	color: #474747;
}

#content .entry h3 a:hover, #content .archive h3 a:hover {
	color: #000000;
}

a.name {
	color: #474747;
}

a.name:hover {
	color: #000000;
}

#respond input, #respond textarea {
	background-color: #ffffff;
	color: #666;
	border: 1px solid #cccccc;
}

#respond #submit {
	background-color: #ffffff;
	border: 1px solid #cccccc;
}

#respond #submit:hover {
	background-color: #f2f2f2;
}

.news-article h2 a, .featured-news h2 a {
	color: #474747;
}

.news-article h2 a:hover, .featured-news h2 a:hover {
	color: #000000;
}

#portfolio .portfolio-box h3 a {
	color: #474747;
}

#portfolio .portfolio-box h3 a:hover {
	color: #000000;
}

#contact input, #contact textarea {
	background-color: #ffffff;
	color: #666;
	border: 1px solid #cccccc;
}

#contact #submit {
	background-color: #ffffff;
	border: 1px solid #cccccc;
}

#contact #submit:hover {
	background-color: #f2f2f2;
}

#footer-top {
	background-image: url(/web/system/footer-top-bg.png);
	background-color: #ffffff;
}

#footer-widget-area {
	background-image: url(/web/system/footer-widget-area-bg.png);
	background-color: #08395b;
	color: #ffffff;
}

#footer-widget-area a {
	color: #ffffff;
}

#footer-widget-area a:hover {
	text-decoration: underline;
}

#sidebar .widget a {
	color: #0b4873;
}

#sidebar .widget ul {
	border-bottom-color: #cccccc;
}

#sidebar .widget li {
	border-top-color: #cccccc;
	background-image: url('/system/bullet.png');
}

#sidebar .widget li a {
	color: #474747;
}

#sidebar .widget li a:hover {
	color: #0b4873;
}

#slideshow {
	background-color: #f2f2f2;
}

#slideshow-nav {
	background-image: url(/web/system/slideshow-nav.png)
}

#slideshow-nav-inner a img {
	background-image: url(/web/system/slideshow-nav-button.png);
}

#full-width-content .widget ul.jaybich-simple-contact li,
#sidebar .widget ul.jaybich-simple-contact li,
ul.jaybich-simple-contact li {
	background-image: url(/web/system/icons-contact.png);
}

#footer-widget-area .widget ul.jaybich-simple-contact li a, ul.jaybich-simple-contact li a {
	color: #f2f2f2;
}

#portfolio .wp-pagenavi a, #content .wp-pagenavi a {
	border: 1px solid #cccccc;
	color: #474747;	
}

#portfolio .wp-pagenavi a:hover, #content .wp-pagenavi a:hover {	
	border: 1px solid #cccccc;
	background-color: #f2f2f2;
}

#portfolio .wp-pagenavi span.current, #content .wp-pagenavi span.current {
	border: 1px solid #cccccc;
	color: #474747;
	background-color: #f2f2f2;
}

/* MOBILE HAMBURGER MENU */
.mobile-menu-toggle {
	display: none;
	background: #073659;
	color: #f2f2f2;
	padding: 15px;
	cursor: pointer;
	font-size: 16px;
	font-weight: bold;
	border: none;
	width: 100%;
	text-align: left;
}

.mobile-menu-toggle .hamburger-icon {
	display: inline-block;
	font-size: 24px;
	margin-right: 10px;
	font-weight: normal;
}

/* Hide submenu arrow on desktop */
.submenu-arrow {
	display: none;
}

/* RESPONSIVE STYLES */
@media screen and (max-width: 1024px) {
	/* ===== MOBILE HEADER WITH BANNER ===== */
	.mobile-header {
		display: block;
		position: relative;
		width: 100%;
	}
	
	.mobile-banner-container {
		position: relative;
		width: 100%;
		height: 200px;
		background-image: url(/images/SapaTrainTicket10.jpg);
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
	}
	
	.mobile-header-overlay {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 15px;
		z-index: 100;
	}
	
	.mobile-logo {
		max-width: 280px !important;
		width: 280px !important;
		height: 80px !important;
		background-image: url(/web/system/logo.png);
		background-size: contain;
		background-position: left center;
		background-repeat: no-repeat;
	}
	
	.mobile-logo a {
		display: block;
		width: 100%;
		height: 100%;
		text-indent: -9999px;
	}
	
	/* ===== HAMBURGER MENU BUTTON ===== */
	.mobile-header .mobile-menu-toggle {
		background: transparent;
		border: 2px solid #f2f2f2;
		padding: 10px;
		cursor: pointer;
		border-radius: 4px;
		width: 45px;
		height: 45px;
		display: flex;
		flex-direction: column;
		justify-content: space-around;
		align-items: center;
		box-shadow: 0 2px 5px rgba(0,0,0,0.2);
		z-index: 101;
	}
	
	.mobile-header .mobile-menu-toggle span {
		display: block;
		width: 25px;
		height: 3px;
		background: white;
		transition: 0.3s;
		border-radius: 2px;
	}
	
	.mobile-header .mobile-menu-toggle.active span:nth-child(1) {
		transform: rotate(45deg) translate(5px, 5px);
	}
	
	.mobile-header .mobile-menu-toggle.active span:nth-child(2) {
		opacity: 0;
	}
	
	.mobile-header .mobile-menu-toggle.active span:nth-child(3) {
		transform: rotate(-45deg) translate(7px, -6px);
	}
	
	/* ===== SLIDE-IN MOBILE NAVIGATION ===== */
	.mobile-nav {
		display: block;
		position: fixed;
		top: 0;
		right: -100%;
		width: 280px;
		height: 100%;
		background: #073659;
		box-shadow: -2px 0 10px rgba(0,0,0,0.3);
		z-index: 9999;
		overflow-y: auto;
		transition: right 0.3s ease;
		padding-top: 20px;
	}
	
	.mobile-nav.active {
		right: 0;
	}
	
	.mobile-nav-close {
		position: absolute !important;
		top: 15px !important;
		right: 15px !important;
		background: transparent !important;
		border: none !important;
		font-size: 45px !important;
		font-weight: bold !important;
		color: #f2f2f2 !important;
		cursor: pointer !important;
		width: 50px !important;
		height: 50px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		line-height: 1 !important;
		padding: 0 !important;
		margin: 0 !important;
	}
	
	.mobile-nav ul {
		list-style: none;
		margin: 0;
		padding: 0;
		margin-top: 50px;
	}
	
	.mobile-nav > ul > li {
		border-bottom: 1px solid #01101b;
	}
	
	.mobile-nav a {
		display: block;
		padding: 15px 20px;
		color: #f2f2f2;
		text-decoration: none;
		font-weight: 500;
		position: relative;
		font-size: 15px;
		background-color: #073659;
	}
	
	.mobile-nav a:hover {
		background: #03233a;
		color: #f2f2f2;
	}
	
	/* Submenu styles */
	.mobile-nav .has-submenu > a {
		padding-right: 45px;
	}
	
	.mobile-nav .has-submenu > a::after {
		content: "+";
		position: absolute;
		right: 0;
		top: 0;
		width: 45px;
		height: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 24px;
		font-weight: bold;
		transition: all 0.3s;
		border-left: 1px solid #01101b;
		background: #073659;
	}
	
	.mobile-nav .has-submenu.open > a::after {
		content: "-";
	}
	
	.mobile-nav .submenu {
		display: none;
		background: #03233A;
		padding: 0 !important;
		margin: 0 !important;
		border-top: 1px solid #5555dd;
	}
	
	.mobile-nav .submenu.open {
		display: block;
	}
	
	.mobile-nav .submenu li {
		border-bottom: 1px solid #5555dd;
		background-color: #03233A;
	}
	
	.mobile-nav .submenu a {
		padding: 12px 20px 12px 40px;
		font-size: 14px;
		color: #f2f2f2;
		background-color: #03233A;
	}
	
	.mobile-nav .submenu a:hover {
		background-color: #5555dd;
		color: #f2f2f2;
	}
	
	/* Overlay */
	.mobile-nav-overlay {
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0,0,0,0.5);
		z-index: 9998;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s, visibility 0.3s;
	}
	
	.mobile-nav-overlay.active {
		opacity: 1;
		visibility: visible;
	}
	
	/* Hide desktop header and menu on mobile */
	#header {
		display: none;
	}
	
	#menu-wrapper {
		display: none;
	}
	
	/* Hide slideshow on mobile */
	#slideshow-wrapper {
		display: none;
	}
	
	/* Wrapper and layout */
	#wrapper {
		width: 100% !important;
		margin: 0;
		overflow-x: hidden;
	}
	
	#main {
		overflow-x: hidden;
	}
	
	/* Search form */
	#searchform {
		position: static;
		width: 100%;
		padding: 10px;
		box-sizing: border-box;
		clear: both;
	}
	
	#searchform div {
		width: 100%;
	}
	
	#searchform #search-input {
		width: calc(100% - 30px);
	}
	
	/* Primary content area */
	#primary {
		background-image: none;
		overflow-x: hidden;
	}
	
	#full-width-content {
		padding: 10px !important;
	}
	
	/* Content comes first (order 1) */
	#content {
		width: 100% !important;
		float: none !important;
		margin: 0 !important;
		order: 1;
	}
	
	#content .pad {
		padding: 10px !important;
	}
	
	#content .archive img {
		width: 100% !important;
		height: auto !important;
		float: none !important;
		margin: 10px 0 !important;
		display: block;
	}
	
	/* Sidebar comes second (order 2) */
	#sidebar {
		width: 100% !important;
		float: none !important;
		margin: 0 !important;
		padding: 15px 20px 15px 10px !important;
		order: 2;
		box-sizing: border-box;
	}
	
	/* Make content and sidebar flex container */
	#full-width-content {
		display: flex;
		flex-direction: column;
	}
	
	/* Sidebar widgets */
	#sidebar .widget {
		width: 100% !important;
		margin-bottom: 20px;
	}
	
	#sidebar .widget img {
		max-width: 100%;
		height: auto;
	}
	
	#sidebar .widget iframe {
		width: 100% !important;
		max-width: 100%;
	}
	
	#sidebar .widget table {
		width: 100%;
	}
	
	/* Footer */
	#footer-widget-area .widget {
		width: 100% !important;
		float: none !important;
		margin: 10px 0 !important;
	}
	
	#copyright .pad {
		padding: 15px 10px !important;
		font-size: 12px;
	}
	
	.clear {
		padding: 10px;
		font-size: 12px;
	}
}

/* Desktop - hide mobile elements */
@media (min-width: 1025px) {
	.mobile-header,
	.mobile-nav,
	.mobile-nav-overlay {
		display: none !important;
	}
}

@media screen and (max-width: 480px) {
	body {
		font-size: 14px;
	}
	
	h1 {
		font-size: 22px !important;
	}
	
	h2 {
		font-size: 20px !important;
	}
	
	h3 {
		font-size: 18px !important;
	}
	
	/* Adjust mobile banner and logo for smaller screens */
	.mobile-banner-container {
		height: 150px;
	}
	
	.mobile-logo {
		max-width: 200px !important;
		width: 200px !important;
		height: 60px !important;
	}
	
	.mobile-header .mobile-menu-toggle {
		padding: 8px;
		width: 40px;
		height: 40px;
	}
}