/*
Theme Name: PHM-DVT
Description: Custom WordPress theme for PHM Digital Video Theater / Planetarium
Version: 1.0
Author: Rich Lester
*/

/* Reset and base styles */
body {background-color:#EBEBEB; background-image: url('/wp-content/themes/PHM-DVT/images/CenterOfTheMilkyWayGalaxy.jpg'); background-size: cover; background-repeat: no-repeat; background-attachment: fixed;}
h1 {font-weight: 800 !important;}
.nav-previous a:hover,.nav-next a:hover,#commentform input#submit,#searchform input[type="submit"],.home_menu_item,.secondary-navigation a:hover, .post-date-ribbon,.currenttext, .pagination a:hover,.readMore a,.mts-subscribe input[type="submit"] {background-color:#106ACA; }
#tabber .inside li .meta b,footer .widget li a:hover,.fn a,.reply a,#tabber .inside li div.info .entry-title a:hover, #navigation ul ul a:hover,.single_post a, a:hover, .textwidget a, #commentform a, #tabber .inside li a, .copyrights a:hover, a, .sidebar.c-4-12 a:hover, .top a:hover {color:#106ACA; }
.corner {border-color: transparent transparent #106ACA transparent;}
.secondary-navigation { 
    background-color: #5B8FC5;
    padding: 0;
    margin: 0;
}

footer { 
    background-color: rgba(91, 143, 197, 0.95);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.sidebar #searchform input[type="submit"]:hover, .readMore a:hover, #commentform input#submit:hover { 
    background-color: #5B8FC5; 
}

.footer-widgets {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widgets .f-widget {
    flex: 1;
}

.footer-widgets h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.footer-widgets a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-widgets a:hover {
    color: white;
    text-decoration: underline;
}

.copyrights {
    background-color: rgba(16, 106, 202, 0.95);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

#copyright-note {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.copyrights a {
    color: white;
    text-decoration: none;
}

.copyrights a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.copyrights .top {
    margin-left: 20px;
}

.copyrights .top a {
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: background-color 0.3s;
    display: inline-block;
}

.copyrights .top a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-login-link {
    font-size: 0.9em;
    opacity: 0.9;
}

.footer-login-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.yd_linkware {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.yd_linkware a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.yd_linkware a:hover {
    color: white;
}

/* Custom CSS */
.main-header #header {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    text-align: center;
}

.main-header #logo {
    margin: 0;
    font-size: 2.5rem;
    color: #333;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.main-header #logo a {
    color: #333;
    text-decoration: none;
}

/* Content Area */
.content {
	padding: 30px 0;
}

.content .row {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}

.article {
	background: white;
	padding: 30px;
	border-radius: 5px;
	margin-bottom: 20px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.article.col-md-8 {
	flex: 0 0 calc(66.666% - 15px);
	max-width: calc(66.666% - 15px);
}

.col-md-8 {
	flex: 0 0 calc(66.666% - 15px);
	max-width: calc(66.666% - 15px);
	overflow: hidden;
}

#content_box {
	background: white;
}

#content_box > h1 > span {
	background: white;
    width: 98%;
    float: left;
    margin-bottom: 20px;
    padding: 5px;
    text-align: center;
    border: 1px solid #cdcdcd;    
}

/* Sidebar */
.sidebar{
  background: white;
  border: 1px solid #cdcdcd;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar.col-md-4 {
	flex: 0 0 calc(33.333% - 40px);
	max-width: calc(33.333% - 15px);
}

.sidebar .widget {
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e0e0e0;
}

.sidebar-featured-image {
	margin: -20px -20px 20px -20px !important;
	padding: 0 !important;
	border-bottom: none !important;
}

.sidebar-featured-image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 5px 5px 0 0;
}

.sidebar .widget:last-child {
	border-bottom: none;
}

.sidebar h3 {
	color: #106ACA;
	font-size: 1.2rem;
	margin-bottom: 15px;
}

