/**
 * On Cloud Softwares - Travel & Editorial Blog Theme
 * Pixel-accurate implementation of the clean Scandinavian layout & typography (Mulish & Montserrat).
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&family=Mulish:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,600;1,700&display=swap');

:root {
  /* Brand & Layout Colors */
  --theme-primary: #374C9F;
  --theme-primary-hover: #263673;
  --theme-dark: #252525;
  --theme-topbar: #1f1f1f;
  --theme-body: #4a4a4a;
  --theme-heading: #1a1a1a;
  --theme-light-bg: #f9f9f9;
  --theme-border: #ebebeb;
  --theme-border-subtle: #f0f0f0;
  --theme-muted: #888888;
  --theme-meta: #777777;
  
  /* Typography */
  --theme-font-body: 'Mulish', 'Muli', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --theme-font-heading: 'Mulish', 'Muli', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --theme-font-accent: 'Montserrat', sans-serif;
  
  /* Container sizes */
  --container-max: 1140px;
  --container-article: 880px;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--theme-font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--theme-body);
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--theme-font-heading);
  color: var(--theme-heading);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

h1 { font-size: 34px; margin-bottom: 16px; font-weight: 800; }
h2 { font-size: 26px; margin-bottom: 14px; font-weight: 800; }
h3 { font-size: 20px; margin-top: 28px; margin-bottom: 10px; font-weight: 700; color: #222222; }
h4 { font-size: 17px; margin-bottom: 8px; font-weight: 700; }
h5 { font-size: 15px; font-weight: 700; }
h6 { font-size: 13px; font-weight: 700; }

p {
  margin-bottom: 20px;
  color: var(--theme-body);
  font-size: 15px;
  line-height: 26px;
}

a {
  color: var(--theme-heading);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--theme-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================================
   Container & Layout
   ======================================================== */
.theme-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.theme-container-article {
  width: 100%;
  max-width: var(--container-article);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================================
   1. Top Header Bar (Dark, social links, search & lang)
   ======================================================== */
.theme-topbar {
  background-color: var(--theme-topbar);
  color: #ffffff;
  height: 42px;
  font-family: var(--theme-font-body);
  font-size: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.theme-topbar .theme-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.topbar-left {
  display: flex;
  align-items: center;
}

.topbar-search-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  opacity: 0.85;
}

.topbar-search-btn:hover {
  opacity: 1;
}

.topbar-social-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topbar-social-link {
  color: #ffffff;
  font-family: var(--theme-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.topbar-social-link:hover {
  opacity: 1;
  color: #ffffff;
}

.topbar-social-link svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-flag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  opacity: 0.85;
}

.topbar-flag:hover {
  opacity: 1;
}

/* ========================================================
   2. Main Header (White, Centered Brand Logo & Menu)
   ======================================================== */
.theme-main-header {
  background-color: #ffffff;
  padding: 42px 0 28px;
  border-bottom: 1px solid var(--theme-border-subtle);
  text-align: center;
}

.theme-logo-holder {
  margin-bottom: 24px;
}

.theme-logo-link {
  display: inline-block;
  text-decoration: none;
}

.theme-site-title {
  font-family: var(--theme-font-heading);
  font-size: 48px;
  font-weight: 900;
  color: var(--theme-primary);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  display: inline-block;
}

.theme-site-title .slash-o {
  position: relative;
  display: inline-block;
}

.theme-site-tagline {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--theme-muted);
  margin-top: 4px;
}

/* Primary Centered Nav */
.theme-navbar {
  display: flex;
  justify-content: center;
  align-items: center;
}

.theme-primary-menu {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.theme-primary-menu > li {
  position: relative;
}

.theme-primary-menu > li > a {
  font-family: var(--theme-font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--theme-dark);
  padding: 8px 4px;
  display: inline-block;
  transition: color 0.2s ease;
}

.theme-primary-menu > li > a:hover,
.theme-primary-menu > li.current-menu-item > a,
.theme-primary-menu > li.current-post-parent > a {
  color: var(--theme-primary);
}

/* Submenu */
.theme-primary-menu ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: #ffffff;
  min-width: 190px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--theme-border);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
  text-align: left;
}

.theme-primary-menu li:hover > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.theme-primary-menu ul.sub-menu li a {
  display: block;
  padding: 7px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--theme-dark);
}

.theme-primary-menu ul.sub-menu li a:hover {
  background-color: var(--theme-light-bg);
  color: var(--theme-primary);
}

/* Mobile Toggle */
.theme-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--theme-dark);
  position: absolute;
  right: 20px;
  top: 50px;
}

