/* NEWS PAGE SPECIFIC STYLES */

/* Prevent horizontal scroll */
html,
body {
  overflow-x: hidden;
  width: 100%;
}

/* PAGE HERO */
.page-hero {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 400px;
  background: linear-gradient(135deg, #1e2761 0%, #0d1535 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 80px;
}

.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      circle at 30% 50%,
      rgba(64, 142, 198, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(255, 199, 5, 0.1) 0%,
      transparent 50%
    );
  z-index: 1;
}

.page-hero-content {
  grid-column: 1 / -1;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease;
}

.page-breadcrumb {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  animation: fadeInUp 1s ease;
}

.page-breadcrumb a {
  color: var(--color-highlight);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-breadcrumb a:hover {
  color: #ffffff;
}

/* NEWS SECTION */
.news-section {
  padding: 100px 0;
  background: #ffffff;
  overflow: hidden;
}

.news-section .container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 30px;
  width: 100%;
  max-width: 100%;
}

/* FILTER BAR */
.filter-bar {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-bottom: 50px;
  padding: 30px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  flex-wrap: wrap;
}

.filter-left {
  flex: 1;
  min-width: 250px;
}

.filter-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.news-count {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-muted);
  margin: 0;
}

.news-count span {
  font-weight: 600;
  color: var(--color-accent);
}

.filter-right {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

.filter-select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 10px 16px;
  border: 2px solid rgba(30, 39, 97, 0.1);
  border-radius: 8px;
  background: #ffffff;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(64, 142, 198, 0.1);
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
}

.search-bar input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 10px 40px 10px 16px;
  border: 2px solid rgba(30, 39, 97, 0.1);
  border-radius: 8px;
  background: #ffffff;
  color: var(--color-text);
  transition: all 0.3s ease;
  min-width: 250px;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(64, 142, 198, 0.1);
}

.search-bar svg {
  position: absolute;
  right: 12px;
  stroke: var(--color-muted);
  pointer-events: none;
}

/* NEWS GRID */
.news-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.news-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  border: 1px solid #e5e7eb;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--color-accent);
}

.news-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 60%;
  overflow: hidden;
  background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
  to {
    background-position-x: -200%;
  }
}

.news-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.news-image-wrapper img.loaded {
  opacity: 1;
}

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

.news-info {
  padding: 25px;
}

.news-date {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-date svg {
  stroke: var(--color-accent);
}

.news-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-primary);
  margin: 0 0 12px 0;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-excerpt {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

.read-more svg {
  transition: transform 0.3s ease;
}

.news-card:hover .read-more {
  color: var(--color-primary);
}

.news-card:hover .read-more svg {
  transform: translateX(5px);
}

/* NO RESULTS */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
}

.no-results svg {
  stroke: var(--color-muted);
  opacity: 0.3;
  margin-bottom: 20px;
}

.no-results h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.no-results p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-muted);
  margin: 0;
}

/* ARTICLE MODAL */
.article-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.article-modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
  background: var(--color-primary);
  transform: rotate(90deg);
}

.modal-close svg {
  stroke: var(--color-primary);
  transition: stroke 0.3s ease;
}

.modal-close:hover svg {
  stroke: #ffffff;
}

.modal-body {
  padding: 40px;
}

/* MODAL HEADER */
.modal-header {
  margin-bottom: 30px;
}

.modal-date {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-primary);
  line-height: 1.3;
  margin: 0;
  font-weight: 700;
}

/* MODAL IMAGE */
.modal-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
}

.modal-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* MODAL ARTICLE CONTENT */
.modal-article-content {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 40px;
}

.modal-article-content p {
  margin-bottom: 20px;
}

.modal-article-content p:last-child {
  margin-bottom: 0;
}

.modal-article-content h2,
.modal-article-content h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-top: 30px;
  margin-bottom: 15px;
}

.modal-article-content h2 {
  font-size: 1.8rem;
}

.modal-article-content h3 {
  font-size: 1.4rem;
}

.modal-article-content ul,
.modal-article-content ol {
  margin-bottom: 20px;
  padding-left: 25px;
}

.modal-article-content li {
  margin-bottom: 10px;
}

/* ARTICLE GALLERY */
.article-gallery {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #e5e7eb;
}

.article-gallery h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: #f5f5f5;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.gallery-item:hover img {
  opacity: 0.9;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
}

.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.lightbox-close svg {
  stroke: #ffffff;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav svg {
  stroke: #ffffff;
}

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}

.lightbox-image-wrapper {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: 20px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* MODAL SHARE */
.modal-share {
  border-top: 1px solid #e5e7eb;
  padding-top: 30px;
}

.share-label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 15px;
  font-weight: 600;
}

.share-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ffffff;
}

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

.share-btn.whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.share-btn.facebook {
  background: #1877f2;
}

