/*
Theme Name: Colorify
Theme URI: https://example.com/colorify
Author: Colorify Theme
Author URI: https://example.com
Description: A magazine-style WordPress theme inspired by the Colorify Blogger template. Features responsive design, dark mode, mega menu, trending posts, and sidebar widgets.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: colorify
Tags: blog, news, magazine, responsive, dark-mode, custom-menu, featured-images, sidebar, widgets
*/

/* -----------------------------------------------
   Colorify WordPress Theme
   Inspired by Colorify Blogger Template (Templateify)
   Colors: #FF3152 (accent), #111111 (dark), #FAFAFA (light bg)
----------------------------------------------- */

/*-- Google Fonts --*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/*-- Font Awesome 5 --*/
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css');

/*-- CSS Variables --*/
:root {
  --body-font: 'Inter', Arial, sans-serif;
  --title-font: 'Inter', Arial, sans-serif;
  --meta-font: 'Inter', Arial, sans-serif;
  --text-font: 'Inter', Arial, sans-serif;
  --body-bg-color: #FAFAFA;
  --outer-bg: #FFFFFF;
  --main-color: #FF3152;
  --title-color: #111111;
  --title-hover-color: #FF3152;
  --meta-color: #959595;
  --text-color: #757575;
  --header-bg: #FFFFFF;
  --header-color: #111111;
  --header-hover-color: #FF3152;
  --submenu-bg: #FFFFFF;
  --submenu-color: #111111;
  --submenu-hover-color: #FF3152;
  --megamenu-bg: #FFFFFF;
  --megamenu-color: #111111;
  --megamenu-hover-color: #FF3152;
  --mobilemenu-bg: #FFFFFF;
  --mobilemenu-color: #111111;
  --mobilemenu-hover-color: #FF3152;
  --widget-title-color: #111111;
  --post-title-color: #111111;
  --post-title-hover-color: #FF3152;
  --post-text-color: #757575;
  --footer-bg: #111111;
  --footer-color: #FCFCFC;
  --footer-hover-color: #FF3152;
  --footer-text-color: #BABABA;
  --footerbar-bg: #0C0C0C;
  --footerbar-color: #FCFCFC;
  --footerbar-hover-color: #FF3152;
  --button-bg: #FF3152;
  --button-color: #FFFFFF;
  --button-hover-bg: #E52C4A;
  --button-hover-color: #FFFFFF;
  --border-color: rgba(155,155,155,0.15);
  --border-radius: 6px;
  --button-shadow: 0 2px 6px rgba(0,0,0,0.15);
  --avatar-shadow: 0px 1px 4px rgba(0,0,0,0.15);
  --container-width: 970px;
  --sidebar-width: 300px;
}

/* Dark Mode */
html.is-dark,
body.dark-mode {
  --body-bg-color: #1c1c1c;
  --outer-bg: #151515;
  --title-color: #f6f7f8;
  --title-hover-color: #FF3152;
  --meta-color: #b4b6ba;
  --text-color: #c4c6ca;
  --header-bg: #0c0c0c;
  --header-color: #f6f7f8;
  --header-hover-color: #FF3152;
  --submenu-bg: #111111;
  --submenu-color: #f6f7f8;
  --submenu-hover-color: #FF3152;
  --megamenu-bg: #111111;
  --megamenu-color: #f6f7f8;
  --megamenu-hover-color: #FF3152;
  --mobilemenu-bg: #111111;
  --mobilemenu-color: #f6f7f8;
  --mobilemenu-hover-color: #FF3152;
  --widget-title-color: #f6f7f8;
  --post-title-color: #f6f7f8;
  --post-title-hover-color: #FF3152;
  --post-text-color: #c4c6ca;
  --footer-bg: #111111;
  --footer-color: #f6f7f8;
  --footer-hover-color: #FF3152;
  --footer-text-color: #c4c6ca;
  --footerbar-bg: #0c0c0c;
  --footerbar-color: #f6f7f8;
  --footerbar-hover-color: #FF3152;
  --border-color: rgba(155,155,155,0.1);
}

