/*
Theme Name: Air Canada
Theme URI: https://air-canada.eu
Author: Mathi
Version: 1.0
Description: Custom theme for air-canada.eu
*/

/* === Font == */

body {
  font-family: "Verdana", Helvetica, Arial, Verdana, sans-serif;
  font-size: 14px;
}

h1,
h2,
h3,
h4,
h5,
h6,
h1 a,
h2 a,
h3 a {
  color: #4f4f4f;
  font-weight: normal;
}

h3 {
  font-size: 22px;
}

/* === HEADER === */
.site-header {
  padding: 0;
  margin: 0;
}

.header-top {
  background-color: #fff;
  max-width: 1250px;
  margin: 0 auto;
}

.header-nav {
  margin: 0 auto;
  z-index: 9999;
  max-width: 1250px;
}
.slider-wrapper {
  position: relative;
  z-index: 1;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top .header-inner,
.header-nav .header-inner {
  max-width: 1250px;
  margin: 0 auto;
  padding: 10px 50px;
}

.header-top .header-inner {
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
  padding: 30px 50px;
}

.header-nav .header-inner {
  background-color: #4a4f55;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo img {
  height: 40px;
}

.star-alliance-logo img {
  height: 30px;
  opacity: 0.8;
}

/* === NAVIGATION === */
.nav-menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 20px;
  position: relative;
  z-index: 10;
}

.nav-menu,
.nav-menu ul,
.nav-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu li {
  position: relative;
}

.nav-menu li a {
  display: block;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.nav-menu li a:hover {
  color: #cecece;
}

/* External link icon in menu: keep icon white on hover/active */
.nav-menu a.has-external-icon { position: relative; }
.nav-menu a .external-icon {
  color: #fff;
  opacity: 0.9;
  margin-left: 6px;
  font-size: 11px;
  line-height: 1;
  display: inline-block;
  vertical-align: text-top;
  pointer-events: none;
}
.nav-menu li a:hover .external-icon,
.nav-menu li a:focus .external-icon,
.nav-menu li.current-menu-item > a .external-icon,
.nav-menu li.current-menu-ancestor > a .external-icon {
  color: #fff;
  opacity: 0.9;
}

/* === DROPDOWN === */
.nav-menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #4c4c4c;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  z-index: 999;
  padding: 0;
}

.nav-menu li:hover > ul {
  display: block;
}

/* Undgå at dropdown vises automatisk på aktivt item */
.nav-menu li.current-menu-item > a,
.nav-menu li.current-menu-parent > a {
  background-color: #2f2f2f;
}

.nav-menu li ul li {
  border-bottom: 1px solid #555;
}

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

.nav-menu li ul li a {
  padding: 10px 15px;
  font-weight: 400;
  color: #fff;
  background-color: #4c4c4c;
}

.nav-menu li ul li a:hover { color: #cecece; }

/* Mobile menu styles are defined in assets/css/mobile-menu.css */

/* === PAGE WRAPPER === */
.page-wrapper {
  max-width: 1250px;
  margin: 0 auto;
  background-color: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
}

.page-inner {
  padding: 30px 50px 20px 50px;
}

/* === SLIDER === */
.slider-wrapper {
  margin-bottom: 40px;
}

.front-search {
  max-width: 400px;
  margin: 50px auto;
}

/* === STICKY POST === */
.sticky-highlight {
  background: #f5f5f5;
  padding: 40px 20px;
  margin-bottom: 40px;
}

.sticky-inner {
  max-width: 900px;
  margin: 0 auto;
}

.sticky-highlight h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
}

.sticky-highlight .sticky-content {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
}

/* === GRID === */
.grid-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

/* === SINGLE POST === */
.single-post {
  padding-bottom: 60px;
}

.post-header {
  margin-bottom: 20px;
}

.post-title {
  font-size: 32px;
  color: #333;
  margin-bottom: 10px;
}

.post-meta {
  font-size: 14px;
  color: #888;
}

.post-thumbnail {
  margin: 30px 0;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.post-content {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
}

/* === RELATED POSTS === */
.related-posts {
  padding: 20px 0 10px;
}

.related-posts-title {
  text-align: center;
  font-size: 26px;
  margin: 10px 0 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 40px;
  max-width: 900px;
  margin: 0 auto 20px;
}

.related-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: start;
  color: inherit;
  text-decoration: none;
}

