/* Google Fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&display=swap');

:root {
  --primary-color: #2C3E50;
  --accent-color: #FF9F1C;
  --accent-hover: #FFB347;
  --text-color: #333333;
  --bg-color: #F4F4F4;
  --white: #FFFFFF;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --font-main: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  direction: ltr;
  /* English LTR */
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Header */
header {
  background-color: rgba(255, 255, 255, 0.7);
  /* Semi-transparent white */
  backdrop-filter: blur(10px);
  /* Glassmorphism effect */
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  position: fixed;
  /* Fixed to stay on top */
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
  /* Smooth slide transition */
}

header.nav-hidden {
  transform: translateY(-100%);
  /* Move up to hide */
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-color);
}

.logo span {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 700;
  color: var(--primary-color);
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('../images/hero_background.png') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 5rem 2rem;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background: var(--accent-color);
  color: var(--white);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  transition: background 0.3s;
}

.btn:hover {
  background: var(--accent-hover);
}

/* Pagination Buttons */
.btn-secondary {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  transition: background 0.3s;
  cursor: pointer;
  border: none;
}

.btn-secondary:hover {
  background: #34495e;
}

.btn-secondary:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
  font-size: 2rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  margin: 10px auto;
  border-radius: 2px;
}

/* Cards Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}


.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  /* Ensure consistent height alignment */
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.card-desc {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.card-meta {
  font-size: 0.8rem;
  color: #999;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Categories Section */
.categories {
  text-align: center;
  margin: 4rem 0;
}

.cat-card {
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.cat-card:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.cat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Lightbox/Modal Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  border-radius: 8px;
}

.lightbox-video-container {
  width: 800px;
  max-width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  position: relative;
  height: 0;
  background: #000;
}

.lightbox-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  z-index: 2001;
  transition: color 0.3s;
}

.lightbox-close:hover {
  color: var(--accent-color);
}

/* Responsive */
/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    /* Allow wrapping */
  }

  .nav-links {
    display: none;
    /* Hide via JS toggle */
    width: 100%;
    flex-direction: column;
    text-align: center;
    padding-top: 1rem;
    gap: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    /* Show on mobile */
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .container {
    padding: 1rem;
  }
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none;
    /* Hide on desktop */
  }
}