@font-face {
  font-family: "matter";
  src: url("../fonts/matter-bold-webfont.woff2") format("woff2"),
    url("../fonts/matter-bold-webfont.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "matter";
  src: url("../fonts/matter-medium-webfont.woff2") format("woff2"),
    url("../fonts/matter-medium-webfont.woff") format("woff");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "matter";
  src: url("../fonts/matter-regular-webfont.woff2") format("woff2"),
    url("../fonts/matter-regular-webfont.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "matter";
  src: url("../fonts/matter-semibold-webfont.woff2") format("woff2"),
    url("../fonts/matter-semibold-webfont.woff") format("woff");
  font-weight: 600;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "matter";
  background: #1e1e1e;
  color: #e0e0e0;
  line-height: 1.6;
}

/* ============ Header ============ */
.header {
  background: #1e1e1e;
  /*backdrop-filter: blur(10px);*/
  padding: 1.2rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #d7d7d733;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  white-space: nowrap;
}

.logo svg {
  width: 40px;
  height: 40px;
}

/* ============ Navigation ============ */
.nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;

  padding: 2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.nav.active {
  max-height: 400px;
}

.nav a {
  color: #a0a0a0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
  display: block;
  white-space: nowrap;
  width: 100%;
}

.nav a:hover {
  color: #742aa8;
}

/* ============ Hamburger Menu ============ */
.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 1001;
}

.hamburger-menu span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* ============ Header Actions ============ */
.header-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.relative {
  position: relative;
}
.language-selector {
  background: #d7d7d733;
  border: none;
  padding-left: 35px !important;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  cursor: pointer;
  font-size: 1rem;
  outline: none;
  transition: background 0.3s;
}
img.globimg {
  position: absolute;
  top: 7px;
  left: 7px;
}
.language-selector:hover {
  background: rgba(255, 255, 255, 0.15);
}

.contact-btn {
  background: #742aa8;
  color: white;
  border: none;
  font-size: 0.95rem;
  padding: 0.7rem 1.8rem;
  border-radius: 100px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-btn:hover {
  transform: translateY(-2px);
}

.custom-lang-switcher {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: #333;
    color: #fff;
    padding: 8px 14px;
    border-radius: 30px;
    cursor: pointer;
    border: 1px solid #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.lang-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    background: #222;
    border: 1px solid #444;
    border-radius: 10px;
    list-style: none;
    padding: 10px 0;
    display: none;
    min-width: 140px;
    z-index: 999;
}

.lang-dropdown li {
    padding: 8px 20px;
}

.lang-dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.lang-dropdown li:hover {
    background: #444;
}


/* ============ Hero Section ============ */
.hero-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 2rem;
  text-align: center;
}

.hero-content {
  background: #2c2c2c;
  border-radius: 40px;
  padding: 4.5rem 2rem;
  margin-bottom: 3rem;
}

.blog-content {
  background: #2c2c2c;
  border-radius: 40px;
  padding: 2.5rem 2rem;
}
.text-start {
  font-size: 48px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: left;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.15rem;
  color: #7e7e7e;
  margin: 0 auto;
}

/* ============ Blog Grid ============ */
.blog-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid #d7d7d733;
  padding: 20px;
  border-radius: 20px;
  text-align: left;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  width: 400px;
  max-width: 100%;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-card:nth-child(1) {
  animation-delay: 0s;
}
.blog-card:nth-child(2) {
  animation-delay: 0.1s;
}
.blog-card:nth-child(3) {
  animation-delay: 0.2s;
}
.blog-card:nth-child(4) {
  animation-delay: 0.3s;
}
.blog-card:nth-child(5) {
  animation-delay: 0.4s;
}
.blog-card:nth-child(6) {
  animation-delay: 0.5s;
}
.blog-card:nth-child(7) {
  animation-delay: 0.6s;
}
.blog-card:nth-child(8) {
  animation-delay: 0.7s;
}
.blog-card:nth-child(9) {
  animation-delay: 0.8s;
}

.card-image {
  width: 100%;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 20px 0;
}

.card-date {
  font-size: 1rem;
  color: #7e7e7e;
  margin-bottom: 0.8rem;
}

.card-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #fff;
  line-height: 1.4;
}

