/* ============================================
   RONDOMOTOR - Portal de Notícias Automotivas
   Bootstrap 5.3.8 + FontAwesome 7.2.0
   ============================================ */

/* CSS Variables */
:root {
  --primary-color: #e63946;
  --primary-dark: #c62828;
  --secondary-color: #1d3557;
  --accent-color: #457b9d;
  --light-color: #f1faee;
  --dark-color: #1a1a2e;
  --text-color: #333333;
  --text-muted: #6c757d;
  --border-color: #e0e0e0;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --gradient-primary: linear-gradient(135deg, #e63946 0%, #c62828 100%);
  --gradient-dark: linear-gradient(135deg, #1d3557 0%, #0d1b2a 100%);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --border-radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f8f9fa;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

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

a:hover {
  color: var(--primary-dark);
}

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

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: var(--gradient-dark);
  color: #fff;
  padding: 10px 0;
  font-size: 13px;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar .location,
.top-bar .date,
.top-bar .update-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar .divider {
  opacity: 0.4;
}

.top-bar i {
  color: var(--primary-color);
  font-size: 12px;
}

.top-bar .social-icons {
  display: flex;
  gap: 8px;
}

.top-bar .social-icons a {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  transition: var(--transition);
}

.top-bar .social-icons a:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.top-bar .social-icons a:hover i {
  color: #fff;
}

/* ============================================
   MAIN HEADER
   ============================================ */
.main-header {
  background: #fff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  padding: 0.8rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand {
  padding: 0;
  margin: 0;
}

.logo-img {
  width: auto;
}

.btn-custom {
  border: 1px solid var(--cor-botao);
  color: var(--cor-botao);
  background: transparent;
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-custom i {
  transition: all 0.3s ease;
}

.btn-custom:hover {
  background: var(--cor-botao);
  color: #fff !important;
}

.btn-custom:hover i {
  color: #fff;
}

.title-icon {
  background: var(--cor-botao) !important;
}

.section-title {
  color: var(--cor-botao) !important;
}

.section-header::after {
  background: var(--cor-botao) !important;
}

.read-more {
  width: 100%;
}

.btn-block {
  width: 100%;
}

@media (max-width: 991.98px) {
  .logo-img {
    max-width: 150px;
  }
}

@media (max-width: 575.98px) {
  .logo-img {
    height: 32px;
    max-width: 130px;
  }
}

.navbar-nav {
  gap: 5px;
}

.nav-link {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--secondary-color) !important;
  padding: 0.6rem 1rem !important;
  border-radius: var(--border-radius);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover,
.nav-link.active {
  background: var(--primary-color);
  color: #fff !important;
}

.nav-link i {
  font-size: 13px;
}

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius);
  padding: 10px;
  min-width: 220px;
}

.dropdown-item {
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dropdown-item:hover {
  background: var(--light-color);
  color: var(--primary-color);
}

.dropdown-item i {
  color: var(--primary-color);
  width: 18px;
}

.btn-search {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--light-color);
  border: none;
  color: var(--secondary-color);
  transition: var(--transition);
}

.btn-search:hover {
  background: var(--primary-color);
  color: #fff;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  width: 1.5em;
  height: 1.5em;
}

/* Search Modal */
.modal-content {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.search-form .form-control {
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  border: 2px solid var(--border-color);
  border-right: none;
  padding: 12px 20px;
}

.search-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: none;
}

.search-form .btn {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: 12px 25px;
}

.search-tags .badge {
  margin: 3px;
  padding: 6px 12px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.search-tags .badge:hover {
  background: var(--primary-color) !important;
  color: #fff !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  padding: 20px 0;
}

.hero-slide {
  height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 50px;
  color: #fff;
}

.category-badge {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-excerpt {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 25px;
  max-width: 600px;
}

.hero-content .btn-primary {
  background: var(--primary-color);
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 30px;
  transition: var(--transition);
}

.hero-content .btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.carousel-indicators button.active {
  background-color: var(--primary-color);
  width: 30px;
  border-radius: 6px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: var(--transition);
}

.hero-section:hover .carousel-control-prev,
.hero-section:hover .carousel-control-next {
  opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: var(--primary-color);
}

/* ============================================
   BREAKING NEWS TICKER
   ============================================ */
.breaking-news {
  background: var(--primary-color);
  color: #fff;
  padding: 12px 0;
  overflow: hidden;
}

.ticker-wrap {
  display: flex;
  align-items: center;
}

.ticker-label {
  background: rgba(0, 0, 0, 0.2);
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  margin-right: 20px;
}

.ticker {
  display: flex;
  gap: 40px;
  animation: ticker 30s linear infinite;
}

.ticker-item {
  white-space: nowrap;
  font-size: 14px;
}

.ticker-item::before {
  content: "•";
  margin-right: 10px;
  opacity: 0.7;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
  padding: 40px 0;
}

/* Section Styles */
.news-section {
  margin-bottom: 50px;
}

.section-header {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--border-color);
  position: relative;
}

.section-header::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--primary-color);
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.title-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

/* News Cards */
.news-card {
  background: #fff;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.news-card:hover .card-image img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary-color);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.card-body {
  padding: 20px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 12px;
}

.category {
  color: var(--primary-color);
  font-weight: 600;
}

.category i {
  margin-right: 4px;
}

.date {
  color: var(--text-muted);
}

.date i {
  margin-right: 4px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 10px;
  line-height: 1.4;
}

.card-title a {
  color: inherit;
}

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

.card-text {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.read-more {
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.read-more i {
  transition: var(--transition);
}

.read-more:hover i {
  transform: translateX(5px);
}

/* Featured Card */
.news-card.featured .card-image img {
  height: 280px;
}

.news-card.featured .card-title {
  font-size: 1.3rem;
}

/* Horizontal Card */
.news-card.horizontal {
  box-shadow: none;
  border: 1px solid var(--border-color);
}

.news-card.horizontal:hover {
  box-shadow: var(--shadow-md);
}

.news-card.horizontal .card-image img {
  height: 100px;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.news-card.horizontal .card-body {
  padding: 15px;
}

.news-card.horizontal .card-title {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

/* ============================================
   VIDEO SECTION
   ============================================ */
.video-section {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: var(--border-radius-lg);
}

.video-section .section-title {
  color: #fff;
}

.video-section .section-header::after {
  background: var(--primary-color);
}

.video-section .btn-outline-primary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.video-section .btn-outline-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.video-card .video-thumbnail {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.video-card .video-thumbnail img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  transition: var(--transition);
  cursor: pointer;
}

.play-button:hover {
  background: var(--primary-dark);
  transform: translate(-50%, -50%) scale(1.1);
}

.play-button.small {
  width: 40px;
  height: 40px;
  font-size: 14px;
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.video-info {
  padding: 15px 0;
}

.video-info h4,
.video-info h5 {
  color: #fff;
  margin-bottom: 8px;
}

.video-info .views {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.video-card.small .video-thumbnail img {
  height: 80px;
}

/* ============================================
   SIDEBAR WIDGETS
   ============================================ */
.sidebar-widget {
  background: #fff;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 25px;
  overflow: hidden;
}

.ad-widget {
  background: transparent;
  border-radius: 0px;
  box-shadow: none;
}

.ad-widget img{ 
  width: 100%;
}

.widget-header {
  background: var(--gradient-dark);
  color: #fff;
  padding: 15px 20px;
}

.widget-header h4 {
  font-size: 1rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-body {
  padding: 20px;
}

/* Newsletter Widget */
.newsletter-widget p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.newsletter-widget .form-control {
  border: 2px solid var(--border-color);
  padding: 12px 15px;
  border-radius: var(--border-radius);
}

.newsletter-widget .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: none;
}

.newsletter-widget .btn-primary {
  background: var(--gradient-primary);
  border: none;
  padding: 12px;
  font-weight: 600;
  border-radius: var(--border-radius);
}

/* Categories Widget */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  border-bottom: 1px solid var(--border-color);
}

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

.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  color: var(--text-color);
  font-size: 14px;
  transition: var(--transition);
}

.category-list a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.category-list .badge {
  background: var(--light-color);
  color: var(--primary-color);
  font-weight: 600;
}

/* Popular Posts Widget */
.popular-post {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.popular-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.popular-post:first-child {
  padding-top: 0;
}

.popular-post .rank {
  width: 35px;
  height: 35px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.popular-post .post-info h5 {
  font-size: 14px;
  margin-bottom: 5px;
  line-height: 1.4;
}

.popular-post .post-info h5 a {
  color: var(--secondary-color);
}

.popular-post .post-info h5 a:hover {
  color: var(--primary-color);
}

.popular-post .views {
  font-size: 12px;
  color: var(--text-muted);
}

/* Ad Widget */
.ad-space {
  background: #f8f9fa;
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px 20px;
  text-align: center;
  position: relative;
}

.ad-label {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.ad-content {
  color: var(--text-muted);
}

.ad-content i {
  font-size: 40px;
  margin-bottom: 10px;
}

.ad-content p {
  margin: 0;
  font-size: 14px;
}

/* Events Widget */
.event-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.event-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.event-item:first-child {
  padding-top: 0;
}

.event-date {
  width: 55px;
  height: 55px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.event-date .day {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.event-date .month {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
}

.event-info h5 {
  font-size: 14px;
  margin-bottom: 5px;
}

.event-info h5 a {
  color: var(--secondary-color);
}

.event-info h5 a:hover {
  color: var(--primary-color);
}

.event-info .location {
  font-size: 12px;
  color: var(--text-muted);
}

/* Social Widget */
.social-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: var(--border-radius);
  color: #fff;
  transition: var(--transition);
}

.social-stat:hover {
  transform: translateX(5px);
  color: #fff;
}

.social-stat.facebook {
  background: #1877f2;
}

.social-stat.instagram {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
}

.social-stat.youtube {
  background: #ff0000;
}

.social-stat i {
  font-size: 20px;
  width: 25px;
}

.social-stat .count {
  font-weight: 700;
  font-size: 16px;
}

.social-stat .label {
  font-size: 13px;
  opacity: 0.9;
}

/* ============================================
   PARTNERS SECTION
   ============================================ */
.partners-section {
  background: #fff;
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
}

.partners-title {
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.partners-slider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.partner-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  opacity: 0.7;
  transition: var(--transition);
}

.partner-logo:hover {
  opacity: 1;
  color: var(--primary-color);
}

.partner-logo i {
  font-size: 24px;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
  background: var(--gradient-dark);
  color: #fff;
}

.footer-top {
  padding: 60px 0 40px;
}

.footer-widget {
  margin-bottom: 30px;
}

.footer-logo {
  height: 45px;
  margin-bottom: 20px;
}

.footer-widget p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
}

.footer-widget h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #fff;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

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

.footer-links i {
  font-size: 10px;
  color: var(--primary-color);
}

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

.contact-info li {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.contact-info i {
  color: var(--primary-color);
  font-size: 16px;
  margin-top: 3px;
}

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

.copyright,
.credits {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.credits i {
  color: var(--primary-color);
}

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

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

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.view-mobile {
    display: none;
  }

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1199.98px) {
  .hero-slide {
    height: 450px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-content {
    padding: 40px;
  }
}

@media (max-width: 991.98px) {
  .top-bar {
    display: none;
  }

  .view-mobile {
    display: block;
  }

  .view-desktop {
    display: none;
  }

  .navbar {
    padding: 0.6rem 0;
  }

  .header-left {
    flex: 1;
    min-width: 0;
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .navbar-toggler {
    padding: 6px 10px;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
  }

  .navbar-toggler:focus {
    box-shadow: none;
    border-color: var(--primary-color);
  }

  .navbar-collapse {
    background: #fff;
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin-top: 10px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
  }

  .navbar-nav {
    gap: 3px;
  }

  .nav-link {
    padding: 10px 12px !important;
    font-size: 14px;
  }

  .dropdown-menu {
    box-shadow: none;
    border: 1px solid var(--border-color);
    margin-left: 10px;
  }

  .btn-search {
    width: 38px;
    height: 38px;
  }

  .hero-slide {
    height: 400px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-content {
    padding: 30px;
  }

  .hero-excerpt {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .sidebar-widget {
    margin-top: 30px;
  }
}

@media (max-width: 767.98px) {
  .hero-slide {
    height: 350px;
  }

  .hero-title {
    font-size: 1.3rem;
  }

  .hero-content {
    padding: 25px;
  }

  .hero-excerpt {
    display: none;
  }

  .hero-content .btn-lg {
    padding: 10px 20px;
    font-size: 14px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
  }

  .news-card.featured .card-image img {
    height: 200px;
  }

  .video-section {
    padding: 20px;
  }

  .video-card .video-thumbnail img {
    height: 180px;
  }

  .footer-top {
    padding: 40px 0 20px;
  }

  .footer-widget {
    text-align: center;
  }

  .footer-widget h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-social {
    justify-content: center;
  }

  .footer-links a {
    justify-content: center;
  }

  .contact-info li {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .copyright,
  .credits {
    text-align: center;
  }

  .credits {
    margin-top: 10px;
  }
}

@media (max-width: 575.98px) {
  .navbar {
    padding: 0.5rem 0;
  }

  .logo-img {
    height: 32px;
    max-width: 130px;
  }

  .header-right {
    gap: 5px;
  }

  .btn-search {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .navbar-toggler {
    padding: 5px 8px;
  }

  .hero-slide {
    height: 300px;
    border-radius: 0;
  }

  .hero-title {
    font-size: 1.1rem;
  }

  .hero-content {
    padding: 20px;
  }

  .category-badge {
    font-size: 10px;
    padding: 4px 10px;
  }

  .section-title {
    font-size: 1.1rem;
  }

  .title-icon {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .news-card.horizontal .card-image img {
    height: 80px;
  }

  .back-to-top {
    width: 45px;
    height: 45px;
    font-size: 16px;
    bottom: 20px;
    right: 20px;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-card {
  animation: fadeInUp 0.5s ease forwards;
}

/* Loading States */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Selection Color */
::selection {
  background: var(--primary-color);
  color: #fff;
}

::-moz-selection {
  background: var(--primary-color);
  color: #fff;
}

/* Toast */
.toast-notification {
  position: fixed;
  top: 80px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  z-index: 9999;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-notification.show {
  transform: translateX(0);
}

.toast-notification.success {
  background: var(--primary-color, --primary-dark);
}
