/* =========================================================
   Nexzone Blog & News Consolidated Stylesheet
   Extracted from blog.html, news.html, and newsdetails.html
   ========================================================= */

/* =========================
   BLOG CARD SYSTEM
   ========================= */
.blog-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: 0 8px 30px rgba(0,191,255,0.15);
  transform: translateY(-5px);
}
.blog-card-image-wrapper {
  position: relative;
  overflow: hidden;
}
.blog-card-image-wrapper img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.blog-card:hover .blog-card-image-wrapper img {
  transform: scale(1.05);
}
.blog-logo-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 45px;
  height: 45px;
  background: #fff;
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.blog-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.blog-card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.blog-category {
  display: inline-block;
  background: linear-gradient(135deg, #00BFFF, #2196f3);
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  width: fit-content;
}
.blog-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.blog-excerpt {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  text-align: justify;
}
.blog-read-more {
  background: linear-gradient(135deg, #2196f3, #00BFFF);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(33,150,243,0.3);
}
.blog-read-more:hover {
  background: linear-gradient(135deg, #00BFFF, #2196f3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33,150,243,0.4);
}
.blog-read-more.expanded {
  background: linear-gradient(135deg, #666, #888);
}
.blog-read-more.expanded:hover {
  background: linear-gradient(135deg, #888, #666);
}
.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #666;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}
.blog-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.author-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #2196f3;
  flex-shrink: 0;
}
.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.author-name {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.2;
}
.author-position {
  font-size: 0.75rem;
  color: #2196f3;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.blog-date {
  color: #999;
  font-size: 0.85rem;
}

/* =========================
   NEWS LIST SYSTEM
   ========================= */
#news-section {
  margin-top: 2rem;
}
.news-list {
  width: 100%;
}
.news-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
  min-height: 120px;
  gap: 1.5rem;
  font-family: 'Heebo', 'Nunito', Arial, sans-serif;
}
.news-item:hover {
  box-shadow: 0 8px 32px rgba(0,191,255,0.10);
}
.news-thumb img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f5f5;
}
.news-title {
  font-family: 'Heebo', 'Nunito', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 0.5rem;
}
.news-desc {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0.5rem;
  line-height: 1.5;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.news-readmore {
  color: #00BFFF;
  font-size: 1rem;
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 1px solid #00BFFF;
  transition: color 0.2s, border-bottom 0.2s;
}
.news-readmore:hover {
  color: #0077b6;
  border-bottom: 1px solid #0077b6;
}

/* =========================
   NEWS DETAIL SECTION
   ========================= */
.news-detail-section {
  background: #f8faff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,191,255,0.07);
  padding: 2.5rem 1.5rem;
  margin-bottom: 2.5rem;
  transition: box-shadow 0.2s;
}
.news-detail-section:hover {
  box-shadow: 0 8px 32px rgba(0,191,255,0.13);
}
.news-image {
  max-width: 350px;
  margin: 0 auto 2rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.09);
  border: 1px solid #e0eafc;
}
.news-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.news-detail-section h1,
.news-title-detail {
  font-family: 'Heebo', 'Nunito', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #222;
  margin-bottom: 1.2rem;
  text-align: center;
  letter-spacing: 0.5px;
}
.author-info {
  margin-bottom: 1.5rem;
}
.author-details p {
  font-size: 1rem;
  color: #222;
  font-weight: 500;
}
.news-content {
  font-size: 1.08rem;
  color: #333;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-family: 'Nunito', Arial, sans-serif;
}
.news-content p {
  margin-bottom: 1.1rem;
}
.share-box {
  background: #eaf6ff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,191,255,0.07);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 480px;
  min-width: 340px;
  margin: 0 auto;
}
.share-box span {
  color: #00BFFF;
  font-size: 16px;
  font-weight: 700;
  margin-right: 10px;
}
.share-box a {
  color: #00BFFF;
  font-size: 20px;
  margin-right: 8px;
  transition: color 0.2s;
}
.share-box a:last-child {
  margin-right: 0;
}
.share-box a:hover {
  color: #0077b6;
}
.news-meta-box {
  background: #f0f7ff;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 1rem;
  color: #222;
  box-shadow: 0 1px 6px rgba(0,191,255,0.06);
  max-width: 340px;
  margin: 0 auto 1.5rem auto;
}
.news-meta-box p {
  margin-bottom: 0.5rem;
}
.back-to-news-btn {
  background: #eaf6ff;
  border-radius: 18px;
  padding: 7px 18px;
  color: #00BFFF;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,191,255,0.09);
  border: 1px solid #e0eafc;
  transition: box-shadow 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.back-to-news-btn:hover {
  box-shadow: 0 4px 16px rgba(0,191,255,0.15);
}

/* =========================
   SUBSCRIBE SECTION
   ========================= */
.subscribe-section {
  padding-bottom: 3rem;
  margin-bottom: 3rem;
}
.subscribe-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(33,150,243,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  transition: box-shadow 0.3s;
}
.subscribe-card:hover {
  box-shadow: 0 8px 32px rgba(33,150,243,0.18);
}
.subscribe-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(33,150,243,0.12);
}
.subscribe-card h5 {
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 2rem;
  color: #2196f3;
}
.subscribe-card p {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #222;
  font-size: 1.1rem;
}
.subscribe-form {
  width: 100%;
  max-width: 480px;
}
.subscribe-input-group {
  display: flex;
  flex-wrap: nowrap;
  border-radius: 50rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(33,150,243,0.08);
}
.subscribe-input-group input {
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  flex: 1 1 auto;
}
.subscribe-input-group button {
  background: #2196f3;
  border: none;
  color: #fff;
  padding: 0 1.5rem;
}
.subscribe-message {
  display: none;
  margin-top: 1rem;
  text-align: center;
  color: #2196f3;
  font-weight: 600;
}

/* =========================
   FOOTER LEGAL BOX
   ========================= */
.footer-legal-box {
  background: rgba(0, 30, 60, 0.12);
  border: 1px solid #e0e6ed;
  border-radius: 12px;
  padding: 18px 20px 10px 20px;
  margin: 28px auto 0 auto;
  max-width: 340px;
  text-align: center;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.04);
}
.footer-legal-title {
  font-size: 0.92rem;
  color: #0077b6;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}
.footer-legal-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.81rem;
  color: #3a4a5d;
  margin: 0;
  letter-spacing: 0.01em;
}
.footer-legal-link {
  color: #00aaff;
  text-decoration: none;
  background: #f6fbff;
  border-radius: 6px;
  padding: 7px 0;
  width: 100%;
  max-width: 220px;
  display: block;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,0.03);
  opacity: 0.93;
  font-weight: 500;
  transition: color 0.2s, background 0.2s, opacity 0.2s;
}
.footer-legal-link:hover {
  text-decoration: underline;
  color: #0088cc;
  background: #e0f7fa;
  opacity: 1;
}

