/* Blog Page Styles */
:root {
  --primary-color: #BCB812;
  --secondary-color: #9E9A10;
  --accent-color: #E1E13D;
  --nav-height: 100px;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
}

/* Navigation */
.navbar {
  background: var(--primary-color);
  padding: 0;
  position: fixed;
  width: 100%;
  top: 0;
  height: var(--nav-height);
  z-index: 10000;
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 0 4px; /* match landing spacing: right 20px, left small */
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  margin-left: 0; /* ensure logo itself has no extra left offset */
}

.logo-image {
  max-height: calc(var(--nav-height) * 1.05);
  width: auto;
  filter: none;
  transition: var(--transition);
  position: relative;
  z-index: 1001;
  display: block;
  object-fit: contain;
}

.logo-image:hover {
  filter: none;
}

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

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-btn {
  background: var(--white);
  color: var(--primary-color);
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
}

.nav-btn::after {
  display: none;
}

.nav-btn:hover {
  background: var(--secondary-color);
  color: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Blog Hero */
.blog-hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 120px 2rem 80px;
  text-align: center;
  color: var(--white);
  margin-top: 0;
}

.blog-hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-logo {
  margin-bottom: 1rem;
}

.hero-logo-image {
  max-height: calc(var(--nav-height) * 0.8);
  width: auto;
  filter: none;
  opacity: 0.95;
  display: block;
  object-fit: contain;
}

.blog-hero-content p {
  font-size: 1.3rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Main Content */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
}

.blog-post {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.blog-sidebar {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  margin-bottom: 2rem;
}

.sidebar-widget h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.sidebar-widget p {
  color: var(--text-color);
  line-height: 1.6;
}

.sidebar-widget ul {
  list-style: none;
}

.sidebar-widget ul li {
  margin-bottom: 0.5rem;
}

.sidebar-widget ul li a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.sidebar-widget ul li a:hover {
  color: var(--primary-color);
}

/* Blog Sections */
.blog-section {
  padding: 3rem;
  border-bottom: 1px solid #eee;
}

.blog-section:last-child {
  border-bottom: none;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  margin-bottom: 2rem;
  border-radius: 2px;
}

/* Intro Box */
  .intro-box {
    background: linear-gradient(135deg, #BCB81215, #9E9A1015);
  border-left: 4px solid var(--primary-color);
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-color);
}

/* Featured Image */
.featured-image-container {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
  position: relative;
}

.featured-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-image:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin: 2rem 0;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
}

.highlight-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.highlight-box h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.highlight-box p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* MOYNA Image */
.moyna-image-container {
  margin-top: 1.5rem;
  text-align: center;
}

.moyna-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.moyna-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Feature List */
.feature-list {
  background: var(--light-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 2rem 0;
  border-left: 4px solid var(--primary-color);
}

.feature-list li {
  margin-bottom: 1rem;
  padding-left: 1rem;
  position: relative;
}

.feature-list li::before {
  content: "✓";
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: -1rem;
  top: 0;
}

.feature-list strong {
  color: var(--primary-color);
}

/* History Section */
.history-section {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.timeline-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

/* Timeline Images */
.timeline-images-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 0.5rem;
}

.timeline-image-wrapper {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  display: flex;
  justify-content: center;
  transition: transform 0.3s ease;
}

.timeline-image-wrapper:hover {
  transform: translateY(-2px);
}

.timeline-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.timeline-image:hover {
  opacity: 1;
  transform: scale(1.02);
}

/* Vision Section */
.vision-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
}

.vision-section .section-title {
  color: var(--white);
}

.mission-highlight {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.mission-highlight p {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.6;
}

/* Typography */
p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

p:last-child {
  margin-bottom: 0;
}

em {
  font-style: italic;
  color: var(--secondary-color);
}

/* Sidebar */
.blog-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-widget {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.sidebar-widget h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.sidebar-widget p {
  color: var(--text-color);
  line-height: 1.6;
}

.sidebar-logo {
  text-align: center;
  margin-bottom: 1rem;
}

.sidebar-logo-image {
  max-height: calc(var(--nav-height) * 0.8);
  width: auto;
  filter: none;
  display: block;
  object-fit: contain;
}

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

/* Footer (copied from landing.css to be identical) */
.footer {
  background: #2d3748;
  color: white;
  padding: 50px 20px 20px;
}

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

  .footer-section h4 {
  font-size: 1.2em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95em;
}

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

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

  .footer-section a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.footer-section ul li a {
  color: #a0aec0;
  text-decoration: none;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid #4a5568;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Scale down logos on tablet */
  .hero-logo-image {
    max-height: calc(var(--nav-height) * 1.02);
  }

  .sidebar-logo-image {
    max-height: calc(var(--nav-height) * 1);
  }

  .footer-logo-image {
    max-height: calc(var(--nav-height) * 1.02);
  }

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

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

  .section-title {
    font-size: 1.8rem;
  }

  .blog-section {
    padding: 2rem 1.5rem;
  }

  .featured-image-container {
    margin: 2rem 0;
  }

  .featured-image {
    border-radius: 8px;
  }

  .moyna-image-container {
    margin-top: 1rem;
  }

  .moyna-image {
    border-radius: 6px;
  }

  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .intro-box,
  .highlight-box,
  .feature-list {
    padding: 1.5rem;
  }

  .timeline-images-container {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .timeline-image-wrapper {
    min-width: 150px;
    max-width: 250px;
  }

  /* Scale down logos on phones */
  .hero-logo-image {
    max-height: calc(var(--nav-height) * 1);
  }

  .sidebar-logo-image {
    max-height: calc(var(--nav-height) * 0.95);
  }

  .footer-logo-image {
    max-height: calc(var(--nav-height) * 1);
  }
}

@media (max-width: 480px) {
  .blog-hero {
    padding: 100px 1rem 60px;
  }

  .blog-container {
    padding: 2rem 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

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

.blog-section {
  animation: fadeInUp 0.6s ease-out;
}

.blog-section:nth-child(odd) {
  animation-delay: 0.1s;
}

.blog-section:nth-child(even) {
  animation-delay: 0.2s;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}