/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Nunito", sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #4a90a4;
  margin-bottom: 0.2rem;
}

.logo h1 a {
  text-decoration: none;
  color: inherit;
}

.tagline {
  font-size: 0.9rem;
  color: #8a9ba8;
  font-weight: 400;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #5a6c7d;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #4a90a4;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #4a90a4;
}

/* Mobile Navigation */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  z-index: 1100;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #4a90a4;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f8fbff 0%, #e8f4f8 100%);
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.3rem;
  color: #5a6c7d;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-button {
  display: inline-block;
  background: #7fb069;
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(127, 176, 105, 0.3);
}

.cta-button:hover {
  background: #6fa055;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(127, 176, 105, 0.4);
}

/* Featured Articles Section */
.featured-section {
  padding: 4rem 0;
  background: #fff;
}

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

.section-header h2 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-weight: 600;
}

.section-header p {
  font-size: 1.1rem;
  color: #5a6c7d;
  max-width: 600px;
  margin: 0 auto;
}

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

.article-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.article-content {
  padding: 1.5rem;
}

.article-category {
  display: inline-block;
  background: #7fb069;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-content h2,
.article-content h3 {
  color: #2c3e50;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.article-content h2 {
  font-size: 1.4rem;
}

.article-content h3 {
  font-size: 1.2rem;
}

.article-content h2 a,
.article-content h3 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.article-content h2 a:hover,
.article-content h3 a:hover {
  color: #4a90a4;
}

.article-content p {
  color: #5a6c7d;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #8a9ba8;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Blog and Category Page Styles */
.blog-main,
.category-main,
.privacy-main {
  padding: 2rem 0;
  background: #fff;
}

.page-header,
.category-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  background: linear-gradient(135deg, #f8fbff 0%, #e8f4f8 100%);
  border-radius: 12px;
}

.page-header h1,
.category-header h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-weight: 700;
}

.page-header p,
.category-header p {
  font-size: 1.2rem;
  color: #5a6c7d;
  max-width: 600px;
  margin: 0 auto;
}

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

/* About Page Styles */
.about-main {
  padding: 2rem 0;
  background: #fff;
}

.about-content {
  margin-bottom: 4rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
}

.about-text h2 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  font-weight: 600;
}

.about-text p {
  color: #5a6c7d;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-text ul {
  margin: 1rem 0 2rem 2rem;
}

.about-text li {
  color: #5a6c7d;
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-section,
.values-section {
  margin: 4rem 0;
}

.team-section h2,
.values-section h2 {
  text-align: center;
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 3rem;
  font-weight: 600;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-member {
  background: #f8fbff;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-3px);
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  border: 4px solid #e8f4f8;
}

.team-member h3 {
  color: #2c3e50;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.team-role {
  color: #4a90a4;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.team-member p {
  color: #5a6c7d;
  line-height: 1.6;
  font-size: 0.95rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.value-card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #7fb069;
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-3px);
}

.value-card h3 {
  color: #2c3e50;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.value-card p {
  color: #5a6c7d;
  line-height: 1.6;
}

/* Category Page Styles */
.category-intro {
  background: #f8fbff;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  border-left: 4px solid #4a90a4;
}

.category-intro h2 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.category-intro p {
  color: #5a6c7d;
  line-height: 1.7;
  font-size: 1.1rem;
}

.category-tips {
  margin-top: 4rem;
  padding: 3rem 2rem;
  background: #f8fbff;
  border-radius: 12px;
}

.category-tips h2 {
  text-align: center;
  color: #2c3e50;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.tip-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.tip-card:hover {
  transform: translateY(-2px);
}

.tip-card h3 {
  color: #4a90a4;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.tip-card p {
  color: #5a6c7d;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Privacy Page Styles */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.privacy-content section {
  margin-bottom: 2.5rem;
}

.privacy-content h2 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
  border-bottom: 2px solid #e8f4f8;
  padding-bottom: 0.5rem;
}

.privacy-content h3 {
  color: #4a90a4;
  font-size: 1.3rem;
  margin: 1.5rem 0 0.8rem;
  font-weight: 600;
}

.privacy-content p {
  color: #5a6c7d;
  margin-bottom: 1rem;
}

.privacy-content ul {
  margin: 1rem 0 1.5rem 2rem;
}

