/* 
 * Deus News Portal CSS
 * A modern sports and Paralympic news portal
 */

/* ===============================
   VARIABLES
   =============================== */
:root {
  --primary-color: #1e73be;
  --secondary-color: #dd3333;
  --dark-color: #333333;
  --light-color: #f5f5f5;
  --gray-color: #777777;
  --white-color: #ffffff;
  --black-color: #222222;
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Playfair Display', serif;
  --transition: all 0.3s ease;
}

/* ===============================
   RESET & BASIC STYLES
   =============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--white-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
  color: var(--black-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

p {
  margin-bottom: 15px;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
}

.section-header {
  margin-bottom: 30px;
  position: relative;
}

.section-title {
  font-size: 28px;
  position: relative;
  margin-bottom: 10px;
}

.section-line {
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  margin-bottom: 20px;
}

.widget-title {
  font-size: 22px;
  margin-bottom: 10px;
}

.widget-line {
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  margin-bottom: 20px;
}

/* ===============================
   HEADER
   =============================== */
.header-section {
  background-color: var(--white-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  padding: 15px 0;
}

.navbar-brand {
  font-size: 28px;
  font-weight: 700;
}

.brand-text {
  font-family: var(--font-secondary);
  color: var(--black-color);
}

.brand-dot {
  color: var(--primary-color);
  font-size: 32px;
}

.brand-news {
  font-family: var(--font-primary);
  color: var(--gray-color);
  font-weight: 400;
}

.nav-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--black-color);
  padding: 10px 15px;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  height: 3px;
  background-color: var(--primary-color);
}

.search-form .form-control {
  border-radius: 30px;
  padding-left: 15px;
  border: 1px solid #ddd;
}

.btn-search {
  background-color: var(--primary-color);
  color: var(--white-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 0;
  line-height: 40px;
  text-align: center;
}

.btn-search:hover {
  background-color: var(--secondary-color);
  color: var(--white-color);
}

/* ===============================
   HERO SLIDER
   =============================== */
.hero-slider {
  margin-bottom: 40px;
}

.hero-slide {
  position: relative;
  height: 600px;
  background-size: cover;
  background-position: center;
  color: var(--white-color);
}

.hero-slide:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.8));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 100px 0;
}

.hero-category span {
  background-color: var(--primary-color);
  color: var(--white-color);
  font-size: 14px;
  font-weight: 500;
  padding: 5px 15px;
  border-radius: 3px;
  margin-bottom: 15px;
  display: inline-block;
}

.hero-title {
  font-size: 42px;
  margin-bottom: 15px;
}

.hero-title a {
  color: var(--white-color);
}

.hero-title a:hover {
  color: var(--primary-color);
}

.hero-meta {
  margin-bottom: 15px;
  font-size: 14px;
}

.hero-meta span {
  margin-right: 15px;
}

.hero-excerpt {
  margin-bottom: 25px;
  font-size: 18px;
  opacity: 0.9;
}

.btn-read-more {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 10px 20px;
  border-radius: 3px;
  font-weight: 500;
  display: inline-block;
}

.btn-read-more:hover {
  background-color: var(--secondary-color);
  color: var(--white-color);
}

.btn-read-more i {
  margin-left: 5px;
}

.carousel-indicators {
  margin-bottom: 30px;
}

.carousel-indicators button {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background-color: rgba(255, 255, 255, 0.5) !important;
  border: none !important;
}

.carousel-indicators button.active {
  background-color: var(--primary-color) !important;
}

/* ===============================
   FEATURED GRID
   =============================== */
.featured-grid {
  padding: 40px 0;
}

.featured-card {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  height: 100%;
}

.featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.featured-card:hover .card-img-top {
  transform: scale(1.05);
}

.category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 1;
}

.category-badge span {
  color: #FFF;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 3px;
  display: inline-block;
  background-color: #6c757d;
}

