/*
Theme Name: CECAS Theme
Template: twentythirteen

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/**
 * Table of Contents:
 *
 * 1.0 - Modern Reset & Base Styles
 * 2.0 - Repeatable Patterns
 * 3.0 - Basic Structure
 * 4.0 - Header
 * 5.0 - Content
 * 6.0 - Sidebar
 * 7.0 - Footer
 * 8.0 - Media Queries
 * ----------------------------------------------------------------------------
 */

/**
 * 1.0 Modern Reset & Base Styles
 * Using modern CSS best practices
 * ----------------------------------------------------------------------------
 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Modern HTML5 elements - no longer need display:block declaration in modern browsers */

html {
	font-size: 100%;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	color: #141412;
	font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	line-height: 1.5;
	margin: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Modern link styles */
a {
	color: #ca3c08;
	text-decoration: none;
	transition: color 0.2s ease;
}

a:visited {
	color: #ac0404;
}

a:hover,
a:focus {
	color: #ea9629;
	outline-offset: 2px;
}

a:hover {
	text-decoration: underline;
}

/* Focus visible for better accessibility */
a:focus-visible {
	outline: 2px solid #ea9629;
	outline-offset: 2px;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	font-family: Bitter, Georgia, serif;
	line-height: 1.3;
	font-weight: 400;
}

h1 {
	font-size: clamp(32px, 5vw, 48px);
	margin: 33px 0;
}

h2 {
	font-size: clamp(24px, 4vw, 30px);
	margin: 25px 0;
}

h3 {
	font-size: clamp(20px, 3vw, 22px);
	margin: 22px 0;
}

h4 {
	font-size: 20px;
	margin: 25px 0;
}

h5 {
	font-size: 18px;
	margin: 30px 0;
}

h6 {
	font-size: 16px;
	margin: 36px 0;
}

/* Text elements */
p {
	margin: 0 0 24px;
}

b,
strong {
	font-weight: 700;
}

mark {
	background: #ff0;
	color: #000;
}

code,
kbd,
pre,
samp {
	font-family: "Courier New", Courier, monospace;
	font-size: 14px;
}

pre {
	background: #f5f5f5;
	color: #666;
	font-size: 14px;
	margin: 20px 0;
	overflow: auto;
	padding: 20px;
	white-space: pre-wrap;
	word-wrap: break-word;
	border-radius: 4px;
}

blockquote {
	font-size: 18px;
	font-style: italic;
	font-weight: 300;
	margin: 24px 40px;
	quotes: none;
}

blockquote cite,
blockquote small {
	font-size: 14px;
	font-weight: 400;
	text-transform: uppercase;
}

/* Lists */
ul {
	list-style-type: disc;
}

menu,
ol,
ul {
	margin: 16px 0;
	padding: 0 0 0 40px;
}

nav ul,
nav ol {
	list-style: none;
	padding: 0;
}

li > ul,
li > ol {
	margin: 0;
}

/* Media */
img,
video {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

svg {
	max-width: 100%;
}

/* Forms - Modern styling */
button,
input,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	margin: 0;
	max-width: 100%;
}

button,
input,
textarea {
	border: 2px solid #d4d0ba;
	padding: 8px 12px;
	border-radius: 4px;
	transition: border-color 0.2s ease;
}

input:focus,
textarea:focus {
	border-color: #c3c0ab;
	outline: 2px solid #ea9629;
	outline-offset: 2px;
}

/* Modern button styles */
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
	background: linear-gradient(to bottom, #e05d22 0%, #d94412 100%);
	border: none;
	border-radius: 4px;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	padding: 11px 24px;
	text-decoration: none;
	transition: all 0.2s ease;
	font-weight: 600;
}

button:hover,
button:focus,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
	background: linear-gradient(to bottom, #ed6a31 0%, #e55627 100%);
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

button:active,
input[type="submit"]:active,
input[type="button"]:active,
input[type="reset"]:active {
	transform: translateY(0);
	box-shadow: none;
}

/* Placeholder text */
::placeholder {
	color: #7d7b6d;
	opacity: 1;
}

/* Tables */
table {
	border-collapse: collapse;
	border-spacing: 0;
	width: 100%;
	margin: 0 0 20px;
}

th {
	font-weight: 700;
	text-transform: uppercase;
	text-align: left;
}

td {
	border-top: 1px solid #ededed;
	padding: 6px 10px 6px 0;
}

/* Horizontal rule */
hr {
	border: 0;
	border-top: 1px dashed #d4d0ba;
	margin: 24px 0;
}

/**
 * 2.0 Repeatable Patterns
 * ----------------------------------------------------------------------------
 */

/* Clearfix using modern approach */
.clear::after,
.entry-content::after,
.page-content::after,
.navigation::after,
.gallery::after,
.comment-body::after {
	content: "";
	display: table;
	clear: both;
}

/* Screen reader text - WCAG compliant */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: 700;
	height: auto;
	width: auto;
	line-height: normal;
	padding: 15px 23px 14px;
	position: absolute;
	left: 5px;
	top: 5px;
	text-decoration: none;
	z-index: 100000;
}

/* Responsive images */
.entry-content img,
.entry-summary img,
.comment-content img,
.widget img,
.wp-caption {
	max-width: 100%;
	height: auto;
}

/* Image alignment */
.alignleft {
	float: left;
	margin: 5px 20px 5px 0;
}

.alignright {
	float: right;
	margin: 5px 0 5px 20px;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignnone {
	margin: 5px 0;
}

/* Captions */
.wp-caption-text,
.entry-caption,
.gallery-caption {
	color: #220e10;
	font-size: 18px;
	font-style: italic;
	font-weight: 300;
	margin: 0 0 24px;
}

/**
 * 3.0 Basic Structure
 * ----------------------------------------------------------------------------
 */

.site {
	background-color: #fff;
	margin: 0 auto;
	max-width: 1600px;
	width: 100%;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.site-main {
	position: relative;
}

.site-main .sidebar-container {
	height: 0;
	position: absolute;
	top: 40px;
	width: 100%;
	z-index: 1;
}

.site-main .sidebar-inner {
	margin: 0 auto;
	max-width: 1040px;
}

/**
 * 4.0 Header
 * ----------------------------------------------------------------------------
 */

/* Minibar */
#minibar,
#mobile-minibar {
	background: #333;
	font-size: 0.875em;
	height: 2.2em;
	padding: 0 0.4em;
	overflow: hidden;
	width: 100%;
}

#mobile-minibar {
	display: none;
}

#minibar a,
#mobile-minibar a {
	color: #fff;
	line-height: 2.2em;
	transition: color 0.2s ease;
}