.theme-mobile-toggle svg {
  width: 26px;
  height: 26px;
}

/* Mobile Drawer */
.theme-mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: #ffffff;
  z-index: 9999;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  padding: 24px;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.theme-mobile-drawer.is-open {
  right: 0;
}

.theme-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.theme-mobile-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.theme-mobile-close {
  background: none;
  border: none;
  font-size: 24px;
  float: right;
  cursor: pointer;
  color: var(--theme-dark);
}

.theme-mobile-drawer ul {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.theme-mobile-drawer li {
  margin-bottom: 16px;
}

.theme-mobile-drawer a {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--theme-dark);
}

/* ========================================================
   3. Subheader / Breadcrumbs Banner
   ======================================================== */
.theme-subheader-banner {
  position: relative;
  background-color: #f1f3f5;
  background-image: url('https://images.unsplash.com/photo-1570077188670-e3a8d69ac5ff?auto=format&fit=crop&w=1800&q=80');
  background-position: center 30%;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 48px 0;
  border-bottom: 1px solid var(--theme-border-subtle);
  overflow: hidden;
}

.theme-subheader-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.85) 45%, rgba(255, 255, 255, 0.3) 100%);
}

.theme-subheader-content {
  position: relative;
  z-index: 2;
}

.theme-subheader-title {
  font-family: var(--theme-font-heading);
  font-size: 32px;
  font-weight: 800;
  color: #111111;
  line-height: 1.1;
  margin-bottom: 6px;
}

.theme-breadcrumbs {
  font-family: var(--theme-font-body);
  font-size: 12px;
  color: var(--theme-meta);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.theme-breadcrumbs a {
  color: var(--theme-meta);
}

.theme-breadcrumbs a:hover {
  color: var(--theme-primary);
}

.theme-breadcrumbs .sep {
  color: #aaaaaa;
  font-size: 11px;
}

.theme-breadcrumbs .current {
  color: #444444;
}

/* ========================================================
   4. Single Post & Editorial Layout
   ======================================================== */
.theme-main-content {
  padding: 40px 0 60px;
}

.post-featured-media {
  margin-bottom: 24px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.post-featured-media img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
}

/* Post Meta Bar directly under image */
.theme-post-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--theme-font-body);
  font-size: 13px;
  color: var(--theme-muted);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.theme-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--theme-muted);
}

.theme-meta-item svg {
  width: 14px;
  height: 14px;
  color: #999999;
}

.theme-meta-item a {
  color: var(--theme-muted);
}

.theme-meta-item a:hover {
  color: var(--theme-primary);
}

/* Post Title */
.theme-single-title {
  font-family: var(--theme-font-heading);
  font-size: 36px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.25;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

/* Responsive Media Video Embed */
.theme-video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  margin: 24px 0 28px;
  background-color: #000000;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.theme-video-wrapper iframe,
.theme-video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Video Poster Mockup */
.theme-video-poster {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1530122037265-a5f1f91d3b99?auto=format&fit=crop&w=1200&q=80');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.theme-video-poster-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.theme-video-center-title {
  font-family: var(--theme-font-heading);
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  text-align: center;
  line-height: 1;
  margin-bottom: 12px;
}

.theme-video-center-sub {
  font-family: var(--theme-font-heading);
  font-size: clamp(20px, 4vw, 42px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 6px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  text-align: center;
}

.theme-play-btn {
  width: 64px;
  height: 44px;
  background-color: #ff0000;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.theme-video-poster:hover .theme-play-btn {
  transform: scale(1.1);
}

.theme-play-btn svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
  margin-left: 2px;
}

.theme-video-top-header {
  position: absolute;
  top: 14px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.theme-video-top-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.8);
}

.theme-video-bottom-watch {
  position: absolute;
  bottom: 14px;
  right: 16px;
  background: rgba(0,0,0,0.7);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Article Content Body */
.theme-article-entry {
  font-family: var(--theme-font-body);
  font-size: 15px;
  line-height: 26px;
  color: #444444;
}

.theme-article-entry p {
  margin-bottom: 20px;
}

.theme-article-entry h3 {
  font-size: 21px;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 32px;
  margin-bottom: 10px;
}

.theme-article-entry blockquote {
  border-left: 3px solid var(--theme-primary);
  padding-left: 18px;
  margin: 24px 0;
  font-style: italic;
  color: #555555;
}

/* ========================================================
   5. Comments Section (2 Replies, Avatar, Reply Link)
   ======================================================== */
.theme-comments-area {
  margin-top: 50px;
  padding-top: 32px;
  border-top: 1px solid var(--theme-border);
}

.theme-comments-title {
  font-family: var(--theme-font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #222222;
  margin-bottom: 28px;
}

.theme-comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 35px;
}

.theme-comment-item {
  display: flex;
  gap: 18px;
  margin-bottom: 26px;
}

.theme-comment-item.depth-2 {
  margin-left: 48px;
}

.comment-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #e2e8f0;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-content-box {
  flex-grow: 1;
}

