/* === Base Settings ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fafafa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: #0059b2;
  transition: color 0.2s ease-in-out;
}

a:hover,
a:focus {
  color: #00a8e8;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* === Header ===================================================== */
header {
  background-color: #3a4a4c;
  color: #fff;
  padding: 15px 0;
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.logo:hover {
  color: #00a8e8;
}

/* === Navigation ================================================= */
.main-nav {
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

#top_menus {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

#top_menus .nav-link {
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  transition: color 0.2s ease-in-out;
}

#top_menus .nav-link:hover,
#top_menus .nav-link:focus {
  color: #00a8e8;
}

/* === Hero Section =============================================== */
.hero {
  background-color: #3a4a4c;
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, rgba(0, 168, 232, 0.2), rgba(58, 74, 76, 0.8));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* === Post List ================================================== */
.post-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

/* === Post Card ================================================== */
.post-item {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  height: 100%;
}

.post-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* Featured Image */
.post-featured-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* Title */
.post-item h3 {
  font-size: 1.125rem;
  margin: 1rem;
  line-height: 1.4;
}

.post-item h3 a {
  color: #111;
  text-decoration: none;
}

.post-item h3 a:hover {
  color: #00a8e8;
}

/* Excerpt */
.post-item p {
  margin: 0 1rem 1.25rem;
  color: #555;
  flex: 1 0 auto;
}

/* Read More Button */
.post-item > a:last-of-type {
  align-self: flex-start;
  margin: 0 1rem 1.25rem;
  background: #3a4a4c;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  transition: background 0.2s ease-in-out;
}

.post-item > a:last-of-type:hover {
  background: #00a8e8;
}

/* === Pagination ================================================= */
nav.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  font-weight: 600;
}

.page-numbers {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  text-decoration: none;
  color: #3a4a4c;
  transition: background 0.2s ease;
}

.page-numbers.current,
.page-numbers:hover {
  background: #3a4a4c;
  color: #fff;
  border-color: #3a4a4c;
}

.next.page-numbers,
.prev.page-numbers {
  border-color: transparent;
  color: #3a4a4c;
}

.next.page-numbers:hover,
.prev.page-numbers:hover {
  color: #00a8e8;
  background: transparent;
}

/* === Breadcrumbs ================================================ */
.breadcrumbs {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
  font-size: 0.875rem;
  color: #777;
}

.breadcrumbs a {
  color: #3a4a4c;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #00a8e8;
  text-decoration: underline;
}

.breadcrumbs span {
  color: #555;
}

/* === Page Content =============================================== */
.page-content {
  max-width: 800px;
  margin: 2rem auto 3rem;
  padding: 0 1rem 2rem;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

/* Featured Image in Page */
.page-content .post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Page Title */
.page-content h1 {
  font-size: 1.75rem;
  margin: 1.5rem 0 1rem;
  line-height: 1.3;
  color: #111;
  text-align: center;
}

/* Page Content */
.page-content .content p {
  margin-bottom: 1rem;
  color: #444;
}

/* === Footer ==================================================== */
footer {
  background: #3a4a4c;
  color: #d3d3d3;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-top: auto;
}

/* Footer Links */
footer a {
  color: #00a8e8;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Footer Menu */
.footer-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.footer-menu a {
  font-size: 0.875rem;
  color: #d3d3d3;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-menu a:hover,
.footer-menu a:focus {
  color: #ffffff;
  text-decoration: underline;
}

/* === Contact Info ============================================== */
.contact-info {
  margin: 1rem 0;
}

.contact-info p {
  margin: 0.5rem 0;
}

/* === Who We Are For Section ==================================== */
.who-we-are-for {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.who-we-are-for h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #3a4a4c;
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
  color: #555;
  line-height: 1.7;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.audience-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #ebebeb;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.audience-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.audience-card h3 {
  font-size: 1.25rem;
  color: #3a4a4c;
  margin-bottom: 1rem;
  font-weight: 600;
}

.audience-card p {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* === Recommended Articles ====================================== */
.recommended-articles {
  padding: 3rem 0;
  background-color: #f5f5f5;
}

.recommended-articles h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #3a4a4c;
}

/* === Call to Action Section ==================================== */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #3a4a4c 0%, #2a3a3c 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, rgba(0, 168, 232, 0.15), rgba(58, 74, 76, 0.3));
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 2.75rem;
  color: #fff;
  margin-bottom: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.cta-section p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.cta-primary {
  background: #00a8e8;
  color: #fff;
  border: 2px solid #00a8e8;
}

.cta-primary:hover {
  background: #0090c8;
  border-color: #0090c8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 168, 232, 0.4);
}

.cta-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* === 404 Page ================================================== */
.error-404 {
  text-align: center;
  padding: 4rem 0;
}

.error-404 h1 {
  font-size: 6rem;
  margin-bottom: 1rem;
  color: #3a4a4c;
}

.error-404 h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #555;
}

.error-404 p {
  margin-bottom: 2rem;
}

.error-404 .button {
  display: inline-block;
  background: #3a4a4c;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.error-404 .button:hover {
  background: #00a8e8;
}

/* === Responsive Styles ========================================= */
@media (max-width: 1200px) {
  .post-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .post-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .who-we-are-for h2 {
    font-size: 2.25rem;
  }
  
  .cta-section h2 {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  #top_menus {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #3a4a4c;
    padding: 1rem;
    gap: 0.5rem;
    display: none;
    z-index: 100;
  }
  
  #top_menus.active {
    display: flex;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .post-list {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding: 50px 0;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .footer-menu {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .page-content h1 {
    font-size: 1.5rem;
  }
  
  .audience-grid {
    grid-template-columns: 1fr;
  }
  
  .who-we-are-for {
    padding: 3rem 0;
  }
  
  .who-we-are-for h2 {
    font-size: 1.875rem;
  }
  
  .section-intro {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .cta-section {
    padding: 3rem 0;
  }
  
  .cta-section h2 {
    font-size: 1.875rem;
  }
  
  .cta-section p {
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cta-btn {
    width: 100%;
  }
}

/* === Animation Effects ========================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

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

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-5 { padding-left: 3rem; padding-right: 3rem; }