.sidebar ul,
.sidebar .sidebar_list {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.sidebar li {
	list-style: none;
}

/* Search Form Styling */
.search-form {
	margin-top: 10px;
}

.search-form .input-group {
	display: flex;
	width: 100%;
}

.search-form .form-control {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid #cdcdcd;
	border-radius: 4px 0 0 4px;
	font-size: 14px;
}

.search-form .form-control:focus {
	outline: none;
	border-color: #106ACA;
	box-shadow: 0 0 0 0.2rem rgba(16, 106, 202, 0.25);
}

.search-form .btn {
	padding: 8px 20px;
	border: none;
	background-color: #106ACA;
	color: white;
	border-radius: 0 4px 4px 0;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.3s;
}

.search-form .btn:hover {
	background-color: #5B8FC5;
}

/* Archive & Category Pages */
.archive-header {
	background: white;
	padding: 20px 25px;
	border-radius: 5px;
	margin-bottom: 30px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.archive-title {
	color: #106ACA;
	font-size: 1.8rem;
	margin-bottom: 15px;
	font-weight: 600;
}

.archive-description {
	color: #666;
	font-size: 1rem;
	line-height: 1.6;
	margin: 0;
}

/* Post Card Styling for Archive Pages */
.post-card {
	background: white;
	border: 1px solid #cdcdcd;
	border-radius: 5px;
	overflow: hidden;
	margin-bottom: 30px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	transition: transform 0.3s, box-shadow 0.3s;
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	max-width: 100%;
}

.post-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.post-card .post-thumbnail {
	width: 300px;
	flex-shrink: 0;
	overflow: hidden;
	background: #f5f5f5;
}

.post-card .post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.post-card:hover .post-thumbnail img {
	transform: scale(1.05);
}

.post-card .post-content {
	flex: 1;
	padding: 20px;
	display: flex;
	flex-direction: column;
}

.post-card .post-title {
	font-size: 1.5rem;
	margin: 0 0 10px 0;
	line-height: 1.3;
}

.post-card .post-title a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s;
}

.post-card .post-title a:hover {
	color: #106ACA;
}

.post-date-ribbon {
	background-color: #106ACA;
	color: white;
	padding: 5px 15px;
	display: inline-block;
	border-radius: 4px;
	font-size: 0.85rem;
	font-weight: 600;
	margin: 0 0 10px 0;
}

.post-meta {
	font-size: 0.9rem;
	color: #666;
	margin: 10px 0;
}

.post-meta a {
	color: #106ACA;
	text-decoration: none;
}

.post-meta a:hover {
	text-decoration: underline;
}

.post-card .post-excerpt {
	color: #666;
	line-height: 1.6;
	margin: 15px 0;
	font-size: 0.95rem;
	flex: 1;
}

.post-card .read-more-btn {
	background-color: #106ACA;
	border: none;
	padding: 10px 30px;
	font-weight: 500;
	transition: background-color 0.3s;
	margin: 0;
	display: inline-block;
	text-decoration: none;
	color: white;
	border-radius: 4px;
	align-self: flex-start;
}

.post-card .read-more-btn:hover {
	background-color: #5B8FC5;
	color: white;
}

/* Responsive: Stack post cards vertically on smaller screens */
@media (max-width: 768px) {
	.content .row {
		gap: 0;
		margin: 0;
	}
	
	.post-card {
		flex-direction: column;
	}
	
	.post-card .post-thumbnail {
		width: 100%;
		height: 250px;
	}
	
	.col-md-8, .col-md-4 {
		flex: 0 0 100% !important;
		max-width: 100% !important;
	}
	
	/* Main content takes full width on mobile */
	.article.col-md-8 {
		flex: 0 0 100% !important;
		max-width: 100% !important;
		margin: 0;
		padding: 20px 15px;
	}
	
	.sidebar.col-md-4 {
		flex: 0 0 100% !important;
		max-width: 100% !important;
	}
	
	/* Mobile-friendly sidebar - flows underneath */
	.sidebar {
		margin-top: 20px;
		padding: 15px;
	}
	
	.sidebar .widget {
		padding: 15px;
		margin-bottom: 15px;
	}
	
	.sidebar h3 {
		font-size: 1.2rem;
	}
	
	/* Improve touch targets for mobile */
	.sidebar a {
		display: inline-block;
		padding: 8px 0;
		min-height: 44px;
	}
}

/* Pagination */
.pagination-wrapper {
	margin-top: 30px;
	text-align: center;
}

.pagination {
	display: inline-flex;
	gap: 5px;
}

.page-numbers {
	padding: 8px 15px;
	background: white;
	border: 1px solid #cdcdcd;
	border-radius: 4px;
	color: #106ACA;
	text-decoration: none;
	transition: all 0.3s;
}

.page-numbers:hover,
.page-numbers.current {
	background-color: #106ACA;
	color: white;
	border-color: #106ACA;
}

/* Single Post Styles */
.entry-header {
	padding-bottom: 20px;
}

.entry-title {
	font-size: 2.2rem;
	margin-bottom: 15px;
	line-height: 1.3;
}

.entry-meta {
	color: #666;
	font-size: 0.95rem;
}

.entry-meta a {
	color: #106ACA;
	text-decoration: none;
}

.entry-meta a:hover {
	text-decoration: underline;
}

.entry-content {
	line-height: 1.8;
	font-size: 1rem;
}

.entry-content p {
	margin-bottom: 1.5rem;
}

.entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 5px;
	margin: 20px 0;
}

