* {
  box-sizing: border-box;
}

:root {
  --primary-color: #0066cc;
  --secondary-color: #f0f0f0;
  --accent-color: #ff6600;
  --bg-color: #ffffff;
  --text-color: #333333;
  --card-bg: #ffffff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

body.acasa {
  --primary-color: #0066cc;
}
body.actualitate {
  --primary-color: #d32f2f;
}
body.international {
  --primary-color: #f57c00;
}
body.monden {
  --primary-color: #e91e63;
}
body.sport {
  --primary-color: #ee0a24;
}
body.cultura {
  --primary-color: #9c27b0;
}
body.divertisment {
  --primary-color: #ff9800;
}
body.lifestyle {
  --primary-color: #4caf50;
}


html {
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

header {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
  width: 100%;
  color: var(--text-color);
  box-shadow: var(--shadow);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
  gap: 0.5rem;
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: none;
  color: var(--primary-color);
  font-family: 'Playfair Display', 'Georgia', serif;
  text-align: center;
}

header h1 .media-dot {
  color: #666;
  font-weight: 500;
}

/* Desktop: Logo centered above nav */
@media (min-width: 1201px) {
  .header-container {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 2rem;
  }
  
  header h1 {
    font-size: 2.2rem;
    letter-spacing: 1px;
  }
  
  nav {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  nav ul {
    justify-content: center;
  }
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
  padding: 0.5rem;
  margin-left: auto;
}

.close-menu {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-color);
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
  padding: 0.5rem;
}

nav {
  flex: 1;
  padding: 0 1rem;
}

nav ul {
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
}

nav li {
  margin: 0;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border-radius: 8px;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

nav a:hover, nav a.active {
  background: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-hover);
}

.news-link {
  text-decoration: none;
}

body.acasa main {
  grid-template-columns: 2fr 1fr;
}
body.acasa .hero,
body.acasa .hero-section {
  display: block;
}
body.acasa aside {
  position: sticky;
  top: 100px;
}

body.actualitate main,
body.international main,
body.monden main,
body.sport main,
body.cultura main,
body.divertisment main,
body.lifestyle main {
  grid-template-columns: 1fr;
}

body.actualitate .hero,
body.actualitate .hero-section,
body.international .hero,
body.international .hero-section,
body.monden .hero,
body.monden .hero-section,
body.sport .hero,
body.sport .hero-section,
body.cultura .hero,
body.cultura .hero-section,
body.divertisment .hero,
body.divertisment .hero-section,
body.lifestyle .hero,
body.lifestyle .hero-section {
  display: none;
}

body.actualitate aside,
body.international aside,
body.monden aside,
body.sport aside,
body.cultura aside,
body.divertisment aside,
body.lifestyle aside {
  display: none;
}

.search-bar {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 1rem 1rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin: 0;
  border-bottom: 1px solid #eee;
}

.search-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: block;
}

.search-bar input {
  width: 100%;
  padding: 1rem 3.5rem 1rem 3rem;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-sizing: border-box;
  background: white;
  font-weight: 500;
  color: var(--text-color);
}

.search-bar .search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-size: 1.1rem;
  pointer-events: none;
  transition: all 0.3s ease;
}

.search-bar input:hover {
  border-color: #ccc;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-bar input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 4px 20px rgba(0, 102, 204, 0.15);
}

.search-bar input:focus + .search-icon,
.search-bar .search-container:focus-within .search-icon {
  color: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}

.search-bar input::placeholder {
  color: #999;
  font-weight: 400;
}

/* Mobile search submit button */
.search-bar .search-submit-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  font-size: 1.1rem;
}

.search-bar .search-submit-btn:hover {
  background: #0052a3;
  transform: translateY(-50%) scale(1.05);
}

.search-bar .search-submit-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.search-bar .search-submit-btn svg {
  stroke: white;
  fill: none;
}