.privacy-content li {
  color: #5a6c7d;
  margin-bottom: 0.5rem;
}

/* Footer Styles */
.footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: #4a90a4;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-section h3 {
  font-size: 1.3rem;
}

.footer-section h4 {
  font-size: 1.1rem;
}

.footer-section p {
  color: #bdc3c7;
  line-height: 1.6;
  margin-bottom: 1rem;
}

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

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

.footer-section ul li a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #4a90a4;
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 1rem;
  text-align: center;
  color: #95a5a6;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 1rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.mb-3 {
  margin-bottom: 3rem;
}

.mt-1 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 2rem;
}
.mt-3 {
  margin-top: 3rem;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #4a90a4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus {
  outline: 2px solid #4a90a4;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .nav,
  .cta-button {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  .article-content {
    padding: 0;
  }
}

/* Responsive Design Updates */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-container {
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .logo {
    position: relative;
    z-index: 1101;
  }
  .nav-menu {
    padding-top: 6rem;
    box-shadow: 0 4px 24px rgba(44, 62, 80, 0.1),
      0 -2px 8px rgba(44, 62, 80, 0.06);
    border-top: 2px solid #e8f4f8;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }
  .nav-menu .logo-mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-left: 0.2rem;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 5rem 2rem 2rem 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1050;
    align-items: flex-start;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu li {
    margin: 1rem 0;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .category-intro,
  .category-tips {
    padding: 1.5rem;
  }

  .articles-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .team-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .page-header h1,
  .category-header h1 {
    font-size: 2rem;
  }

  .category-intro,
  .category-tips {
    padding: 1.5rem;
  }

  .team-member,
  .value-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

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

  .page-header,
  .category-header {
    padding: 1.5rem 1rem;
  }

  .article-content {
    padding: 1rem;
  }

  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  .team-member,
  .value-card {
    padding: 1.5rem;
  }

  .about-text h2 {
    font-size: 1.5rem;
  }

  .nav-container {
    padding: 1rem 0.5rem;
  }
}

@media (max-width: 400px) {
  .tagline {
    font-size: 0.7rem;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .article-card {
    border: 2px solid #2c3e50;
  }

  .cta-button {
    border: 2px solid #fff;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --card-bg: #2d2d2d;
  }

  /* Uncomment to enable dark mode
    body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }
    
    .article-card,
    .team-member,
    .value-card,
    .tip-card {
        background: var(--card-bg);
    }
    */
}

/* Explore by Category (Home) */
.categories {
  padding: 4rem 0 2rem 0;
  background: #f8fbff;
  border-radius: 12px;
  margin-bottom: 3rem;
}

.categories h2,
.featured-articles h2 {
  text-align: center;
  color: #2c3e50;
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  font-weight: 700;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.category-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 5px 20px rgba(76, 175, 175, 0.07);
  padding: 2rem 1.5rem 2.5rem 1.5rem;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 420px;
}

.category-card:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 12px 32px rgba(76, 175, 175, 0.13);
}

.category-card img {
  width: 100%;
  max-width: 220px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 10px rgba(76, 175, 175, 0.08);
}

.category-card h3 {
  color: #4a90a4;
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
  font-weight: 600;
}

.category-card p {
  color: #5a6c7d;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  flex: 1 1 auto;
}

.category-link {
  display: inline-block;
  background: #7fb069;
  color: #fff;
  padding: 0.7rem 1.7rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 10px rgba(127, 176, 105, 0.13);
  margin-top: 0.5rem;
}

.category-link:hover {
  background: #6fa055;
  box-shadow: 0 4px 18px rgba(127, 176, 105, 0.18);
}

@media (max-width: 768px) {
  .categories {
    padding: 2.5rem 0 1rem 0;
  }
  .categories h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .categories-grid {
    gap: 1.2rem;
  }
  .category-card {
    padding: 1.2rem 0.7rem 1.7rem 0.7rem;
    min-height: 340px;
  }
  .category-card img {
    max-width: 150px;
    height: 80px;
  }
}

.logo-mobile {
  display: none;
}

@media (max-width: 768px) {
  .nav-menu.active .logo-mobile {
    display: flex;
  }
}

/* Prevent text selection and copying on all text */
body,
body * {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
  pointer-events: auto;
}

body,
body * {
  -webkit-touch-callout: none;
}

body,
body *::selection {
  background: none;
}