/*-- Reset CSS --*/
*, *::before, *::after {
  box-sizing: border-box;
  word-break: break-word;
  word-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
a, abbr, acronym, address, applet, b, big, blockquote, body, caption, center,
cite, code, dd, del, dfn, div, dl, dt, em, fieldset, font, form, h1, h2, h3,
h4, h5, h6, html, i, iframe, img, ins, kbd, label, legend, li, object, p, pre,
q, s, samp, small, span, strike, strong, sub, sup, table, tbody, td, tfoot, th,
thead, tr, tt, u, ul, var {
  padding: 0; margin: 0; border: 0; outline: 0;
  vertical-align: baseline; background: 0 0; text-decoration: none;
}
dl, ul { list-style: none; }
a { color: var(--main-color); text-decoration: none; }
img { border: none; max-width: 100%; height: auto; }

/*-- Base Layout --*/
html { position: relative; margin: 0; }
body {
  position: relative;
  background-color: var(--body-bg-color);
  font-family: var(--body-font);
  font-size: 14px;
  color: var(--text-color);
  font-weight: 400;
  line-height: 1.4em;
  margin: 0; padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--title-font);
  font-weight: 600;
  color: var(--title-color);
  line-height: 1.4em;
}
.container {
  position: relative;
  width: var(--container-width);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}
#outer-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  background-color: var(--outer-bg);
  margin: 0 auto;
  padding: 0;
}

/*-- Header --*/
#header-wrapper {
  position: sticky;
  top: 0;
  float: left;
  width: 100%;
  z-index: 50;
  margin: 0;
}
.header-header {
  position: relative;
  float: left;
  width: 100%;
  height: 58px;
  background-color: var(--header-bg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin: 0;
  transition: background-color 0.3s ease;
}
.header-items {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}
.main-logo {
  display: flex;
  align-items: center;
  height: 58px;
  margin-right: 16px;
  flex-shrink: 0;
}
.main-logo .blog-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--header-color);
}
.main-logo .blog-title a { color: var(--header-color); }
.main-logo .blog-title a:hover { color: var(--header-hover-color); }
.main-logo img { max-height: 34px; width: auto; }

/*-- Main Navigation --*/
#main-nav {
  display: flex;
  align-items: center;
  height: 58px;
}
#main-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0; padding: 0;
}
#main-nav ul > li {
  position: relative;
}
#main-nav ul > li > a {
  display: block;
  height: 58px;
  font-size: 15px;
  color: var(--header-color);
  font-weight: 600;
  line-height: 58px;
  padding: 0 14px;
  transition: color 0.2s ease;
}
#main-nav ul > li > a:hover,
#main-nav ul > li.current-menu-item > a,
#main-nav ul > li.current-menu-ancestor > a {
  color: var(--header-hover-color);
}
/* Dropdown */
#main-nav ul > li > ul {
  position: absolute;
  left: 0; top: 58px;
  min-width: 180px;
  background-color: var(--submenu-bg);
  z-index: 99999;
  padding: 6px 0;
  visibility: hidden;
  opacity: 0;
  border-radius: var(--border-radius);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1), 0 5px 10px 0 rgba(0,0,0,0.1);
  transition: visibility 0.2s, opacity 0.2s ease;
}
#main-nav ul > li:hover > ul {
  visibility: visible;
  opacity: 1;
}
#main-nav ul > li > ul > li > a {
  display: block;
  font-size: 13px;
  color: var(--submenu-color);
  font-weight: 500;
  padding: 7px 14px;
  transition: color 0.2s ease;
}
#main-nav ul > li > ul > li > a:hover { color: var(--submenu-hover-color); }

/* Has-sub arrow */
#main-nav ul > li.menu-item-has-children > a::after {
  content: '\f078';
  font-family: 'Font Awesome 5 Free';
  font-size: 9px;
  font-weight: 900;
  margin-left: 5px;
}

/* Header right items */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-search-btn,
.dark-mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--header-color);
  font-size: 16px;
  border-radius: var(--border-radius);
  transition: color 0.2s ease, background 0.2s ease;
}
.header-search-btn:hover,
.dark-mode-btn:hover {
  color: var(--header-hover-color);
  background: var(--border-color);
}
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--header-color);
  font-size: 20px;
}

/*-- Search Overlay --*/
.search-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.search-overlay.active { display: flex; }
.search-box {
  background: var(--outer-bg);
  padding: 30px;
  border-radius: var(--border-radius);
  width: 560px;
  max-width: 95%;
}
.search-box form {
  display: flex;
  gap: 10px;
}
.search-box input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--body-bg-color);
  color: var(--title-color);
  font-family: var(--body-font);
  font-size: 14px;
}
.search-box button[type="submit"] {
  padding: 10px 20px;
  background: var(--button-bg);
  color: var(--button-color);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  font-family: var(--body-font);
  transition: background 0.2s ease;
}
.search-box button[type="submit"]:hover { background: var(--button-hover-bg); }
.search-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none; border: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
}

