/* ==========================
   RESET & BASE
========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a1a;
    color: #eee;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ==========================
   NAVBAR
========================== */
.navbar {
  height: 80px;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #000, #800000);
  position: fixed;
  width: 100%;
  z-index: 999;
}

.logo img {
  height: 90px;
  filter:
    drop-shadow(0 0 2px #fff)
    drop-shadow(0 0 6px rgba(255,255,255,0.8))
    drop-shadow(0 0 12px rgba(255,255,255,0.5));
}

/* Desktop nav */
.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #fff;
  font-weight: 500;
}

.nav-links a:hover {
  color: #000;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
}

/* Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 998;
}

.nav-overlay.active {
  display: block;
}

/* Close button (desktop hidden) */
.close-menu {
  display: none;
}


/* ==========================
   HERO SECTION
========================== */
.hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.blog-tag {
    background: #800000;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-weight: bold;
}

.hero h1 {
    font-size: 2.5rem;
    margin: 1rem 0;
}


/* ==========================
   BLOG GRID
========================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1800px;
    margin: auto;
}

/* ==========================
   BLOG CARD
========================== */
.blog-card {
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    height: 420px;               /* FIXED CARD HEIGHT */
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
}

/* ==========================
   IMAGE
========================== */
.blog-card img {
    width: 100%;
    height: 200px; /* fixed height */
    object-fit: contain; /* show entire image */
    background-color: #222; /* optional: background for empty space */
    border-radius: 8px 8px 0 0; /* if you want rounded corners like the card */
    display: block;
}

/* ==========================
   TITLE
========================== */
.blog-card h3 {
    color: #800000;
    margin: 0.5rem 1rem;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;     /* ... for long titles */
}

/* ==========================
   META & DESCRIPTION
========================== */
.blog-card .meta {
    font-size: 0.9rem;
    margin: 0.5rem 1rem;
    color: #aaa;
}

.blog-card .desc {
    font-size: 0.9rem;
    margin: 0.5rem 1rem;
    color: #aaa;

    display: -webkit-box;
    -webkit-line-clamp: 3;       /* LIMIT TEXT LINES */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================
   TAGS
========================== */
.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: auto 1rem 1rem;      /* PUSH TAGS TO BOTTOM */
}

.tags span {
    background: #800000;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
}


/* ==========================
   BLOG GRID
========================== 
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1800px;
    margin: auto;
}

.blog-card {
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.blog-card h3 {
    color: #800000;
    margin: 0.5rem 1rem;
}

.blog-card .meta,
.blog-card .desc {
    font-size: 0.9rem;
    margin: 0.5rem 1rem;
    color: #aaa;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0 1rem 1rem;
}

.tags span {
    background: #800000;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}*/

/* ==========================
   PAGINATION
========================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pagination button,
.page-num {
    background: #800000;
    border: none;
    padding: 0.5rem 1rem;
    color: #fff;
    cursor: pointer;
}

.page-num.active {
    background: #fff;
    color: #800000;
}

/* ==========================
   FOOTER
========================== */
   footer {
        text-align: center;
        padding: 30px;
        margin-top: 50px;
        background: #000000;
        color: #ffffff;
      }
 .footer-container {
    width: 90%;
    margin: auto;
    padding: 50px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
  }

  .footer-logo {
    color: red;
    margin-bottom: 15px;
  }

  .footer-col h4 {
    color: white;
    margin-bottom: 15px;
  }

  .footer-col p {
    font-size: 14px;
    line-height: 1.6;
  }

  .footer-list {
    list-style: none;
    font-size: 14px;
  }

  .footer-list li {
    margin-bottom: 10px;
  }

  .footer-list a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
  }

  .footer-list a:hover {
    color: red;
  }

  .social-icons {
    margin-top: 15px;
  }

  .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #fff7f7;
    border-radius: 6px;
    margin-right: 8px;
    color: #fffbfb;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .social-icons a:hover {
    background: red;
    border-color: red;
    color: white;
    transform: translateY(-3px);
  }

  .footer-newsletter {
    display: flex;
    margin-top: 15px;
  }

  .footer-newsletter input {
    flex: 1;
    padding: 10px;
    border-radius: 6px 0 0 6px;
    border: none;
    outline: none;
  }

  .footer-newsletter button {
    padding: 10px 18px;
    border: none;
    background: red;
    color: white;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
  }

  .footer-bottom {
    border-top: 1px solid #123;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 13px;
    color: #ffffff;
  }
/* ==========================
   MOBILE
========================== */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    left: -100%;
    top: 0;
    width: 70%;
    height: 100vh;
    background: #111;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: left 0.3s ease;
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .close-menu {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #fff;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }

  .blog-sort {
    position: static;
    transform: none;
    margin: 15px auto 0;
    width: fit-content;
  }
}

/* search tab on blog page */
.blog-search {
    max-width: 600px;
    margin: 40px auto 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.blog-search i {
    color: #888;
    font-size: 16px;
}

.blog-search input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
}
.blog-controls {
    max-width: 1000px;
    margin: 40px auto 20px;
    position: relative;
}

/* Search stays centered */
.blog-search {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* Sort floats to the right */
.blog-sort {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.blog-sort select {
    border: none;
    outline: none;
    font-size: 14px;
    cursor: pointer;
}
@media (max-width: 768px) {
    .blog-sort {
        position: static;
        transform: none;
        margin: 15px auto 0;
        width: fit-content;
    }
}

@media (max-width: 768px) {
    .blog-search {
        position: static;
        transform: none;
        margin: 15px auto 0;
        width: fit-content;
    }
}