.search-bar .search-icon svg {
  stroke: var(--primary-color);
  fill: none;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

/* Hero Section - Elegant Card Design */
.hero-section {
  grid-column: 1 / -1;
  margin-bottom: 2.5rem;
}

.hero-link {
  display: block;
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.hero-link:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.hero-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

/* Ensure picture element fills container */
.hero-image-container picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-link:hover .hero-img {
  transform: scale(1.03);
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.hero-info {
  padding: 1.75rem 2rem 2rem;
}

.hero-category {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-color);
  margin: 0 0 1rem 0;
  transition: color 0.3s ease;
}

.hero-link:hover .hero-title {
  color: var(--primary-color);
}

.hero-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: #666;
  font-size: 0.9rem;
}

.hero-date,
.hero-author {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-excerpt {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Legacy hero styles for compatibility */
.hero {
  grid-column: 1 / -1;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 2rem;
  position: relative;
  height: 450px;
  box-shadow: var(--shadow-hover);
}

.hero-image {
  height: 100%;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #999;
}

.hero-content {
  padding: 2rem;
  background: var(--card-bg);
}

.hero h2 {
  font-size: 1.8rem;
  margin: 0 0 1rem;
  color: var(--primary-color);
}

.hero h3 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  font-weight: 600;
}

.hero p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.9rem;
}

.btn:hover {
  background: #0052a3;
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.news-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-grid h2 {
  font-size: 2rem;
  margin: 0 0 1.5rem;
  color: var(--text-color);
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 0.75rem;
  font-weight: 700;
}

.news-item {
  margin-bottom: 0;
  display: flex;
  gap: 0;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  position: relative;
}

.news-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.news-item:hover .news-image img {
  transform: scale(1.08);
}

.news-item:hover h3 {
  color: var(--primary-color);
}

.news-image {
  flex: 0 0 320px;
  height: 220px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #999;
  border-radius: 16px 0 0 16px;
  overflow: hidden;
  position: relative;
}

.news-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, transparent 70%, rgba(255,255,255,0.1) 100%);
  pointer-events: none;
}