/*-- Breadcrumb --*/
.breadcrumb-wrap {
  padding: 10px 0 0;
  font-size: 12px;
  color: var(--meta-color);
}
.breadcrumb-wrap a { color: var(--meta-color); }
.breadcrumb-wrap a:hover { color: var(--main-color); }
.breadcrumb-wrap span { margin: 0 5px; }

/*-- Content Layout --*/
#content-wrapper {
  position: relative;
  float: left;
  width: 100%;
  padding: 40px 0;
  margin: 0;
}
.content-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
.content-inner.no-sidebar {
  justify-content: center;
}
#main-wrapper {
  flex: 1;
  min-width: 0;
}
#sidebar-wrapper {
  width: var(--sidebar-width);
  flex-shrink: 0;
}

/*-- Widget Title --*/
.widget-title,
.section-title {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--widget-title-color);
  border-bottom: 2px solid var(--main-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.widget-title::before,
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--main-color);
  border-radius: 2px;
  margin-right: 8px;
}

/*-- Entry / Post Card --*/
.entry-card {
  position: relative;
  background: var(--outer-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease;
}
.entry-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

.entry-image-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  background-color: rgba(155,155,155,0.05);
  z-index: 5;
}
.entry-image-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.2s ease;
}
.entry-image-wrap:hover img { transform: scale(1.03); }

.entry-body {
  padding: 16px;
}
.entry-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--main-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.entry-tag a { color: var(--main-color); }
.entry-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--post-title-color);
  line-height: 1.5em;
  margin-bottom: 8px;
}
.entry-title a {
  display: block;
  color: var(--post-title-color);
  transition: color 0.2s ease;
}
.entry-title a:hover { color: var(--post-title-hover-color); }
.entry-meta {
  font-family: var(--meta-font);
  font-size: 12px;
  color: var(--meta-color);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.entry-meta .author-name { color: var(--main-color); font-weight: 500; }
.entry-meta i { margin-right: 4px; }
.excerpt {
  font-family: var(--text-font);
  font-size: 13px;
  color: var(--post-text-color);
  line-height: 1.6em;
}

/* Hero / Featured Post */
.hero-post {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.hero-post .entry-image-wrap { aspect-ratio: 16/9; }
.hero-post .entry-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-post .entry-info {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.75));
  padding: 30px 20px 20px;
  z-index: 5;
}
.hero-post .entry-title {
  font-size: 22px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  margin-bottom: 8px;
}
.hero-post .entry-title a { color: #fff; }
.hero-post .entry-meta { color: #ccc; }

/* List Post Style */
.list-post {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}
.list-post:last-child { border-bottom: none; }
.list-post .entry-image-wrap {
  width: 90px;
  height: 70px;
  flex-shrink: 0;
  border-radius: var(--border-radius);
  overflow: hidden;
}
.list-post .entry-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.list-post .entry-body { padding: 0; }
.list-post .entry-title { font-size: 13px; }

/*-- Trending Posts --*/
.trending-section {
  background: var(--outer-bg);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.trending-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/*-- Post Grid --*/
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
.posts-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/*-- Pagination --*/
.pagination-wrap {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 30px 0;
}
.pagination-wrap a,
.pagination-wrap span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--title-color);
  transition: all 0.2s ease;
}
.pagination-wrap a:hover,
.pagination-wrap span.current {
  background: var(--main-color);
  color: #fff;
  border-color: var(--main-color);
}

/*-- Single Post --*/
.single-post-header { margin-bottom: 24px; }
.single-post-header .entry-title {
  font-size: 35px;
  color: var(--post-title-color);
  margin-bottom: 16px;
}
.single-featured-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.single-featured-image img { width: 100%; }
.post-content {
  font-family: var(--text-font);
  font-size: 14px;
  color: var(--post-text-color);
  line-height: 1.8em;
}
.post-content h2, .post-content h3 { margin: 24px 0 12px; }
.post-content p { margin-bottom: 16px; }
.post-content a { color: var(--main-color); }
.post-content img { border-radius: var(--border-radius); max-width: 100%; }
.post-content blockquote {
  border-left: 4px solid var(--main-color);
  padding: 12px 16px;
  margin: 20px 0;
  background: var(--body-bg-color);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-style: italic;
}

/* Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.post-tags a {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 12px;
  color: var(--meta-color);
  transition: all 0.2s ease;
}
.post-tags a:hover {
  background: var(--main-color);
  color: #fff;
  border-color: var(--main-color);
}

/* Share Buttons */
.share-wrap {
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.share-wrap .share-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--title-color);
  margin-bottom: 12px;
}
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--border-radius);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  transition: opacity 0.2s ease;
  cursor: pointer;
}
.share-btn:hover { opacity: 0.85; color: #fff; }
.share-btn.facebook { background: #3b5999; }
.share-btn.twitter { background: #00acee; }
.share-btn.whatsapp { background: #3fbb50; }
.share-btn.telegram { background: #179cde; }

/* Post Navigation */
.post-nav {
  display: flex;
  gap: 16px;
  margin: 24px 0;
}
.post-nav-item {
  flex: 1;
  padding: 16px;
  background: var(--outer-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: border-color 0.2s ease;
}
.post-nav-item:hover { border-color: var(--main-color); }
.post-nav-item .nav-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--meta-color);
  margin-bottom: 6px;
  font-weight: 600;
}
.post-nav-item .nav-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--title-color);
  line-height: 1.4;
}
.post-nav-item.next { text-align: right; }

/* Related Posts */
.related-posts-section {
  margin: 30px 0;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Author Box */
.author-box {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--outer-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin: 24px 0;
}
.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--avatar-shadow);
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--title-color);
  margin-bottom: 6px;
}
.author-bio {
  font-size: 13px;
  color: var(--text-color);
  line-height: 1.6;
}

