/* =========================================================
   1. BASE STYLES & RESET
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-color: #f4f6f8;
  color: #2d3748;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================================================
   2. TOP BAR (SCROLLING TICKER & SOCIAL ICONS)
   ========================================================= */
.top-bar {
  background-color: #1a202c;
  color: #edf2f7;
  font-size: 13px;
  padding: 8px 0;
  overflow: hidden;
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* Ticker Shell */
.ticker-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  overflow: hidden;
}

.ticker-badge {
  background-color: #e53e3e;
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Ticker Animation Container */
.ticker-content-box {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-text {
  display: inline-block;
  padding-left: 100%;
  animation: scrollTicker 22s linear infinite;
  white-space: nowrap;
}

.ticker-text span {
  margin-right: 40px;
  font-weight: 500;
  color: #e2e8f0;
}

/* Pause scroll when user hovers */
.ticker-content-box:hover .ticker-text {
  animation-play-state: paused;
}

/* Smooth continuous scroll keyframe */
@keyframes scrollTicker {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

/* Social Media Icons */
.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #2d3748;
  color: #edf2f7;
  font-size: 13px;
  transition: all 0.25s ease;
}

/* Hover Brand Colors */
.social-links a.icon-linkedin:hover {
  background-color: #0077b5;
  color: #ffffff;
  transform: translateY(-2px);
}

.social-links a.icon-youtube:hover {
  background-color: #ff0000;
  color: #ffffff;
  transform: translateY(-2px);
}

.social-links a.icon-whatsapp:hover {
  background-color: #25d366;
  color: #ffffff;
  transform: translateY(-2px);
}

.social-links a.icon-instagram:hover {
  background-color: #e1306c;
  color: #ffffff;
  transform: translateY(-2px);
}

/* =========================================================
   3. HEADER & SITE BRANDING
   ========================================================= */
.main-header {
  background-color: #ffffff;
  border-bottom: 3px solid #e53e3e;
  padding: 18px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-brand h1 {
  font-size: 30px;
  font-weight: 800;
  color: #1a202c;
  letter-spacing: -0.5px;
}

.site-brand h1 a {
  color: #1a202c;
}

.site-brand h1 span {
  color: #e53e3e;
}

/* =========================================================
   4. NAVIGATION BAR WITH DROPDOWN
   ========================================================= */
.navbar {
  background-color: #c53030;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  display: block;
  padding: 12px 18px;
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.2s ease;
}

.nav-links > li > a:hover {
  background-color: #9b2c2c;
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  border-top: 2px solid #e53e3e;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  color: #2d3748;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid #edf2f7;
  transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
  background-color: #fff5f5;
  color: #e53e3e;
  padding-left: 20px;
}

.nav-links > li:hover .dropdown-menu {
  display: block;
}

/* =========================================================
   5. FOOTER
   ========================================================= */
.site-footer {
  background-color: #1a202c;
  color: #a0aec0;
  margin-top: 50px;
  padding: 40px 0 20px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 15px;
  border-left: 3px solid #e53e3e;
  padding-left: 8px;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #2d3748;
  padding-top: 20px;
  font-size: 12px;
}

/* =========================================================
   6. MAIN 2-COLUMN GRID & SIDEBAR LAYOUT
   ========================================================= */
.main-content-wrapper {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 50px;
}

.section-heading {
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 20px;
  padding-bottom: 8px;
}

.section-heading h2 {
  font-size: 20px;
  font-weight: 800;
  color: #1a202c;
  display: inline-block;
  border-bottom: 3px solid #e53e3e;
  padding-bottom: 8px;
  margin-bottom: -10px;
  text-transform: uppercase;
}

/* =========================================================
   7. HERO FEATURED CARD
   ========================================================= */
.featured-hero-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-hero-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.hero-image-box {
  position: relative;
  width: 100%;
  height: 280px;
}

.hero-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #e53e3e;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.hero-content {
  padding: 22px;
}

.card-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tag-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}

.tag-red { background: #fed7d7; color: #9b2c2c; }
.tag-blue { background: #bee3f8; color: #2b6cb0; }
.tag-green { background: #c6f6d5; color: #22543d; }
.tag-orange { background: #feebc8; color: #7b341e; }
.tag-purple { background: #e9d8fd; color: #553c9a; }

.hero-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}

.hero-title a:hover {
  color: #e53e3e;
}

.hero-desc {
  font-size: 14px;
  color: #4a5568;
  margin-bottom: 15px;
  line-height: 1.5;
}

.card-meta {
  font-size: 12px;
  color: #718096;
  display: flex;
  gap: 15px;
}

/* =========================================================
   8. 2-COLUMN SUB-GRID FOR REGULAR POSTS
   ========================================================= */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.job-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.job-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.card-thumb {
  width: 100%;
  height: 150px;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  flex-grow: 1;
}

.card-title a:hover {
  color: #e53e3e;
}

/* Pagination */
.pagination-box {
  display: flex;
  gap: 8px;
  margin-top: 30px;
}

.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-num.active, .page-num:hover {
  background-color: #e53e3e;
  border-color: #e53e3e;
  color: #ffffff;
}

/* =========================================================
   9. SIDEBAR WIDGETS
   ========================================================= */
.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sidebar-widget {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.widget-title {
  font-size: 16px;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 16px;
  border-left: 3px solid #e53e3e;
  padding-left: 10px;
  text-transform: uppercase;
}

/* Search Form */
.search-form {
  display: flex;
}

.search-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #cbd5e0;
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-size: 13px;
  outline: none;
}

.search-form input:focus {
  border-color: #e53e3e;
}

.search-form button {
  background-color: #e53e3e;
  color: #ffffff;
  border: none;
  padding: 0 16px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-form button:hover {
  background-color: #c53030;
}

/* Discover More Links List */
.discover-list li {
  border-bottom: 1px solid #edf2f7;
}

.discover-list li:last-child {
  border-bottom: none;
}

.discover-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 500;
  color: #2d3748;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.discover-list a:hover {
  color: #e53e3e;
  padding-left: 5px;
}

.discover-list i {
  font-size: 11px;
  color: #a0aec0;
}

/* AdSense Placeholder Container */
.ad-placeholder {
  text-align: center;
  padding: 12px;
  background-color: #f7fafc;
  border: 1px dashed #cbd5e0;
}

.ad-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  color: #a0aec0;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.ad-box-300 {
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #edf2f7;
  color: #718096;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
}

/* Trending Posts Mini Feed */
.mini-post-list li {
  padding: 10px 0;
  border-bottom: 1px solid #edf2f7;
}

.mini-post-list li:last-child {
  border-bottom: none;
}

.mini-post-list a {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.4;
  margin-bottom: 4px;
}

.mini-post-list a:hover {
  color: #e53e3e;
}

.mini-date {
  font-size: 11px;
  color: #a0aec0;
}

/* =========================================================
   10. MOBILE RESPONSIVENESS
   ========================================================= */
@media (max-width: 900px) {
  .main-content-wrapper {
    grid-template-columns: 1fr;
  }
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   CLEAN ROW CARD STYLES (NO IMAGES)
   ========================================================= */
.job-row-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  border-left: 4px solid #c53030;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.job-row-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  border-left-color: #e53e3e;
}

.job-row-left {
  flex: 1;
}

.job-row-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.job-row-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
}

.job-row-title a {
  color: #1a202c;
  transition: color 0.2s ease;
}

.job-row-title a:hover {
  color: #e53e3e;
}

.job-row-meta {
  font-size: 12px;
  color: #718096;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.job-row-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.job-row-action {
  margin-left: 20px;
  flex-shrink: 0;
}

.btn-row-view {
  background-color: #f7fafc;
  color: #c53030;
  border: 1px solid #fed7d7;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.job-row-card:hover .btn-row-view {
  background-color: #e53e3e;
  color: #ffffff;
  border-color: #e53e3e;
}

/* Mobile Responsiveness for Rows */
@media (max-width: 600px) {
  .job-row-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .job-row-action {
    margin-left: 0;
    width: 100%;
  }
  .btn-row-view {
    display: block;
    text-align: center;
    width: 100%;
  }
}