:root {
  --primary-green: #1a8f5a;
  --white: #ffffff;
  --text-gray: #555;
  --text-dark: #222;
  --green: #0b5c3b;
  --green-light: #ecfdf5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, sans-serif;
}

/* ================= HEADER & NAVBAR STYLES ================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  padding: 15px 20px;
  background: transparent;
  box-sizing: border-box;
}

.navbar {
  width: 100%;
  pointer-events: auto;
}

.nav-container {
  max-width: 1250px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 28px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  position: relative;
}

.logo img {
  height: 32px;
  width: auto;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 10002;
  position: relative;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background-color: #146c43;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.menu {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: #374151;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.menu a:hover,
.menu a.active {
  color: #146c43;
}

.menu a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #146c43;
  transition: width 0.25s ease;
}

.menu a:hover::before,
.menu a.active::before {
  width: 100%;
}

.nav-item {
  position: relative;
}

.arrow {
  font-size: 11px;
  margin-left: 4px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.nav-item:hover .arrow {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: 48px;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1000;
  list-style: none;
}

.dropdown li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown li a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  color: #374151;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.dropdown li a:hover {
  background: #ecfdf5;
  color: #146c43;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile Styles */
@media (max-width: 992px) {
  .site-header {
    padding: 12px 15px;
  }

  .nav-container {
    padding: 10px 20px;
  }

  .hamburger {
    display: flex !important;
  }

  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background-color: #ffffff;
    display: flex !important;
    flex-direction: column;
    gap: 0;
    padding: 80px 20px 30px;
    z-index: 10001;
    overflow-y: auto;
    transition: right 0.3s ease-in-out;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    margin: 0;
    list-style: none;
  }

  .menu.active {
    right: 0;
  }

  .menu li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }

  .menu a {
    display: block;
    padding: 16px 10px;
    font-size: 16px;
    font-weight: 500;
  }

  .dropdown {
    position: static;
    display: none;
    margin-top: 0;
    padding-left: 20px;
    box-shadow: none;
    border-radius: 0;
    background: #fafafa;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .dropdown li a {
    padding: 12px 10px;
    font-size: 14px;
  }

  .nav-item.active > .dropdown {
    display: block !important;
  }

  .nav-item:hover > .dropdown {
    display: none;
  }

  .nav-item > a {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-item.active > a .arrow {
    transform: rotate(180deg);
  }
}

/* ================= ABOUT SECTION ================= */
.about-section {
  padding: 90px 20px;
}

.about-container {
  max-width: 1150px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

/* LEFT TEXT */
.about-text {
  flex: 1;
}

.about-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.about-text h1 {
  font-size: 42px;
  color: var(--green);
  margin-bottom: 22px;
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 16px;
}

/* RIGHT IMAGE */
.about-image {
  flex: 1;
}

.image-frame {
  background: #ffffff;
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.image-frame img {
  width: 100%;
  border-radius: 16px;
  display: block;
}

/* ================= MISSION & VISION ================= */
.mv-section {
  padding: 80px 20px;
}

.mv-container {
  max-width: 1000px;
  margin: auto;
  display: flex;
  gap: 30px;
}

.mv-card {
  flex: 1;
  background: #ffffff;
  border-radius: 18px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 16px 36px rgba(0,0,0,0.08);
}

.mv-icon {
  width: 60px;
  height: 60px;
  background: var(--green-light);
  color: var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin: 0 auto 18px;
}

.mv-card h3 {
  font-size: 22px;
  color: var(--green);
  margin-bottom: 12px;
}

.mv-card p {
  font-size: 15.5px;
  color: #374151;
  line-height: 1.7;
}

/* ================= CORE VALUES ================= */
.core-values-section {
  padding: 80px 20px;
}

.core-title {
  text-align: center;
  font-size: 34px;
  color: var(--green);
  margin-bottom: 40px;
}

.core-card {
  max-width: 1150px;
  margin: auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.1);
}

.core-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.core-item {
  text-align: center;
  position: relative;
}

.core-number {
  position: absolute;
  top: -18px;
  left: -10px;
  font-size: 70px;
  font-weight: 800;
  color: rgba(11, 92, 59, 0.08);
}

.core-icon {
  width: 48px;
  margin-bottom: 12px;
}

.core-item h3 {
  font-size: 18px;
  color: var(--green);
  margin-bottom: 8px;
}

.core-item p {
  font-size: 14.5px;
  color: #4b5563;
  line-height: 1.6;
}

/* ================= MANAGEMENT SECTION ================= */
.management-section {
  padding: 90px 20px;
}

.management-title {
  text-align: center;
  font-size: 34px;
  color: var(--green);
  margin-bottom: 50px;
}

.management-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  gap: 60px;
  align-items: center;
}

.management-text {
  flex: 1;
}

.management-text p {
  font-size: 15.5px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 16px;
}

.director-quote {
  background: var(--green-light);
  padding: 20px;
  border-radius: 14px;
  margin-top: 20px;
}

.director-quote p {
  font-style: italic;
  margin-bottom: 8px;
}

.director-quote span {
  font-size: 14px;
  color: var(--green);
  font-weight: 600;
}