.category-badge span.source-label-hurriyet { background-color: #f35659; }
.category-badge span.source-label-sabah { background-color: #004A98; }
.category-badge span.source-label-milliyet { background-color: #1DA1F2; }
.category-badge span.source-label-dha { background-color: #FF7F00; }
.category-badge span.source-label-sozcu { background-color: #9c0000; }
.category-badge span.source-label-fotomac { background-color: #008000; }
.category-badge span.source-label-fanatik { background-color: #FDB913; }

.card-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.card-title a {
  color: var(--black-color);
}

.card-title a:hover {
  color: var(--primary-color);
}

.card-meta {
  font-size: 13px;
  color: var(--gray-color);
  margin-bottom: 10px;
}

.card-meta i {
  margin-right: 5px;
}

.card-text {
  font-size: 14px;
  color: var(--gray-color);
}

/* ===============================
   MAIN CONTENT SECTION
   =============================== */
.main-content-section {
  padding: 40px 0;
  background-color: var(--light-color);
}

.post-card {
  margin-bottom: 30px;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.read-more {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-color);
}

.read-more i {
  margin-left: 5px;
  transition: var(--transition);
}

.read-more:hover i {
  margin-left: 8px;
}

.wide-banner {
  background: linear-gradient(135deg, var(--primary-color), #0e4f8b);
  color: var(--white-color);
  padding: 40px;
  border-radius: 5px;
  margin-bottom: 30px;
}

.banner-content h3 {
  color: var(--white-color);
  font-size: 24px;
  margin-bottom: 10px;
}

.banner-content p {
  opacity: 0.9;
  margin-bottom: 20px;
}

.btn-banner {
  background-color: var(--white-color);
  color: var(--primary-color);
  padding: 8px 20px;
  border-radius: 3px;
  font-weight: 500;
  display: inline-block;
}

.btn-banner:hover {
  background-color: var(--secondary-color);
  color: var(--white-color);
}

/* ===============================
   SIDEBAR
   =============================== */
.sidebar {
  margin-bottom: 40px;
}

.sidebar-widget {
  background-color: var(--white-color);
  padding: 25px;
  margin-bottom: 30px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-list li {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.categories-list li:last-child {
  border-bottom: none;
}

.categories-list li a {
  color: var(--dark-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.categories-list li a:hover {
  color: var(--primary-color);
}

.categories-list li.active a {
  color: var(--primary-color);
  font-weight: 500;
}

.category-count {
  background-color: var(--light-color);
  color: var(--dark-color);
  padding: 2px 8px;
  border-radius: 30px;
  font-size: 12px;
}

.newsletter-widget p {
  margin-bottom: 15px;
}

.newsletter-widget .form-control {
  border-radius: 30px;
  padding-left: 15px;
  margin-bottom: 10px;
}

.btn-subscribe {
  background-color: var(--primary-color);
  color: var(--white-color);
  border-radius: 30px;
  padding: 8px 20px;
  width: 100%;
  font-weight: 500;
}

.btn-subscribe:hover {
  background-color: var(--secondary-color);
}

.stats-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stats-list li {
  margin-bottom: 15px;
}

.stats-info {
  display: flex;
  align-items: center;
}

.stats-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(30, 115, 190, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 15px;
}

.stats-text h4 {
  margin-bottom: 0;
  font-size: 20px;
}

.stats-text p {
  margin-bottom: 0;
  color: var(--gray-color);
  font-size: 14px;
}

.about-widget p {
  font-size: 14px;
  line-height: 1.7;
}

/* ===============================
   ARTICLE PAGE
   =============================== */
.article-header {
  background-color: var(--light-color);
  padding: 60px 0;
}

.article-category span {
  background-color: var(--primary-color);
  color: var(--white-color);
  font-size: 14px;
  font-weight: 500;
  padding: 5px 15px;
  border-radius: 3px;
  margin-bottom: 15px;
  display: inline-block;
}

.article-title {
  font-size: 36px;
  margin-bottom: 15px;
}

.article-meta {
  font-size: 14px;
  color: var(--gray-color);
}

.article-meta .divider {
  margin: 0 10px;
}

.article-content {
  padding: 60px 0;
}

.single-article {
  margin-bottom: 40px;
}

.featured-image {
  margin-bottom: 30px;
  border-radius: 5px;
  overflow: hidden;
}

.article-body {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.article-footer {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.article-tags {
  margin-bottom: 10px;
}

.tag-icon {
  margin-right: 5px;
  color: var(--gray-color);
}

.tag {
  background-color: var(--light-color);
  color: var(--dark-color);
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 3px;
  margin-right: 5px;
  display: inline-block;
}

.tag:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.article-share {
  display: flex;
  align-items: center;
}

.share-title {
  margin-right: 10px;
  font-weight: 500;
}

.share-link {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  color: var(--white-color);
}

.share-link.facebook {
  background-color: #3b5998;
}

.share-link.twitter {
  background-color: #1da1f2;
}

.share-link.whatsapp {
  background-color: #25d366;
}

.share-link.telegram {
  background-color: #0088cc;
}

.share-link:hover {
  opacity: 0.9;
  color: var(--white-color);
}

.related-articles {
  margin-top: 40px;
}

.article-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-info-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 14px;
}

.info-label {
  font-weight: 600;
  color: var(--dark-color);
}

.info-value {
  color: var(--gray-color);
}

/* ===============================
   CATEGORY PAGE
   =============================== */
.page-header {
  background-size: cover;
  background-position: center;
  color: var(--white-color);
  padding: 80px 0;
  position: relative;
}

.page-header:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.page-header-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-title {
  font-size: 36px;
  color: var(--white-color);
  margin-bottom: 10px;
}

.breadcrumb {
  background: transparent;
  justify-content: center;
  margin-bottom: 0;
}

.breadcrumb-item a {
  color: var(--white-color);
}

.breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.7);
}

.category-content {
  padding: 60px 0;
}

.pagination-container {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.pagination {
  margin-bottom: 0;
}

.page-link {
  /* MODIFIED: Use Bootstrap-like styling */
  position: relative;
  padding: 0.375rem 0.75rem; /* Standard Bootstrap padding */
  margin-left: -1px; /* Standard Bootstrap margin */
  line-height: 1.25; /* Standard Bootstrap line-height */
  color: var(--primary-color); /* Use theme color */
  background-color: var(--white-color);
  border: 1px solid #dee2e6; /* Standard Bootstrap border */
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.page-link:hover {
  /* MODIFIED: Use Bootstrap-like hover */
  z-index: 2;
  color: var(--primary-color); /* Keep color */
  background-color: #e9ecef; /* Standard hover background */
  border-color: #dee2e6;
}

.page-item.active .page-link {
  /* Ensure these styles are applied */
  z-index: 3;
  color: var(--white-color);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* ===============================
   SEARCH PAGE
   =============================== */
.search-content {
  padding: 60px 0;
}

.search-info {
  margin-bottom: 30px;
  padding: 15px;
  background-color: var(--light-color);
  border-radius: 5px;
}

.search-no-results {
  padding: 30px;
  text-align: center;
}

.search-no-results h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.search-no-results i {
  margin-right: 10px;
  color: var(--gray-color);
}

.search-suggestions {
  text-align: left;
  max-width: 500px;
  margin: 20px auto;
}

.search-suggestions h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.search-suggestions ul {
  margin-left: 20px;
}

.search-widget .form-group {
  position: relative;
}

.search-widget .form-control {
  padding-right: 50px;
  border-radius: 30px;
}

.search-widget .btn-search {
  position: absolute;
  right: 0;
  top: 0;
}

/* ===============================
   FOOTER
   =============================== */
.footer-section {
  background-color: var(--black-color);
  color: var(--white-color);
  padding-top: 60px;
}

.footer-about h3 {
  color: var(--white-color);
  margin-bottom: 20px;
  font-size: 26px;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.social-links {
  display: flex;
}

.social-links a {
  width: 35px;
  height: 35px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.social-links a:hover {
  background-color: var(--primary-color);
}

.footer-links h3 {
  color: var(--white-color);
  margin-bottom: 20px;
  font-size: 22px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-newsletter h3 {
  color: var(--white-color);
  margin-bottom: 20px;
  font-size: 22px;
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.footer-newsletter form {
  position: relative;
}

.footer-newsletter input {
  width: 100%;
  padding: 12px 15px;
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white-color);
  border-radius: 30px;
}

.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter button {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  border: none;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 0 20px;
  border-radius: 0 30px 30px 0;
  font-weight: 500;
}

.footer-newsletter button:hover {
  background-color: var(--secondary-color);
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
  margin-top: 40px;
}

.footer-bottom p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-bottom .fa-heart {
  color: var(--secondary-color);
}

/* ===============================
   BACK TO TOP
   =============================== */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border: none;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--secondary-color);
}

/* ===============================
   RESPONSIVE STYLES
   =============================== */
@media (max-width: 1199px) {
  .hero-slide {
    height: 500px;
  }
  
  .hero-title {
    font-size: 36px;
  }
}

@media (max-width: 991px) {
  .hero-slide {
    height: 450px;
  }
  
  .hero-content {
    padding: 70px 0;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .article-title {
    font-size: 32px;
  }
  
  .sidebar {
    margin-top: 40px;
  }
}

@media (max-width: 767px) {
  .hero-slide {
    height: 400px;
  }
  
  .hero-content {
    padding: 50px 0;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-excerpt {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .article-title {
    font-size: 28px;
  }
  
  .article-body {
    font-size: 16px;
  }
  
  .article-footer {
    flex-direction: column;
  }
  
  .article-tags {
    margin-bottom: 15px;
  }
}

@media (max-width: 575px) {
  .hero-slide {
    height: 350px;
  }
  
  .hero-content {
    padding: 40px 0;
  }
  
  .hero-title {
    font-size: 24px;
  }
  
  .btn-read-more {
    padding: 8px 15px;
    font-size: 14px;
  }
  
  .article-title {
    font-size: 24px;
  }
  
  .page-title {
    font-size: 28px;
  }
}

/* Fix for dropdown toggle arrow disappearing on active state */
.navbar .nav-item.dropdown .nav-link.dropdown-toggle.active::after {
    display: inline-block; /* Ensure the arrow pseudo-element is displayed */
    vertical-align: 0.255em; /* Re-apply default Bootstrap vertical alignment */
    content: ""; /* Ensure content is present */
    border-top: .3em solid; /* Re-apply border styles */
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
}

/*------------------------------------*\
    Source Stat Boxes (Homepage)
\*------------------------------------*/

.source-stats .section-title {
    margin-bottom: 30px;
}

.stat-box {
    background-color: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.stat-box-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #007bff;
    font-size: 24px;
    margin-right: 20px;
    flex-shrink: 0;
}

.stat-box-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 8px;
}

.stat-box-content p {
    margin-bottom: 4px;
    color: #555;
    font-size: 0.9rem;
}

.stat-box-content p.count {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

.stat-box-content p.date-range {
    font-size: 0.8rem;
    color: #777;
}


/*------------------------------------*\
	Widget
\*------------------------------------*/

/* Highlight Style */
span.highlight {
    background-color: yellow;
    padding: 0.1em 0.2em;
    border-radius: 3px;
}

/*------------------------------------*\
	Post
\*------------------------------------*/

/* Source Label Specific Colors */
.source-label-hurriyet { background-color: #E60004; } /* Red */
.source-label-sabah { background-color: #004A98; } /* Dark Blue */
.source-label-milliyet { background-color: #1DA1F2; } /* Light Blue */
.source-label-dha { background-color: #FF7F00; } /* Orange */
.source-label-sozcu { background-color: #cc0000; } /* Dark Red */
.source-label-fotomac { background-color: #008000; } /* Green */
.source-label-fanatik { background-color: #FDB913; } /* Yellow/Gold */
/* Add more sources as needed */
.post-category:not([class*='source-label-']) { background-color: #6c757d; } /* Default Gray */

/*------------------------------------*\
    Post Image
\*------------------------------------*/

/* Ensure Hero Slider title link doesn't change color on hover */
.hero-slider .hero-title a {
    color: white; /* Assuming default color is white */
    text-decoration: none;
}

.hero-slider .hero-title a:hover {
    color: white; /* Keep color white on hover */
    text-decoration: none; /* Remove underline on hover */
}
