* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: #2f2f2f;
  background: #ffffff;
  line-height: 1.5;
  padding-top: 80px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1272px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.logo img {
  height: 40px;
  transition: all 0.3s ease;
}

.nav {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: all 0.3s ease;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}

.menu {
  display: flex;
  gap: 64px;
  margin-left: auto;
  margin-right: 24px;
}

.menu a {
  font-size: 14px;
  color: #444;
  transition: color 0.3s ease;
}

.menu a:hover,
.menu a.active,
.mobile-menu a.active {
  color: #FFBD69;
}

.btn {
  background: #2f3a40;
  color: #fff;
  padding: 16px 32px;
  font-size: 12px;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: none;
}

.btn:hover {
  background: #FFBD69;
  color: #fff;
}

.header.scrolled {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.header.scrolled .nav {
  min-height: 62px;
}

.header.scrolled .logo img {
  height: 32px;
}

.header.scrolled .btn {
  padding: 12px 24px;
  font-size: 11px;
}

/* HAMBURGER */
.hamburger {
  width: 28px;
  height: 20px;
  position: relative;
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 28px;
  height: 2px;
  background: #2f2f2f;
  border-radius: 0;
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0deg);
  transform-origin: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, top, opacity;
  transition:
    top 0.32s ease,
    transform 0.32s ease,
    opacity 0.2s ease;
}

.hamburger span:nth-child(1) {
  top: 1px;
}

.hamburger span:nth-child(2) {
  top: 9px;
}

.hamburger span:nth-child(3) {
  top: 17px;
}

.hamburger.active span:nth-child(1) {
  top: 9px;
  transform: translate3d(0, 0, 0) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translate3d(0, 0, 0) scaleX(0);
}

.hamburger.active span:nth-child(3) {
  top: 9px;
  transform: translate3d(0, 0, 0) rotate(-45deg);
}

/* MOBILE DROPDOWN */
.mobile-dropdown {
  width: 100%;
  background: #ffffff;
  border-top: 1px solid #e8e8e8;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.mobile-dropdown.open {
  max-height: 420px;
  opacity: 1;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
}

.mobile-menu a {
  width: 100%;
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid #efefef;
  font-size: 24px;
  color: #363E44;
  transition: color 0.25s ease;
}