.news-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news-content {
  flex: 1;
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-item h3 {
  color: var(--text-color);
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 700;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item p {
  margin: 0;
  font-size: 0.95rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-item p::before {
  content: '📅';
  font-size: 0.85rem;
}

aside {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}

aside h3 {
  margin-top: 0;
  color: var(--primary-color);
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.5rem;
  font-size: 1.1rem;
}

aside ul {
  list-style: none;
  padding: 0;
}

aside li {
  margin-bottom: 0.75rem;
}

aside a {
  color: var(--text-color);
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  transition: var(--transition);
  font-size: 0.95rem;
  cursor: pointer;
}

aside a:hover {
  color: var(--primary-color);
}

aside a.active {
  color: var(--primary-color);
  font-weight: 700;
  border-left: 3px solid var(--primary-color);
  padding-left: 0.5rem;
}

.ad-container {
  grid-column: 1 / -1;
  text-align: center;
  margin: 2rem 0;
  padding: 1rem;
  background: var(--secondary-color);
  border-radius: var(--border-radius);
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.article-header {
  text-align: center;
  margin-bottom: 3rem;
}

.article-header h1 {
  color: var(--primary-color);
  font-size: clamp(1.8rem, 3vw, 3rem);
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  backdrop-filter: blur(10px);
}

.hero-overlay .meta-item {
  background: rgba(255,255,255,0.25);
  color: white;
}

.article-header .meta-item {
  background: var(--secondary-color);
  color: var(--text-color);
}

.article {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 3rem;
  margin-bottom: 3rem;
}

.content {
  font-size: 1.2rem;
  line-height: 1.9;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
}

.tag {
  background: linear-gradient(135deg, var(--primary-color), #0052a3);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,102,204,0.3);
  transition: var(--transition);
}

.tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,102,204,0.4);
}

.article-actions {
  text-align: center;
  margin-top: 2rem;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.back:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

footer {
  background: #f8f9fa;
  color: #666;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 4rem;
  border-top: 1px solid #dee2e6;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
}

/* Media Queries */

@media (max-width: 1200px) {
  .close-menu {
    display: block;
    top: 0.5rem;
  }
  nav a {
    display: block;
    text-align: center;
    border-bottom: 1px solid #eee;
    border-radius: 4px;
    padding: 0.75rem 0.5rem;
    width: 100%;
  }
  .hamburger {
    display: block;
    position: static;
    margin-left: auto;
  }

  .header-container {
    justify-content: space-between;
  }

  header {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0.5rem 2rem;
  }

  nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #f8f9fa;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid #dee2e6;
    z-index: 100;
  }

  nav ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    list-style: none;
    padding: 2.5rem 0.5rem 1rem;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

  nav.active {
    max-height: 400px;
  }

  nav li {
    margin: 0;
  }

  main {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.25rem;
  }

  .news-item {
    flex-direction: column;
    gap: 0;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 12px;
  }

  .news-content {
    padding: 1.25rem 1.5rem;
  }

  .news-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    -webkit-line-clamp: 3;
  }

  .news-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
  }

  .news-image {
    width: 100%;
    height: 220px;
    flex: none;
    border-radius: 12px 12px 0 0;
  }

  .hero-image {
    height: 180px;
  }

  /* Hero Section Responsive - 1200px */
  .hero-image-container {
    height: 300px;
  }

  .hero-info {
    padding: 1.5rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .search-bar input {
    width: 90%;
  }

  header h1 {
    font-size: 1.6rem;
    margin: 0;
  }

  nav li {
    margin: 0 0.5rem;
  }

  nav a {
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 768px) {
  aside {
    display: none;
  }
  main {
    display: block;
  }
  .container {
    padding: 1rem;
  }

  .hero {
    height: 300px;
    margin-bottom: 1.5rem;
    border-radius: 0;
  }

  .hero-overlay {
    padding: 1.5rem 1rem 1.5rem;
  }

  .hero-overlay h1 {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    margin-bottom: 0.75rem;
  }

  .hero-overlay .meta-item {
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
  }

  /* Hero Section Responsive - 768px */
  .hero-section {
    margin-bottom: 1.5rem;
  }

  .hero-link {
    border-radius: 12px;
  }

  .hero-image-container {
    height: 250px;
  }

  .hero-info {
    padding: 1.25rem;
  }

  .hero-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
  }

  .hero-meta {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .hero-category {
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
  }

  .article {
    padding: 2rem 1.5rem;
  }

  .article-meta {
    gap: 1rem;
    font-size: 1rem;
  }

  .back {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.25rem 0.5rem;
    gap: 0.5rem;
  }

  header h1 {
    font-size: 1.4rem;
  }

  .hamburger {
    font-size: 1.2rem;
    padding: 0.25rem;
  }

  main {
    padding: 0.25rem;
  }

  .search-bar {
    padding: 0.75rem;
  }

  .search-container {
    width: 100%;
    max-width: none;
  }

  .search-bar input {
    padding: 0.85rem 3.25rem 0.85rem 2.75rem;
    font-size: 0.95rem;
  }

  .search-bar .search-icon {
    left: 1rem;
  }
  
  .search-bar .search-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .search-bar .search-submit-btn {
    width: 36px;
    height: 36px;
    right: 0.4rem;
  }

  .news-content {
    padding: 1rem;
  }

  .news-item h3 {
    font-size: 1.1rem;
    -webkit-line-clamp: 2;
  }

  .news-item p {
    font-size: 0.85rem;
  }

  .news-image {
    height: 180px;
  }
  
  .news-item {
    border-radius: 10px;
  }
  
  .news-image {
    border-radius: 10px 10px 0 0;
  }

  .hero-image {
    height: 150px;
  }

  /* Hero Section Responsive - 480px */
  .hero-section {
    margin-bottom: 1rem;
  }

  .hero-link {
    border-radius: 10px;
  }

  .hero-image-container {
    height: 200px;
  }

  .hero-info {
    padding: 1rem;
  }

  .hero-title {
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
  }

  .hero-meta {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
  }

  .hero-category {
    font-size: 0.65rem;
    padding: 0.25rem 0.7rem;
    margin-bottom: 0.5rem;
  }

  .btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }

  .ad-container {
    padding: 0.25rem;
    margin: 0.5rem 0;
  }

  nav ul {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.5rem 0.5rem 1rem;
    gap: 0.5rem;
  }

  nav a {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
}
.headTitle{
  text-decoration: none;
}

@media (min-width: 769px) and (max-width: 1100px) {
  header {
    padding: 0.75rem 1.5rem;
  }

  header h1 {
    font-size: 1.6rem;
  }

  main {
    padding: 0.75rem;
    max-width: 1000px;
  }

  .hero-image {
    height: 250px;
  }

  .news-image {
    flex: 0 0 280px;
    height: 200px;
  }

  .news-content {
    padding: 1.5rem;
  }

  .news-item h3 {
    font-size: 1.35rem;
  }
  
  .news-item {
    border-radius: 14px;
  }
  
  .news-image {
    border-radius: 14px 0 0 14px;
  }

  aside {
    padding: 1.2rem;
  }

  aside h3 {
    font-size: 1rem;
  }

  .news-grid h2 {
    font-size: 1.6rem;
  }
  .container {
    padding: 1.5rem;
    max-width: 750px;
  }

  .hero {
    height: 400px;
  }

  .hero-overlay {
    padding: 2rem 2.5rem 3rem;
  }

  .article {
    padding: 2.5rem;
  }

  header {
    padding: 0.75rem 1.5rem;
  }

  header h1 {
    font-size: 1.6rem;
  }
}

/* Privacy Policy & Terms Pages */
.privacy-content,
.terms-content {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  text-align: justify;
}

.privacy-content h1,
.terms-content h1 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.privacy-content h2,
.terms-content h2 {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-top: 2rem;
}

.privacy-content h3 {
  color: var(--primary-color);
  margin-top: 1.5rem;
  font-size: 1.2em;
}

.privacy-content ul,
.terms-content ul {
  margin-left: 1.5rem;
}

.privacy-content p,
.terms-content p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.privacy-content dl {
  margin-bottom: 1rem;
}

.privacy-content dt {
  font-weight: bold;
  margin-top: 1rem;
}

.privacy-content dd {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 1101px) {
  nav ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem 5rem;
    justify-items: center;
  }

  nav a {
    padding: 0.75rem 1rem;
    text-align: center;
    margin: 0;
  }
}

@media (max-width: 768px) and (min-width: 481px) {
  nav ul {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== Social Icons Styles ===== */

/* Header title row - contains social icons, title, and search bar on same line */
.header-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}

/* Desktop social icons - positioned at left edge */
.social-icons-desktop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: absolute;
  left: 0;
}

/* Desktop search bar - positioned at right edge */
.header-search-desktop {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
}

.header-search-desktop .search-container {
  position: relative;
  width: 280px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header-search-desktop input {
  width: 100%;
  padding: 0.75rem 1.25rem 0.75rem 3rem;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 0.95rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-sizing: border-box;
  background: #f8f9fa;
  color: var(--text-color);
  font-weight: 500;
}

.header-search-desktop input::placeholder {
  color: #999;
  font-weight: 400;
}

.header-search-desktop input:hover {
  border-color: #ccc;
  background: white;
}

.header-search-desktop input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 4px 20px rgba(0, 102, 204, 0.15);
  width: 320px;
  background: white;
}

.header-search-desktop .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.3s ease;
}

.header-search-desktop input:focus + .search-icon,
.header-search-desktop .search-container:focus-within .search-icon {
  color: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}

/* Search button for desktop */
.header-search-desktop .search-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.header-search-desktop input:focus ~ .search-btn,
.header-search-desktop .search-container:focus-within .search-btn {
  opacity: 1;
  pointer-events: auto;
}

.header-search-desktop .search-btn:hover {
  background: #0052a3;
  transform: translateY(-50%) scale(1.1);
}

.header-search-desktop .search-btn svg {
  width: 16px;
  height: 16px;
  stroke: white;
  fill: none;
}

.header-search-desktop .search-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary-color);
  fill: none;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

