@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --page: #ff9700;
  --surface: #071014;
  --surface-2: #0b171c;
  --surface-3: #101f26;
  --line: #40525d;
  --line-strong: #ff3b35;
  --text: #f5f7f8;
  --muted: #c6d0d6;
  --muted-2: #8ea0aa;
  --accent: #ff3b35;
  --accent-hover: #ff5750;
  --gold: #ffb21e;
  --container: 1204px;
  --content: 1114px;
  --radius: 8px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 16%, transparent 84%, rgba(0, 0, 0, 0.12)),
    radial-gradient(circle at top center, rgba(255, 218, 92, 0.3), transparent 34rem);
  opacity: 0.65;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent-hover);
}

img {
  position: relative;
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 59, 53, 0.86), rgba(255, 178, 30, 0.78)),
    linear-gradient(45deg, #132229, #071014);
  color: transparent;
  object-fit: cover;
}

img::before,
img::after {
  content: "";
  position: absolute;
  inset: 0;
}

img::before {
  background:
    linear-gradient(135deg, rgba(255, 59, 53, 0.95), rgba(255, 178, 30, 0.86)),
    linear-gradient(45deg, #132229, #071014);
}

img::after {
  background:
    linear-gradient(135deg, transparent 0 45%, rgba(255, 255, 255, 0.14) 45% 46%, transparent 46%),
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.18), transparent 15rem);
}

p {
  margin: 0 0 1.35rem;
}

strong,
b {
  font-weight: 800;
}

ul,
ol {
  margin: 0 0 1.45rem 1.25rem;
  padding: 0;
}

li + li {
  margin-top: 0.45rem;
}

header,
.hero-section,
body > main,
body > aside,
.blog-page-wrapper,
.about-page-main,
.about-sidebar,
.contact-page-main,
.policy-page-main,
footer {
  position: relative;
  z-index: 1;
  width: min(var(--container), calc(100% - 64px));
  margin-inline: auto;
}

header {
  margin-top: 12px;
  background: var(--accent);
  border-radius: 0;
  box-shadow: var(--shadow);
}

.header-container {
  min-height: 66px;
  width: min(var(--content), calc(100% - 52px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  flex: 0 0 auto;
}

.logo a,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
  color: #070707;
}

.logo img,
.footer-logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #121212;
}

.site-name,
.footer-logo span {
  max-width: 190px;
  overflow-wrap: anywhere;
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
}

.search-box {
  position: relative;
  flex: 1 1 260px;
  max-width: 330px;
  margin-left: auto;
}

.search-box input {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0 44px 0 16px;
  background: rgba(0, 0, 0, 0.16);
  color: #fff;
  outline: none;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.search-box button {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #070707;
  color: #fff;
  cursor: pointer;
}

.main-nav {
  flex: 0 0 auto;
}

.main-nav ul,
.footer-nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  list-style: none;
}

.main-nav li + li,
.footer-nav li + li {
  margin-top: 0;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav a.active,
.main-nav a:hover,
.main-nav a:focus-visible {
  color: #060606;
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero-section {
  min-height: 300px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 16, 20, 0.95), rgba(7, 16, 20, 0.52)),
    linear-gradient(135deg, #111f26, #061014 62%, #ff3b35);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.34;
  border-radius: 0;
}

.hero-overlay {
  width: min(var(--content), calc(100% - 52px));
  margin: 0 auto;
  padding: 64px 0 48px;
}

.hero-section h1,
main h1,
.blog-header h1,
.about-header h1,
.contact-header h1 {
  margin: 0 0 1.05rem;
  color: var(--text);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-subtitle,
.intro-text {
  max-width: 790px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
}

body > main,
.blog-page-wrapper,
.about-page-main,
.about-sidebar,
.contact-page-main,
.policy-page-main,
body > aside,
footer {
  background: var(--surface);
}

body > main,
.about-page-main,
.contact-page-main,
.policy-page-main {
  padding: 34px clamp(24px, 4vw, 52px);
}

body > main {
  box-shadow: var(--shadow);
}

body > main > main,
.article-page-main > main,
article {
  max-width: none;
}

main h1 {
  text-align: center;
  font-size: clamp(25px, 3vw, 32px);
}

h2,
h3,
h4 {
  margin: 2rem 0 0.8rem;
  color: var(--text);
  line-height: 1.22;
  font-weight: 850;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(22px, 2.4vw, 29px);
}

h3 {
  font-size: clamp(18px, 2vw, 22px);
}

h4 {
  font-size: 17px;
}

section > img,
main > main > img,
article img {
  width: min(820px, 100%);
  min-height: 230px;
  max-height: 460px;
  margin: 28px auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--accent);
  background: var(--surface-2);
  color: var(--text);
  font-size: 18px;
  font-weight: 650;
}

table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: #071014;
  overflow: hidden;
}

