:root {
  --bg: #f5f6fb;
  --ink: #1f2430;
  --muted: #6b7280;
  --line: #e5e7ef;
  --card: #ffffff;
  --chip: #f0f2f8;
  --accent: #3163ff;
  --accent-2: #1e3a8a;
  --shadow: 0 8px 30px rgba(16, 24, 40, .08);
  --radius: 16px;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font: 16px/1.6 "Poppins", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: white;
  background: var(--bg);
  box-sizing: border-box;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url("1. HOMEPAGE/photo/background.webp") no-repeat center center / cover;
  opacity: 90%; /* adjust transparency here */
  z-index: -1; /* keeps it behind content */
}

/* Utility */
.wrap {
  max-width: 1140px;
  margin: auto;
  padding: 0 3%;
}


/* Topbar */
.topbar{margin-left: auto; margin-right: auto; position:sticky; top:40px; z-index:40; background: rgba(255, 255, 255, 0.1);border-radius: 20px;box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);backdrop-filter: blur(25px);width: 80%;}
.topbar__inner{display:flex; align-items:center; justify-content:space-between; height: 100px; max-width: 1140px; width: 90%; margin: 0 auto;}
.brand{display:flex; align-items:center; gap:10px; font-weight:700; color:var(--ink)}
.brand__logo {
  width: 250px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  background: none;
}

.nav{display:flex; gap:24px}
.nav__link{color:#ffffff; text-decoration:none}
.nav__link:hover{color:var(--bpPrimary-200)}

/* Dropdown (Explore) */
.nav__item {
  position: relative;
  transition: all 0.3s ease;
}

.dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(100%);
  min-width: 160px;
  padding: 8px 0;
  z-index: 50;
}

.dropdown__link {
  display: block;
  padding: 10px 16px;
  color:white;
  text-decoration: none;
  font-size: 15px;
}

.dropdown__link:hover {
  background: white;
  color:var(--bpPrimary-500);
  border-radius: 6px;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown__menu {
  display: block;
  transition: all 0.3s ease;
}

/* Add to existing hamburger styles */
.hamburger {
  display: none;
  width: 42px;
  height: 38px;
  background: none;
  position: relative;
  transition: all 0.3s ease;
}

.hamburger-line {
  position: absolute;
  left: 8px;
  height: 2px;
  background: #e9e9e9;
  border-radius: 2px;
  transition: all 0.3s ease;
  width: 26px;
}

.hamburger-line:nth-child(1) {
  top: 10px;
}

.hamburger-line:nth-child(2) {
  top: 18px;
}

.hamburger-line:nth-child(3) {
  top: 26px;
}

/* Hamburger animation when open */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu transition */
.mobile {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  width: 90%;
  margin: 0 auto;
}

.mobile.open {
  max-height: 500px;
  opacity: 1;
}


/* Mobile menu */
.mobile{background:transparent;}
.mobile__link{display:block; padding:12px 20px; color:white; text-decoration:none; border-bottom: 1px solid rgba(255,255,255,0.1);margin-bottom: 5px;}
.mobile__link:hover{background:none;}
.mobile__item {border-bottom:1px solid rgba(255,255,255,0.1);}

.mobile__toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  padding: 12px 20px;
  color: white;
  cursor: pointer;
}

.mobile__submenu {
  display: none;
}

.mobile__sublink {
  display: block;
  padding: 10px 36px;
  text-decoration: none;
  color: white;
  font-size: 15px;
}

.mobile__sublink:hover {
  background: #eef3ff;
  color: var(--accent);
}

/* Show submenu when active */
.mobile__item.open .mobile__submenu {
  display: block;
}

/* Container */
.container {
  max-width: 1140px;
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  animation: fadeIn 1s ease-in-out;
  justify-self: center;
  margin: 80px auto;
}

/* Title */
.title {
  font-size: 2rem;
  margin-bottom: -1px;
  color: white;
  line-height: 1.2;
}

/* Content */
.content {
  display: grid;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
  flex-direction: column;
  grid-template-columns: 1fr 1fr;
  color: white;
}

.content .text {
  flex: 2;
}

.content .image {
  flex: 1;
}

.image-slider {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.image-slider .image {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.image-slider .image img {
  width: 100%;
  flex-shrink: 0;
  border-radius: 10px;
}

.dots {
  margin-top: 10px;
}

.dot {
  display: inline-block;
  height: 10px;
  width: 10px;
  margin: 5px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: #92ff6d;
}

/* Fullscreen overlay */
#fullscreenOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

#fullscreenOverlay.show {
  opacity: 1;
}

#fullscreenOverlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

#fullscreenOverlay.show img {
  transform: scale(1);
  width: fit-content;
  height: auto;
}