.mobile-menu a:hover {
  color: #FFBD69;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* HERO */
.hero {
  padding: 56px 0 64px;
  background: #f8f8f8;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero-text {
  max-width: 700px;
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 28px;
  max-width: 700px;
  color: #363E44;
}

.hero-text p {
  font-size: 24px;
  line-height: 1.35;
  max-width: 700px;
  margin-bottom: 28px;
  color: #363E44;
}

.hero-phone {
  margin-bottom: 0;
}

.hero-phone a,
.hero-text a {
  color: #FFBD69;
  font-weight: 700;
}

.hero-image {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 520px;
  height: auto;
}

/* FEATURES */
.features {
  padding: 60px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.features-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.features-list {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 32px;
  background: #EBF2F8;
  border-radius: 5px;
  min-height: 0;
}

.feature-card span {
  font-size: 18px;
  line-height: 1.3;
  color: #3b434b;
}

.feature-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* PROCESS */
.process {
  padding: 80px 0;
  background: #e9edf2;
}

.process h2 {
  font-size: 34px;
  font-weight: 500;
  margin-bottom: 40px;
  color: #3b434b;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.step {
  border: 1px solid #363E44;
  border-radius: 5px;
  padding: 28px 20px;
  text-align: center;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.step-number {
  width: 28px;
  height: 28px;
  border: 1px solid #363E44;
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step p {
  font-size: 18px;
  color: #363E44;
  max-width: 200px;
}

/* CTA */
.cta {
  padding: 70px 0;
  text-align: center;
  background: #fff;
}

.cta h2 {
  font-size: 48px;
  margin-bottom: 32px;
  font-weight: 500;
  color: #363E44;
}

.cta a {
  font-size: 34px;
  color: #363E44;
}

/* FOOTER */
.footer {
  background: #363E44;
  padding: 32px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  gap: 32px;
}

.footer-left span,
.footer-right span {
  font-size: 13px;
  color: #F9F9F9;
}

/* POPUP */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2000;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.popup-box {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: #ffffff;
  border-radius: 12px;
  padding: 32px;
  margin: auto 0;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.popup-overlay.active .popup-box {
  transform: translateY(0);
}

.popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: #363E44;
}

.popup-box h2 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 600;
  color: #363E44;
  margin-bottom: 12px;
  padding-right: 36px;
}

.popup-subtext {
  font-size: 16px;
  line-height: 1.5;
  color: #555;
  margin-bottom: 24px;
}

.popup-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #363E44;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #d8dce0;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #2f2f2f;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #FFBD69;
  box-shadow: 0 0 0 3px rgba(255, 189, 105, 0.18);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 400;
  color: #444;
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2f3a40;
}

.popup-submit {
  width: 100%;
  background: #2f3a40;
  color: #fff;
  border: none;
  padding: 16px 24px;
  font-size: 12px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.popup-submit:hover {
  background: #FFBD69;
}

.popup-submit:active {
  transform: translateY(1px);
}

body.popup-open {
  overflow: hidden;
}

/* SUCCESS MESSAGE */
.popup-success {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  border-radius: 12px;
  padding: 24px;
}

.popup-success.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.popup-success-box {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.popup-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #2f3a40;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-success-box h3 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
  color: #363E44;
  margin-bottom: 10px;
}

.popup-success-box p {
  font-size: 16px;
  line-height: 1.5;
  color: #555;
  margin-bottom: 20px;
}

.popup-success-btn {
  background: #2f3a40;
  color: #fff;
  border: none;
  padding: 14px 26px;
  font-size: 12px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease;
}

.popup-success-btn:hover {
  background: #FFBD69;
}

/* TABLET */
@media (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }

  body {
    padding-top: 72px;
  }

  .nav {
    min-height: 72px;
    gap: 16px;
  }

  .menu,
  .open-popup {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .logo img {
    height: 34px;
  }

  .hero {
    padding: 30px 0 42px;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.92fr);
    gap: 24px;
    align-items: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-text h1 {
    font-size: 34px;
    line-height: 1.15;
    margin-bottom: 18px;
    max-width: 420px;
  }

  .hero-text p {
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 18px;
    max-width: 420px;
  }

  .hero-image {
    justify-content: flex-end;
  }

  .hero-image img {
    width: 100%;
    max-width: 360px;
  }

  .features {
    padding: 42px 0;
  }

  .features-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 18px;
  }

  .features-list {
    gap: 12px;
  }

  .feature-card {
    gap: 18px;
    padding: 0 18px;
    min-height: 76px;
    border-radius: 4px;
  }

  .feature-card span {
    font-size: 14px;
  }

  .feature-icon {
    width: 22px;
    height: 22px;
  }

  .process {
    padding: 46px 0;
  }

  .process h2 {
    font-size: 26px;
    margin-bottom: 24px;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .step {
    padding: 22px 16px;
    min-height: 104px;
  }

  .step-number {
    width: 24px;
    height: 24px;
    font-size: 13px;
  }

  .step p {
    font-size: 13px;
    max-width: 160px;
  }

  .cta {
    padding: 48px 0;
  }

  .cta h2 {
    font-size: 32px;
    margin-bottom: 16px;
  }

  .cta a {
    font-size: 26px;
  }

  .footer-content {
    gap: 18px;
  }

  .footer-left {
    gap: 18px;
    flex-wrap: wrap;
  }

  .header.scrolled .nav {
    min-height: 72px;
  }

  .header.scrolled .logo img {
    height: 34px;
  }

  .header.scrolled .btn {
    padding: 16px 32px;
    font-size: 12px;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  body {
    padding-top: 72px;
  }

  .container {
    padding: 0 16px;
  }

  .nav {
    min-height: 72px;
  }

  .logo img {
    height: 34px;
  }

  .header.scrolled .nav {
    min-height: 72px;
  }

  .header.scrolled .logo img {
    height: 34px;
  }

  .hero {
    padding: 24px 0 40px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: start;
  }

  .hero-text {
    order: 1;
    max-width: 100%;
  }

  .hero-text h1 {
    font-size: 26px;
    line-height: 1.18;
    margin-bottom: 14px;
    max-width: 320px;
  }

  .hero-text p {
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 16px;
    max-width: 340px;
  }

  .hero-image {
    order: 2;
    justify-content: flex-start;
  }

  .hero-image img {
    width: 100%;
    max-width: 340px;
    height: auto;
  }

  .features {
    padding: 40px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .features-list {
    grid-template-rows: none;
    gap: 12px;
  }

  .feature-card {
    gap: 16px;
    padding: 18px 18px;
    min-height: 84px;
  }

  .feature-card span {
    font-size: 16px;
  }

  .feature-icon {
    width: 24px;
    height: 24px;
  }

  .process {
    padding: 44px 0;
  }

  .process h2 {
    font-size: 26px;
    margin-bottom: 24px;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .step {
    padding: 20px 16px;
  }

  .step p {
    max-width: 100%;
    font-size: 14px;
  }

  .cta {
    padding: 44px 0;
  }

  .cta h2 {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 18px;
  }

  .cta a {
    font-size: 24px;
    word-break: break-word;
  }

  .footer {
    padding: 24px 0;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-left {
    flex-direction: column;
    gap: 8px;
  }

  .footer-left span,
  .footer-right span {
    font-size: 12px;
  }

  .popup-overlay {
    padding: 20px 12px;
  }

  .popup-box {
    padding: 24px 18px;
    max-height: calc(100vh - 40px);
  }

  .popup-box h2 {
    font-size: 24px;
  }

  .popup-subtext {
    font-size: 14px;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
  }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
  body {
    padding-top: 68px;
  }

  .nav {
    min-height: 68px;
    gap: 10px;
  }

  .logo img {
    height: 30px;
  }

  .header.scrolled .nav {
    min-height: 68px;
  }

  .header.scrolled .logo img {
    height: 30px;
  }

  .hero {
    padding: 20px 0 34px;
  }

  .hero-content {
    gap: 22px;
  }

  .hero-text h1 {
    font-size: 24px;
    max-width: 300px;
  }

  .hero-text p {
    font-size: 13px;
    max-width: 320px;
  }

  .hero-image img {
    max-width: 320px;
  }

  .feature-card span {
    font-size: 15px;
  }

  .process h2 {
    font-size: 24px;
  }

  .cta h2 {
    font-size: 26px;
  }

  .cta a {
    font-size: 22px;
  }

  .mobile-menu a {
    font-size: 20px;
    padding: 14px 0;
  }
}

/* PAKALPOJUMI PAGE */
.services-page-hero {
  padding: 64px 0 64px;
  background: #f8f8f8;
  border-bottom: none;
}

.services-page-hero .hero-inner {
  max-width: 760px;
}

.services-page-hero h1 {
  font-size: 48px;
  line-height: 1.15;
  font-weight: 500;
  color: #363E44;
  margin-bottom: 32px;
}

.services-page-hero p {
  font-size: 24px;
  line-height: 1.5;
  color: #363E44;
  max-width: 720px;
  margin-bottom: 0;
}

.services-page {
  padding: 64px 0 64px;
  background: #ffffff;
}

.services-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-box {
  border: 1px solid #9fa4aa;
  border-radius: 4px;
  background: #fff;
  padding: 32px 32px;
  min-height: 180px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  border-color: #363E44;
}

.service-box-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
  object-fit: contain;
}

.service-box h3 {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
  color: #363E44;
  margin-bottom: 12px;
}

.service-box p {
  font-size: 14px;
  line-height: 1.55;
  color: #555;
  margin: 0;
}

.services-cta-bottom {
  padding: 80px 0;
  background: #f3f3f3;
  text-align: center;
}

.services-cta-bottom h2 {
  font-size: 48px;
  line-height: 1.2;
  font-weight: 500;
  color: #363E44;
  margin-bottom: 18px;
}

.services-cta-bottom p {
  font-size: 20px;
  color: #363E44;
  margin-bottom: 24px;
}

.services-cta-bottom a.phone-link {
  display: inline-block;
  font-size: 36px;
  color: #363E44;
  margin-bottom: 28px;
}

@media (max-width: 1024px) {
  .services-page-hero {
    padding: 42px 0 40px;
  }

  .services-page-hero h1 {
    font-size: 38px;
  }

  .services-page-hero p {
    font-size: 18px;
  }

  .services-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-cta-bottom h2 {
    font-size: 34px;
  }

  .services-cta-bottom a.phone-link {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .services-page-hero {
    padding: 30px 0 32px;
  }

  .services-page-hero h1 {
    font-size: 30px;
    margin-bottom: 16px;
  }

  .services-page-hero p {
    font-size: 16px;
    margin-bottom: 0;
  }

  .services-page {
    padding: 36px 0 48px;
  }

  .services-page-grid {
    grid-template-columns: 1fr;
  }

  .service-box {
    min-height: auto;
  }

  .services-cta-bottom {
    padding: 52px 0;
  }

  .services-cta-bottom h2 {
    font-size: 30px;
  }

  .services-cta-bottom p {
    font-size: 18px;
  }

  .services-cta-bottom a.phone-link {
    font-size: 24px;
    word-break: break-word;
  }
}

/* BLOG PAGE */
.blog-hero {
  padding: 64px 0 64px;
  background: #f8f8f8;
}

.blog-hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.blog-hero-left h1 {
  font-size: 48px;
  line-height: 1.02;
  font-weight: 500;
  color: #363E44;
  max-width: 620px;
}

.blog-featured {
  padding: 56px 0 28px;
  background: #ffffff;
}

.blog-listing {
  padding: 28px 0 80px;
  background: #ffffff;
}

.blog-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.blog-section-head h2 {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  color: #363E44;
  margin: 0;
}

.blog-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.featured-post-card {
  background: #ffffff;
  border: 1px solid #d9dde1;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.featured-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  border-color: #c5cbd1;
}

.featured-post-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.featured-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-post-content {
  padding: 22px 22px 20px;
}

.featured-post-content h3 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 600;
  color: #363E44;
}

.featured-post-content h3 a {
  color: inherit;
  transition: color 0.25s ease;
}

.featured-post-content h3 a:hover {
  color: #FFBD69;
}

.featured-post-content p {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #666;
}

.featured-post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.featured-post-meta span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #72777c;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #d9dde1;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  border-color: #c5cbd1;
}

.blog-card-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 20px 20px 18px;
}

.blog-card-content h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  color: #363E44;
}

.blog-card-content h3 a {
  color: inherit;
  transition: color 0.25s ease;
}

.blog-card-content h3 a:hover {
  color: #FFBD69;
}

.blog-card-content p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  flex-grow: 1;
}

.blog-card-meta {
  margin-bottom: 18px;
}

.blog-card-meta span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #72777c;
}

.blog-read-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid #cfd5da;
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  color: #363E44;
  transition: all 0.25s ease;
}