.share-btn.facebook:hover {
  background: #166fe5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

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

.share-btn.twitter:hover {
  background: #1a91da;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

/* RESPONSIVE DESIGN */

/* Large Tablets - 1200px and below */
@media (max-width: 1200px) {
  .page-title {
    font-size: 3rem;
  }

  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
  }

  .modal-body {
    padding: 35px;
  }

  .modal-title {
    font-size: 2.2rem;
  }
}

/* Tablets - 992px and below */
@media (max-width: 992px) {
  .page-hero {
    height: 45vh;
    min-height: 350px;
  }

  .page-title {
    font-size: 2.5rem;
  }

  .news-section {
    padding: 80px 0;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 25px;
  }

  .filter-left {
    text-align: center;
  }

  .filter-right {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-select,
  .search-bar input {
    width: 100%;
    min-width: auto;
  }

  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }

  .modal-body {
    padding: 30px;
  }

  .modal-title {
    font-size: 2rem;
  }
}

/* Mobile Landscape - 768px and below */
@media (max-width: 768px) {
  .page-hero {
    height: 40vh;
    min-height: 280px;
    margin-top: 70px;
  }

  .page-title {
    font-size: 1.9rem;
    margin-bottom: 10px;
  }

  .page-breadcrumb {
    font-size: 0.85rem;
  }

  .news-section {
    padding: 70px 0;
  }

  .filter-bar {
    padding: 20px;
    margin-bottom: 35px;
  }

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

  .news-count {
    font-size: 0.9rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-info {
    padding: 20px;
  }

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

  .news-excerpt {
    font-size: 0.9rem;
  }

  .modal-content {
    max-height: 95vh;
    border-radius: 16px;
  }

  .modal-body {
    padding: 25px;
  }

  .modal-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }

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

  .modal-article-content {
    font-size: 1rem;
  }

  .share-buttons {
    flex-direction: column;
  }

  .share-btn {
    width: 100%;
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

  .lightbox-content {
    padding: 60px 20px;
  }

  .lightbox-nav {
    width: 48px;
    height: 48px;
  }

  .lightbox-nav.prev {
    left: 15px;
  }

  .lightbox-nav.next {
    right: 15px;
  }
}

/* Mobile Portrait - 600px and below */
@media (max-width: 600px) {
  .page-hero {
    height: 35vh;
    min-height: 250px;
  }

  .page-title {
    font-size: 1.65rem;
  }

  .news-section {
    padding: 60px 0;
  }

  .filter-bar {
    padding: 18px;
    margin-bottom: 30px;
  }

  .filter-title {
    font-size: 1.35rem;
  }

  .news-count {
    font-size: 0.85rem;
  }

  .filter-group label {
    font-size: 0.9rem;
  }

  .filter-select,
  .search-bar input {
    font-size: 0.9rem;
    padding: 9px 14px;
  }

  .news-info {
    padding: 18px;
  }

  .news-date {
    font-size: 0.8rem;
  }

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

  .news-excerpt {
    font-size: 0.88rem;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-header {
    margin-bottom: 25px;
  }

  .modal-date {
    font-size: 0.85rem;
  }

  .modal-title {
    font-size: 1.6rem;
  }

  .modal-article-content {
    font-size: 0.95rem;
    margin-bottom: 35px;
  }

  .modal-share {
    padding-top: 25px;
  }

  .share-label {
    font-size: 1rem;
  }

  .share-btn {
    padding: 9px 18px;
    font-size: 0.85rem;
  }
}

/* Small Mobile - 480px and below */
@media (max-width: 480px) {
  .page-hero {
    height: 32vh;
    min-height: 230px;
  }

  .page-title {
    font-size: 1.45rem;
    margin-bottom: 8px;
  }

  .page-breadcrumb {
    font-size: 0.75rem;
  }

  .news-section {
    padding: 50px 0;
  }

  .filter-bar {
    padding: 16px;
    margin-bottom: 25px;
  }

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

  .news-info {
    padding: 16px;
  }

  .news-date {
    font-size: 0.75rem;
    margin-bottom: 10px;
  }

  .news-title {
    font-size: 1.05rem;
  }

  .news-excerpt {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }

  .read-more {
    font-size: 0.85rem;
  }

  .modal-content {
    border-radius: 12px;
  }

  .modal-body {
    padding: 18px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }

  .modal-title {
    font-size: 1.4rem;
  }

  .modal-article-content {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .share-btn {
    padding: 8px 16px;
    font-size: 0.82rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .lightbox-content {
    padding: 50px 15px;
  }

  .lightbox-close {
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
  }

  .lightbox-nav.prev {
    left: 10px;
  }

  .lightbox-nav.next {
    right: 10px;
  }

  .lightbox-counter {
    bottom: 20px;
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .no-results {
    padding: 60px 20px;
  }

  .no-results svg {
    width: 48px;
    height: 48px;
  }

  .no-results h3 {
    font-size: 1.4rem;
  }

  .no-results p {
    font-size: 0.9rem;
  }
}

/* Extra Small Mobile - 375px and below */
@media (max-width: 375px) {
  .page-hero {
    height: 30vh;
    min-height: 210px;
  }

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

  .news-section {
    padding: 45px 0;
  }

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

  .modal-title {
    font-size: 1.25rem;
  }

  .modal-article-content {
    font-size: 0.85rem;
  }
}