.card-description {
  font-size: 1rem;
  color: #7e7e7e;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.read-more-btn {
  background: #742aa8;
  color: white;
  border: none;
  font-size: 0.95rem;
  padding: 0.7rem 1.8rem;
  border-radius: 100px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.read-more-btn:hover {
  transform: translateY(-2px);
}

.load-more-wrapper button{
  background: #742aa8;
  color: white;
  border: none;
  font-size: 0.95rem;
  padding: 1rem 1.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.load-more-wrapper button:hover {
  transform: translateY(-2px);
}

.footer-icon{
  width: 30px;
  margin-right: .50rem;
}

.contact-items{
  font-size: 16px;
}

.contact-items{
  color: #7e7e7e;
}

/* ============ Footer ============ */
.footer {
  background: #2c2c2c;

  border-radius: 50px 50px 0 0;
  margin-top: 3rem;
}

.footer-content {
  padding: 3rem 2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: #7e7e7e;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 1rem;
}

.footer-section a:hover {
  color: #742aa8;
}

.footer-logo {
  margin-bottom: 1rem;
  font-weight: 600;
  color: #fff;
  font-size: 1.2rem;
}

.footer-text {
  color: #7e7e7e;
  font-size: 1rem;
}

.footer-address {
  color: #7e7e7e;
  font-size: 1rem;
  margin-top: 1rem;
  display: block;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #742aa8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #742aa8;
  transition: all 0.3s;
  text-decoration: none;
}

.social-links a:hover {
  background: #742aa8;
  color: white;
}
.bottom-part {
  border-top: 1px solid #d7d7d733;
}

.footer-bottom {
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
  padding-top: 1rem;
  color: #7e7e7e;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.security-badges {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.security-badges span {
  display: inline-block;
  font-size: 0.8rem;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 2rem;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
}

.sidebar {
  position: sticky;
  top: 120px;
  height: fit-content;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem 0;
}

.sidebar-title {
  padding: 0 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li {
  transition: all 0.3s;
}

.sidebar-nav li.active {
  background: rgba(168, 85, 247, 0.1);
  border-left: 2px solid #a855f7;
}

.sidebar-nav a {
  display: block;
  padding: 0.8rem 1.5rem;
  color: #7e7e7e;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.sidebar-nav a:hover,
.sidebar-nav li.active a {
  color: #a855f7;
  padding-left: 2rem;
}

/* ============ Main Content ============ */
.main-content {
  padding: 3rem 0;
}

.article-header {
  margin-bottom: 3rem;
  text-align: center;
}

.article-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  color: #7e7e7e;
  font-size: 0.9rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
}

.article-image {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 3rem;
  object-fit: cover;
}

/* ============ Article Sections ============ */
.article-section {
  margin-bottom: 4rem;
}

.article-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.article-section h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
  color: #fff;
}

.article-section p {
  margin-bottom: 1.5rem;
  color: #7e7e7e;
  line-height: 1.8;
}

.article-section ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.article-section ul li {
  margin-bottom: 0.8rem;
  color: #7e7e7e;
  line-height: 1.8;
}

.section-image {
  width: 100%;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  margin: 2rem 0;
  object-fit: cover;
}

/* ============ Related Posts ============ */
.related-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #fff;
  text-align: center;
}

.related-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.related-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.related-card:hover {
  transform: translateY(-8px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 20px 40px rgba(168, 85, 247, 0.15);
}

.related-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.related-card-content {
  padding: 1.5rem;
}

.related-card-date {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.8rem;
}

.related-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #fff;
  line-height: 1.4;
}

.related-card-description {
  font-size: 0.9rem;
  color: #7e7e7e;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

/* ============ Responsive Design ============ */
@media (max-width: 1024px) {
  .container {
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }

  .sidebar {
    top: 80px;
  }

  .article-header h1 {
    font-size: 2rem;
  }

  .article-image {
    height: 300px;
  }

  .section-image {
    height: 250px;
  }
  .header-container {
    gap: 1rem;
  }

  .nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 70px;
    background: #1e1e1e;
    flex-direction: column;
    padding: 30px 30px 0px 30px;
    border-radius: 0;
    max-height: 0;
    gap: 1rem;
  }

  .nav.active {
    max-height: 360px;
  }

  .nav a {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .hamburger-menu {
    display: flex;
  }

  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .sidebar {
    position: relative;
    top: 30px;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .sidebar-title {
    grid-column: 1 / -1;
    padding: 0;
    margin-bottom: 1rem;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    grid-column: span 1;
  }



  .article-header h1 {
    font-size: 1.5rem;
  }

  .article-image {
    height: 250px;
  }

  .section-image {
    height: 200px;
  }


  .related-posts {
    grid-template-columns: 1fr;
  }

  .main-content {
    padding: 1rem 0;
  }
}

@media (max-width: 640px) {
  .header {
    padding: 1rem;
  }
  .contact-btn {
    display: none;
  }

  .logo {
    font-size: 1.4rem;
  }

  .logo svg {
    width: 32px;
    height: 32px;
  }

  .language-selector,
  .contact-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  .contact-btn {
    padding: 0.6rem 1rem;
  }

  .nav {
    top: 70px;
    padding: 30px 30px 0px 30px;
  }

  .nav a {
    font-size: 1rem;
    padding: 0.6rem 0;
  }

  .hero-section {
    padding: 2rem 1rem;
  }

  .hero-content {
    padding: 2rem 1.5rem;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }



  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0;
  }

  .footer {
    padding: 2rem 1rem 1.5rem;
  }

  .footer-bottom {
    font-size: 0.8rem;
  }

  .security-badges {
    flex-direction: column;
    gap: 0.5rem;
  }

  .security-badges span {
    font-size: 0.75rem;
  }
}
