/* ===== CSS RESET & BASE STYLES ===== */
* {
  box-sizing: border-box;
}

body {
  padding: 0;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(to right, #7e1605 0%, #000000 100%);
  font-size: 1rem; /* Base font size = 16px */
}

/* ===== LAYOUT & DISPLAY UTILITIES ===== */
.show {
  display: none;
}

.center-brand-logo-d {
  display: block;
}

.center-brand-logo-p {
  display: none;
}

.desktop-nav-container {
  display: none;
  
}

/* ===== NAVIGATION STYLES ===== */
.mobile-nav-container {
  border: 0.5rem groove #C0C0C0;
  background-color: black;
}

.topbar {
  height: 1.875rem;
  width: 100%;
  background: #000080;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.3125rem;

}

.topbar div {
  display: flex;
  gap: 0.3125rem;
}

.language {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.eng, .chin {
  color: #C0C0C0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.875rem;
  width: 2.5rem;
  text-align: center;
  font-size: 0.8125rem;
  cursor: pointer;
}

.eng {
  background-color: #11580c;
}

.chin {
  background-color: #a43636;
}

/* ===== BUTTON & INTERACTIVE ELEMENTS ===== */
.x, .question, .cart{
  appearance: none;
  font-family: inherit;
  z-index: 100;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 0.3125rem;
  top: 0.5rem;
  margin-top: 0.3125rem;
  height: 1.875rem;
  width: 3.125rem;
  box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.2);
  text-align: center;
  font-size: 1.875rem;
}

.cart .fa.fa-shopping-cart{transition: transform 0.5s ease-in-out;}
.cart:hover .fa.fa-shopping-cart {transform: translateX(60px);}
.cart:hover{background-color: #838383;}

.x {
  background-color: #ff0000;
  right: 0.8125rem;
}

.question {
  background-color: #C0C0C0;
  right: 4.375rem;
}
.cart{
  background-color: white;
  width: 6.7rem;
  right: 0.8125rem;
  top: 2.6875rem;
  font-size: 1.5rem;
  z-index: 1;
  overflow: hidden;

}

.x-p, .info-p, .card-cart {
  appearance: none;
  font-family: inherit;
  background-color: #C0C0C0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.5625rem;
  width: 1.875rem;
  text-align: center;
  font-size: 1.25rem;
  cursor: pointer;
}
.card-cart{
  font-size: 1rem;
}

/* ===== LOGO STYLES ===== */
.center-brand-logo-p, 
.center-brand-logo-d {
  display: block;
  background: white;
  background-color: white;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  text-align: center;
}

.logo {
  position: relative;
}

.product-name {
  color: white;
  margin: 0;
  padding: 0;
  font-size: 1.25rem;
}

/* ===== DROPDOWN MENU ===== */
.drop-down {
  display: block;
  text-align: center;
}

.drop-down.inactive {
  display: none;
}

.links {
  left: 0;
  right: 0;
  width: 100%;
  box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.2);
  z-index: 1;
  display: flex;
  justify-content: space-evenly;
}

.nav-link {
  width: 100%;
  font-size: 1.2rem;
  background: black;
  color: white;
  padding: 0.625rem;
}

.nav-link:hover {
  width: 100%;
  font-size: 1.2rem;
  border: 0.125rem solid white;
}

/* ===== CONTENT SECTIONS ===== */
.scroll-home {
  display: flex;
  flex-direction: column;
  font-family: 'Noto Serif TC', serif;
  font-size: 1.3rem;
  color: #a43636;
}

.main-text1 {
  text-align: center;
}

.sentense1, 
.sentense2, 
.sentense3 {
  background-color: #E0E0E0;
  padding: 0.625rem;
}

.sentense2 {
  background-color: #000000;
  padding: 0.625rem;
}

.engp {
  display: none;
}

.engp .tagline,
.engp .main-text2,
.engp .closing-slogan {
  font-family: "Beautiful Heart";
  font-size: 1rem;
}

.engp .main-text2,
.engp .main-text {
  font-family: "Times New Roman", Times, serif;
  font-size: 1rem;
}

/* ===== TYPOGRAPHY ===== */
.mission-heading,
.mission-heading2 {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.5rem;
  font-weight: normal;
  text-align: center;
  letter-spacing: normal;
}

.mission-heading {
  color: black;
}

.mission-heading2 {
  color: rgb(255, 255, 255);
}

.tagline,
.closing-slogan {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: 1.3rem;
  font-weight: bold;
  color: #0000FF;
  text-align: center;
  letter-spacing: 0.1em;
}

.main-text {
  font-family: sans-serif;
  font-size: 1rem;
  color: rgb(204, 248, 204);
  line-height: 1.5;
}

.main-text2 {
  font-family: sans-serif;
  color: #11580c;
  font-size: 1rem;
}

/* ===== DEPARTMENT/ORGANIZATION STYLES ===== */
.department {
  position: relative;
  border: 0.0625rem solid #ccc;
  padding: 0.9375rem;
  margin-bottom: 1.25rem;
  background-color: #000000;
  font-family: Arial, sans-serif;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
}
.color-block, .color-block1, .color-block2, .color-block3, .color-block4{
  position: absolute;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: #7e1605;
}

.color-block {
  top: 0; 
}

.color-block1 {
  bottom: 0; 
  top: auto; 
  height: 144px;
}

.color-block2 {
  bottom: 0; 
  top: auto; 
  height: 199px;
}
.color-block3{
  bottom: 0; 
  top: auto; 
  height: 344px;
}
.color-block4{
  bottom: 0; 
  top: auto; 
  height: 284px;
}
.department img {
  display: block;
  position: relative;
  margin: auto;

}
.job-title {
  font-weight: bold;
  position: relative;
  color: white;
  margin-bottom: 0.625rem;
  text-align: center;
}

.director {
  font-weight: bold;
  position: relative;
  color: #555;
  margin-top: 0.9375rem;
  margin-bottom: 0.3125rem;
}

.director-name {
  font-style: italic;
  position: relative;
  color: #666;
  background-color: #d6d6d6;
  padding: 0.625rem;
  margin-left: 0.625rem;
  margin-bottom: 0.625rem;
  text-align: center;
}

.member {
  font-weight: bold;
  color: #555;
  position: relative;
  margin-top: 0.9375rem;
  margin-bottom: 0.3125rem;
}

.member-name {
  color: white;
  background-color: black;
  padding: 0.625rem;
  position: relative;
  margin-left: 0.625rem;
  margin-bottom: 0.3125rem;
  text-align: center;
}

/* ===== PRODUCT/CARD STYLES ===== */
.product {
  margin-top: 0.625rem;
  gap: 0.625rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
}

.product p {
  display: none;
}

.card {
  background-color: #C0C0C0;
  min-width: 18.75rem;
  width: max-content;
  max-width: 31.25rem;
  border: 0.5rem groove #C0C0C0;
}

.card-content {
  padding: 1.25rem;
}

.con-cont {
  color: #838383;
  background: #ffffff;
  padding: 0.625rem;
  display: flex;
  transition: 0.3s;
}

.con-cont:hover {
  translate: 1.25rem;
}

span {
  background-color: #838383;
  border-radius: 0.75rem;
  margin-right: 0.625rem;
}

.con-item {
  color: #000000;
  padding: 0.625rem;
}

.img-slider-container {
  position: relative;
  overflow: hidden;
  
  width: 100%;
}

.img-holder {
  display: flex;
  transition: transform 0.5s ease-in-out;
  list-style: none;
  
  width: 100%;
  padding: 0;
  margin: 0;

}

.img-holder li {
  min-width: 100%;
  flex-shrink: 0;

  padding: 0;
  margin: 0;

}

.img-holder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-display {
  display: flex;
  justify-content: space-between;
}

.previous,
.next,.minus,.add {
  border: none;
  width: 1.875rem;
  height: 1.875rem;
  background-color: #838383;
  align-items: center;
}

.previous:hover,
.next:hover {
  background-color: #C0C0C0;
  cursor: pointer;
}


.order-list {
  display: none;
  flex-direction: column; 
  align-items: flex-end;
}
.amount{
  display: flex;
  align-items: center;

}

.quantity {
  text-align: center;
  width: 1.875rem;
  margin: 0;
}
.add:hover, .minus:hover{
  background-color: #C0C0C0;
  cursor: pointer;
}
.submit{
  width: 5.625rem;
  background-color: #bababa;
}
.submit:hover{
  background-color: #838383;
}
.cart-item,.total-amount{
  color: #d6d6d6;
}



.checkout-summary span{
  border-radius: 0;
  background-color: rgba(255, 255, 255, 0);
}
.cart-line span{
  border-radius: 0;
  background-color: rgba(255, 255, 255, 0);
}
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
}
.cart-header h2 {
  margin: 0;
  color: #333;
}