th,
td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

th,
td:first-child {
  color: var(--text);
  font-weight: 800;
}

td {
  color: #edf2f4;
}

thead th {
  background: #101c22;
}

button,
.submit-btn,
.social-link,
.read-more,
.modal-close-btn,
.pagination-btn,
.pagination-number {
  font: inherit;
}

.submit-btn,
.social-link,
.modal-close-btn,
.pagination-btn,
.pagination-number,
.download-button,
a[href*="download" i] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  padding: 0 20px;
  background: var(--accent);
  color: #080808;
  font-weight: 850;
  cursor: pointer;
}

.submit-btn:hover,
.social-link:hover,
.modal-close-btn:hover,
.pagination-btn:hover,
.pagination-number:hover,
a[href*="download" i]:hover {
  background: var(--accent-hover);
  color: #050505;
}

.blog-page-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  padding: 34px clamp(24px, 4vw, 52px);
}

.blog-main,
.about-page-main,
.contact-page-main,
.policy-page-main {
  min-width: 0;
}

.articles-container {
  display: grid;
  gap: 22px;
}

.blog-post,
.sidebar-widget,
.about-section,
.contact-form-section,
.contact-info-box,
.social-share,
.recent-posts-slider,
.popular-posts,
.comments-section,
.author-bio,
.search-modal {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--surface-2);
  border-radius: var(--radius);
}

.blog-post {
  position: relative;
  overflow: hidden;
}

.post-link {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 210px;
}

.blog-post.featured .post-link {
  grid-template-columns: 360px minmax(0, 1fr);
}

.post-image-wrapper,
.post-image {
  width: 100%;
  height: 100%;
}

.post-image {
  min-height: 210px;
  border-radius: 0;
}

.post-details {
  padding: 24px;
}

.post-details h2 {
  margin-top: 0;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 14px;
  color: var(--muted-2);
  font-size: 13px;
}

.featured-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--accent);
  color: #070707;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.read-more {
  color: var(--accent-hover);
  font-weight: 850;
}

.blog-sidebar,
.about-sidebar {
  display: grid;
  align-content: start;
  gap: 22px;
}

.sidebar-widget,
.about-section,
.contact-form-section,
.contact-info-box {
  padding: 24px;
}

.sidebar-widget h3,
.about-section h2,
.contact-form-section h2,
.contact-info-box h3 {
  margin-top: 0;
}

.sidebar-list,
.sidebar-updates {
  margin-left: 0;
  list-style: none;
}

.sidebar-list a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text);
  font-weight: 700;
}

.pagination-container,
.pagination-numbers,
.share-buttons,
.author-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.pagination {
  margin-top: 26px;
}

.pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.about-content-wrapper,
.contact-content-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.contact-content-wrapper {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-weight: 750;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 13px;
  background: #050b0e;
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(255, 59, 53, 0.18);
}

.contact-detail-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.contact-detail-item svg {
  flex: 0 0 auto;
  color: var(--accent);
}

body > aside {
  padding: 0 clamp(24px, 4vw, 52px) 28px;
}

.social-share,
.recent-posts-slider,
.popular-posts,
.comments-section,
.author-bio {
  padding: 24px;
}

.share-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text);
}

.share-btn:hover {
  background: var(--accent);
  color: #070707;
}

.slider-container {
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.3s ease;
}

.slider-slide {
  flex: 0 0 100%;
  padding-right: 2px;
}

