/*
Theme Name:   shuttle child theme
Description:  Write here a brief description about your child-theme
Author:       LinkCentre
Author URL:   Write here the author's blog or website url
Template:     shuttle
Version:      1.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  shuttle-child
*/

/* Professional News Page Styling - Matching Testimonials Design */

/* Fix header margin */
header {
  margin: 0 0 2em 0 !important;
}

/* Fix search banner overflow issue */
#ccol.home #search_banner {
  height: auto !important;
  overflow: visible !important;
  min-height: auto !important;
}

#ccol.home #search_banner #searchbox form {
  height: auto !important;
  overflow: visible !important;
}

#ccol.home.inner-home #search_banner {
  height: auto !important;
  overflow: visible !important;
  min-height: auto !important;
}

/* Force visibility and proper layout */
#wrapper {
  min-height: 100vh !important;
  display: block !important;
  overflow: visible !important;
}

/* Full-width layout for search results, single posts, and archives */
body.search #body-core,
body.search-results #body-core,
body.single #body-core,
body.single-post #body-core,
body.archive #body-core,
body.blog #body-core,
body.home #body-core {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: block !important;
  clear: both !important;
  overflow: visible !important;
}

body.search #content,
body.search-results #content,
body.single #content,
body.single-post #content,
body.archive #content,
body.blog #content,
body.home #content {
  width: 100% !important;
  float: none !important;
  display: block !important;
  clear: both !important;
}

body.search #content-core,
body.search-results #content-core,
body.single #content-core,
body.single-post #content-core,
body.archive #content-core,
body.blog #content-core,
body.home #content-core {
  width: 100% !important;
  float: none !important;
  display: block !important;
  clear: both !important;
}

body.search #main,
body.search-results #main,
body.single #main,
body.single-post #main,
body.archive #main,
body.blog #main,
body.home #main {
  width: 100% !important;
  float: none !important;
  display: block !important;
  clear: both !important;
}

body.search #main-core,
body.search-results #main-core,
body.single #main-core,
body.single-post #main-core,
body.archive #main-core,
body.blog #main-core,
body.home #main-core {
  width: 100% !important;
  max-width: 1200px !important;
  float: none !important;
  margin: 0 auto !important;
  padding: 20px !important;
  display: block !important;
  visibility: visible !important;
  min-height: 500px !important;
  clear: both !important;
}

body.search #container,
body.search-results #container,
body.single #container,
body.single-post #container,
body.archive #container,
body.blog #container,
body.home #container {
  width: 100% !important;
  float: none !important;
  margin: 0 auto !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1 !important;
  clear: both !important;
}

/* Hide sidebar on all news pages */
body.search #sidebar,
body.search-results #sidebar,
body.search .sidebar,
body.search-results .sidebar,
body.single #sidebar,
body.single-post #sidebar,
body.single .sidebar,
body.single-post .sidebar,
body.archive #sidebar,
body.blog #sidebar,
body.home #sidebar,
body.archive .sidebar,
body.blog .sidebar,
body.home .sidebar {
  display: none !important;
}

body.search.layout-sidebar-right #main-core,
body.search.layout-sidebar-left #main-core,
body.search-results.layout-sidebar-right #main-core,
body.search-results.layout-sidebar-left #main-core,
body.single.layout-sidebar-right #main-core,
body.single.layout-sidebar-left #main-core,
body.single-post.layout-sidebar-right #main-core,
body.single-post.layout-sidebar-left #main-core,
body.archive.layout-sidebar-right #main-core,
body.archive.layout-sidebar-left #main-core,
body.blog.layout-sidebar-right #main-core,
body.blog.layout-sidebar-left #main-core,
body.home.layout-sidebar-right #main-core,
body.home.layout-sidebar-left #main-core {
  width: 100% !important;
  max-width: 1200px !important;
  float: none !important;
}

/* Ensure proper wrapping after search banner */
body.search #ccol.home.inner-home,
body.search-results #ccol.home.inner-home,
body.single #ccol.home.inner-home,
body.single-post #ccol.home.inner-home,
body.archive #ccol.home.inner-home,
body.blog #ccol.home.inner-home,
body.home #ccol.home.inner-home {
  width: 100% !important;
  float: none !important;
  clear: both !important;
  margin-bottom: 20px !important;
}

#main-core {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 20px !important;
  display: block !important;
  visibility: visible !important;
  min-height: 500px !important;
}