.close-cart {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.cart-content {
  padding: 20px;
  background: linear-gradient(to left, #7e1605 0%, #000000 100%);
}

.cart-items {
  margin-bottom: 20px;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px; /* Big space between columns */
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
}

.item-price {
  font-weight: bold;
  text-align: right;
}

.checkout-summary {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.summary-row.total {
  border-top: 1px solid #ddd;
  padding-top: 10px;
  font-weight: bold;
  font-size: 1.1em;
  color: #e74c3c;
}
.key-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #f5f5f5;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin: 10px 0;
}

.key-code {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  background: white;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  user-select: all;
  cursor: text;
}
.key-code::selection{
  background-color: #b3d4fc;
}
.copy-button {
  font-family: 'Courier New', monospace;
  padding: 8px 16px;
  background: #000000;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
}

.copy-button:hover {
  background: #7e1605;
}
.copy{
  display: block;
  width: 100%;
  height: 50px;
  padding: 14px;
  text-align: center;
  text-decoration: none;
  background-color: black;
  color: #ccc;
  font-size: large;
}
.key-copy h5{
  margin: 0;
}
.empty-cart-item{
  width: 100%;
  height: 50px;
  border:none;
  background-color: #7e1605;
  color: #ccc;
  font-size: large;
}

.scroll-home {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.sentense1, .sentense2, .sentense3 {
  padding: 40px;
  margin-bottom: 60px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);

  position: relative;
  overflow: hidden;
}
.sentense1{
  background-image: url('oldhk1.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.sentense2{
  background-image: url('oldhk2.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.sentense3{
  background-image: url('oldhk3.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.sentense1::before, .sentense2::before, .sentense3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.language {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  width: fit-content;
  margin-left: auto;
}




.chin:hover, .eng:hover {
  transform: translateY(-2px);
  background: rgba(102, 126, 234, 0.1);
}

.mission-heading, .mission-heading2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #ffffff;
  background:rgba(0, 0, 0, 0.535);
  text-align: center;
  position: relative;
}

.mission-heading::after, .mission-heading2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to left, #7e1605 0%, #000000 100%);

}

.chinp, .engp {
  display: none;
  animation: fadeInUp 0.6s ease;
}

.chinp.active, .engp.active {
  display: block;
}

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

.tagline {
  display: block;
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  margin: 30px 0;
  padding: 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.9));

  border-left: 4px solid #667eea;
  color: #2d3748;
  font-style: italic;
}

.main-text1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2d3748;
  margin: 25px 0 15px 0;
  padding-left: 20px;
  border-left: 3px solid #7e1605;
  background: rgb(255,255,255,0.9);
}