.slider-slide a {
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 14px 24px;
  align-items: start;
  min-height: 220px;
}

.slider-slide img {
  grid-row: 1 / 3;
  grid-column: 1;
}

.slider-slide h3 {
  grid-column: 2;
  margin: 4px 0 0;
  align-self: end;
}

.slider-slide p {
  grid-column: 2;
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.slider-slide img,
.popular-post-item img {
  width: 100%;
  min-height: 220px;
  max-height: 260px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: var(--line);
  cursor: pointer;
}

.dot.active {
  background: var(--accent);
}

.popular-post-item {
  margin-top: 18px;
}

.popular-post-item a {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.comments-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.comments-toggle h2 {
  margin: 0;
}

.toggle-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #070707;
  cursor: pointer;
}

.toggle-btn.active .arrow-icon {
  transform: rotate(180deg);
}

.comment-form-container {
  display: none;
  padding-top: 22px;
}

.comment-form-container.active {
  display: block;
}

.author-bio {
  display: flex;
  align-items: center;
  gap: 22px;
}

.author-photo {
  flex: 0 0 auto;
  width: 112px;
  height: 112px;
  border-radius: 50%;
}

footer {
  margin-bottom: 12px;
  padding: 28px clamp(24px, 4vw, 52px);
  color: var(--muted);
}

.footer-container {
  width: 100%;
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(320px, 1fr) auto;
  gap: clamp(22px, 3vw, 44px);
  align-items: center;
}

.footer-logo,
.footer-nav a {
  color: var(--text);
}

.footer-logo {
  min-width: 0;
  justify-self: start;
  overflow: visible;
}

.footer-logo span {
  max-width: none;
  white-space: nowrap;
}

.footer-info {
  min-width: 0;
}

.footer-info p {
  margin-bottom: 0.4rem;
  font-size: 14px;
}

.footer-nav {
  justify-self: end;
  min-width: max-content;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.search-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.72);
}

.search-modal {
  width: min(460px, 100%);
  padding: 28px;
  text-align: center;
}

.search-modal-icon {
  font-size: 34px;
}

.search-modal-links {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.modal-link {
  display: block;
  padding: 10px;
  border-radius: 4px;
  background: var(--surface-3);
}

@media (max-width: 980px) {
  header,
  .hero-section,
  body > main,
  body > aside,
  .blog-page-wrapper,
  .about-page-main,
  .about-sidebar,
  .contact-page-main,
  .policy-page-main,
  footer {
    width: min(var(--container), calc(100% - 28px));
  }

  .header-container {
    width: min(var(--content), calc(100% - 28px));
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .search-box {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    margin-left: 0;
  }

  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav {
    display: none;
    order: 4;
    flex-basis: 100%;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    display: grid;
    gap: 8px;
    padding: 8px 0 4px;
  }

  .main-nav a {
    display: flex;
    width: 100%;
    min-height: 42px;
    padding: 0 10px;
    background: rgba(0, 0, 0, 0.16);
    border-radius: 4px;
  }

  .blog-page-wrapper,
  .contact-content-wrapper {
    grid-template-columns: 1fr;
  }

  .post-link,
  .blog-post.featured .post-link,
  .slider-slide a,
  .popular-post-item a,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .slider-slide a {
    grid-template-rows: auto;
    min-height: 0;
  }

  .slider-slide img,
  .slider-slide h3,
  .slider-slide p {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  header {
    margin-top: 8px;
  }

  .hero-overlay,
  .header-container {
    width: min(var(--content), calc(100% - 24px));
  }

  .hero-section {
    min-height: 260px;
  }

  .hero-overlay {
    padding: 46px 0 34px;
  }

  body > main,
  .blog-page-wrapper,
  .about-page-main,
  .contact-page-main,
  .policy-page-main,
  body > aside,
  footer {
    padding-inline: 16px;
  }

  main h1 {
    text-align: left;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  th,
  td {
    padding: 10px 12px;
  }

  .form-row,
  .author-bio {
    grid-template-columns: 1fr;
    display: grid;
  }

  .footer-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
}