/* Facebook specific color */
.social-facebook {
  background-color: #1877f2;
}

.social-facebook:hover {
  background-color: #166fe5;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

/* Instagram specific color (gradient) */
.social-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-instagram:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.4);
}

/* Twitter/X specific color */
.social-twitter {
  background-color: #000000;
}

.social-twitter:hover {
  background-color: #333333;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* TikTok specific color */
.social-tiktok {
  background-color: #000000;
}

.social-tiktok:hover {
  background-color: #333333;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* YouTube specific color */
.social-youtube {
  background-color: #ff0000;
}

.social-youtube:hover {
  background-color: #cc0000;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

/* Mobile menu social icons - hidden by default */
.social-icons-mobile {
  display: none;
}

/* Desktop: show icons to the left of title, search on right, hide mobile elements */
@media (min-width: 1101px) {
  .header-title-row {
    display: flex;
    justify-content: center;
  }
  
  .social-icons-desktop {
    display: flex;
  }
  
  .header-search-desktop {
    display: flex;
  }
  
  /* Hide the original search bar below header on desktop */
  .search-bar {
    display: none;
  }
  
  .social-icons-mobile {
    display: none !important;
  }
}

/* Mobile: hide desktop icons and search, show in menu */
@media (max-width: 1100px) {
  .header-title-row {
    display: flex;
    justify-content: center;
  }
  
  .social-icons-desktop {
    display: none;
  }
  
  .header-search-desktop {
    display: none;
  }
  
  /* Show the original search bar below header on mobile */
  .search-bar {
    display: block;
  }
  
  .social-icons-mobile {
    display: flex !important;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 1px solid #eee;
    width: 100%;
  }
  
  .social-icons-mobile .social-icon {
    width: 100%;
    height: auto;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    justify-content: flex-start;
    gap: 0.75rem;
  }
  
  .social-icons-mobile .social-icon span {
    font-size: 0.95rem;
    font-weight: 600;
  }
  
  .social-icons-mobile .social-icon svg {
    width: 24px;
    height: 24px;
  }
}

/* ===== Pagination Styles ===== */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.pagination-btn:hover:not(.disabled) {
  background: #0052a3;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.pagination-btn.disabled {
  background: #ccc;
  color: #888;
  cursor: not-allowed;
  opacity: 0.6;
}

.pagination-select-wrapper {
  position: relative;
}

.pagination-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  background: white;
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition);
  min-width: 140px;
}

.pagination-select:hover {
  border-color: #0052a3;
}

.pagination-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}

.pagination-select-wrapper::after {
  content: '▼';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--primary-color);
  font-size: 0.75rem;
}

/* Pagination Responsive */
@media (max-width: 768px) {
  .pagination-container {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }
  
  .pagination-btn {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }
  
  .pagination-select {
    width: 100%;
    min-width: unset;
  }
  
  .pagination-select-wrapper {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .pagination-btn {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
  }
  
  .pagination-select {
    padding: 0.6rem 2rem 0.6rem 0.75rem;
    font-size: 0.85rem;
  }
}