/* ================= GLOBAL ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #14213d;
}

/* ================= HEADER ================= */
.hero-wrapper {
  min-height: 380px;
  position: relative;
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  overflow: hidden;
}

.hero-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 24, 56, 0.9) 0%,
    rgba(7, 24, 56, 0.55) 50%,
    rgba(7, 24, 56, 0.28) 100%
  );
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20px;
}

.hero-text {
  max-width: 760px;
  padding: 30px 34px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.hero-text h1 {
  font-size: clamp(30px, 3.7vw, 46px);
  color: #fff;
  margin-bottom: 10px;
}

.hero-text p {
  color: #f2f6ff;
  font-size: 16px;
}

/* HEADER FIX */
.bg-slider {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: -1;
}

.bg-slider img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.bg-slider img.active {
  opacity: 1;
}
.bg-slider img {
  transform: scale(1.1);
}

.bg-slider img.active {
  transform: scale(1);
  transition:
    opacity 1s ease,
    transform 5s ease;
}
/* WHITE NAV (VISIBLE ON IMAGE) */
.nav a {
  color: #fff;
}

.nav a::after {
  background: #fff;
}

/* HERO TEXT WHITE */
.hero-text h1,
.hero-text p {
  color: #fff;
}

/* SEARCH STYLE */
.header-right input {
  padding: 10px 18px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.2); /* transparent */
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 220px;
  outline: none;
  transition: all 0.3s ease;
}

.header-right input::placeholder {
  color: #ddd;
}

/* CART FIX */
.cart {
  position: relative;
  font-size: 22px;
  cursor: pointer;
  color: #fff;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: red;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
}
/* ================= ABOUT SECTION (GRIP FIXED) ================= */
.blog-hero {
  height: 350px;
  background: url("image/bg3.jpg") center/cover no-repeat;
  position: relative;
  margin-bottom: 20px;
}

.blog-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 100px;
}

.blog-hero h1 {
  font-size: 42px;
  font-weight: 600;
  color: #fff;
}

.blog-hero p {
  margin-top: 12px;
  color: #ddd;
}

/* BACKGROUND BLUR */
body.popup-active .hero-wrapper,
body.popup-active .blog-wrapper,
body.popup-active .related-section,
body.popup-active .old-blogs,
body.popup-active .subscribe > *:not(#subscribePopup) {
  filter: blur(5px);
}

/* POPUP OVERLAY */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);

  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* SHOW POPUP */
.popup.active {
  display: flex;
}

/* POPUP BOX */
.popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  width: 350px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: scaleUp 0.3s ease;
}

/* TEXT */
.popup-content h3 {
  color: #0a7b6c;
  margin-bottom: 10px;
}

.popup-content p {
  color: #555;
  font-size: 14px;
}