.main-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4a5568;
  margin: 15px 0 30px 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);

  border: 1px solid rgba(102, 126, 234, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.main-text:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.main-text2 {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4a5568;
  margin: 20px 0;
  padding: 25px;
  background: rgba(255, 255, 255, 0.8);

  border: 1px solid rgba(102, 126, 234, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.main-text2::before {
  content: '"';
  font-size: 4rem;
  color: rgba(102, 126, 234, 0.1);
  position: absolute;
  top: 10px;
  left: 20px;
  font-family: serif;
}

.closing-slogan {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  margin: 40px 0 20px 0;
  padding: 25px;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.8), rgba(238, 90, 82, 0.9));

  border: 2px dashed #ff6b6b;
  color: #2d3748;
  font-style: italic;
}

/* Decorative elements */
.sentense1::after, .sentense2::after, .sentense3::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -50px;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));

  z-index: -1;
}

/* Responsive design */
@media (max-width: 768px) {
  .scroll-home {
    padding: 20px 15px;
  }
  
  .sentense1, .sentense2, .sentense3 {
    padding: 25px 20px;
    margin-bottom: 40px;
  }
  
  .mission-heading, .mission-heading2 {
    font-size: 2rem;
  }
  
  .tagline {
    font-size: 1.4rem;
    padding: 15px;
  }
  
  .main-text1 {
    font-size: 1.1rem;
  }
  
  .main-text, .main-text2 {
    font-size: 1rem;
    padding: 15px;
  }
  
  .closing-slogan {
    font-size: 1.2rem;
    padding: 20px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

.department {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 1px solid #333;
  border-left: 8px solid #dc2626;
  padding: 30px 25px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: center;
}

.department:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(220, 38, 38, 0.2);
  border-left-width: 10px;
  background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
}

.department img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  margin: 0 auto 20px auto;
  border: 4px solid #dc2626;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3);
  transition: all 0.3s ease;
}

.department:hover img {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.4);
  border-color: #ef4444;
}

.job-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
}

.job-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #dc2626, #ef4444);

}

.director {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f87171;
  margin: 25px 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.director::before {
  content: '👑';
  margin-right: 8px;
  font-size: 0.9em;
}

.director-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: white;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  padding: 12px 20px;

  margin: 8px auto;
  max-width: 200px;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
  transition: all 0.3s ease;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.director-name:hover {
  transform: translateX(5px);
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

.member {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f87171;
  margin: 20px 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.member::before {
  content: '⭐';
  margin-right: 8px;
  font-size: 0.9em;
}

.member-name {
  font-size: 1rem;
  font-weight: 500;
  color: white;
  background: linear-gradient(135deg, #000000, #1a1a1a);
  padding: 10px 18px;
  margin: 6px auto;
  max-width: 180px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  border: 1px solid #333;
  position: relative;
  overflow: hidden;
}

.member-name::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.2), transparent);
  transition: left 0.5s;
}

.member-name:hover::before {
  left: 100%;
}

.member-name:hover {
  transform: translateX(3px);
  box-shadow: 0 5px 16px rgba(220, 38, 38, 0.3);
  border-color: #dc2626;
}


/* Responsive Design */
@media (max-width: 768px) {
  .about {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 15px;
  }
  
  .department {
    padding: 25px 20px;
  }
  
  .department img {
    width: 150px;
    height: 100px;
  }
  
  .job-title {
    font-size: 1.2rem;
  }
  
  .director, .member {
    font-size: 1rem;
  }
  
  .director-name, .member-name {
    font-size: 0.95rem;
    padding: 10px 16px;
  }
}



.department {
  animation: fadeInUp 0.6s ease;
}