/* IMAGE CARD */
.management-image-card {
  flex: 1;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.management-image-card img {
  width: 100%;
  display: block;
}

.director-info {
  padding: 18px;
  background: var(--green);
  color: white;
}

.director-info h4 {
  font-size: 18px;
}

.director-info span {
  font-size: 14px;
  opacity: 0.9;
}

/* ================= LICENSE SECTION ================= */
.licenses-section {
  padding: 80px 20px;
  background: #ffffff;
}

.licenses-title {
  text-align: center;
  font-size: 34px;
  color: var(--green);
  margin-bottom: 40px;
}

.licenses-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  justify-content: center;
}

.license-card {
  background: #f9fafb;
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.05);
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.license-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.license-icon {
  font-size: 36px;
  margin-bottom: 14px;
}

.license-card h4 {
  color: var(--green);
  margin-bottom: 10px;
  font-size: 18px;
}

.license-card .label {
  font-size: 13px;
  color: #777;
  margin-bottom: 4px;
}

.license-card .value {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.license-btn {
  display: inline-block;
  margin-top: 18px;
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.license-btn:hover {
  text-decoration: underline;
}

/* ================= FOOTER STYLING ================= */
.kcpl-footer {
  background: #eef8f4;
  padding-top: 80px;
  border-top: 1px solid #eee;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
}

.footer-logo-img {
  width: 160px;
  margin-bottom: 25px;
}

.footer-col h4 {
  font-size: 1.1rem;
  color: #000;
  margin-bottom: 25px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links li a {
  text-decoration: none;
  color: var(--text-gray);
  font-size: 0.95rem;
  transition: 0.3s;
  display: inline-block;
}

.footer-links li a:hover {
  color: var(--green);
  padding-left: 5px;
}

.company-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-gray);
  margin-bottom: 25px;
}

.contact-info p {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.green-text {
  color: var(--green);
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #004a99;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-3px);
}

.mt-30 {
  margin-top: 30px;
}

.footer-bottom-strip {
  background-color: var(--green);
  color: var(--white);
  text-align: center;
  padding: 15px;
  font-size: 0.85rem;
}

/* ================= POPUP OVERLAY ================= */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.popup-box {
  background: #ffffff;
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  padding: 40px 45px;
  border-radius: 16px;
  position: relative;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  font-family: "Inter", system-ui, sans-serif;
}

.popup-box h2 {
  font-size: 28px;
  margin-bottom: 25px;
  line-height: 1.3;
}

.popup-box h4 {
  font-size: 18px;
  margin-top: 30px;
  margin-bottom: 12px;
  color: #1b5e20;
}

.popup-content p {
  font-size: 15.5px;
  line-height: 1.85;
  color: #333;
  margin-bottom: 14px;
}

.popup-content hr {
  margin: 35px 0;
  border: none;
  border-top: 1px solid #ddd;
}

.close-btn {
  position: sticky;
  top: 0;
  float: right;
  font-size: 26px;
  cursor: pointer;
  color: #555;
}

.close-btn:hover {
  color: #000;
}

.popup-box::-webkit-scrollbar {
  width: 8px;
}

.popup-box::-webkit-scrollbar-thumb {
  background: #c5c5c5;
  border-radius: 6px;
}

.popup-box::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 600px) {
  .popup-box {
    padding: 25px 22px;
  }
  .popup-box h2 {
    font-size: 22px;
  }
}

/* ================= RESPONSIVE STYLES ================= */
@media (max-width: 992px) {
  .about-container {
    flex-direction: column;
    gap: 40px;
  }
  
  .about-text h1 {
    font-size: 36px;
    text-align: center;
  }
  
  .about-text {
    text-align: center;
  }
  
  .mv-container {
    flex-direction: column;
  }
  
  .core-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .core-card {
    padding: 40px 30px;
  }
  
  .management-container {
    flex-direction: column;
  }
  
  .management-text {
    order: 2;
  }
  
  .management-image-card {
    order: 1;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
  
  .info-col {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 100px 15px 50px;
  }
  
  .about-text h1 {
    font-size: 32px;
  }
  
  .core-grid {
    grid-template-columns: 1fr;
  }
  
  .core-card {
    padding: 30px 20px;
  }
  
  .core-number {
    font-size: 50px;
    top: -10px;
    left: -5px;
  }
  
  .core-icon {
    width: 40px;
  }
  
  .core-item h3 {
    font-size: 16px;
  }
  
  .licenses-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
  }
  
  .info-col {
    grid-column: span 1;
  }
  
  .footer-col {
    text-align: center;
  }
  
  .footer-logo-img {
    margin: 0 auto 20px;
  }
  
  .company-description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  .contact-info p {
    text-align: center;
    justify-content: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-links {
    align-items: center;
  }
}

@media (max-width: 576px) {
  .about-text h1 {
    font-size: 28px;
  }
  
  .about-text p {
    font-size: 14px;
  }
  
  .mv-card {
    padding: 25px 15px;
  }
  
  .mv-icon {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }
  
  .mv-card h3 {
    font-size: 18px;
  }
  
  .core-title {
    font-size: 28px;
  }
  
  .licenses-title {
    font-size: 28px;
  }
  
  .management-title {
    font-size: 28px;
  }
  
  .footer-bottom-strip {
    padding: 12px;
    font-size: 0.75rem;
  }
}

@media (max-width: 360px) {
  .about-text h1 {
    font-size: 24px;
  }
  
  .core-number {
    font-size: 45px;
  }
  
  .footer-logo-img {
    width: 120px;
  }
}