/* Import ABeeZee font */
@import url("https://fonts.googleapis.com/css2?family=ABeeZee:ital@0;1&display=swap");

/* Page Background Animations */
.page-bg-left,
.page-bg-right {
  position: fixed;
  top: 0;
  width: 170px;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  opacity: 0.75;
}

.page-bg-left {
  left: 0;
}

.page-bg-right {
  right: 0;
}

/* Left Side - Spotlight Beams */
.spotlight-beams {
  position: relative;
  width: 100%;
  height: 100%;
}

.beam {
  position: absolute;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, rgba(107, 155, 209, 0.4), transparent);
  left: 10%;
  transform-origin: left center;
  animation: beamSweep 8s ease-in-out infinite;
}

.beam-1 {
  top: 25%;
  animation-delay: 0s;
}

.beam-2 {
  top: 50%;
  animation-delay: 2.67s;
}

.beam-3 {
  top: 75%;
  animation-delay: 5.33s;
}

.news-network {
  position: absolute;
  top: 18%;
  left: 40%;
}

.news-svg {
  width: 170px;
  height: 520px;
}

.news-line {
  stroke-dasharray: 70;
  animation: newsDraw 7s ease-in-out infinite;
}

.line-1 { animation-delay: 0s; }
.line-2 { animation-delay: 3.5s; }

.news-node {
  animation: newsPulse 5s ease-in-out infinite;
}

.node-1 { animation-delay: 1s; }
.node-2 { animation-delay: 3s; }
.node-3 { animation-delay: 5s; }

/* Right Side - Spotlight Effects */
.spotlight-effects {
  position: relative;
  width: 100%;
  height: 100%;
}

.spotlight {
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(74, 144, 226, 0.2), transparent 70%);
  border-radius: 50%;
  right: 15%;
  animation: spotlightGlow 6s ease-in-out infinite;
}

.spot-1 {
  top: 20%;
  animation-delay: 0s;
}

.spot-2 {
  top: 50%;
  animation-delay: 2s;
}

.spot-3 {
  top: 80%;
  animation-delay: 4s;
}

.info-stream {
  position: absolute;
  right: 20%;
  top: 30%;
  width: 40px;
  height: 350px;
}

.info-bit {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(107, 155, 209, 0.8);
  border-radius: 2px;
  animation: infoFlow 8s linear infinite;
}

.bit-1 {
  left: 5px;
  animation-delay: 0s;
}

.bit-2 {
  left: 15px;
  animation-delay: 2s;
}

.bit-3 {
  left: 25px;
  animation-delay: 4s;
}

.bit-4 {
  left: 35px;
  animation-delay: 6s;
}

/* News Page Animation Keyframes */
@keyframes beamSweep {
  0%, 20% { transform: rotate(-15deg); opacity: 0; }
  50% { transform: rotate(15deg); opacity: 1; }
  80%, 100% { transform: rotate(45deg); opacity: 0; }
}

@keyframes newsDraw {
  0% { stroke-dashoffset: 70; opacity: 0; }
  50% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -70; opacity: 0; }
}

@keyframes newsPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
}

@keyframes spotlightGlow {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
}

@keyframes infoFlow {
  0% { transform: translateY(0px) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-330px) rotate(360deg); opacity: 0; }
}

@media (max-width: 1024px) {
  .page-bg-left,
  .page-bg-right {
    width: 130px;
  }
  
  .beam {
    width: 60px;
  }
  
  .spotlight {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 768px) {
  .page-bg-left,
  .page-bg-right {
    display: none;
  }
}

/* News Page Styles */

/* Hero Image Section */
.hero-image-section {
  padding: 80px 0 0 0;
  background: var(--bg-primary);
}

.hero-image-container {
  width: 100%;
  margin: 0;
  padding: 0;
  height: 280px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.hero-cover-image:hover {
  transform: scale(1.05);
}

/* Page Hero Section */
.page-hero {
  padding: 4rem 0;
  background: var(--bg-primary);
  text-align: center;
}

.page-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.page-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

.page-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.news-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.news-filters {
  margin-bottom: 3rem;
}

.filter-tabs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.filter-tab {
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.refresh-btn {
  padding: 0.75rem 1rem;
  background: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  border-radius: var(--radius-md);
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-left: 1rem;
}

.refresh-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.refresh-btn svg {
  transition: transform 0.3s ease;
}

.refresh-btn:hover svg {
  transform: rotate(180deg);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 350px));
  gap: 2rem;
  justify-content: center;
}

.news-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 350px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
}

.news-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 720px;
  width: 720px;
}

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

.news-image {
  height: 200px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.news-card.featured .news-image {
  height: 100%;
}

.news-placeholder {
  text-align: center;
  padding: 1rem;
}

.news-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card.featured .news-content {
  padding: 2rem;
}

.news-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.news-category {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.news-date {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  font-weight: 500;
}

.news-card h2,
.news-card h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.news-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.news-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.news-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
  text-align: justify;
}

.read-more-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.read-more-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  background: var(--bg-tertiary);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 500;
}

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