/* =========================
   SOCIAL ICONS
   ========================= */
.social-icon {
  transition: color 0.2s, background 0.2s;
  padding: 8px;
  border-radius: 50%;
  display: inline-block;
}
.social-icon:hover {
  color: #2196f3;
  background: #fff;
  box-shadow: 0 2px 8px rgba(33,150,243,0.10);
}
.social-icon i {
  font-size: 1.25rem;
}

/* =========================
   SERVICE CIRCLE
   ========================= */
.service-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e0f7fa;
  transition: 0.2s;
  cursor: pointer;
}
.service-circle:hover,
.service-circle:active {
  background: #00BFFF;
}

/* =========================
   RESPONSIVE STYLES
   ========================= */
@media (max-width: 991px) {
  .news-item {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
  }
  .news-thumb img {
    width: 100px;
    height: 100px;
  }
  .news-detail-section {
    padding: 1.5rem 0.5rem;
  }
  .news-detail-section h1,
  .news-title-detail {
    font-size: 1.4rem;
  }
  .news-content {
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .subscribe-card {
    padding: 1.2rem;
    border-radius: 16px;
  }
  .subscribe-card img {
    width: 56px;
    height: 56px;
  }
  .subscribe-card h5 {
    font-size: 1.3rem;
  }
  .subscribe-card p {
    font-size: 1rem;
  }
  .subscribe-input-group input {
    font-size: 1rem;
    padding: 0.7rem 1rem;
  }
  .subscribe-input-group button {
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
  }
}

@media (max-width: 575px) {
  .news-detail-section {
    padding: 0.7rem 0.1rem;
  }
  .news-detail-section h1,
  .news-title-detail {
    font-size: 1.1rem;
  }
  .news-content {
    font-size: 0.97rem;
  }
  .news-image {
    max-width: 98vw;
  }
  .news-meta-box,
  .share-box {
    max-width: 98vw;
    padding: 10px 8px;
  }
}