#minibar a:hover {
	color: #ccc;
}

#minibar input[type="search"],
#mobile-minibar input[type="search"] {
	font-size: 1em;
	padding: 0 0.2em;
	outline: none;
	border-radius: 0.25em;
	border: 0;
	color: #000;
	height: 1.675em;
	width: 11.2em;
	margin-top: 0.25em;
	margin-left: 1.7em;
	display: inline;
}

.inline-list {
	margin: 0 auto 1.0625em auto;
	padding: 0;
	list-style: none;
	overflow: hidden;
	display: flex;
	flex-wrap: wrap;
	gap: 1.375em;
}

.inline-list > li {
	list-style: none;
	display: block;
}

/* Site Header */
.site-header {
	position: relative;
	background: #3a4958;
}

.site-header .left,
.site-header .right {
	background: #3a4958;
	min-height: 230px;
	width: 100%;
}

.site-header .home-link {
	color: #fff;
	display: block;
	margin: 0 auto;
	max-width: 1080px;
	padding: 0 20px;
	text-decoration: none;
}

.site-header .home-link:hover {
	color: #fff;
}

.site-header .site-title:hover {
	text-decoration: underline;
}

.site-title {
	font-size: clamp(30px, 5vw, 45px);
	font-weight: 700;
	line-height: 1;
	margin: 0 auto;
	padding: 58px 0 10px;
}