.related-item:hover .related-item-title { color: #ff0f00; }

.related-thumb img {
  width: 140px;
  height: 90px;
  object-fit: contain;
  object-position: center center;
  border-radius: 3px;
  display: block;
  background: #f2f2f2;
}

.related-item-title {
  font-size: 18px;
  margin: 0 0 8px;
  color: #333;
}

.related-date {
  font-size: 12px;
  color: #888;
}

.btn-readmore {
  display: inline-block;
  background-color: #ff0f00;
  color: #fff;
  padding: 8px 14px;
  font-weight: normal;
  text-decoration: none;
  border-radius: 3px;
  transition: background-color 0.2s ease;
}

/* === SINGLE GRID === */
.single-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

/* Mobile optimization for single posts */
@media (max-width: 768px) {
  .single-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .single-content {
    padding: 0 20px;
  }
  
  .single-sidebar {
    padding: 0 20px;
    order: 2;
  }
  
  .single-content {
    order: 1;
  }
}
.single-content {
  padding: 0 50px;
}

/* === SINGLE SIDEBAR === */
.single-sidebar {
  padding-top: 10px;
}

.single-sidebar .widget {
  margin-bottom: 40px;
  background: #e0e0e0 none repeat center center;
  padding: 25px 25px 15px;
}

/* Recent Posts widget with tiny thumbnails and date under title */
.widget ul.recent-posts.with-thumbs {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recent-post-item {
  margin: 0 0 16px 0;
}

.recent-post-link {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  text-decoration: none;
  color: inherit;
}

.recent-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: #ddd;
  display: block;
}

.recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: #f2f2f2;
}

/* Ensure card thumbnails show full image without cropping */
.grid-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: #f2f2f2;
}

/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 1 / 1) {
  .thumb-16x9 { position: relative; }
  .thumb-16x9::before { content: ""; display: block; padding-top: 56.25%; }
  .thumb-16x9 > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
}

.recent-text { display: block; }
.recent-title { display: block; font-size: 15px; color: #333; margin: 0 0 4px; }
.recent-date { display: block; font-size: 12px; color: #888; margin: 0; }

.single-sidebar .widget-title {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
}

.single-sidebar ul {
  list-style: none;
  padding: 10px 0;
}

.single-sidebar ul li a {
  color: #777;
  line-height: 2;
  text-decoration: none;
}

.category .grid-wrapper {
  padding: 0 50px;
}

.archive-title {
  margin: 0;
  padding: 50px 50px;
}

.post-thumbnail-wrapper {
  position: relative;
  margin: 30px 0;
}

.post-thumbnail-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Venstre: Kategori badge */
.category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #000;
  color: #fff;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 3px;
  z-index: 5;
}

/* Højre: Dato badge */
.date-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #fff;
  color: #000;
  text-align: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #eee;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 5;
}

.date-badge .date-day {
  font-size: 16px;
  line-height: 1;
}

.date-badge .date-month {
  font-size: 10px;
  color: #666;
  line-height: 1;
}

/* Footer */
.site-footer {
  color: #fff;
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
  font-weight: normal;
}

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

.footer-inner {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 50px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
  background-color: #4a4f55;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-widget-title {
  font-size: 18px;
  margin-bottom: 10px;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #666;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #ccc;
}


/* === MENU LAYOUT === */
.main-menu-container {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

/* === PAGINATION === */
.pagination-wrapper {
  margin: 40px 0 60px 0;
  text-align: center;
}

.pagination-wrapper .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 2px 10px 2px;
  background-color: #f5f5f5;
  color: #333;
  text-decoration: none;
  border-radius: 3px;
  transition: background-color 0.2s ease;
  list-style: none;
}

.pagination-wrapper .page-numbers:hover {
  background-color: #e0e0e0;
  color: #333;
}

.pagination-wrapper .page-numbers.current {
  background-color: #ff0f00;
  color: #fff;
}

.pagination-wrapper .page-numbers.dots {
  background-color: transparent;
  color: #666;
}

.pagination-wrapper .page-numbers.prev,
.pagination-wrapper .page-numbers.next {
  font-weight: 600;
}

/* Fix for WordPress paginate_links list styling */
.pagination-wrapper ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-block;
}

.pagination-wrapper li {
  display: inline-block;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Responsive adjustments handled by assets/css/mobile-menu.css */

/* Desktop nav visibility handled by assets/css/mobile-menu.css */