/*-- Sidebar Widgets --*/
.widget {
  background: var(--outer-bg);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
/* Search widget */
.widget_search .search-form {
  display: flex;
  gap: 8px;
}
.widget_search input[type="search"] {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--body-bg-color);
  color: var(--title-color);
  font-family: var(--body-font);
  font-size: 13px;
}
.widget_search button {
  padding: 8px 14px;
  background: var(--button-bg);
  color: var(--button-color);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s ease;
}
.widget_search button:hover { background: var(--button-hover-bg); }
/* Categories widget */
.widget_categories ul li,
.widget_archive ul li {
  border-bottom: 1px solid var(--border-color);
}
.widget_categories ul li:last-child,
.widget_archive ul li:last-child { border-bottom: none; }
.widget_categories ul li a,
.widget_archive ul li a {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 13px;
  color: var(--title-color);
  font-weight: 500;
  transition: color 0.2s ease;
}
.widget_categories ul li a:hover,
.widget_archive ul li a:hover { color: var(--main-color); }
/* Recent Posts widget */
.widget_recent_entries ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}
.widget_recent_entries ul li:last-child { border-bottom: none; }
.widget_recent_entries ul li a {
  font-size: 13px;
  font-weight: 600;
  color: var(--title-color);
  line-height: 1.4;
  display: block;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}
.widget_recent_entries ul li a:hover { color: var(--main-color); }
.widget_recent_entries .post-date { font-size: 11px; color: var(--meta-color); }

/* Tag Cloud */
.tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tagcloud a {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 12px !important;
  color: var(--meta-color);
  transition: all 0.2s ease;
}
.tagcloud a:hover {
  background: var(--main-color);
  color: #fff;
  border-color: var(--main-color);
}

/*-- Footer --*/
#footer-wrapper {
  position: relative;
  float: left;
  width: 100%;
  background-color: var(--footer-bg);
  color: var(--footer-text-color);
  padding: 40px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 30px;
}
.footer-widget .widget-title {
  color: var(--footer-color);
  border-bottom-color: var(--main-color);
}
.footer-widget .widget-title::before { background: var(--main-color); }
.footer-about-text {
  font-size: 13px;
  color: var(--footer-text-color);
  line-height: 1.7;
  margin-bottom: 16px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links li a {
  font-size: 13px;
  color: var(--footer-text-color);
  transition: color 0.2s ease;
}
.footer-links li a:hover { color: var(--footer-hover-color); }
.footer-links li a::before {
  content: '\f105';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-right: 6px;
  color: var(--main-color);
}
/* Footer Social */
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--border-radius);
  background: rgba(255,255,255,0.1);
  color: var(--footer-color);
  font-size: 14px;
  transition: background 0.2s ease;
}
.footer-social a:hover { background: var(--main-color); color: #fff; }

/* Footer Bar */
.footerbar {
  background-color: var(--footerbar-bg);
  padding: 14px 0;
  text-align: center;
}
.footerbar p {
  font-size: 13px;
  color: var(--footerbar-color);
  margin: 0;
}
.footerbar a {
  color: var(--footerbar-hover-color);
  font-weight: 600;
}

/*-- Buttons --*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  background: var(--button-bg);
  color: var(--button-color);
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--button-shadow);
  transition: background 0.2s ease;
}
.btn:hover {
  background: var(--button-hover-bg);
  color: var(--button-hover-color);
}

/*-- Load More Button --*/
.load-more-wrap { text-align: center; margin: 10px 0 20px; }

/*-- Cookie Banner --*/
.cookie-consent {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 500px;
  background: var(--outer-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  z-index: 9000;
}
.cookie-consent.show { display: block; }
.cookie-consent p { font-size: 13px; color: var(--text-color); margin-bottom: 12px; line-height: 1.6; }
.cookie-consent .cookie-buttons { display: flex; gap: 8px; }

/*-- Mobile Menu --*/
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}
.mobile-menu-overlay.active { display: block; }
.mobile-menu-panel {
  position: fixed;
  top: 0; left: -280px;
  width: 280px;
  height: 100%;
  background: var(--mobilemenu-bg);
  z-index: 999;
  overflow-y: auto;
  transition: left 0.3s ease;
  padding: 20px 0;
}
.mobile-menu-panel.active { left: 0; }
.mobile-menu-panel ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu-panel ul li a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mobilemenu-color);
  border-bottom: 1px solid var(--border-color);
  transition: color 0.2s ease;
}
.mobile-menu-panel ul li a:hover { color: var(--mobilemenu-hover-color); }
.mobile-close-btn {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--mobilemenu-color);
  width: 100%;
}