.site-description {
	font-family: "Source Sans Pro", sans-serif;
	font-size: clamp(18px, 3vw, 24px);
	font-weight: 300;
	font-style: italic;
	margin: 0;
}

.wordmark {
	margin: 0 auto;
	padding: 58px 0;
}

/* Navigation */
.main-navigation {
	clear: both;
	margin: 0 auto;
	max-width: 1080px;
	min-height: 45px;
	position: relative;
}

ul.nav-menu,
div.nav-menu > ul {
	margin: 0;
	padding: 0 40px 0 0;
}

.nav-menu li {
	display: inline-block;
	position: relative;
}

.nav-menu li a {
	color: #fff;
	display: block;
	font-size: 20px;
	line-height: 1;
	padding: 15px 20px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.nav-menu li:hover > a,
.nav-menu li a:hover,
.nav-menu li:focus-within > a {
	background-color: #fff;
	color: #ea6a20;
}

.nav-menu .sub-menu,
.nav-menu .children {
	background-color: #ededed;
	border: 2px solid #f7f5e7;
	border-top: 0;
	padding: 0;
	position: absolute;
	left: -2px;
	z-index: 99999;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:hover > .children,
.nav-menu li:focus-within > .sub-menu,
.nav-menu li:focus-within > .children {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav-menu .sub-menu ul,
.nav-menu .children ul {
	border-left: 0;
	left: 100%;
	top: 0;
}

ul.nav-menu ul a,
.nav-menu ul ul a {
	color: #333;
	margin: 0;
	width: 200px;
}

ul.nav-menu ul a:hover,
.nav-menu ul ul a:hover {
	background-color: #f7f5e7;
}

.nav-menu .current_page_item > a,
.nav-menu .current_page_ancestor > a,
.nav-menu .current-menu-item > a,
.nav-menu .current-menu-ancestor > a {
	color: #ea6a20;
	background-color: #fff;
	font-style: italic;
}

.menu-toggle {
	display: none;
}

.navbar {
	background-color: #ea6a20;
	margin: 0 auto;
	max-width: 1600px;
	width: 100%;
}

/* Search form */
.site-header .search-form {
	position: absolute;
	right: 20px;
	top: 1px;
}

.site-header .search-field {
	background-color: transparent;
	background-image: url(images/search-icon.png);
	background-position: 5px center;
	background-repeat: no-repeat;
	background-size: 24px 24px;
	border: none;
	cursor: pointer;
	height: 37px;
	margin: 3px 0;
	padding: 0 0 0 34px;
	position: relative;
	transition: width 0.4s ease, background 0.4s ease;
	width: 1px;
}

.site-header .search-field:focus {
	background-color: #fff;
	border: 2px solid #c3c0ab;
	cursor: text;
	width: 230px;
}

/**
 * 5.0 Content
 * ----------------------------------------------------------------------------
 */

.hentry {
	padding: 40px 0;
}

.entry-header,
.entry-content,
.entry-summary,
.entry-meta {
	margin: 0 auto;
	max-width: 1080px;
	width: 100%;
	padding: 0 16px;
}

/* Entry styles */
.entry-header {
	margin-bottom: 30px;
}

.entry-title {
	font-weight: 400;
	margin: 0 0 5px;
}

.entry-title a {
	color: #141412;
	transition: color 0.2s ease;
}

.entry-title a:hover {
	color: #ea9629;
}

/* Entry meta */
.entry-meta {
	clear: both;
	font-size: 14px;
}

.entry-meta a {
	color: #bc360a;
	transition: color 0.2s ease;
}

.entry-meta a:hover {
	color: #ea9629;
}

.entry-meta > span {
	margin-right: 20px;
}

.entry-meta > span:last-child {
	margin-right: 0;
}

/* Entry content */
.entry-content {
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.entry-content a,
.comment-content a {
	color: #bc360a;
}

.entry-content a:hover,
.comment-content a:hover {
	color: #ea9629;
}

/* Galleries */
.gallery {
	margin-bottom: 20px;
	display: grid;
	grid-gap: 4px;
}

.gallery-columns-1 {
	grid-template-columns: 1fr;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-item {
	overflow: hidden;
	position: relative;
}

.gallery-caption {
	background-color: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-size: 14px;
	line-height: 1.3;
	margin: 0;
	opacity: 0;
	padding: 8px;
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
	opacity: 1;
}

/**
 * 6.0 Sidebar & Widgets
 * ----------------------------------------------------------------------------
 */

.site-main .widget-area {
	float: right;
	width: 300px;
}

.widget {
	background-color: rgba(247, 245, 231, 0.7);
	font-size: 14px;
	margin: 0 0 24px;
	padding: 20px;
	border-radius: 4px;
	word-wrap: break-word;
}

.widget-title {
	font-family: "Source Sans Pro", sans-serif;
	font-size: 20px;
	font-weight: 300;
	font-style: italic;
	margin: 0 0 10px;
}

.widget ul,
.widget ol {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

.widget li {
	padding: 5px 0;
}

.widget a {
	color: #bc360a;
	transition: color 0.2s ease;
}

.widget a:hover {
	color: #ea9629;
}

/**
 * 7.0 Footer
 * ----------------------------------------------------------------------------
 */

.site-footer {
	background-color: #3a4958;
	color: #fff;
	font-size: 14px;
	text-align: center;
	padding: 20px 0;
}

.site-footer a {
	color: #fff;
	transition: color 0.2s ease;
}

.site-footer a:hover {
	color: #ea9629;
}

.site-info {
	margin: 0 auto;
	max-width: 1040px;
	padding: 30px 20px;
	width: 100%;
}

/**
 * 8.0 Modern Responsive Media Queries
 * Using modern breakpoint approach
 * ----------------------------------------------------------------------------
 */

/* Tablet and below */
@media (max-width: 768px) {
	.site-header .left,
	.site-header .right {
		width: 100%;
		text-align: center;
		min-height: 0;
	}

	.wordmark {
		padding: 10px;
	}

	.site-title {
		padding: 8px 0 10px;
	}

	.entry-content .alignleft,
	.entry-content .alignright {
		float: none;
		margin-left: 0;
		margin-right: 0;
	}
}

/* Mobile */
@media (max-width: 643px) {
	.entry-header,
	.entry-content,
	.entry-summary,
	.entry-meta {
		padding-left: 20px;
		padding-right: 20px;
	}

	/* Mobile menu */
	.menu-toggle {
		cursor: pointer;
		display: inline-block;
		font-weight: 700;
		font-size: 16px;
		margin: 0;
		padding: 12px 20px;
		background: transparent;
		border: none;
		color: #141412;
	}

	.menu-toggle:hover,
	.menu-toggle:focus {
		background: transparent;
		color: #ea6a20;
	}

	.toggled-on .nav-menu {
		display: block;
		margin-left: 0;
		padding: 0;
		width: 100%;
	}

	.toggled-on li {
		display: block;
	}

	.toggled-on .nav-menu li a {
		width: 100%;
	}

	ul.nav-menu,
	div.nav-menu > ul {
		display: none;
	}
}

/* Very small mobile */
@media (max-width: 359px) {
	.gallery {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

/* Print styles */
@media print {
	body {
		background: none !important;
		color: #000;
		font-size: 10pt;
	}

	.site-footer,
	.comment-respond,
	.widget-area,
	.main-navigation,
	.navbar {
		display: none;
	}

	.site-title {
		color: #000;
		font-size: 21pt;
	}
}