.entry-footer {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid #e0e0e0;
}

.post-navigation {
	display: flex;
	justify-content: space-between;
	gap: 20px;
}

.post-navigation a {
	flex: 1;
	padding: 15px;
	background: #f5f5f5;
	border-radius: 5px;
	text-decoration: none;
	color: #333;
	transition: background-color 0.3s;
}

.post-navigation a:hover {
	background: #106ACA;
	color: white;
}

.nav-subtitle {
	display: block;
	font-size: 0.85rem;
	color: #666;
	margin-bottom: 5px;
}

.post-navigation a:hover .nav-subtitle {
	color: rgba(255,255,255,0.8);
}

/* Additional styles */
.getty.aligncenter {
    text-align: center;
}
.getty.alignleft {
    float: none;
    margin-right: 0;
}
.getty.alignleft > div {
    float: left;
    margin-right: 5px;
}
.getty.alignright {
    float: none;
    margin-left: 0;
}
.getty.alignright > div {
    float: right;
    margin-left: 5px;
}

/* Bootstrap Nav Styles */
.navbar {
    padding: 0;
    margin: 0;
    position: relative;
}

.navbar-toggler {
    display: none;
    background: transparent;
    border: 2px solid white;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
}

.navbar-toggler-icon {
    display: block;
    width: 25px;
    height: 2px;
    /* background-color: white; */
    position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    display: block;
    width: 25px;
    height: 2px;
    /* background-color: white; */
    position: absolute;
    left: 0;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    bottom: -8px;
}

.navbar-collapse {
    display: block;
}

.navbar-nav {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.navbar-nav .menu-item {
  position: relative;
  display: inline-block;
}

.navbar-nav .menu-item a {
  display: block;
  padding: 15px 20px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
}

.navbar-nav .menu-item a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.navbar-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #cdcdcd;
  padding: 0;
  list-style: none;
  min-width: 220px;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.navbar-nav .menu-item:hover > .sub-menu {
  display: block;
}

.navbar-nav .sub-menu .menu-item {
  display: block;
  position: relative;
}

.navbar-nav .sub-menu .menu-item a {
  padding: 12px 20px;
  white-space: nowrap;
  color: #333;
  display: block;
}

.navbar-nav .sub-menu .menu-item a:hover {
  background-color: #5B8FC5;
  color: white;
}

/* Nested submenus (third level and beyond) */
.navbar-nav .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  margin-left: -1px;
}

.navbar-nav .sub-menu .menu-item:hover > .sub-menu {
  display: block;
}

/* Mobile styles */
@media (max-width: 991px) {
  .navbar-toggler {
    display: block;
  }
  
  .navbar-collapse {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #5B8FC5;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  
  .navbar-collapse.show {
    display: block;
  }
  
  .navbar-nav {
    display: block;
    width: 100%;
  }
  
  .navbar-nav .menu-item {
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .navbar-nav .menu-item a {
    padding: 12px 20px;
  }
  
  .navbar-nav .sub-menu {
    position: static;
    display: none;
    background: rgba(0,0,0,0.1);
    border: none;
    padding-left: 0;
  }
  
  .navbar-nav .menu-item.show-submenu > .sub-menu {
    display: block;
  }
  
  .navbar-nav .sub-menu .menu-item a {
    padding-left: 40px;
    color: white;
  }
  
  .navbar-nav .sub-menu .sub-menu .menu-item a {
    padding-left: 60px;
  }
  
  /* Dropdown indicator for parent items */
  .navbar-nav .menu-item-has-children > a::after {
    content: ' ▼';
    font-size: 0.75em;
    margin-left: 5px;
  }
  
  .navbar-nav .menu-item.show-submenu > a::after {
    content: ' ▲';
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
	/* Adjust footer for very small screens */
	.footer-widgets {
		flex-direction: column;
		gap: 20px;
	}
	
	#copyright-note {
		flex-direction: column;
		gap: 15px;
		text-align: center;
	}
	
	.copyrights .top {
		margin-left: 0;
	}
}