.blog-read-btn:hover {
  background: #2f3a40;
  border-color: #2f3a40;
  color: #fff;
}

@media (max-width: 1200px) {
  .blog-hero-left h1 {
    font-size: 48px;
    max-width: 540px;
  }

  .blog-section-head h2 {
    font-size: 34px;
  }

  .featured-post-content h3 {
    font-size: 24px;
  }

  .blog-card-content h3 {
    font-size: 20px;
  }
}

@media (max-width: 1024px) {
  .blog-hero {
    padding: 42px 0 40px;
  }

  .blog-hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .blog-hero-left h1 {
    font-size: 42px;
    max-width: 100%;
  }

  .blog-hero-right {
    justify-content: flex-start;
  }

  .blog-hero-right p {
    max-width: 680px;
    font-size: 17px;
  }

  .blog-featured {
    padding: 42px 0 24px;
  }

  .blog-listing {
    padding: 24px 0 56px;
  }

  .blog-section-head {
    margin-bottom: 22px;
  }

  .blog-section-head h2 {
    font-size: 30px;
  }

  .blog-featured-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .featured-post-content h3 {
    font-size: 22px;
  }

  .blog-card-content h3 {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 30px 0 32px;
  }

  .blog-hero-content {
    gap: 18px;
  }

  .blog-hero-left h1 {
    font-size: 32px;
    line-height: 1.08;
    max-width: 320px;
  }

  .blog-hero-right p {
    font-size: 15px;
    line-height: 1.55;
    max-width: 100%;
  }

  .blog-featured {
    padding: 34px 0 20px;
  }

  .blog-listing {
    padding: 20px 0 48px;
  }

  .blog-section-head h2 {
    font-size: 26px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .featured-post-card,
  .blog-card {
    border-radius: 14px;
  }

  .featured-post-content,
  .blog-card-content {
    padding: 18px 16px 16px;
  }

  .featured-post-content h3 {
    font-size: 20px;
  }

  .blog-card-content h3 {
    font-size: 18px;
  }

  .featured-post-content p,
  .blog-card-content p {
    font-size: 14px;
  }

  .blog-read-btn {
    min-height: 40px;
    padding: 0 18px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .blog-hero-left h1 {
    font-size: 28px;
    max-width: 280px;
  }

  .blog-hero-right p {
    font-size: 14px;
  }

  .blog-section-head h2 {
    font-size: 24px;
  }

  .featured-post-meta span,
  .blog-card-meta span {
    font-size: 11px;
  }
}

/* CONTACT PAGE */
.contact-hero {
  padding: 56px 0 48px;
  background: #f8f8f8;
}

.contact-hero h1 {
  font-size: 48px;
  line-height: 1.1;
  font-weight: 500;
  color: #363E44;
  margin-bottom: 20px;
}

.contact-hero p {
  max-width: 720px;
  font-size: 20px;
  line-height: 1.5;
  color: #555;
  margin: 0;
}

.contact-section {
  padding: 56px 0 80px;
  background: #ffffff;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: stretch;
}

.contact-info-card {
  background: #2f3a40;
  color: #fff;
  border-radius: 16px;
  padding: 36px 32px;
}

.contact-info-card h2 {
  font-size: 32px;
  line-height: 1.15;
  font-weight: 600;
  margin-bottom: 16px;
}

.contact-info-text {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 36px;
  max-width: 420px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-info-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.contact-info-item a,
.contact-info-item span {
  font-size: 20px;
  line-height: 1.4;
  color: #fff;
}

.contact-form-card {
  background: #f8f8f8;
  border: 1px solid #e5e7ea;
  border-radius: 16px;
  padding: 36px 32px;
}

.contact-form {
  width: 100%;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 18px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-field-full {
  grid-column: 1 / -1;
}

.contact-field label {
  font-size: 14px;
  font-weight: 600;
  color: #363E44;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1px solid #d8dce0;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #2f2f2f;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: #FFBD69;
  box-shadow: 0 0 0 3px rgba(255, 189, 105, 0.18);
}

.contact-field textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-submit-btn {
  margin-top: 24px;
  background: #2f3a40;
  color: #fff;
  border: none;
  padding: 16px 28px;
  font-size: 12px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact-submit-btn:hover {
  background: #FFBD69;
}

.contact-submit-btn:active {
  transform: translateY(1px);
}

@media (max-width: 1024px) {
  .contact-hero {
    padding: 42px 0 40px;
  }

  .contact-hero h1 {
    font-size: 38px;
  }

  .contact-hero p {
    font-size: 18px;
    max-width: 620px;
  }

  .contact-section {
    padding: 42px 0 56px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 28px 24px;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 30px 0 32px;
  }

  .contact-hero h1 {
    font-size: 30px;
    margin-bottom: 14px;
  }

  .contact-hero p {
    font-size: 16px;
    line-height: 1.5;
  }

  .contact-section {
    padding: 36px 0 48px;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-field-full {
    grid-column: auto;
  }

  .contact-info-card h2 {
    font-size: 26px;
  }

  .contact-info-item a,
  .contact-info-item span {
    font-size: 18px;
  }

  .contact-form-card,
  .contact-info-card {
    border-radius: 12px;
    padding: 24px 18px;
  }
}

.admin-auth,
.admin-dashboard {
  padding: 120px 20px 60px;
}

.admin-auth-box {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 32px;
}

.admin-auth-box h1,
.admin-section h2 {
  margin-bottom: 12px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font: inherit;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.admin-section {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.admin-post-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.admin-post-actions {
  display: flex;
  gap: 10px;
}

.blog-post-full {
  max-width: 800px;
  margin: 0 auto;
}

.blog-post-full img {
  width: 100%;
  border-radius: 12px;
  margin: 20px 0;
}

.blog-post-full h1 {
  margin-bottom: 16px;
}

.blog-post-full .excerpt {
  font-size: 18px;
  color: #555;
  margin-bottom: 20px;
}

.blog-post-full .content p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.blog-post-page {
  padding: 140px 0 80px;
}

.blog-post-topbar {
  margin-bottom: 24px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #1f2933;
  font-weight: 600;
  margin-bottom: 10px;
}

.back-btn:hover {
  opacity: 0.8;
}

.blog-post-full {
  max-width: 900px;
  margin: 0 auto;
}

.blog-post-full img {
  width: 100%;
  border-radius: 12px;
  margin: 20px 0 24px;
  display: block;
}

.blog-post-full h1 {
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.blog-post-full .excerpt {
  font-size: 20px;
  line-height: 1.6;
  color: #5b6570;
  margin-bottom: 28px;
}

.blog-post-full .content p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 18px;
  color: #1f2933;
}

@media (max-width: 768px) {
  .blog-post-page {
    padding: 120px 0 60px;
  }

  .blog-post-full h1 {
    font-size: 34px;
  }

  .blog-post-full .excerpt {
    font-size: 18px;
  }

  .blog-post-full .content p {
    font-size: 16px;
  }
}

.blog-post-page {
  padding-top: 1px;
  padding-bottom: 64px;
}

.blog-post-article {
  width: 100%;
}

.blog-post-inner {
  width: 100%;
  max-width: 1272px;
  margin: 0 auto;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #1f2933;
  margin-bottom: 28px;
}

.back-btn:hover {
  opacity: 0.75;
}

.blog-post-title {
  font-size: 48px;
  line-height: 1.08;
  font-weight: 700;
  color: #111827;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 28px;
}

.blog-post-cover {
  margin-bottom: 28px;
}

.blog-post-cover img {
  width: 100%;
  display: block;
  border-radius: 14px;
}

.blog-post-excerpt {
  font-size: 18px;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 24px;
}

.blog-post-content h2 {
  font-size: 30px;
  line-height: 1.2;
  color: #111827;
  margin-top: 36px;
  margin-bottom: 18px;
}

.blog-post-content p {
  font-size: 17px;
  line-height: 1.95;
  color: #374151;
  margin-bottom: 22px;
}

.blog-post-content blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  background: #f3f4f6;
  border-left: 4px solid #111827;
  border-radius: 12px;
  font-size: 17px;
  line-height: 1.9;
  color: #111827;
  font-style: italic;
}

@media (max-width: 991px) {
  .blog-post-page {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .blog-post-inner {
    max-width: 100%;
  }

  .blog-post-title {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .blog-post-page {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .blog-post-title {
    font-size: 32px;
  }

  .blog-post-excerpt {
    font-size: 17px;
    line-height: 1.75;
  }

  .blog-post-content h2 {
    font-size: 24px;
  }

  .blog-post-content p,
  .blog-post-content blockquote {
    font-size: 16px;
    line-height: 1.8;
  }
}

#coverPreview img {
  max-width: 220px;
  display: block;
  margin-top: 12px;
  border-radius: 10px;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}

/* DRAFT = dzeltens */
.status-draft {
  background-color: #fff3cd;
  color: #856404;
}

/* PUBLISHED = zaļš */
.status-published {
  background-color: #d4edda;
  color: #155724;
}