#container {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Search Results Header */
.page-header,
.archive-header,
.search-header {
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  padding: 30px;
  text-align: center;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-title,
.archive-title,
.search-title,
.page-header h1,
.archive-header h1 {
  font-size: 28px !important;
  font-weight: 600 !important;
  margin-bottom: 10px !important;
  color: #00498f !important;
  line-height: 1.3 !important;
}

.taxonomy-description,
.search-description {
  font-size: 16px;
  color: #666;
  margin-top: 10px;
}

/* Article Grid Layout */
.hfeed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  align-items: start;
  justify-items: stretch;
  width: 100%;
}

/* Individual Article Cards */
article.post,
article.hentry {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  margin-bottom: 2em !important;
}

article.post:hover,
article.hentry:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

/* Article Header */
.entry-header {
  padding: 25px 30px 15px !important;
  margin: 0 !important;
  border-bottom: 1px solid #f0f0f0;
}

.entry-title {
  font-size: 22px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  margin: 0 0 15px 0 !important;
}

.entry-title a {
  color: #333 !important;
  text-decoration: none !important;
  transition: color 0.3s ease;
}

.entry-title a:hover {
  color: #00498f !important;
}

/* Entry Meta (Date, Author, Categories) */
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
  color: #777;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
}

.entry-meta a {
  color: #00498f;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.entry-meta .posted-on,
.entry-meta .byline,
.entry-meta .cat-links,
.entry-meta .tags-links {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.entry-meta .posted-on::before {
  content: "📅";
  font-size: 14px;
}

.entry-meta .byline::before {
  content: "✍️";
  font-size: 14px;
}

.entry-meta .cat-links::before {
  content: "📁";
  font-size: 14px;
}

/* Article Content */
.entry-content,
.entry-summary {
  padding: 20px 30px !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #555 !important;
}

.entry-content p,
.entry-summary p {
  margin-bottom: 15px;
}

.entry-summary {
  display: block;
  text-align: left;
  overflow: hidden;
}

.entry-summary .more-link {
  display: block;
  margin-top: 15px;
  float: right;
  clear: right;
}

/* Featured Images */
.post-thumbnail {
  margin: 0 !important;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

article:hover .post-thumbnail img {
  transform: scale(1.05);
}

/* Read More Links */
.more-link,
.entry-footer a {
  display: inline-block;
  padding: 10px 20px;
  background: #00498f !important;
  color: white !important;
  text-decoration: none !important;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.more-link:hover,
.entry-footer a:hover {
  background: #003366 !important;
  color: white !important;
  text-decoration: none !important;
  transform: translateX(5px);
}

.more-link:visited,
.entry-footer a:visited {
  background: #00498f !important;
  color: white !important;
  text-decoration: none !important;
  transform: none;
}

.more-link:active,
.entry-footer a:active {
  background: #00498f !important;
  color: white !important;
  text-decoration: none !important;
}

.more-link:link,
.entry-footer a:link {
  color: white !important;
  text-decoration: none !important;
}

/* Entry Footer */
.entry-footer {
  padding: 15px 30px 25px !important;
  border-top: 1px solid #f0f0f0;
  font-size: 13px;
  color: #777;
}

/* Back to news headlines link */
article > a[href="/news/"] {
  display: block;
  padding: 20px 30px;
  margin-top: 20px;
  border-top: 1px solid #f0f0f0;
  color: #00498f !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

article > a[href="/news/"]:hover {
  color: #003366 !important;
  text-decoration: none !important;
}

article > a[href="/news/"]:visited {
  color: #00498f !important;
  text-decoration: none !important;
}

/* Pagination */
.navigation.pagination,
.posts-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 40px 0;
  padding: 20px 0;
}

.nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.page-numbers,
.nav-previous a,
.nav-next a {
  padding: 10px 20px !important;
  background: white !important;
  border: 1px solid #ddd !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  color: #333 !important;
  transition: all 0.3s ease !important;
  font-weight: 500 !important;
  display: inline-block !important;
}

.page-numbers:hover,
.nav-previous a:hover,
.nav-next a:hover {
  background: #00498f !important;
  color: white !important;
  border-color: #00498f !important;
}

.page-numbers.current {
  background: #00498f !important;
  color: white !important;
  border-color: #00498f !important;
}

/* Sidebar Widgets */
.widget {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 25px;
  margin-bottom: 25px;
  border: 1px solid #e9ecef;
}

.widget-title,
.widget h3 {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #333 !important;
  margin-bottom: 20px !important;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

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

.widget ul li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
}

.widget ul li a:hover {
  color: #00498f;
  padding-left: 5px;
}

/* Search Widget */
.widget_search .search-form {
  display: flex;
  gap: 10px;
}

.widget_search .search-field {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.widget_search .search-submit {
  padding: 10px 20px;
  background: #00498f;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.widget_search .search-submit:hover {
  background: #003366;
}

/* No Results Page */
.no-results {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 40px;
  text-align: center;
}

.no-results .page-title {
  color: #00498f;
  margin-bottom: 20px;
}

.no-results .page-content {
  color: #666;
  font-size: 16px;
  line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  #main-core {
    padding: 15px;
  }
  
  .page-header,
  .archive-header,
  .search-header {
    padding: 20px;
  }
  
  .page-title,
  .archive-title,
  .search-title,
  .page-header h1 {
    font-size: 22px !important;
  }
  
  .entry-header,
  .entry-content,
  .entry-summary,
  .entry-footer {
    padding: 15px 20px !important;
  }
  
  .entry-title {
    font-size: 18px !important;
  }
  
  .entry-meta {
    font-size: 12px;
    gap: 10px;
  }
}

/* Override Theme Defaults */
#content-core {
  background: transparent !important;
}

#main {
  background: transparent !important;
}

/* Ensure proper spacing */
.site-content {
  padding-top: 20px;
}

/* Category and Tag Badges */
.cat-links a,
.tags-links a {
  display: inline-block;
  padding: 4px 10px;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 5px;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.cat-links a:hover,
.tags-links a:hover {
  background: #00498f;
  color: white !important;
}

/* ============================================
   PROFESSIONAL NEWS CARDS - Matching new-home Design
   ============================================ */

/* Hero Section */
.news-hero {
  background: linear-gradient(135deg, #00498f 0%, #003870 100%) !important;
  padding: 50px 20px !important;
  text-align: center !important;
  margin-bottom: 40px !important;
  border-radius: 0 !important;
}

.news-hero h1 {
  color: #00498f !important;
  font-size: 36px !important;
  font-weight: 700 !important;
  margin: 0 0 12px 0 !important;
  text-shadow: none !important;
}

.news-hero p {
  color: #555 !important;
  font-size: 16px !important;
  margin: 0 !important;
}

/* Main Container */
.news-container-main {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px 40px !important;
  float: none !important;
}

/* Cards Grid Layout */
.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

/* Card Link Wrapper */
.news-card-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
}

.news-card-link:hover,
.news-card-link:visited,
.news-card-link:focus {
  text-decoration: none !important;
}

/* Individual News Card */
.news-card {
  background: white !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid #f0f0f0 !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.news-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 12px 30px rgba(0,73,143,0.15) !important;
  border-color: #00498f !important;
}

/* Card Image */
.news-card-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.news-card-image {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.3s ease !important;
}

.news-card:hover .news-card-image {
  transform: scale(1.05) !important;
}

/* Card Content */
.news-card-content {
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  min-height: 180px !important;
}

/* Card Title */
.news-card-title {
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #00498f !important;
  line-height: 1.4 !important;
  margin: 0 0 12px 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.news-card:hover .news-card-title {
  color: #003870 !important;
}

/* Card Excerpt */
.news-card-excerpt {
  font-size: 14px !important;
  color: #666 !important;
  line-height: 1.6 !important;
  flex-grow: 1 !important;
  margin-bottom: 15px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* Card Footer */
.news-card-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding-top: 15px !important;
  border-top: 1px solid #f0f0f0 !important;
  margin-top: auto !important;
}

.news-card-date {
  font-size: 13px !important;
  color: #777 !important;
}

.news-card-category {
  font-size: 11px !important;
  color: #00498f !important;
  background: #e8f0f8 !important;
  padding: 4px 10px !important;
  border-radius: 12px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

/* Pagination */
.news-pagination {
  text-align: center;
  padding: 20px 0 40px;
}

.news-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.news-pagination .page-numbers {
  padding: 12px 20px !important;
  background: white !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  color: #333 !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

.news-pagination .page-numbers:hover {
  background: #00498f !important;
  color: white !important;
  border-color: #00498f !important;
}

.news-pagination .page-numbers.current {
  background: #00498f !important;
  color: white !important;
  border-color: #00498f !important;
}

/* Responsive Grid */
@media (max-width: 968px) {
  .news-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .news-hero h1 {
    font-size: 28px !important;
  }
}

@media (max-width: 640px) {
  .news-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .news-hero {
    padding: 30px 15px;
  }
  
  .news-hero h1 {
    font-size: 24px !important;
  }
  
  .news-card-image-wrapper,
  .news-card-image {
    height: 180px !important;
  }
  
  .news-card-content {
    min-height: 160px !important;
  }
  
  .news-container-main {
    padding: 0 15px 30px !important;
  }
}