/* BUTTON */
.popup-content button {
  margin-top: 15px;
  padding: 10px 25px;
  background: #0a7b6c;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* ANIMATION */
@keyframes scaleUp {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.social-icons a {
  color: inherit;
  text-decoration: none;
}

.social-icons a:hover i {
  transform: scale(1.2);
  color: #0b2c5f;
}

/* ================= LAYOUT FIX ================= */
.blog-wrapper {
  display: flex;
  gap: 60px;
  padding: 50px 100px 40px;
  align-items: flex-start;
  max-width: 1320px;
  margin: 0 auto;
}

/* LEFT CONTENT */
.blog-left {
  flex: 2.2;
  margin-left: 0;
  background: rgba(255, 255, 255, 0.82);
  padding: 28px;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(7, 24, 56, 0.08);
}
/* TOP COMMENT BUTTON STYLE */
.top-comment-btn {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 5px; /* flatter look like image */
  background: #111;
  letter-spacing: 2px;
  font-size: 12px;
}

/* QUOTE STYLE */
.quote-block {
  display: flex;
  gap: 15px;
  margin: 40px 0 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
  border-radius: 18px;
  border: 1px solid rgba(11, 44, 95, 0.08);
}

.quote-icon {
  font-size: 60px;
  color: #ccc;
  line-height: 1;
}

.big-quote {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
}

/* SUB HEADING */
.sub-heading {
  margin-top: 30px;
  font-size: 20px;
  font-weight: 600;
}

/* HIGHLIGHT BOX */
.highlight-box {
  margin: 25px 0;
  padding: 20px;
  border-left: 4px solid #0b2c5f;
  background: linear-gradient(135deg, #f6f9ff 0%, #eef4ff 100%);
  border-radius: 14px;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
/* ================= BLOG FULL NEWSLETTER ================= */
.blog-newsletter {
  margin: 24px 0 0;
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid #e7ecf5;
  background: linear-gradient(135deg, #f9fbff 0%, #f4f8ff 100%);
  border-radius: 18px;
}

.blog-newsletter h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 1px;
}

.blog-newsletter p {
  margin-top: 8px;
  font-size: 14px;
  color: #888;
  letter-spacing: 1px;
}

/* FORM */
.newsletter-form-main {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

.newsletter-form-main input {
  width: 220px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.newsletter-form-main button {
  padding: 12px 25px;
  background: linear-gradient(135deg, #0b2c5f 0%, #3a6fd8 100%);
  color: white;
  border: none;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.newsletter-form-main button:hover {
  background: linear-gradient(135deg, #071a38 0%, #3159b5 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(7, 24, 56, 0.2);
}
button,
.share-item {
  will-change: transform;
}

/* CHECKBOX */
.checkbox {
  display: block;
  margin-top: 15px;
  font-size: 12px;
  color: #999;
}
/* ================= SHARE BAR ================= */

.share-count {
  font-size: 13px;
  color: #888;
}
/* ================= BOTTOM SHARE ================= */
.blog-share-bottom {
  display: flex;
  gap: 25px;
  margin: 10px 0;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.share-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 70px;
  transition: all 0.3s ease;
}

/* Hover effect */
.share-item:hover {
  transform: translateY(-2px);
  background: #f2f2f2;
}

/* Icon animation */
.share-item i {
  transition: transform 0.3s ease;
}

.share-item:hover i {
  transform: scale(1.2);
}

/* colors already exist (keep these if not) */
.share-item.fb i {
  color: #1877f2;
}
.share-item.tw i {
  color: #1da1f2;
}
.share-item.pin i {
  color: #e60023;
}

/* ICON COLORS */
.share-item.fb i {
  color: #1877f2;
}

.share-item.tw i {
  color: #1da1f2;
}

.share-item.pin i {
  color: #e60023;
}

.share-item.fb:hover {
  background: rgba(24, 119, 242, 0.1);
}

.share-item.tw:hover {
  background: rgba(29, 161, 242, 0.1);
}

.share-item.pin:hover {
  background: rgba(230, 0, 35, 0.1);
}

/* SMALL COUNT */
.share-item small {
  font-size: 12px;
  color: #999;
}

/* LINE UNDER */
.share-divider {
  height: 2px;
  background: linear-gradient(to right, #1877f2, #1da1f2, #e60023);
  margin: 20px 0;
}

/* RIGHT SIDEBAR */
.blog-right {
  flex: 0 0 320px;
  position: relative;
  top: 20px;
}

/* ================= BLOG CONTENT ================= */
.blog-meta {
  font-size: 14px;
  color: #86868b;
  margin-bottom: 20px;
}

.blog-text {
  font-size: 16px;
  line-height: 1.8;
  color: #3a3a3c;
}

.blog-title {
  font-size: 30px;
  margin: 25px 0;
  font-weight: 600;
}

.comment-btn {
  width: 100%;
  padding: 14px;
  background: #000;
  color: white;
  border: none;
  border-radius: 40px;
  letter-spacing: 2px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.35s ease;
}

/* Premium hover */
.comment-btn:hover {
  background: #111;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* ================= SIDEBAR BOXES ================= */
.follow-box,
.newsletter-box,
.latest-box {
  background: linear-gradient(145deg, #ffffff 0%, #f7fbff 100%);
  padding: 20px 22px;
  border-radius: 20px;
  margin-bottom: 18px;
  box-shadow: 0 14px 32px rgba(7, 24, 56, 0.08);
  border: 1px solid rgba(11, 44, 95, 0.06);
}

/* FOLLOW */
.follow-box h3 {
  margin-bottom: 10px;
}

.social-icons i {
  margin-right: 12px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}

.social-icons i:hover {
  transform: scale(1.2);
  color: #0b2c5f;
}

/* ================= NEWSLETTER ================= */
.newsletter-box h3 {
  font-size: 16px;
}

.newsletter-box p {
  font-size: 13px;
  color: #666;
}

.newsletter-input {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.newsletter-input input {
  flex: 1;
  padding: 10px;
  border-radius: 25px;
  border: 1px solid #ddd;
}

.newsletter-input button {
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b2c5f 0%, #3a6fd8 100%);
  color: white;
  border: none;
  cursor: pointer;
}

.newsletter-input button:hover {
  transform: scale(1.05);
}

/* ================= LATEST ================= */
.latest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.latest-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
}

.latest-btn:hover {
  background: #0b2c5f;
  color: #fff;
}

.latest-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.latest-card {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  align-items: center;
  transition: 0.3s;
}

.latest-card img {
  width: 80px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
}

.latest-content h4 {
  font-size: 14px;
  margin: 3px 0;
}

.latest-content p {
  font-size: 12px;
  color: #666;
}

.read-btn {
  margin-top: 5px;
  padding: 5px 10px;
  font-size: 11px;
  border-radius: 15px;
  border: 1px solid #ddd;
  background: transparent;
  cursor: pointer;
}

.latest-card:hover {
  transform: translateX(5px);
}
/*=============== (LATEST SECTION)============*/

/* ================= RELATED SECTION ================= */
.related-section {
  padding: 40px 50px 60px;
  margin-top: -90px;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.related-section .section-title {
  margin-bottom: 20px;
}
/* ================= VIDEO SLIDER ================= */
.section-title {
  margin-top: 60px;
  font-size: 20px;
}

.video-slider {
  margin-top: 20px;
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 20px;
  animation: scrollSlider 20s linear infinite;
}

.video-card {
  min-width: 220px;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card:hover {
  transform: scale(1.05);
}

.video-slider:hover .slider-track {
  animation-play-state: paused;
}

@keyframes scrollSlider {
  100% {
    transform: translateX(-50%);
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .blog-wrapper {
    flex-direction: column;
    padding: 30px 20px;
  }

  .blog-right {
    position: static;
  }
}

/* ================= OLD BLOGS ================= */

/* BLUR BACKGROUND */
body.blur > *:not(.blog-modal) {
  filter: blur(5px);
}

/* MODAL BACKGROUND */
.blog-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* SHOW MODAL */
.blog-modal.active {
  display: flex;
}

/* MODAL BOX */
.modal-content {
  background: #fff;
  padding: 30px;
  width: 600px;
  max-width: 90%;
  max-height: 80vh; /* ✅ IMPORTANT */
  overflow-y: auto; /* ✅ SCROLL ENABLE */
  border-radius: 12px;
  position: relative;
  animation: scaleUp 0.3s ease;
}

.modal-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
}

/* CLOSE BUTTON */
.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 25px;
  cursor: pointer;
}

/* ANIMATION */
@keyframes scaleUp {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.old-blogs {
  padding: 10px 50px 60px;
  max-width: 1320px;
  margin: 0 auto;
}

.old-blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.old-blog-card {
  background: linear-gradient(145deg, #ffffff 0%, #f7fbff 100%);
  padding: 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 16px 34px rgba(7, 24, 56, 0.08);
  border: 1px solid rgba(11, 44, 95, 0.06);
}

.old-blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
}

.old-blog-card p {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.old-meta {
  margin-top: 8px;
  font-size: 12px;
  color: #888;
}

/* Hover effect */
.old-blog-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px rgba(7, 24, 56, 0.13);
}

.old-blog-card:hover img {
  opacity: 0.9;
}

/* READ MORE BUTTON */
.old-read-btn {
  margin-top: 10px;
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid #dce6f7;
  background: linear-gradient(135deg, #ffffff 0%, #f2f7ff 100%);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Hover effect */
.old-read-btn:hover {
  background: linear-gradient(135deg, #0b2c5f 0%, #3a6fd8 100%);
  color: #fff;
  border-color: #0b2c5f;
  transform: translateX(3px);
}

/* Arrow animation */
.old-read-btn i {
  transition: transform 0.3s ease;
}

.old-read-btn:hover i {
  transform: translateX(4px);
}

/* OVERLAY BACKGROUND */

#subscribePopup.active {
  display: flex;
}
#subscribePopup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.5);

  display: none; /* hidden by default */
  justify-content: center;
  align-items: center;

  z-index: 9999;
}

/* POPUP BOX */
#subscribePopup .popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  width: 320px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: popupFade 0.3s ease;
}

/* TEXT */
#subscribePopup h3 {
  margin-bottom: 10px;
  color: #0a7b6c;
}

#subscribePopup p {
  font-size: 14px;
  color: #555;
}

/* BUTTON */
#subscribePopup button {
  margin-top: 15px;
  padding: 10px 20px;
  background: #0a7b6c;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* ANIMATION */
@keyframes popupFade {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ================= MOBILE RESPONSIVE FIXES ================= */
@media (max-width: 768px) {
  .blog-hero {
    height: 280px;
  }

  .blog-hero .overlay {
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5); /* better readability on small screens */
  }

  .blog-hero h1 {
    font-size: 28px;
  }

  .blog-wrapper {
    flex-direction: column;
    padding: 30px 15px;
    gap: 40px;
  }

  .blog-right {
    flex: auto;
    width: 100%;
  }

  .blog-title {
    font-size: 24px;
    margin: 15px 0;
  }

  .big-quote {
    font-size: 20px;
  }

  .blog-share-bottom {
    flex-direction: column;
    gap: 10px;
  }

  .share-item {
    padding: 10px;
    justify-content: center;
  }

  .newsletter-form-main {
    flex-direction: column;
  }

  .newsletter-form-main input {
    width: 100%;
  }

  .newsletter-form-main button {
    width: 100%;
  }

  .old-blogs {
    padding: 30px 15px;
  }

  .old-blogs-grid {
    flex-direction: column;
    gap: 25px;
  }

  .modal-content {
    width: 95%;
    padding: 20px;
  }
}