/*-- 404 Page --*/
.error-404-wrap {
  text-align: center;
  padding: 60px 20px;
}
.error-404-wrap h1 {
  font-size: 80px;
  color: var(--main-color);
  line-height: 1;
  margin-bottom: 16px;
}
.error-404-wrap h2 { font-size: 24px; margin-bottom: 12px; }
.error-404-wrap p { color: var(--text-color); margin-bottom: 24px; }

/*-- Responsive --*/
@media (max-width: 1024px) {
  :root {
    --container-width: 100%;
  }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  #main-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .content-inner {
    flex-direction: column;
    gap: 30px;
  }
  #sidebar-wrapper { width: 100%; }
  .trending-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .single-post-header .entry-title { font-size: 24px; }
  .post-nav { flex-direction: column; }
  .author-box { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-post .entry-title { font-size: 16px; }
  .header-items { padding: 0 10px; }
}

/*-- Utility Classes --*/
.clearfix::after { content: ''; display: table; clear: both; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.loader {
  position: relative;
  width: 100%; height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader::after {
  content: '';
  display: block;
  width: 30px; height: 30px;
  border: 2px solid var(--border-color);
  border-left-color: var(--main-color);
  border-radius: 100%;
  animation: spinner 0.65s infinite linear;
}
@keyframes spinner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== ADDITIONAL FIXES v1.1 ===== */

/* Post grid images - force correct display */
.entry-card .entry-image-wrap {
    display: block;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    aspect-ratio: 16/9;
    background: #eee;
}
.entry-card .entry-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.entry-card:hover .entry-image-wrap img { transform: scale(1.04); }

/* Hero image fix */
.hero-post .entry-image-wrap {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.hero-post .entry-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 3-column grid - match hindikdramawatch style */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
@media (max-width: 768px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .posts-grid { grid-template-columns: 1fr; }
}

/* Entry card compact style */
.entry-card .entry-body { padding: 10px 12px 14px; }
.entry-card .entry-title { font-size: 13px; line-height: 1.45; margin-bottom: 5px; }
.entry-card .entry-tag { font-size: 10px; margin-bottom: 4px; }

/* Load More Button - hindikdramawatch oval style */
.load-more-button {
    display: block;
    margin: 10px auto 30px;
    padding: 12px 50px;
    background: var(--main-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--body-font);
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(255,49,82,0.35);
    transition: background 0.2s ease, transform 0.1s ease;
}
.load-more-button:hover {
    background: var(--button-hover-bg);
    transform: translateY(-1px);
}
.load-more-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Section title fix (no double ::before) */
.section-title::before { display: none; }
.section-title {
    border-bottom: none;
    border-left: 4px solid var(--main-color);
    padding: 0 0 0 10px;
    display: flex;
    align-items: center;
    font-size: 16px;
    margin-bottom: 16px;
}

/* Footer widget title fix */
.footer-widget .widget-title {
    border-bottom: 2px solid var(--main-color);
    border-left: none;
    padding: 0 0 10px;
    color: var(--footer-color);
}

/* Thumbnail in single post */
.single-featured-image img {
    width: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--border-radius);
}

/* Comment list - no bullets */
.comment-list, .comment-list ol { list-style: none; padding: 0; margin: 0; }

/* Hide Categories widget title in sidebar */
.widget_categories .widget-title {
    display: none;
}

/* Hide hero post section */
.hero-post {
    display: none;
}