/* Animation for filtered items */
.news-card {
  opacity: 1;
  transform: scale(1);
  transition: all 0.3s ease;
}

.news-card.hidden {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-image-container {
    height: 220px;
  }

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

  .page-subtitle {
    font-size: 1.125rem;
  }

  .news-card.featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }

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

  .news-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .filter-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 1rem;
  }

  .filter-tab {
    flex-shrink: 0;
  }
}

/* Pagination Styles */
.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination-item {
  display: flex;
}

.pagination-btn {
  padding: 0.75rem 1rem;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
  color: var(--text-primary);
}

.pagination-item.active .pagination-btn {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination-item.disabled .pagination-btn {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .pagination-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    min-width: 36px;
  }

  .pagination {
    gap: 0.25rem;
  }
}

/* Loading and Error States */
.loading-container,
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  grid-column: 1 / -1;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-container p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0;
}

.error-container {
  color: var(--text-secondary);
}

.error-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.error-container h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.error-container p {
  margin-bottom: 1.5rem;
}

.retry-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.retry-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .hero-image-container {
    height: 180px;
  }

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

  .page-subtitle {
    font-size: 1rem;
  }

  .news-card {
    margin-bottom: 1rem;
    width: 100%;
    max-width: 100%;
  }

  .news-content {
    padding: 1rem;
  }

  .news-card.featured .news-content {
    padding: 1.5rem;
  }

  .news-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .pagination-container {
    margin-top: 2rem;
  }

  .pagination-btn {
    padding: 0.5rem;
    font-size: 0.75rem;
    min-width: 32px;
  }

  .loading-container,
  .error-container {
    padding: 2rem 1rem;
  }
}

/* Styles extracted from news.html */
.solutions-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.solutions-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../images/pattern/pattern-01.png") repeat;
  opacity: 0.1;
  z-index: 1;
}

.solutions-hero .container {
  position: relative;
  z-index: 2;
}

.solutions-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.solutions-subtitle {
  font-size: 1.3rem;
  max-width: 800px;
  margin-left: 200px;
  opacity: 0.9;
  line-height: 1.6;
  text-align: center;
  /* text-justify: inter-word; */
}

.solutions-content {
  padding: 80px 0;
}

.solutions-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 60px;
}

.solution-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e5e7eb;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  padding: 28px 32px;
}

.solution-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
  border-color: #3b82f6;
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.3;
}

.card-description {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.card-highlight {
  font-size: 0.9rem;
  color: #374151;
  font-weight: 500;
  margin: 0;
}

.card-arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3b82f6;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  margin-left: 24px;
  flex-shrink: 0;
}

.solution-card:hover .card-arrow {
  gap: 12px;
  color: #1d4ed8;
}

.arrow-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.solution-card:hover .arrow-icon {
  transform: translateX(4px);
}

.contact-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  padding: 60px 36px;
  border-radius: 16px;
  text-align: center;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../assets/images/pattern/pattern-02.png") repeat;
  opacity: 0.1;
  z-index: 1;
}

.contact-section .container {
  position: relative;
  z-index: 2;
}

.contact-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-text {
  font-size: 1.2rem;
  margin-bottom: 24px;
  opacity: 0.9;
}

.contact-email {
  color: #fbbf24;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  padding: 12px 24px;
  border: 2px solid #fbbf24;
  border-radius: 8px;
  display: inline-block;
  transition: all 0.3s ease;
}

.contact-email:hover {
  background-color: #fbbf24;
  color: #1e3a8a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.3);
}

@media (max-width: 768px) {
  .solutions-title {
    font-size: 2.2rem;
  }

  .solutions-subtitle {
    font-size: 1.1rem;
  }

  .solution-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 16px;
  }

  .card-arrow {
    margin-left: 0;
    align-self: flex-end;
  }

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

  .card-description {
    font-size: 0.95rem;
  }

  .card-highlight {
    font-size: 0.85rem;
  }

  .contact-section {
    padding: 40px 20px;
    margin-top: 40px;
  }

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

  .contact-text {
    font-size: 1rem;
  }

  .contact-email {
    font-size: 1rem;
    padding: 10px 20px;
  }
}

/* Loading animation */
.solution-card {
  animation: fadeInUp 0.6s ease-out forwards;
}

.solution-card:nth-child(1) {
  animation-delay: 0.1s;
}
.solution-card:nth-child(2) {
  animation-delay: 0.2s;
}
.solution-card:nth-child(3) {
  animation-delay: 0.3s;
}
.solution-card:nth-child(4) {
  animation-delay: 0.4s;
}
.solution-card:nth-child(5) {
  animation-delay: 0.5s;
}

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