/* ============================
         Root Variables
      ============================ */
:root {
  --primary-color: #1d3557;
  --primary-light: #457b9d;
  --primary-dark: #0d1b2a;
  --accent-color: #e63946;

  --dark-color: #1e293b;
  --gray-color: #64748b;
  --light-color: #f4f7fa;
  --secondary-color: #eaf2fb;

  --border-color: #e2e8f0;
  --radius: 0.75rem;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================
         Base Reset & Animations
      ============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

body {
  font-family: "Inter", sans-serif;
  background: var(--light-color);
  color: var(--dark-color);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ============================
         Layout
      ============================ */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.4rem;
}

/* ============================
         Header / Navbar
      ============================ */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  padding: 0.7rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  transition: var(--transition);
}

.logo img {
  height: 70px;
  object-fit: contain;
  transition: var(--transition);
}

.header.scrolled .logo img {
  height: 60px;
}

.nav ul {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav ul li a {
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav ul li a:hover::after,
.nav ul li a.active::after {
  width: 100%;
}

.nav ul li a:hover,
.nav ul li a.active {
  color: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-btn span {
  width: 28px;
  height: 3px;
  background: var(--dark-color);
  border-radius: 3px;
  transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================
         Page Header
      ============================ */
.page-header {
  padding-top: 10rem;
  padding-bottom: 4rem;
  background: linear-gradient(135deg, #1d3557 0%, #457b9d 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.8s ease-in-out;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: pulse 4s ease-in-out infinite;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease-out;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* ============================
         Article Content
      ============================ */
.article-content {
  padding: 5rem 0;
}

.content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  animation: fadeIn 1s ease-in-out;
}

/* Controls */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
  justify-content: center;
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.controls input,
.controls select {
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  border-radius: var(--radius);
  border: 2px solid var(--border-color);
  flex: 1 1 200px;
  max-width: 300px;
  background: white;
  transition: var(--transition);
  font-family: inherit;
}

.controls input:focus,
.controls select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(29, 53, 87, 0.1);
  outline: none;
}

.controls input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  padding-left: 40px;
}

/* Articles Grid */
.articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.article {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  animation: slideUp 0.8s ease-out backwards;
  position: relative;
  overflow: hidden;
}

.article:nth-child(1) {
  animation-delay: 0.2s;
}
.article:nth-child(2) {
  animation-delay: 0.4s;
}
.article:nth-child(3) {
  animation-delay: 0.6s;
}
.article:nth-child(4) {
  animation-delay: 0.8s;
}
.article:nth-child(5) {
  animation-delay: 1s;
}
.article:nth-child(6) {
  animation-delay: 1.2s;
}

.article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--primary-color),
    var(--primary-light)
  );
  transform: scaleY(0);
  transition: var(--transition);
}

.article:hover::before {
  transform: scaleY(1);
}

.article:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.article-category {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.article h2 {
  margin: 0 0 1rem;
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
}

.article p {
  color: var(--gray-color);
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--gray-color);
  margin-bottom: 1rem;
}

.article-meta i {
  color: var(--primary-light);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition);
}

.read-more:hover {
  gap: 0.8rem;
}

.read-more i {
  transition: var(--transition);
}

/* Info Section */
.info-section {
  background: white;
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  margin-bottom: 3rem;
  animation: fadeInUp 0.6s ease-out;
}

.info-section h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.info-section h2 i {
  font-size: 2rem;
}

.info-section p {
  font-size: 1.05rem;
  color: var(--gray-color);
  line-height: 1.8;
}

/* ============================
         Footer
      ============================ */
.footer {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-logo h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, white, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.links-column h3 {
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
  color: var(--primary-light);
}

.links-column a {
  display: block;
  margin: 0.6rem 0;
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition);
  padding-left: 0;
}

.links-column a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

/* ============================
         Responsive Design
      ============================ */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  .articles {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    background: white;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    padding: 6rem 2rem 2rem;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 999;
  }

  .nav.active {
    right: 0;
  }

  .nav ul {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .nav ul li a {
    font-size: 1.1rem;
  }

  .page-header {
    padding-top: 8rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .controls {
    flex-direction: column;
  }

  .controls input,
  .controls select {
    max-width: 100%;
  }

  .info-section {
    padding: 2rem;
  }
}

@media (max-width: 576px) {
  .page-header h1 {
    font-size: 2rem;
  }

  .page-header p {
    font-size: 1rem;
  }

  .article {
    padding: 1.5rem;
  }

  .article h2 {
    font-size: 1.3rem;
  }

  .articles {
    grid-template-columns: 1fr;
  }
}

/* Smooth Scroll Enhancement */
html {
  scroll-padding-top: 100px;
}
