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

:root {
  --primary-bg: #f5f0f0;
  --header-white-bg: #ffffff;
  --header-white-blue-bg: #cee7f6;
  --header-bg: #006097; 
  --header-border: #003366;
  --text-primary: #000000;
  --border-color: #dddddd;
}

body {
  font-family: 'Verdana', Geneva, sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.3;
  font-size: 13px;
}

/* Container */
.container {
  width: 99%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 2px;
}

a { text-decoration: none; }

/* ================= HEADER ================= */
.header {
  background-color: var(--header-white-blue-bg);
  padding: 10px 0;
  border-bottom: 3px solid var(--header-border);
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.logo-area {
  width: 100%;
  text-align: center;
}

.logo-img {
  max-height: 70px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}

.search-bar {
  width: 100%;
  max-width: 600px;
  background-color: #fff;
  display: flex;
  border: 1px solid #999;
  padding: 2px;
}

#searchInput {
  flex: 1;
  padding: 6px;
  border: none;
  font-size: 14px;
  outline: none;
}

.search-btn {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  padding: 0 15px;
  color: #000;
  font-weight: bold;
  cursor: pointer;
}

/* ================= NAV & DROPDOWN ================= */
.nav {
  background-color: #e8e8e8;
  border-bottom: 1px solid #bbb;
  border-top: 1px solid #f0f0f0;
  position: relative;
  z-index: 1000;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding-left: 5px;
  gap: 0;
}

.nav-link {
  color: #003366;
  font-weight: bold;
  padding: 8px 12px;
  font-size: 12px;
  border-right: 1px solid #ccc;
  cursor: pointer;
  background: none;
  border: none;
  white-space: nowrap;
}

.nav-link:hover {
  background-color: #006097;
  color: white;
}

/* Dropdown */
.dropdown { position: relative; }

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f9f9f9;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  z-index: 9999;
  border: 1px solid #ccc;
}

.dropdown-content a {
  color: black;
  padding: 8px 12px;
  display: block;
  border-bottom: 1px solid #eee;
  font-size: 12px;
}