.comment-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.comment-author-name {
  font-family: var(--theme-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}

.comment-date {
  font-size: 12px;
  color: #999999;
}

.comment-text {
  font-size: 14px;
  line-height: 22px;
  color: #555555;
  margin-bottom: 6px;
}

.comment-reply-link-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--theme-primary);
  display: inline-block;
  cursor: pointer;
}

.comment-reply-link-btn:hover {
  text-decoration: underline;
}

/* Leave a Comment section */
.theme-leave-comment {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid var(--theme-border-subtle);
}

.theme-leave-comment h3 {
  font-family: var(--theme-font-heading);
  font-size: 19px;
  font-weight: 800;
  color: #222222;
  margin-bottom: 8px;
}

.theme-leave-comment p.logged-in-notice {
  font-size: 14px;
  color: #777777;
  margin-bottom: 20px;
}

/* Comment Form */
.theme-comment-form .form-group {
  margin-bottom: 14px;
}

.theme-comment-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333333;
}

.theme-comment-form input[type="text"],
.theme-comment-form input[type="email"],
.theme-comment-form input[type="url"],
.theme-comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--theme-border);
  border-radius: 2px;
  font-family: var(--theme-font-body);
  font-size: 14px;
  color: #333333;
  outline: none;
  transition: border-color 0.2s;
}

.theme-comment-form input:focus,
.theme-comment-form textarea:focus {
  border-color: var(--theme-primary);
}

.theme-submit-btn {
  background-color: var(--theme-primary);
  color: #ffffff;
  font-family: var(--theme-font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 11px 24px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.theme-submit-btn:hover {
  background-color: var(--theme-primary-hover);
}

/* ========================================================
   6. Footer (Rødberg Logo Left, Uppercase Menu Right, Copyright)
   ======================================================== */
.theme-site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--theme-border);
  margin-top: auto;
}

.footer-top-row {
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo .theme-site-title {
  font-size: 38px;
}

.footer-nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-nav-menu a {
  font-family: var(--theme-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #222222;
  transition: color 0.2s;
}

.footer-nav-menu a:hover {
  color: var(--theme-primary);
}

.footer-bottom-row {
  border-top: 1px solid var(--theme-border);
  padding: 20px 0;
}

.footer-bottom-row .theme-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #929292;
  flex-wrap: wrap;
  gap: 12px;
}

.copyright-left {
  color: #929292;
}

.copyright-right {
  color: #929292;
}

.copyright-right a {
  color: #929292;
}

.copyright-right a:hover {
  color: var(--theme-primary);
}

/* ========================================================
   7. Blog Grid Index View
   ======================================================== */
.theme-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  margin-top: 20px;
}

.theme-card-post {
  background: #ffffff;
  border: 1px solid var(--theme-border);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-card-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.theme-card-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #f5f5f5;
}

.theme-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.theme-card-post:hover .theme-card-thumb img {
  transform: scale(1.03);
}

.theme-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.theme-card-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin: 8px 0 12px;
}

.theme-card-title a {
  color: #1a1a1a;
}

.theme-card-title a:hover {
  color: var(--theme-primary);
}

/* Pagination */
.theme-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.theme-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--theme-border);
  font-size: 13px;
  font-weight: 700;
  color: #333333;
}

.theme-pagination .page-numbers.current,
.theme-pagination .page-numbers:hover {
  background-color: var(--theme-primary);
  border-color: var(--theme-primary);
  color: #ffffff;
}

/* ========================================================
   Responsive Breakpoints
   ======================================================== */
@media (max-width: 900px) {
  .topbar-social-links {
    display: none;
  }
  .theme-primary-menu {
    display: none;
  }
  .theme-mobile-toggle {
    display: block;
  }
  .footer-top-row {
    flex-direction: column;
    text-align: center;
  }
  .footer-nav-menu {
    justify-content: center;
  }
  .footer-bottom-row .theme-container {
    flex-direction: column;
    text-align: center;
  }
  .theme-blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .theme-site-title {
    font-size: 36px;
  }
  .theme-single-title {
    font-size: 26px;
  }
  .theme-comment-item.depth-2 {
    margin-left: 20px;
  }
  .theme-post-meta-bar {
    gap: 12px;
    font-size: 12px;
  }
}