.zoom-controls {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  gap: 10px;
}

.zoom-btn {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 24px;
  border: none;
  border-radius: 8px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: background 0.2s;
}

.zoom-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

#fullscreenOverlay img {
  transition: transform 0.2s ease;
  transform-origin: center center;
  user-select: none;
}

.pan-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: grab;
  transition: transform 0.1s ease;
}

.pan-wrapper img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  user-select: none;
  pointer-events: none;
  transform-origin: center center;
}



.content img {
  max-width: 100%;
  border-radius: 8px;
  transition: transform 0.3s;
}

.content img:hover {
  transform: scale(1.01);
  cursor: pointer;
}

/* ========= CTA */
.cta-box{
  display:flex; justify-content:space-between; align-items:center; gap:18px; background: rgba(255, 255, 255, 0.05); border-radius: 20px; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  padding:16px 18px; margin-bottom: 40px;
}
.cta-form{display:flex; gap:10px; align-items:center; flex-wrap:wrap; max-width: fit-content;}
.cta-form input{
  padding:12px 14px; border:1px solid var(--line); border-radius:10px;background:#fff; font:inherit;
}
.cta-form .note{color:var(--muted); margin-left:6px}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.55rem;
  padding:.7rem 1rem; border-radius:10px; border:1px solid transparent;
  font-weight:700; cursor:pointer; transition:all .25s ease;
} 
.btn-primary{background: rgba(255, 255, 255, 0.05); color:white;}
.btn-primary:hover{filter:brightness(.95)}

@media (max-width: 560px) {
    .cta-box {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        max-width: fit-content;
    }
    .cta-form input
    {width: 250px;}
  }


/* Highlight Box */
.highlight {
  background: #ffeaa7;
  color: var(--bpPrimary-700);
  padding: 12px;
  margin: 35px 0;
  border-left: 5px solid #fdcb6e;
  border-radius: 6px;
  font-style: italic;
}

/* Category & Date */
.category,
.date {
  color: #777;
  font-size: 0.9rem;
  margin-top: 10px;
}

body.dark .category,
body.dark .date {
  color: #aaa;
}

/* Actions */
.actions {
  margin: 15px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.actions button {
  background: #007bff;
  color: white;
  padding: 8px 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.actions button:hover {
  background: #0056b3;
}

/* Related Posts */
.related-posts {
  margin-top: 40px;
}

.related-posts h2 {
  margin-bottom: 20px;
  color: white;
}

.posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.post {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.post:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.post a {
color:var(--bpPrimary-200); text-decoration: none;
}
.post h3 {
  color: white;
}

.post img {
  max-width: 100%;
  border-radius: 6px;
  margin-bottom: 10px;
}

.post-button{  
  display:inline-flex; align-items:center; justify-content:center; gap:.55rem;
  padding:10px 0; border-radius:10px; border:1px solid transparent;
  font-weight:700; cursor:pointer; transition:all .25s ease; }

.card-meta{display:flex; gap:10px; color:#8f8f8f; margin: 10px 0 10px;}




/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Footer */
.footer{background:rgba(255, 255, 255, 0.1); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); backdrop-filter: blur(25px);}
.foot__top{display:grid; grid-template-columns:1.2fr 1fr 2fr; gap:20px;}
.foot__brand{display:flex; align-items:center; gap:10px; justify-content: center;}
.foot__logo{width:250px; height:auto; border-radius:10px; background:none;}
.foot__social{display:flex; align-items:center}
.foot__social .ico{border-radius:6px; background-color: transparent; color:#5b84ff;}
.foot__links{display:flex; gap:18px; align-items:center; flex-wrap:wrap; justify-content: center; padding-bottom: 20px;}
.foot__links a{color:#ededed; text-decoration:none}
.foot__bottom{margin-left: auto; margin-right: auto; display:grid; justify-content:space-between; align-items:center; gap:16px; padding:12px 12px; border-top:1px solid var(--line); justify-content: center;}
.fa {font-size: 30px;}

.ico,
.ph-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #d3d8e7;
  margin: 0 auto 6px
}

.toTop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: none;
}

/* Responsive */
@media (max-width: 980px) {
  .nav {
    display: none
  }

  .hamburger {
    display: block;
    border: none;
    right:10px;
  }

  .foot__top {
    grid-template-columns: 1fr
  }
}

@media (max-width: 768px) {
  .nav {
    display: none
  }

  .hamburger {
    display: block
  }

  .foot__top {
    grid-template-columns: 1fr
  }

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

  @media (max-width: 480px) {
    .topbar__inner{width: max-content;}
  }

      @media (max-width: 344px) {
  .topbar {width: max-content;}
  }