.dropdown-content a:hover { background-color: #ddd; }

@media (min-width: 993px) {
  .dropdown:hover .dropdown-content { display: block; }
}

@media (max-width: 992px) {
  .nav-links {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0;
  }
  .nav-link { padding: 10px 15px; }
  .dropdown { position: static; }
  .dropdown-content {
    position: absolute;
    left: 0; right: 0; top: 100%; width: 100%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border: none;
    background-color: #ffffff;
    z-index: 10000;
  }
  .dropdown.active .dropdown-content {
    display: block;
    border-top: 1px solid #ccc; 
  }
  .dropdown.active .nav-link {
    background-color: #006097;
    color: white;
  }
}

.filter-bar { background-color: #ffffff; padding: 15px 0; border-bottom: 1px solid #dddddd; }
.filter-buttons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.filter-btn { padding: 8px 16px; background-color: #f5f5f5; border: 1px solid #ccc; border-radius: 5px; color: #333; cursor: pointer; font-size: 13px; transition: all 0.3s; font-weight: bold; text-decoration: none; display: inline-block; }
.filter-btn:hover { background-color: #e0e0e0; }
.filter-btn.telegram { background-color: #0088cc; color: white; border-color: #0088cc; }
.filter-btn.highlight { background-color: #cc0000; color: white; border-color: #cc0000; }

/* ================= BODY CONTENT ================= */
.main-content {
  background-color: #fff;
  padding: 0;
}

/* Top SEO Header */
.info-text-section {
  text-align: center;
  background-color: #eef7ff;
  border: 1px solid #cceeff;
  padding: 10px;
  margin-bottom: 10px;
}

.seo-title {
  color: #006097;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
  font-family: 'Verdana', sans-serif;
}

.seo-desc h2 {
  color: #006097;
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 5px;
  margin-top: 5px;
  border-top: 1px solid #ccc;
  padding-top: 5px;
}

.seo-desc p { font-size: 12px; color: #444; }

/* Section Bar */
.section-bar {
  background-color: #dbeeff;
  border: 1px solid #aaccff;
  padding: 6px;
  text-align: center;
  margin-top: 15px;
  margin-bottom: 8px;
}

.section-bar p {
  color: #003366;
  font-weight: bold;
  font-size: 14px;
  margin: 0;
  font-family: 'Verdana', sans-serif;
}

/* Movies Grid */
.movies-grid {
  display: flex;
  flex-direction: column;
  gap: 3px;
  content-visibility: auto; 
  contain-intrinsic-size: 1000px; 
}

#trendingGrid { margin-bottom: 20px; }

/* Card Design */
.movie-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 5px;
  text-decoration: none;
  border: 1px solid #e0e0e0;
  background-color: #ffffff;
  width: 100%;
}

.movie-card:hover {
  background-color: #f8f8f8;
  border-color: #ccc;
}

.movie-poster {
  width: 75px; 
  aspect-ratio: 2 / 3; 
  flex-shrink: 0;
  margin-right: 8px;
  border: 1px solid #000;
  padding: 1px;
  background: #f0f0f0;
  overflow: hidden;
}

.movie-poster img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.movie-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 2px;
}

.movie-title {
  font-size: 13px; font-weight: bold; line-height: 1.2; margin-bottom: 4px; font-family: 'Verdana', sans-serif;
}

/* [FIXED CODE] এখানে display: block সরানো হয়েছে */
.movie-description-text {
  font-size: 11px; 
  margin-bottom: 5px; 
  line-height: 1.3; 
  font-weight: bold;
  
  /* Flex/Box Logic for Line Clamp */
  display: -webkit-box; 
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical; 
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Color Cycling */
.movie-card:nth-child(5n+1) .movie-title, .movie-card:nth-child(5n+1) .movie-description-text { color: #008000; }
.movie-card:nth-child(5n+2) .movie-title, .movie-card:nth-child(5n+2) .movie-description-text { color: #cc6600; }
.movie-card:nth-child(5n+3) .movie-title, .movie-card:nth-child(5n+3) .movie-description-text { color: #ff0000; }
.movie-card:nth-child(5n+4) .movie-title, .movie-card:nth-child(5n+4) .movie-description-text { color: #0000ff; }
.movie-card:nth-child(5n+5) .movie-title, .movie-card:nth-child(5n+5) .movie-description-text { color: #c71585; }

.movie-card:hover .movie-title, .movie-card:hover .movie-description-text { text-decoration: underline; }

.category-pill {
  display: inline-block; background-color: #ff0000; color: #ffffff; font-size: 10px; font-weight: bold; padding: 1px 8px; border-radius: 10px; text-align: center; box-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

/* ================= PAGINATION ================= */
.pagination { margin: 15px 0; display: flex; justify-content: center; gap: 4px; }
.page-btn, .page-number { background: #fff; border: 1px solid #ccc; padding: 4px 8px; color: #003366; font-weight: bold; cursor: pointer; font-size: 12px;}
.page-number.active { background-color: var(--header-bg); color: white; }

/* =========================================
   NEW: SEO CONTENT (MOVED TO BODY)
   ========================================= */
.seo-bottom-content {
  margin-top: 30px;
  padding: 15px;
  background-color: #f9f9f9; /* বডি থেকে আলাদা করার জন্য হালকা ব্যাকগ্রাউন্ড */
  border: 1px solid #eee;
  text-align: center;
  border-radius: 5px;
}

.seo-bottom-content h3 {
  color: #006097;
  font-size: 14px;
  margin-bottom: 8px;
  margin-top: 15px;
  font-family: 'Verdana', sans-serif;
}

.seo-bottom-content h3:first-child {
  margin-top: 0;
}

.seo-bottom-content p {
  color: #333;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.footer-highlight {
  font-weight: bold;
  color: #555;
  font-size: 11px;
}

/* ================= FOOTER ================= */
.footer { 
  background-color: var(--header-bg); 
  color: white; 
  text-align: center; 
  padding: 10px; 
  border-top: 3px solid var(--header-border); 
  margin-top: 15px; 
  font-size: 12px;
}

.footer-links a { color: white; margin: 0 5px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .container { width: 100%; padding: 0; }
  .header { padding: 5px 0; }
  .movie-card { padding: 4px; border-left: none; border-right: none; }
  .movie-poster { width: 65px; margin-right: 6px; }
  .movie-title { font-size: 12px; margin-bottom: 3px; }
  .movie-description-text { font-size: 10px; line-height: 1.2; }
  .category-pill { font-size: 9px; padding: 1px 6px; }
}
/* =========================================
   Category Page Header Style
   ========================================= */
.category-header {
  margin: 20px 0;
  border-left: 5px solid #006097; /* আপনার থিম কালার (নীল) */
  background-color: #f4faff;      /* হালকা নীল ব্যাকগ্রাউন্ড */
  padding: 15px;
  border-radius: 0 5px 5px 0;
}

.category-title {
  color: #006097; /* নীল লেখা */
  font-size: 1.6rem;
  font-weight: bold;
  margin: 0;
  text-transform: uppercase;
  font-family: 'Verdana', sans-serif;
}

/* মোবাইলের জন্য সাইজ ঠিক করা */
@media (max-width: 768px) {
  .category-title {
    font-size: 1.3rem;
  }
}