:root {
  scroll-behavior: smooth;
}

a {
  color: #fff;
  text-decoration: none;
}

a:hover {
  color: #2e8b57;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  transition: all 0.6s ease-out;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#preloader::before {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  border: 4px solid rgba(46, 139, 87, 0.2);
  border-top: 4px solid var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
#preloader::after {
  content: "道格拉斯商學院";
  position: absolute;
  top: calc(50% + 50px);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 2px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}
/*--------------------------------------------------------------
# Sections & Section Header
--------------------------------------------------------------*/
section {
  padding: 60px 0;
  overflow: hidden;
}

.section-header {
  text-align: center;
  padding-bottom: 40px;
}
.section-header h2 {
  font-size: 48px;
  font-weight: 300;
  margin-bottom: 20px;
  color: var(--color-secondary);
}
.section-header p {
  margin: 0 auto;
  color: var(--color-secondary-light);
}
@media (min-width: 1280px) {
  .section-header p {
    max-width: 80%;
  }
}

/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/
.breadcrumbs {
  padding: 15px 0;
  background: rgba(var(--color-secondary-rgb), 0.05);
  min-height: 40px;
  margin-top: 76px;
}
.breadcrumbs h2 {
  font-size: 30px;
  font-weight: 300;
  margin: 0;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}
.breadcrumbs ol li + li {
  padding-left: 10px;
}
.breadcrumbs ol li + li::before {
  display: inline-block;
  padding-right: 10px;
  color: var(--color-secondary-light);
  content: "/";
}
@media (max-width: 992px) {
  .breadcrumbs .d-flex {
    display: block !important;
  }
  .breadcrumbs h2 {
    margin-bottom: 10px;
    font-size: 24px;
  }
  .breadcrumbs ol {
    display: block;
  }
  .breadcrumbs ol li {
    display: inline-block;
  }
}

/*--------------------------------------------------------------
# Scroll top button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 995;
  background: var(--color-primary);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}
.scroll-top i {
  font-size: 24px;
  color: var(--color-white);
  line-height: 0;
}
.scroll-top:hover {
  background: rgba(var(--color-primary-rgb), 0.85);
  color: var(--color-white);
}
.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}
/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
  transition: all 0.5s;
  z-index: 997;
  padding: 20px 0;
  background-color: transparent;
}

/* Remove header transparency on mobile to prevent menu overlay issues */
@media (max-width: 1279px) {
  .header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: none;
  }
  .header.sticked {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: none;
  }
}

/* Lower header z-index on mobile to allow mobile menu to show above */
@media (max-width: 1279px) {
  .header {
    z-index: 99;
  }
  .header.sticked {
    z-index: 99;
  }
}
.header.sticked {
  background: rgba(var(--color-white-rgb), 0.95);
  padding: 15px 0;
  box-shadow: 0px 2px 20px rgba(var(--color-default-rgb), 0.1);
  backdrop-filter: blur(10px);
}

/* Override sticked header for mobile */
@media (max-width: 1279px) {
  .header.sticked {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: none !important;
  }
}
.header .logo img {
  max-height: 40px;
  margin-right: 6px;
}
.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--color-secondary);
}
.header .logo h1 span {
  color: var(--color-primary);
}

/*--------------------------------------------------------------
# Desktop Navigation 
--------------------------------------------------------------*/
@media (min-width: 1280px) {
  .navbar {
    padding: 0;
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    margin: 10px 0;
  }

  /* Center the navigation container */
  .header .container-fluid {
    justify-content: space-between;
    position: relative;
  }

  .header .navbar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .navbar ul {
    margin: 0;
    padding: 8px 15px;
    display: flex;
    list-style: none;
    align-items: center;
    gap: 5px;
  }
  .navbar li {
    position: relative;
  }
  .navbar > ul > li {
    white-space: nowrap;
  }
  .navbar a,
  .navbar a:focus {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 500;
    color: rgba(var(--color-secondary-dark-rgb), 0.8);
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 25px;
    text-decoration: none;
  }
  .navbar a i,
  .navbar a:focus i {
    font-size: 16px;
    line-height: 0;
    margin-right: 8px;
  }
  .navbar > ul > li > a:before {
    display: none;
  }
  .navbar a:hover,
  .navbar .active,
  .navbar .active:focus,
  .navbar li:hover > a {
    color: var(--color-white);
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.4);
  }
  .navbar .dropdown a:hover:before,
  .navbar .dropdown:hover > a:before,
  .navbar .dropdown .active:before {
    visibility: hidden;
  }
  .navbar .dropdown a:hover,
  .navbar .dropdown .active,
  .navbar .dropdown .active:focus,
  .navbar .dropdown:hover > a {
    color: var(--color-white);
    background: var(--color-secondary);
  }
  .navbar .dropdown ul {
    display: block;
    position: absolute;
    left: 0;
    top: 100%;
    margin: 0;
    padding: 0 0 10px 0;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    background: var(--color-secondary);
    transition: 0.3s;
  }
  .navbar .dropdown ul li {
    min-width: 200px;
  }
  .navbar .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    font-weight: 400;
    color: rgba(var(--color-white-rgb), 0.5);
  }
  .navbar .dropdown ul a i {
    font-size: 12px;
  }
  .navbar .dropdown ul a:hover,
  .navbar .dropdown ul .active,
  .navbar .dropdown ul .active:hover,
  .navbar .dropdown ul li:hover > a {
    color: var(--color-white);
    background: var(--color-primary);
  }
  .navbar .dropdown:hover > ul {
    opacity: 1;
    visibility: visible;
  }
  .navbar .megamenu {
    position: static;
  }
  .navbar .megamenu ul {
    right: 0;
    padding: 10px;
    display: flex;
  }
  .navbar .megamenu ul li {
    flex: 1;
  }
  .navbar .megamenu ul li a,
  .navbar .megamenu ul li:hover > a {
    color: rgba(var(--color-white-rgb), 0.5);
    background: none;
  }
  .navbar .megamenu ul li a:hover,
  .navbar .megamenu ul li .active,
  .navbar .megamenu ul li .active:hover {
    color: var(--color-white);
    background: var(--color-primary);
  }
  .navbar .dropdown .dropdown ul {
    top: 0;
    left: calc(100% - 30px);
    visibility: hidden;
  }
  .navbar .dropdown .dropdown:hover > ul {
    opacity: 1;
    top: 0;
    left: 100%;
    visibility: visible;
  }

  .mobile-nav-toggle {
    display: none !important;
  }
}
@media (min-width: 1280px) and (max-width: 1366px) {
  .navbar .dropdown .dropdown ul {
    left: -90%;
  }
  .navbar .dropdown .dropdown:hover > ul {
    left: -100%;
  }
}
/*--------------------------------------------------------------
# Mobile Navigation
--------------------------------------------------------------*/
@media (max-width: 1279px) {
  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    bottom: 0;
    transition: 0.3s;
    z-index: 9997;
    max-width: 85%;
  }
  .navbar ul {
    position: absolute;
    inset: 0;
    padding: 20px 0;
    margin: 0;
    background: linear-gradient(
      135deg,
      rgba(var(--color-primary-rgb), 0.95) 0%,
      rgba(var(--color-primary-rgb), 0.9) 100%
    );
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    border-radius: 15px 0 0 15px;
    backdrop-filter: blur(15px);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    list-style: none;
    display: flex;
    flex-direction: column;
  }
  .navbar a,
  .navbar a:focus {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 500;
    color: rgba(var(--color-white-rgb), 0.9);
    white-space: nowrap;
    transition: 0.3s;
    text-decoration: none;
    margin: 3px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
  }
  .navbar a i,
  .navbar a:focus i {
    font-size: 16px;
    line-height: 0;
    margin-right: 10px;
    margin-left: 0;
  }
  .navbar a:hover,
  .navbar .active,
  .navbar .active:focus,
  .navbar li:hover > a {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }
  .navbar .dropdown ul,
  .navbar .dropdown .dropdown ul {
    position: static;
    display: none;
    padding: 10px 0;
    margin: 10px 20px;
    transition: all 0.5s ease-in-out;
    border: 1px solid rgba(var(--color-secondary-light-rgb), 0.3);
  }
  .navbar .dropdown > .dropdown-active,
  .navbar .dropdown .dropdown > .dropdown-active {
    display: block;
  }

  .mobile-nav-toggle {
    display: block !important;
    color: var(--color-white);
    font-size: 28px;
    cursor: pointer;
    line-height: 0;
    transition: 0.5s;
    position: fixed;
    top: 20px;
    z-index: 9999;
    right: 15px;
    background: rgba(var(--color-primary-rgb), 0.9);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
  }
  .mobile-nav-toggle.bi-x {
    color: var(--color-white);
  }

  .mobile-nav-active {
    overflow: hidden;
    z-index: 9995;
    position: relative;
  }
  .mobile-nav-active .navbar {
    right: 0;
  }
  .mobile-nav-active .navbar:before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9996;
  }
}
/*--------------------------------------------------------------
# Index Page
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Animated Hero Section
--------------------------------------------------------------*/
.hero-animated {
  width: 100%;
  min-height: 50vh;
  position: relative;
  padding: 120px 0 60px;
  overflow: hidden;
}

/* Banner carousel backgrounds */
.hero-animated::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../img/banner1.jpg") center center;
  background-size: cover;
  opacity: 1;
  transition: opacity 1s ease-in-out;
  z-index: -3;
}

.hero-animated::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../img/banner2.jpg") center center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: -2;
}

.hero-animated.bg-2::before {
  opacity: 0;
}

.hero-animated.bg-2::after {
  opacity: 1;
}

.hero-animated.bg-3::before {
  opacity: 1;
  background: url("../img/banner3.jpg") center center;
  background-size: cover;
}

.hero-animated.bg-3::after {
  opacity: 0;
}
.hero-animated h2 {
  margin: 0 0 10px 0;
  font-size: 48px;
  font-weight: 300;
  color: var(--color-white);
  font-family: var(--font-secondary);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}
.hero-animated h2 span {
  color: var(--color-primary);
}
.hero-animated p {
  color: var(--color-white);
  margin: 0 0 30px 0;
  font-size: 20px;
  font-weight: 400;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}
.hero-animated .animated {
  margin-bottom: 60px;
  animation: up-down 2s ease-in-out infinite alternate-reverse both;
}

/*New - Hero Content Wrapper*/
.hero-content-wrapper {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  margin: 0 auto;
}

.hero-content-wrapper h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--color-white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-content-wrapper p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--color-white);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-features-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  text-align: left;
}

.hero-features-list li {
  padding-bottom: 10px;
  color: var(--color-white);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  font-size: 1.1rem;
}

.hero-features-list i {
  font-size: 22px;
  margin-right: 12px;
  color: #ffd700;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.9),
    -1px -1px 2px rgba(0, 0, 0, 0.8),
    1px -1px 2px rgba(0, 0, 0, 0.8),
    -1px 1px 2px rgba(0, 0, 0, 0.8);
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.9))
    drop-shadow(0 0 6px rgba(255, 215, 0, 0.4));
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Center the download button */
.hero-content-wrapper .d-flex {
  justify-content: center;
  margin-top: 30px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .hero-content-wrapper {
    padding: 30px 25px;
    max-width: 95%;
  }

  .hero-content-wrapper h2 {
    font-size: 2rem;
  }

  .hero-content-wrapper p {
    font-size: 1.1rem;
  }

  .hero-features-list li {
    font-size: 1rem;
  }
}

/* Course Section Spacing Improvements */
.recent-blog-posts {
  padding: 100px 0 120px 0;
}

.recent-blog-posts .post-box {
  margin-bottom: 80px;
}

.recent-blog-posts .section-header {
  margin-bottom: 80px;
}

/* Testimonials Section with Circular Background */
.testimonials {
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: "";
  position: absolute;
  top: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: rgba(var(--color-primary-rgb), 0.1);
  border-radius: 50%;
  z-index: 0;
}

.testimonials::after {
  content: "";
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: rgba(var(--color-primary-rgb), 0.05);
  border-radius: 50%;
  z-index: 0;
}

.testimonials .container {
  position: relative;
  z-index: 2;
}

/* Additional decorative circles */
.testimonials-decoration-1 {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 150px;
  height: 150px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 50%;
  z-index: 1;
}

.testimonials-decoration-2 {
  position: absolute;
  bottom: 30%;
  left: 5%;
  width: 200px;
  height: 200px;
  background: rgba(var(--color-primary-rgb), 0.08);
  border-radius: 50%;
  z-index: 1;
}

.testimonials-decoration-3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 50%;
  z-index: 1;
}

/*--------------------------------------------------------------
# Carousel Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 60vh;
  padding: 0;
  background: var(--color-black);
  background: url("../img/hero-bg.png") center center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 60px 0;
}
@media (max-width: 640px) {
  .hero .container {
    padding: 0 60px;
  }
}
.hero h2 {
  color: var(--color-secondary);
  margin-bottom: 25px;
  font-size: 48px;
  font-weight: 300;
  -webkit-animation: fadeInDown 1s both 0.2s;
  animation: fadeInDown 1s both 0.2s;
}
@media (max-width: 768px) {
  .hero h2 {
    font-size: 30px;
  }
}
.hero p {
  color: var(--color-secondary-light);
  -webkit-animation: fadeInDown 1s both 0.4s;
  animation: fadeInDown 1s both 0.4s;
  font-weight: 500;
  margin-bottom: 30px;
}
.hero .img {
  margin-bottom: 40px;
  -webkit-animation: fadeInDownLite 1s both;
  animation: fadeInDownLite 1s both;
}
.hero .btn-get-started {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 15px 40px;
  border-radius: 50px;
  transition: all 0.3s ease;
  -webkit-animation: fadeInUp 1s both 0.6s;
  animation: fadeInUp 1s both 0.6s;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-dark)
  );
  color: var(--color-white);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.3);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.hero .btn-get-started:hover {
  background: linear-gradient(
    135deg,
    var(--color-primary-dark),
    var(--color-primary)
  );
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(var(--color-primary-rgb), 0.5);
}

.hero .btn-watch-video {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.hero .btn-watch-video:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--color-primary-rgb), 0.3);
}
.hero .carousel-control-prev {
  justify-content: start;
}
@media (min-width: 640px) {
  .hero .carousel-control-prev {
    padding-left: 15px;
  }
}
.hero .carousel-control-next {
  justify-content: end;
}
@media (min-width: 640px) {
  .hero .carousel-control-next {
    padding-right: 15px;
  }
}
.hero .carousel-control-next-icon,
.hero .carousel-control-prev-icon {
  background: none;
  font-size: 26px;
  line-height: 0;
  background: rgba(var(--color-secondary-rgb), 0.4);
  color: rgba(var(--color-white-rgb), 0.98);
  border-radius: 50px;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .carousel-control-next-icon {
  padding-left: 3px;
}
.hero .carousel-control-prev-icon {
  padding-right: 3px;
}
.hero .carousel-control-prev,
.hero .carousel-control-next {
  transition: 0.3s;
}
.hero .carousel-control-prev:focus,
.hero .carousel-control-next:focus {
  opacity: 0.5;
}
.hero .carousel-control-prev:hover,
.hero .carousel-control-next:hover {
  opacity: 0.9;
}
.hero .carousel-indicators li {
  cursor: pointer;
  background: rgba(var(--color-secondary-rgb), 0.5);
  overflow: hidden;
  border: 0;
  width: 12px;
  height: 12px;
  border-radius: 50px;
  opacity: 0.6;
  transition: 0.3s;
}
.hero .carousel-indicators li.active {
  opacity: 1;
  background: var(--color-primary);
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-webkit-keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@-webkit-keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@-webkit-keyframes fadeInDownLite {
  from {
    opacity: 0;
    transform: translate3d(0, -10%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes fadeInDownLite {
  from {
    opacity: 0;
    transform: translate3d(0, -10%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
/*--------------------------------------------------------------
# Fullscreen Hero Section
--------------------------------------------------------------*/
.hero-fullscreen {
  width: 100%;
  min-height: 100vh;
  background: url("../img/hero-fullscreen-bg.jpg") center center;
  background-size: cover;
  position: relative;
  padding: 120px 0 60px;
}
.hero-fullscreen:before {
  content: "";
  background: rgba(var(--color-white-rgb), 0.85);
  position: absolute;
  inset: 0;
}
@media (min-width: 1365px) {
  .hero-fullscreen {
    background-attachment: fixed;
  }
}
.hero-fullscreen h2 {
  margin: 0 0 10px 0;
  font-size: 48px;
  font-weight: 300;
  color: var(--color-secondary);
  font-family: var(--font-secondary);
}
.hero-fullscreen h2 span {
  color: var(--color-primary);
}
.hero-fullscreen p {
  color: rgba(var(--color-secondary-rgb), 0.8);
  margin: 0 0 30px 0;
  font-size: 20px;
  font-weight: 400;
}
.hero-fullscreen .btn-get-started {
  font-size: 16px;
  font-weight: 400;
  display: inline-block;
  padding: 10px 28px;
  border-radius: 4px;
  transition: 0.5s;
  color: var(--color-white);
  background: var(--color-primary);
  font-family: var(--font-secondary);
}
.hero-fullscreen .btn-get-started:hover {
  background: rgba(var(--color-primary-rgb), 0.8);
}
.hero-fullscreen .btn-watch-video {
  font-size: 16px;
  transition: 0.5s;
  margin-left: 25px;
  font-family: var(--font-secondary);
  color: var(--color-secondary);
  font-weight: 600;
}
.hero-fullscreen .btn-watch-video i {
  color: var(--color-primary);
  font-size: 32px;
  transition: 0.3s;
  line-height: 0;
  margin-right: 8px;
}
.hero-fullscreen .btn-watch-video:hover {
  color: var(--color-primary);
}
.hero-fullscreen .btn-watch-video:hover i {
  color: rgba(var(--color-primary-rgb), 0.8);
}
@media (max-width: 640px) {
  .hero-fullscreen h2 {
    font-size: 32px;
  }
  .hero-fullscreen p {
    font-size: 18px;
    margin-bottom: 30px;
  }
  .hero-fullscreen .btn-get-started,
  .hero-fullscreen .btn-watch-video {
    font-size: 14px;
  }
}

/*--------------------------------------------------------------
# Static Hero Section
--------------------------------------------------------------*/
.hero-static {
  width: 100%;
  min-height: 50vh;
  background: url("../img/hero-bg.png") center center;
  background-size: cover;
  position: relative;
  padding: 120px 0 60px;
}
.hero-static h2 {
  margin: 0 0 10px 0;
  font-size: 48px;
  font-weight: 300;
  color: var(--color-secondary);
  font-family: var(--font-secondary);
}
.hero-static h2 span {
  color: var(--color-primary);
}
.hero-static p {
  color: rgba(var(--color-secondary-rgb), 0.8);
  margin: 0 0 30px 0;
  font-size: 20px;
  font-weight: 400;
}
.hero-static .btn-get-started {
  font-size: 16px;
  font-weight: 400;
  display: inline-block;
  padding: 10px 28px;
  border-radius: 4px;
  transition: 0.5s;
  color: var(--color-white);
  background: var(--color-primary);
  font-family: var(--font-secondary);
}
.hero-static .btn-get-started:hover {
  background: rgba(var(--color-primary-rgb), 0.8);
}
.hero-static .btn-watch-video {
  font-size: 16px;
  transition: 0.5s;
  margin-left: 25px;
  font-family: var(--font-secondary);
  color: var(--color-secondary);
  font-weight: 600;
}
.hero-static .btn-watch-video i {
  color: var(--color-primary);
  font-size: 32px;
  transition: 0.3s;
  line-height: 0;
  margin-right: 8px;
}
.hero-static .btn-watch-video:hover {
  color: var(--color-primary);
}
.hero-static .btn-watch-video:hover i {
  color: rgba(var(--color-primary-rgb), 0.8);
}
@media (max-width: 640px) {
  .hero-static h2 {
    font-size: 32px;
  }
  .hero-static p {
    font-size: 18px;
    margin-bottom: 30px;
  }
  .hero-static .btn-get-started,
  .hero-static .btn-watch-video {
    font-size: 14px;
  }
}

/*--------------------------------------------------------------
# Featured Services Section
--------------------------------------------------------------*/
.featured-services .service-item {
  padding: 30px;
  transition: all ease-in-out 0.4s;
  background: var(--color-white);
  height: 100%;
}
.featured-services .service-item .icon {
  margin-bottom: 10px;
}
.featured-services .service-item .icon i {
  color: var(--color-primary);
  font-size: 36px;
  transition: 0.3s;
}
.featured-services .service-item h4 {
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 24px;
}
.featured-services .service-item h4 a {
  color: var(--color-secondary);
  transition: ease-in-out 0.3s;
}
.featured-services .service-item p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}
.featured-services .service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0px 0 60px 0 rgba(var(--color-secondary-rgb), 0.1);
}
.featured-services .service-item:hover h4 a {
  color: var(--color-primary);
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .about-content {
  padding: 20px 0;
}

.about .feature-item {
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.about .feature-item:hover {
  transform: translateX(10px);
}

.about .feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #228b22 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(46, 139, 87, 0.2);
  transition: all 0.3s ease;
}

.about .feature-icon i {
  font-size: 24px;
  color: white;
}

.about .feature-item:hover .feature-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(46, 139, 87, 0.3);
}

.about .feature-item h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.about .feature-item p {
  color: var(--color-secondary-light);
  margin: 0;
  line-height: 1.6;
}

.about .about-img-container {
  position: relative;
}

.about .about-main-img {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about .about-main-img img {
  transition: transform 0.3s ease;
}

.about .about-main-img:hover img {
  transform: scale(1.05);
}

.about .about-stats {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 25px;
}

.about .stat-item {
  text-align: center;
}

.about .stat-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 5px;
}

.about .stat-label {
  font-size: 12px;
  color: var(--color-secondary-light);
  font-weight: 500;
}

@media (max-width: 991px) {
  .about .about-stats {
    position: static;
    margin-top: 20px;
    right: auto;
    bottom: auto;
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .about .about-stats {
    padding: 15px;
    gap: 15px;
  }

  .about .stat-number {
    font-size: 20px;
  }

  .about .feature-item:hover {
    transform: none;
  }

  /* Mobile-specific feature item styles to prevent icon compression */
  .about .feature-item {
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 25px;
  }

  .about .feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    flex-shrink: 0;
    margin-right: 15px;
  }

  .about .feature-icon i {
    font-size: 20px;
  }

  .about .feature-item h4 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .about .feature-item p {
    font-size: 14px;
    line-height: 1.5;
  }
}

/* Legacy styles for hidden content */
.about .about-img {
  position: relative;
  margin: 60px 0 0 60px;
}
.about .about-img:before {
  position: absolute;
  inset: -60px 0 0 -60px;
  z-index: -1;
  content: "";
  background: url("../img/about-bg.png") top left;
  background-repeat: no-repeat;
}
@media (max-width: 575px) {
  .about .about-img {
    margin: 30px 0 0 30px;
  }
  .about .about-img:before {
    inset: -30px 0 0 -30px;
  }
}
.about h3 {
  color: var(--color-secondary);
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: 32px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .about h3 {
    font-size: 28px;
  }
}
.about .nav-pills {
  border-bottom: 1px solid rgba(var(--color-secondary-rgb), 0.2);
}
.about .nav-pills li + li {
  margin-left: 40px;
}
.about .nav-link {
  background: none;
  font-size: 18px;
  font-weight: 400;
  color: var(--color-secondary);
  padding: 12px 0;
  margin-bottom: -2px;
  border-radius: 0;
  font-family: var(--font-secondary);
}
.about .nav-link.active {
  color: var(--color-primary);
  background: none;
  border-bottom: 3px solid var(--color-primary);
}
@media (max-width: 575px) {
  .about .nav-link {
    font-size: 16px;
  }
}
.about .tab-content h4 {
  font-size: 18px;
  margin: 0;
  font-weight: 700;
  color: var(--color-secondary);
}
.about .tab-content i {
  font-size: 22px;
  line-height: 0;
  margin-right: 8px;
  color: var(--color-primary);
}

/*--------------------------------------------------------------
# Clients Section
--------------------------------------------------------------*/
.clients {
  padding: 0 0 60px 0;
  overflow: visible;
  width: 100%;
  position: relative;
  left: 0;
  right: 0;
  margin: 0;
}

.clients .container {
  padding: 60px 0;
}

.clients .clients-slider {
  overflow: hidden;
}
.clients .swiper-slide {
  text-align: center;
  color: var(--color-secondary);
  width: 180px;
}
.clients .swiper-slide img {
  opacity: 0.8;
  transition: all 0.3s ease;
  filter: grayscale(30%);
  height: 80px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin: 20px auto;
}
.clients .swiper-slide img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(46, 139, 87, 0.15);
}

/*--------------------------------------------------------------
# Call To Action Section
--------------------------------------------------------------*/
.cta {
  padding: 0;
  margin-bottom: 60px;
}
.cta .container {
  padding: 80px;
  background: rgba(var(--color-secondary-rgb), 0.1);
  border-radius: 15px;
}
@media (max-width: 992px) {
  .cta .container {
    padding: 60px;
  }
}
.cta .content h3 {
  color: var(--color-secondary);
  font-size: 48px;
  font-weight: 700;
}
.cta .content h3 em {
  font-style: normal;
  position: relative;
}
.cta .content h3 em:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 10px;
  background: rgba(var(--color-primary-rgb), 0.5);
  z-index: -1;
}
.cta .content p {
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 18px;
}
.cta .content .cta-btn {
  color: var(--color-white);
  font-weight: 500;
  font-size: 16px;
  display: inline-block;
  padding: 12px 40px;
  border-radius: 5px;
  transition: 0.5s;
  margin-top: 10px;
  background: rgba(var(--color-primary-dark-rgb), 0.9);
}
.cta .content .cta-btn:hover {
  background: var(--color-primary);
}
.cta .img {
  position: relative;
}
.cta .img:before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(var(--color-white-rgb), 0.5);
  border-radius: 15px;
  transform: rotate(12deg);
}
.cta .img:after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(var(--color-white-rgb), 0.9);
  border-radius: 15px;
  transform: rotate(6deg);
}
.cta .img img {
  position: relative;
  z-index: 3;
  border-radius: 15px;
}

/*--------------------------------------------------------------
# On Focus Section
--------------------------------------------------------------*/
.onfocus {
  padding: 0;
}
.onfocus .video-play {
  min-height: 400px;
  background:
    linear-gradient(
      rgba(var(--color-black-rgb), 0.4),
      rgba(var(--color-black-rgb), 0.7)
    ),
    url("https://www.degree.tw/wp-content/uploads/2024/04/435545849_851501803657073_2583516115117340459_n-1024x683.jpg")
      center center;
  background-size: cover;
}
.onfocus .content {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    rgba(var(--color-primary-rgb), 0.9) 100%
  );
  color: var(--color-white);
  padding: 40px;
}
@media (min-width: 768px) {
  .onfocus .content {
    padding: 80px;
  }
}
.onfocus .content h3 {
  font-weight: 600;
  font-size: 32px;
  color: var(--color-white);
}
.onfocus .content ul {
  list-style: none;
  padding: 0;
}
.onfocus .content ul li {
  padding-bottom: 10px;
}
.onfocus .content ul i {
  font-size: 20px;
  padding-right: 4px;
  color: #ffd700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.9));
}
.onfocus .content p:last-child {
  margin-bottom: 0;
}
.onfocus .content .read-more {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  padding: 12px 24px;
  border-radius: 5px;
  transition: 0.3s;
  display: -nline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  background: var(--color-primary);
}
.onfocus .content .read-more i {
  font-size: 18px;
  margin-left: 5px;
  line-height: 0;
  transition: 0.3s;
}
.onfocus .content .read-more:hover {
  background: rgba(var(--color-primary-rgb), 0.9);
  padding-right: 19px;
}
.onfocus .content .read-more:hover i {
  margin-left: 10px;
}
.onfocus .play-btn {
  width: 94px;
  height: 94px;
  background: radial-gradient(
    var(--color-primary) 50%,
    rgba(var(--color-primary-rgb), 0.4) 52%
  );
  border-radius: 50%;
  display: block;
  position: absolute;
  left: calc(50% - 47px);
  top: calc(50% - 47px);
  overflow: hidden;
}
.onfocus .play-btn:before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
  -webkit-animation: pulsate-btn 2s;
  animation: pulsate-btn 2s;
  -webkit-animation-direction: forwards;
  animation-direction: forwards;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-timing-function: steps;
  animation-timing-function: steps;
  opacity: 1;
  border-radius: 50%;
  border: 5px solid rgba(var(--color-primary-rgb), 0.7);
  top: -15%;
  left: -15%;
  background: rgba(198, 16, 0, 0);
}
.onfocus .play-btn:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid var(--color-white);
  z-index: 100;
  transition: all 400ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
}
.onfocus .play-btn:hover:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border: none;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid var(--color-white);
  z-index: 200;
  -webkit-animation: none;
  animation: none;
  border-radius: 0;
}
.onfocus .play-btn:hover:after {
  border-left: 15px solid var(--color-primary);
  transform: scale(20);
}

@-webkit-keyframes pulsate-btn {
  0% {
    transform: scale(0.6, 0.6);
    opacity: 1;
  }
  100% {
    transform: scale(1, 1);
    opacity: 0;
  }
}

@keyframes pulsate-btn {
  0% {
    transform: scale(0.6, 0.6);
    opacity: 1;
  }
  100% {
    transform: scale(1, 1);
    opacity: 0;
  }
}
/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
.features .nav-tabs {
  border: 0;
}
.features .nav-link {
  border: 0;
  padding: 25px 20px;
  color: var(--color-secondary);
  box-shadow: 5px 5px 25px rgba(var(--color-secondary-rgb), 0.15);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: 0s;
  cursor: pointer;
  height: 100%;
}
.features .nav-link i {
  font-size: 32px;
  line-height: 0;
}
.features .nav-link h4 {
  font-size: 20px;
  font-weight: 600;
  margin: 10px 0 0 0;
  color: var(--color-secondary);
}
.features .nav-link:hover {
  color: var(--color-primary);
}
.features .nav-link.active {
  transition: 0.3s;
  background: var(--color-secondary)
    linear-gradient(
      rgba(var(--color-primary-rgb), 0.95),
      rgba(var(--color-primary-rgb), 0.6)
    );
  border-color: var(--color-primary);
}
.features .nav-link.active h4 {
  color: var(--color-white);
}
.features .nav-link.active i {
  color: var(--color-white) !important;
}
.features .tab-content {
  margin-top: 30px;
}
.features .tab-pane.active {
  -webkit-animation: fadeIn 0.5s ease-out;
  animation: fadeIn 0.5s ease-out;
}
.features .tab-pane h3 {
  font-weight: 600;
  font-size: 36px;
  color: var(--color-secondary);
}
.features .tab-pane ul {
  list-style: none;
  padding: 0;
}
.features .tab-pane ul li {
  padding-bottom: 10px;
}
.features .tab-pane ul i {
  font-size: 24px;
  margin-right: 4px;
  color: var(--color-primary);
}
.features .tab-pane p:last-child {
  margin-bottom: 0;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services {
  padding: 80px 0;
}

.services .service-item {
  margin-bottom: 60px;
}

.services .img {
  border-radius: 8px;
  overflow: hidden;
}
.services .img img {
  transition: 0.6s;
}
.services .details {
  padding: 50px 30px;
  margin: -100px 30px 0 30px;
  transition: all ease-in-out 0.3s;
  background: var(--color-white);
  position: relative;
  background: rgba(var(--color-white-rgb), 0.9);
  text-align: center;
  border-radius: 8px;
  box-shadow: 0px 0 25px rgba(var(--color-black-rgb), 0.1);
}
.services .details .icon {
  margin: 0;
  width: 72px;
  height: 72px;
  background: var(--color-primary);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-white);
  font-size: 28px;
  transition: ease-in-out 0.3s;
  position: absolute;
  top: -36px;
  left: calc(50% - 36px);
  border: 6px solid var(--color-white);
}
.services .details h3 {
  color: var(--color-default);
  font-weight: 700;
  margin: 10px 0 15px 0;
  font-size: 22px;
  transition: ease-in-out 0.3s;
}
.services .details p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}
.services .service-item:hover .details h3 {
  color: var(--color-primary);
}
.services .service-item:hover .details .icon {
  background: var(--color-white);
  border: 2px solid var(--color-primary);
}
.services .service-item:hover .details .icon i {
  color: var(--color-primary);
}
.services .service-item:hover .img img {
  transform: scale(1.2);
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials {
  padding: 20px 0 30px 0;
  background: linear-gradient(
    135deg,
    rgba(var(--color-primary-rgb), 0.05) 0%,
    rgba(255, 255, 255, 1) 100%
  );
  position: relative;
}
.testimonials .section-header {
  margin-bottom: 40px;
}
.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}
.testimonials .testimonial-item {
  text-align: center;
  color: var(--color-secondary);
}
.testimonials .testimonial-item .testimonial-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 6px solid rgba(var(--color-white-rgb), 0.15);
  margin: 0 auto;
  object-fit: cover;
  object-position: center;
}
.testimonials .testimonial-item h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0 5px 0;
  color: var(--color-secondary);
}
.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: rgba(var(--color-secondary-rgb), 0.6);
  margin: 0 0 15px 0;
}
.testimonials .testimonial-item .stars {
  margin-bottom: 15px;
}
.testimonials .testimonial-item .stars i {
  color: var(--color-yellow);
  margin: 0 1px;
}
.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: rgba(var(--color-white-rgb), 0.6);
  font-size: 26px;
  line-height: 0;
}
.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}
.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}
.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 auto 15px auto;
}
.testimonials .swiper-pagination {
  margin-top: 20px;
  position: relative;
}
.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: rgba(var(--color-white-rgb), 0.4);
  opacity: 0.5;
}
.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--color-white);
  opacity: 1;
}
@media (min-width: 992px) {
  .testimonials .testimonial-item p {
    width: 80%;
  }
}

/*--------------------------------------------------------------
# Pricing Section
--------------------------------------------------------------*/
.pricing {
  background: rgba(var(--color-secondary-rgb), 0.04);
}
.pricing .pricing-item {
  padding: 60px 40px;
  box-shadow: 0 3px 20px -2px rgba(var(--color-gray-rgb), 0.15);
  background: var(--color-white);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 4px solid var(--color-white);
  border-radius: 10px;
  overflow: hidden;
}
.pricing .pricing-header {
  background:
    linear-gradient(
      rgba(var(--color-secondary-rgb), 0.9),
      rgba(var(--color-secondary-rgb), 0.9)
    ),
    url("../img/pricing-bg.jpg") center center;
  background-size: cover;
  text-align: center;
  padding: 40px;
  margin: -60px -40px 0;
}
.pricing h3 {
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 36px;
  color: var(--color-white);
}
.pricing h4 {
  font-size: 48px;
  color: var(--color-white);
  font-weight: 400;
  font-family: var(--font-primary);
  margin-bottom: 0;
}
.pricing h4 sup {
  font-size: 28px;
}
.pricing h4 span {
  color: rgba(var(--color-white-rgb), 0.6);
  font-size: 24px;
}
.pricing ul {
  padding: 30px 0;
  list-style: none;
  color: var(--color-gray);
  text-align: left;
  line-height: 20px;
}
.pricing ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}
.pricing ul i {
  color: var(--color-primary);
  font-size: 36px;
  padding-right: 3px;
  line-height: 0;
}
.pricing ul .na {
  color: rgba(var(--color-gray-rgb), 0.5);
}
.pricing ul .na i {
  color: rgba(var(--color-gray-rgb), 0.5);
  font-size: 24px;
  padding-left: 4px;
}
.pricing ul .na span {
  text-decoration: line-through;
}
.pricing .buy-btn {
  display: inline-block;
  padding: 12px 40px;
  border-radius: 6px;
  color: var(--color-primary);
  transition: none;
  font-size: 16px;
  font-weight: 700;
  transition: 0.3s;
  border: 1px solid var(--color-primary);
}
.pricing .buy-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}
.pricing .featured {
  border-color: var(--color-primary);
}
.pricing .featured .pricing-header {
  background:
    linear-gradient(
      rgba(var(--color-primary-rgb), 0.9),
      rgba(var(--color-primary-rgb), 0.9)
    ),
    url("../img/pricing-bg.jpg") center center;
}
.pricing .featured .buy-btn {
  background: var(--color-primary);
  color: var(--color-white);
}

/*--------------------------------------------------------------
# F.A.Q Section
--------------------------------------------------------------*/
@media (max-width: 991px) {
  .faq {
    padding: 0;
  }
}
.faq .content h3 {
  font-weight: 400;
  font-size: 34px;
  color: var(--color-secondary);
}
.faq .content h4 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 5px;
}
.faq .content p {
  font-size: 15px;
  color: var(--color-gray);
}
.faq .img {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  min-height: 400px;
}
.faq .accordion-item {
  border: 0;
  margin-top: 15px;
  box-shadow: 0px 5px 25px 0px rgba(var(--color-black-rgb), 0.06);
}
.faq .accordion-collapse {
  border: 0;
}
.faq .accordion-button {
  padding: 15px 40px 20px 60px;
  font-weight: 600;
  border: 0;
  font-size: 18px;
  color: var(--color-default);
  text-align: left;
  background: var(--color-white);
  box-shadow: none;
  border-radius: 5px;
}
.faq .accordion-button:not(.collapsed) {
  color: var(--color-primary);
  border-bottom: 0;
  box-shadow: none;
}
.faq .question-icon {
  position: absolute;
  top: 14px;
  left: 25px;
  font-size: 20px;
  color: var(--color-primary);
}
.faq .accordion-button:after {
  position: absolute;
  right: 15px;
  top: 15px;
  color: var(--color-primary);
}
.faq .accordion-body {
  padding: 0 30px 25px 60px;
  border: 0;
  border-radius: 5px;
  background: var(--color-white);
  box-shadow: none;
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio .portfolio-flters {
  padding: 0;
  margin: 0 auto 30px auto;
  list-style: none;
  text-align: center;
}
.portfolio .portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 0;
  font-size: 18px;
  font-weight: 300;
  margin: 0 10px;
  line-height: 1;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
}
.portfolio .portfolio-flters li:hover,
.portfolio .portfolio-flters li.filter-active {
  color: var(--color-primary);
}
.portfolio .portfolio-flters li:first-child {
  margin-left: 0;
}
.portfolio .portfolio-flters li:last-child {
  margin-right: 0;
}
@media (max-width: 575px) {
  .portfolio .portfolio-flters li {
    font-size: 14px;
    margin: 0 5px;
  }
}
.portfolio .portfolio-item {
  position: relative;
  border: 1px solid var(--color-white);
  overflow: hidden;
  z-index: 1;
}
.portfolio .portfolio-item img {
  transition: all 0.3s;
}
.portfolio .portfolio-item:before {
  content: "";
  inset: 0;
  position: absolute;
  background: rgba(var(--color-secondary-rgb), 0.8);
  z-index: 2;
  transition: 0.5s;
  visibility: hidden;
  opacity: 0;
}
.portfolio .portfolio-item .portfolio-info {
  opacity: 0;
  position: absolute;
  inset: auto 40px 40px 40px;
  z-index: 3;
  transition: all ease-in-out 0.3s;
  padding: 20px;
}
.portfolio .portfolio-item .portfolio-info h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
  padding-right: 50px;
}
.portfolio .portfolio-item .portfolio-info .preview-link,
.portfolio .portfolio-item .portfolio-info .details-link {
  position: absolute;
  right: 50px;
  font-size: 24px;
  top: calc(50% - 14px);
  color: rgba(var(--color-white-rgb), 0.7);
  transition: 0.3s;
  line-height: 0;
}
.portfolio .portfolio-item .portfolio-info .preview-link:hover,
.portfolio .portfolio-item .portfolio-info .details-link:hover {
  color: var(--color-white);
}
.portfolio .portfolio-item .portfolio-info .details-link {
  right: 14px;
  font-size: 28px;
}
.portfolio .portfolio-item:hover:before {
  visibility: visible;
  opacity: 1;
}
.portfolio .portfolio-item:hover img {
  transform: scale(1.2);
}
.portfolio .portfolio-item:hover .portfolio-info {
  opacity: 1;
  inset: auto 10px 0 10px;
}

/*--------------------------------------------------------------
# Team Section
--------------------------------------------------------------*/
.team .team-member .member-img {
  border-radius: 8px;
  overflow: hidden;
}
.team .team-member .social {
  position: absolute;
  left: 0;
  top: -18px;
  right: 0;
  opacity: 0;
  transition: ease-in-out 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team .team-member .social a {
  transition: color 0.3s;
  color: var(--color-white);
  background: var(--color-primary);
  margin: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: 0.3s;
}
.team .team-member .social a i {
  line-height: 0;
  font-size: 16px;
}
.team .team-member .social a:hover {
  background: var(--color-primary-light);
}
.team .team-member .social i {
  font-size: 18px;
  margin: 0 2px;
}
.team .team-member .member-info {
  padding: 30px 15px;
  text-align: center;
  box-shadow: 0px 2px 15px rgba(var(--color-black-rgb), 0.1);
  background: var(--color-white);
  margin: -50px 20px 0 20px;
  position: relative;
  border-radius: 8px;
}
.team .team-member .member-info h4 {
  font-weight: 400;
  margin-bottom: 5px;
  font-size: 24px;
  color: var(--color-secondary);
}
.team .team-member .member-info span {
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-gray);
}
.team .team-member .member-info p {
  font-style: italic;
  font-size: 14px;
  line-height: 26px;
  color: var(--color-gray);
}
.team .team-member:hover .social {
  opacity: 1;
}

/*--------------------------------------------------------------
# Recent Blog Posts (Legacy)
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .map {
  margin-bottom: 40px;
}
.contact .map iframe {
  border: 0;
  width: 100%;
  height: 400px;
}
.contact .info {
  padding: 40px;
  box-shadow: 0px 2px 15px rgba(var(--color-black-rgb), 0.1);
  overflow: hidden;
}
.contact .info h3 {
  font-weight: 600;
  font-size: 24px;
}
.contact .info p {
  color: var(--color-secondary-light);
  margin-bottom: 30px;
  font-size: 15px;
}
.contact .info-item + .info-item {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid rgba(var(--color-secondary-rgb), 0.15);
}
.contact .info-item i {
  font-size: 24px;
  color: var(--color-primary);
  transition: all 0.3s ease-in-out;
  margin-right: 20px;
}
.contact .info-item h4 {
  padding: 0;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--color-secondary);
}
.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
  color: var(--color-secondary-light);
}
.contact .php-email-form {
  width: 100%;
  background: var(--color-white);
}
.contact .php-email-form .form-group {
  padding-bottom: 8px;
}
.contact .php-email-form .error-message {
  display: none;
  color: var(--color-white);
  background: var(--color-red);
  text-align: left;
  padding: 15px;
  font-weight: 600;
}
.contact .php-email-form .error-message br + br {
  margin-top: 25px;
}
.contact .php-email-form .sent-message {
  display: none;
  color: var(--color-white);
  background: var(--color-green);
  text-align: center;
  padding: 15px;
  font-weight: 600;
}
.contact .php-email-form .loading {
  display: none;
  background: var(--color-white);
  text-align: center;
  padding: 15px;
}
.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--color-green);
  border-top-color: var(--color-white);
  -webkit-animation: animate-loading 1s linear infinite;
  animation: animate-loading 1s linear infinite;
}
.contact .php-email-form input[type="text"],
.contact .php-email-form input[type="email"],
.contact .php-email-form textarea {
  border-radius: 0px;
  box-shadow: none;
  font-size: 14px;
}
.contact .php-email-form input[type="text"]:focus,
.contact .php-email-form input[type="email"]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--color-secondary-light);
}
.contact .php-email-form input[type="text"],
.contact .php-email-form input[type="email"] {
  height: 48px;
  padding: 10px 15px;
}
.contact .php-email-form textarea {
  padding: 10px 12px;
  height: 290px;
}
.contact .php-email-form button[type="submit"] {
  background: var(--color-primary);
  border: 0;
  padding: 13px 50px;
  color: var(--color-white);
  transition: 0.4s;
  border-radius: 0;
}
.contact .php-email-form button[type="submit"]:hover {
  background: rgba(var(--color-primary-rgb), 0.85);
}
@-webkit-keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Portfolio Details
--------------------------------------------------------------*/
.portfolio-details {
  padding-top: 40px;
}
.portfolio-details .portfolio-details-slider img {
  width: 100%;
}
.portfolio-details .portfolio-details-slider .swiper-pagination {
  margin-top: 20px;
  position: relative;
}
.portfolio-details
  .portfolio-details-slider
  .swiper-pagination
  .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: var(--color-white);
  opacity: 1;
  border: 1px solid var(--color-primary);
}
.portfolio-details
  .portfolio-details-slider
  .swiper-pagination
  .swiper-pagination-bullet-active {
  background-color: var(--color-primary);
}
.portfolio-details .portfolio-info {
  padding: 30px;
  box-shadow: 0px 0 30px rgba(var(--color-secondary-rgb), 0.15);
}
.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-secondary-light);
}
.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}
.portfolio-details .portfolio-info ul li + li {
  margin-top: 10px;
}
.portfolio-details .portfolio-description {
  padding-top: 30px;
}
.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}
.portfolio-details .portfolio-description p {
  padding: 0;
}

/*--------------------------------------------------------------
# Blog Stylings
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Blog Home Posts List
--------------------------------------------------------------*/
.blog .posts-list article {
  box-shadow: 0 4px 16px rgba(var(--color-black-rgb), 0.1);
  padding: 30px;
  height: 100%;
}
.blog .posts-list article + article {
  margin-top: 60px;
}
.blog .posts-list .post-img {
  max-height: 240px;
  margin: -30px -30px 0 -30px;
  overflow: hidden;
}
.blog .posts-list .title {
  font-size: 24px;
  font-weight: 700;
  padding: 0;
  margin: 20px 0 0 0;
}
.blog .posts-list .title a {
  color: var(--color-secondary);
  transition: 0.3s;
}
.blog .posts-list .title a:hover {
  color: var(--color-primary);
}
.blog .posts-list .meta-top {
  margin-top: 20px;
  color: var(--color-gray);
}
.blog .posts-list .meta-top ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
  padding: 0;
  margin: 0;
}
.blog .posts-list .meta-top ul li + li {
  padding-left: 20px;
}
.blog .posts-list .meta-top i {
  font-size: 16px;
  margin-right: 8px;
  line-height: 0;
  color: rgba(var(--color-primary-rgb), 0.8);
}
.blog .posts-list .meta-top a {
  color: var(--color-gray);
  font-size: 14px;
  display: inline-block;
  line-height: 1;
}
.blog .posts-list .content {
  margin-top: 20px;
}
.blog .posts-list .read-more a {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px 30px;
  transition: 0.3s;
  font-size: 14px;
  border-radius: 4px;
}
.blog .posts-list .read-more a:hover {
  background: rgba(var(--color-primary-rgb), 0.8);
}

/*--------------------------------------------------------------
# Blog Details Page
--------------------------------------------------------------*/
.blog .blog-details {
  box-shadow: 0 4px 16px rgba(var(--color-black-rgb), 0.1);
  padding: 30px;
}
.blog .blog-details .post-img {
  margin: -30px -30px 20px -30px;
  overflow: hidden;
}
.blog .blog-details .title {
  font-size: 28px;
  font-weight: 700;
  padding: 0;
  margin: 20px 0 0 0;
  color: var(--color-secondary);
}
.blog .blog-details .content {
  margin-top: 20px;
}
.blog .blog-details .content h3 {
  font-size: 22px;
  margin-top: 30px;
  font-weight: bold;
}
.blog .blog-details .content blockquote {
  overflow: hidden;
  background-color: rgba(var(--color-secondary-rgb), 0.06);
  padding: 60px;
  position: relative;
  text-align: center;
  margin: 20px 0;
}
.blog .blog-details .content blockquote p {
  color: var(--color-default);
  line-height: 1.6;
  margin-bottom: 0;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
}
.blog .blog-details .content blockquote:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--color-secondary);
  margin-top: 20px;
  margin-bottom: 20px;
}
.blog .blog-details .meta-top {
  margin-top: 20px;
  color: var(--color-gray);
}
.blog .blog-details .meta-top ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
  padding: 0;
  margin: 0;
}
.blog .blog-details .meta-top ul li + li {
  padding-left: 20px;
}
.blog .blog-details .meta-top i {
  font-size: 16px;
  margin-right: 8px;
  line-height: 0;
  color: rgba(var(--color-primary-rgb), 0.8);
}
.blog .blog-details .meta-top a {
  color: var(--color-gray);
  font-size: 14px;
  display: inline-block;
  line-height: 1;
}
.blog .blog-details .meta-bottom {
  padding-top: 10px;
  border-top: 1px solid rgba(var(--color-secondary-rgb), 0.15);
}
.blog .blog-details .meta-bottom i {
  color: var(--color-secondary-light);
  display: inline;
}
.blog .blog-details .meta-bottom a {
  color: rgba(var(--color-secondary-rgb), 0.8);
  transition: 0.3s;
}
.blog .blog-details .meta-bottom a:hover {
  color: var(--color-primary);
}
.blog .blog-details .meta-bottom .cats {
  list-style: none;
  display: inline;
  padding: 0 20px 0 0;
  font-size: 14px;
}
.blog .blog-details .meta-bottom .cats li {
  display: inline-block;
}
.blog .blog-details .meta-bottom .tags {
  list-style: none;
  display: inline;
  padding: 0;
  font-size: 14px;
}
.blog .blog-details .meta-bottom .tags li {
  display: inline-block;
}
.blog .blog-details .meta-bottom .tags li + li::before {
  padding-right: 6px;
  color: var(--color-default);
  content: ",";
}
.blog .blog-details .meta-bottom .share {
  font-size: 16px;
}
.blog .blog-details .meta-bottom .share i {
  padding-left: 5px;
}
.blog .post-author {
  padding: 20px;
  margin-top: 30px;
  box-shadow: 0 4px 16px rgba(var(--color-black-rgb), 0.1);
}
.blog .post-author img {
  max-width: 120px;
  margin-right: 20px;
}
.blog .post-author h4 {
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 0px;
  padding: 0;
  color: var(--color-secondary);
}
.blog .post-author .social-links {
  margin: 0 10px 10px 0;
}
.blog .post-author .social-links a {
  color: rgba(var(--color-secondary-rgb), 0.5);
  margin-right: 5px;
}
.blog .post-author p {
  font-style: italic;
  color: rgba(var(--color-gray-rgb), 0.8);
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Blog Sidebar
--------------------------------------------------------------*/
.blog .sidebar {
  padding: 30px;
  box-shadow: 0 4px 16px rgba(var(--color-black-rgb), 0.1);
}
.blog .sidebar .sidebar-title {
  font-size: 20px;
  font-weight: 700;
  padding: 0;
  margin: 0;
  color: var(--color-secondary);
}
.blog .sidebar .sidebar-item + .sidebar-item {
  margin-top: 40px;
}
.blog .sidebar .search-form form {
  background: var(--color-white);
  border: 1px solid rgba(var(--color-secondary-rgb), 0.3);
  padding: 3px 10px;
  position: relative;
}
.blog .sidebar .search-form form input[type="text"] {
  border: 0;
  padding: 4px;
  border-radius: 4px;
  width: calc(100% - 40px);
}
.blog .sidebar .search-form form input[type="text"]:focus {
  outline: none;
}
.blog .sidebar .search-form form button {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  border: 0;
  background: none;
  font-size: 16px;
  padding: 0 15px;
  margin: -1px;
  background: var(--color-primary);
  color: var(--color-white);
  transition: 0.3s;
  border-radius: 0 4px 4px 0;
  line-height: 0;
}
.blog .sidebar .search-form form button i {
  line-height: 0;
}
.blog .sidebar .search-form form button:hover {
  background: rgba(var(--color-primary-rgb), 0.8);
}
.blog .sidebar .categories ul {
  list-style: none;
  padding: 0;
}
.blog .sidebar .categories ul li + li {
  padding-top: 10px;
}
.blog .sidebar .categories ul a {
  color: var(--color-secondary);
  transition: 0.3s;
}
.blog .sidebar .categories ul a:hover {
  color: var(--color-default);
}
.blog .sidebar .categories ul a span {
  padding-left: 5px;
  color: rgba(var(--color-default-rgb), 0.4);
  font-size: 14px;
}
.blog .sidebar .recent-posts .post-item {
  display: flex;
}
.blog .sidebar .recent-posts .post-item + .post-item {
  margin-top: 15px;
}
.blog .sidebar .recent-posts img {
  width: 80px;
  margin-right: 15px;
}
.blog .sidebar .recent-posts h4 {
  font-size: 18px;
  font-weight: 400;
}
.blog .sidebar .recent-posts h4 a {
  color: var(--color-secondary);
  transition: 0.3s;
}
.blog .sidebar .recent-posts h4 a:hover {
  color: var(--color-primary);
}
.blog .sidebar .recent-posts time {
  display: block;
  font-style: italic;
  font-size: 14px;
  color: rgba(var(--color-default-rgb), 0.4);
}
.blog .sidebar .tags {
  margin-bottom: -10px;
}
.blog .sidebar .tags ul {
  list-style: none;
  padding: 0;
}
.blog .sidebar .tags ul li {
  display: inline-block;
}
.blog .sidebar .tags ul a {
  color: var(--color-secondary-light);
  font-size: 14px;
  padding: 6px 14px;
  margin: 0 6px 8px 0;
  border: 1px solid rgba(var(--color-secondary-light-rgb), 0.8);
  display: inline-block;
  transition: 0.3s;
}
.blog .sidebar .tags ul a:hover {
  color: var(--color-white);
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
}
.blog .sidebar .tags ul a span {
  padding-left: 5px;
  color: rgba(var(--color-secondary-light-rgb), 0.8);
  font-size: 14px;
}

/*--------------------------------------------------------------
# Blog Comments
--------------------------------------------------------------*/
.blog .comments {
  margin-top: 30px;
}
.blog .comments .comments-count {
  font-weight: bold;
}
.blog .comments .comment {
  margin-top: 30px;
  position: relative;
}
.blog .comments .comment .comment-img {
  margin-right: 14px;
}
.blog .comments .comment .comment-img img {
  width: 60px;
}
.blog .comments .comment h5 {
  font-size: 16px;
  margin-bottom: 2px;
}
.blog .comments .comment h5 a {
  font-weight: bold;
  color: var(--color-default);
  transition: 0.3s;
}
.blog .comments .comment h5 a:hover {
  color: var(--color-primary);
}
.blog .comments .comment h5 .reply {
  padding-left: 10px;
  color: var(--color-secondary);
}
.blog .comments .comment h5 .reply i {
  font-size: 20px;
}
.blog .comments .comment time {
  display: block;
  font-size: 14px;
  color: rgba(var(--color-secondary-rgb), 0.8);
  margin-bottom: 5px;
}
.blog .comments .comment.comment-reply {
  padding-left: 40px;
}
.blog .comments .reply-form {
  margin-top: 30px;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(var(--color-black-rgb), 0.1);
}
.blog .comments .reply-form h4 {
  font-weight: bold;
  font-size: 22px;
}
.blog .comments .reply-form p {
  font-size: 14px;
}
.blog .comments .reply-form input {
  border-radius: 4px;
  padding: 10px 10px;
  font-size: 14px;
}
.blog .comments .reply-form input:focus {
  box-shadow: none;
  border-color: rgba(var(--color-primary-rgb), 0.8);
}
.blog .comments .reply-form textarea {
  border-radius: 4px;
  padding: 10px 10px;
  font-size: 14px;
}
.blog .comments .reply-form textarea:focus {
  box-shadow: none;
  border-color: rgba(var(--color-primary-rgb), 0.8);
}
.blog .comments .reply-form .form-group {
  margin-bottom: 25px;
}
.blog .comments .reply-form .btn-primary {
  border-radius: 4px;
  padding: 10px 20px;
  border: 0;
  background-color: var(--color-secondary);
}
.blog .comments .reply-form .btn-primary:hover {
  background-color: rgba(var(--color-secondary-rgb), 0.8);
}

/*--------------------------------------------------------------
# Blog Home Pagination
--------------------------------------------------------------*/
.blog .blog-pagination {
  margin-top: 30px;
  color: var(--color-secondary-light);
}
.blog .blog-pagination ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}
.blog .blog-pagination li {
  margin: 0 5px;
  transition: 0.3s;
}
.blog .blog-pagination li a {
  color: var(--color-secondary);
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog .blog-pagination li.active,
.blog .blog-pagination li:hover {
  background: var(--color-primary);
}
.blog .blog-pagination li.active a,
.blog .blog-pagination li:hover a {
  color: var(--color-white);
}

/*--------------------------------------------------------------
#Galerry
--------------------------------------------------------------*/
div.gallery {
  border: 1px solid #ccc;
}

div.gallery:hover {
  border: 1px solid #777;
}

div.gallery img {
  width: 100%;
  height: auto;
}

div.desc {
  padding: 15px;
  text-align: center;
}

* {
  box-sizing: border-box;
}

.responsive {
  padding: 0 6px;
  float: left;
  width: 24.99999%;
}

@media only screen and (max-width: 700px) {
  .responsive {
    width: 49.99999%;
    margin: 6px 0;
  }
}

@media only screen and (max-width: 500px) {
  .responsive {
    width: 100%;
  }
}

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  color: var(--color-white);
  font-size: 14px;
  background: var(--color-primary);
}
.footer .footer-content {
  padding: 50px 0 20px 0;
}
.footer .footer-content .footer-info {
  margin-bottom: 30px;
}
.footer .footer-content .footer-info h3 {
  font-size: 20px;
  margin: 0 0 15px 0;
  padding: 2px 0 2px 0;
  line-height: 1.3;
  font-weight: 600;
  text-align: left;
}
.footer .footer-content .footer-info h3 span {
  color: rgba(255, 255, 255, 0.9);
}
.footer .footer-content .footer-info p {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 0;
  font-family: var(--font-primary);
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
}
.footer .footer-content .footer-info p a {
  color: #00bfff;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
  text-shadow: 0 0 2px rgba(0, 191, 255, 0.3);
}
.footer .footer-content .footer-info p a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}
.footer .footer-social-links {
  display: flex;
  justify-content: flex-start;
  gap: 25px;
  margin-top: 20px;
}
.footer .footer-social-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  text-decoration: none;
  min-width: 80px;
}
.footer .footer-social-links a i {
  font-size: 24px;
  margin-bottom: 5px;
}
.footer .footer-social-links a span {
  font-size: 12px;
  font-weight: 500;
}
.footer .footer-social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-2px);
}
.footer .footer-info .address-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
}
.footer .footer-info .address-item i {
  color: rgba(255, 255, 255, 0.8);
  margin-right: 8px;
  margin-top: 2px;
  font-size: 14px;
}
.footer .footer-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white);
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 15px;
}
.footer .footer-content h4::after {
  content: "";
  position: absolute;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  bottom: 0;
  left: 0;
}
.footer .footer-content .footer-links {
  margin-bottom: 30px;
}
.footer .footer-content .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer .footer-content .footer-links ul i {
  padding-right: 2px;
  color: var(--color-white);
  font-size: 12px;
  line-height: 1;
}
.footer .footer-content .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}
.footer .footer-content .footer-links ul li:first-child {
  padding-top: 0;
}
.footer .footer-content .footer-links ul a {
  color: rgba(var(--color-white-rgb), 0.7);
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
}
.footer .footer-content .footer-links ul a:hover {
  color: var(--color-white);
}

/* Footer快速連結樣式 */
.footer .footer-info .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-bottom: 20px;
}

.footer .footer-info .footer-links ul li {
  padding: 8px 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .footer-info .footer-links ul li:last-child {
  border-bottom: none;
}

.footer .footer-info .footer-links ul a {
  color: rgba(var(--color-white-rgb), 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.footer .footer-info .footer-links ul a::before {
  content: "\f138";
  font-family: "bootstrap-icons";
  margin-right: 8px;
  color: var(--color-primary);
  font-size: 12px;
}

.footer .footer-info .footer-links ul a:hover {
  color: var(--color-primary);
  transform: translateX(5px);
}

/* Footer Legal區域樣式優化 */
.footer .footer-legal {
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.1);
}

.footer-legal-content {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-legal-content a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal-content a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Footer地址對稱優化 */
@media (max-width: 991px) {
  .footer .footer-content .row {
    justify-content: center;
  }

  .footer .footer-content .row .col-lg-3 {
    margin-bottom: 40px;
    max-width: 300px;
  }

  .footer .footer-content .row .col-lg-3:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 575px) {
  .footer .footer-content .row .col-lg-3 {
    margin-bottom: 35px;
    padding: 15px;
    max-width: 280px;
  }

  .footer .footer-info {
    max-width: 250px;
  }

  .footer .footer-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .footer .footer-info .address-item {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .footer .footer-info .address-item i {
    font-size: 13px;
    margin-right: 6px;
  }
}

@media (max-width: 767px) {
  .footer .footer-content .row {
    justify-content: center;
  }

  .footer .footer-content .row .col-lg-3 {
    margin-bottom: 40px;
    width: 100%;
    max-width: 320px;
    display: flex;
    justify-content: center;
  }

  .footer .footer-info {
    text-align: left;
    width: 100%;
    max-width: 280px;
  }

  .footer .footer-info h3 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    text-align: left;
  }

  .footer .footer-info .address-item {
    text-align: left;
    margin-bottom: 12px;
    width: 100%;
    display: flex !important;
    align-items: flex-start !important;
  }

  .footer .footer-info .address-item i {
    margin-right: 8px;
    margin-top: 2px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.8);
  }

  .footer .footer-info .address-item span {
    line-height: 1.5;
    flex: 1;
  }

  /* 電話和官網連結樣式 */
  .footer .footer-info .address-item span a {
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    transition: color 0.3s ease !important;
    text-shadow: 0 0 2px rgba(0, 191, 255, 0.3) !important;
  }

  .footer .footer-info .address-item span a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.5) !important;
  }

  .footer .footer-social-links {
    justify-content: center;
    margin-top: 20px;
  }

  /* 確保三個辦公室區塊完全對稱 */
  .footer .footer-content .row .col-lg-3:nth-child(1),
  .footer .footer-content .row .col-lg-3:nth-child(2),
  .footer .footer-content .row .col-lg-3:nth-child(3) {
    min-height: auto;
    padding: 20px 15px;
  }

  /* 統一地址項目間距 */
  .footer .footer-content .footer-info .address-item:last-child {
    margin-bottom: 0;
  }
}
.footer .footer-content .footer-newsletter form {
  margin-top: 30px;
  background: var(--color-white);
  padding: 6px 10px;
  position: relative;
  border-radius: 4px;
}
.footer .footer-content .footer-newsletter form input[type="email"] {
  border: 0;
  padding: 4px;
  width: calc(100% - 110px);
}
.footer
  .footer-content
  .footer-newsletter
  form
  input[type="email"]:focus-visible {
  outline: none;
}
.footer .footer-content .footer-newsletter form input[type="submit"] {
  position: absolute;
  top: 0;
  right: -2px;
  bottom: 0;
  border: 0;
  background: none;
  font-size: 16px;
  padding: 0 20px;
  background: var(--color-primary);
  color: var(--color-white);
  transition: 0.3s;
  border-radius: 0 4px 4px 0;
}
.footer .footer-content .footer-newsletter form input[type="submit"]:hover {
  background: rgba(var(--color-primary-rgb), 0.85);
}
.footer .footer-legal {
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.1);
  text-align: center;
}
.footer .footer-legal .container {
  justify-content: center !important;
}
.footer .footer-legal .copyright {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}
.footer .footer-legal .copyright a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

.developer-info {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 5px;
  display: block;
}

.developer-info a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: normal;
  font-size: 13px;
}

.developer-info a:hover {
  color: #87ceeb;
  text-decoration: none;
  transform: translateY(-1px);
}
.footer .footer-legal .credits {
  padding-top: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}
.footer .footer-legal .credits a {
  color: rgba(255, 255, 255, 0.8);
}
.footer .footer-legal .social-links a {
  font-size: 18px;
  display: inline-block;
  background: rgba(var(--color-white-rgb), 0.1);
  color: var(--color-white);
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 4px;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}
.footer .footer-legal .social-links a:hover {
  background: var(--color-primary);
  text-decoration: none;
}
/* Readmore */
.btn {
  color: var(--color-white);
  font-weight: 500;
  font-size: 16px;
  display: inline-block;
  padding: 12px 40px;
  border-radius: 5px;
  transition: 0.5s;
  margin-top: 10px;
  background: rgba(var(--color-primary-dark-rgb), 0.9);
}
.btn:hover {
  background: var(--color-primary);
}

/* form */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: helvetica;
  font-size: 18px;
}
body {
  background-color: #f0f0f0;
}
.main {
  width: 500px;
  margin: 50px auto;
  border-radius: 15px;
  border: 3px solid var(--color-primary);
  box-shadow: 0 8px 25px rgba(46, 139, 87, 0.3);
  background: #ffffff;
  overflow: hidden;
  position: relative;
}

.info2 {
  width: 100%;
  background: linear-gradient(135deg, var(--color-primary) 0%, #228b22 100%);
  padding: 15px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  position: relative;
  z-index: 2;
}
.form-box,
.contact-form-box {
  padding: 30px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
}
label {
  color: var(--color-secondary);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.inp,
.msg-box {
  width: 100%;
  padding: 12px;
  margin-top: 4px;
  margin-bottom: 8px;
  border-radius: 8px;
  border: 2px solid var(--color-primary);
  font-weight: 500;
  color: var(--color-secondary);
  border-right: 4px solid var(--color-primary);
  resize: none;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.msg-box {
  height: 80px;
}
.inp:focus,
.msg-box:focus {
  outline: none;
  border: 2px solid var(--color-primary);
  border-right: 4px solid var(--color-primary);
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
  transform: translateY(-2px);
}
.heading {
  text-align: center;
  padding-bottom: 40px;
  width: 90%;
  margin: 0 auto;
  padding: 0 0.5rem;
  padding-top: 6rem;
  color: var(--color-primary);
  font-weight: 700;
}
.sub-btn {
  width: 100%;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  border: none;
  background: linear-gradient(135deg, var(--color-primary) 0%, #228b22 100%);
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}
.sub-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(46, 139, 87, 0.3);
  background: linear-gradient(135deg, #228b22 0%, var(--color-primary) 100%);
}
.sub-btn:focus {
  outline: none;
}

/* 提交按鈕載入狀態 */
.sub-btn:disabled {
  background: linear-gradient(135deg, #a0a0a0 0%, #808080 100%) !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  opacity: 0.7 !important;
}

.sub-btn.loading::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@media (max-width: 720px) {
  .main {
    width: 90%;
  }

  .radio {
    font-size: 20px;
  }
  .header .logo img {
    padding: 0.2rem;
    max-height: 80px;
    margin-right: 80px;
  }
}

/* 統一課程區塊字體樣式 */
.title-unify {
  font-weight: bold;
  color: #2e8b57;
  font-size: 1.5rem;
  margin-top: 18px;
  margin-bottom: 10px;
}
.subtitle-unify {
  color: #666;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.desc-unify {
  color: #444;
  font-size: 1rem;
  min-height: 72px;
  margin-bottom: 18px;
}
.btn-unify {
  width: 120px;
  margin: 20px auto 0 auto;
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-white);
  background: var(--color-primary);
  border: none;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(var(--color-primary-rgb), 0.1);
  transition:
    background 0.3s,
    box-shadow 0.3s,
    transform 0.2s;
  padding: 10px 0;
}
.btn-unify:hover,
.btn-unify:focus {
  background: rgba(var(--color-primary-rgb), 0.9);
  box-shadow: 0 8px 24px rgba(var(--color-primary-rgb), 0.18);
  color: var(--color-white);
  transform: translateY(-2px) scale(1.04);
  text-decoration: none;
}

/* 畫廊自動輪播樣式 */
.gallery-carousel {
  position: relative;
  overflow: hidden;
  height: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.gallery-carousel img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.gallery-carousel img.active {
  opacity: 1;
}
.gallery-carousel img.fade-out {
  opacity: 0;
}

/* 背景區塊樣式 */
.section-bg-1 {
  background: linear-gradient(
    135deg,
    rgba(46, 139, 87, 0.05) 0%,
    rgba(255, 255, 255, 1) 100%
  );
  position: relative;
}
.section-bg-2 {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(46, 139, 87, 0.05) 100%
  );
  position: relative;
}
.section-bg-3 {
  background: linear-gradient(
    45deg,
    rgba(46, 139, 87, 0.03) 0%,
    rgba(50, 205, 50, 0.03) 100%
  );
  position: relative;
}

/* 浮水印效果 - 星星圖案 */
.section-watermark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><polygon points="50,15 57,35 79,35 61,50 68,70 50,55 32,70 39,50 21,35 43,35" fill="rgba(46,139,87,0.02)" /><polygon points="25,75 29,82 37,82 31,87 33,95 25,90 17,95 19,87 13,82 21,82" fill="rgba(46,139,87,0.015)" /><polygon points="75,25 79,32 87,32 81,37 83,45 75,40 67,45 69,37 63,32 71,32" fill="rgba(46,139,87,0.02)" /></svg>');
  background-repeat: repeat;
  background-size: 120px 120px;
  pointer-events: none;
  z-index: 1;
}
.section-watermark > * {
  position: relative;
  z-index: 2;
}

/* Certificate Section with Stars */
.certificate-section {
  background: linear-gradient(
    135deg,
    rgba(0, 77, 64, 0.9) 0%,
    rgba(0, 96, 80, 0.8) 50%,
    rgba(0, 58, 48, 0.9) 100%
  );
  position: relative;
  overflow: hidden;
}

.certificate-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #ffffff, transparent),
    radial-gradient(
      1px 1px at 130px 80px,
      rgba(255, 255, 255, 0.6),
      transparent
    ),
    radial-gradient(2px 2px at 160px 30px, #ffffff, transparent),
    radial-gradient(
      1px 1px at 200px 90px,
      rgba(255, 255, 255, 0.8),
      transparent
    ),
    radial-gradient(2px 2px at 240px 50px, #ffffff, transparent),
    radial-gradient(
      1px 1px at 280px 10px,
      rgba(255, 255, 255, 0.6),
      transparent
    ),
    radial-gradient(1px 1px at 320px 70px, #ffffff, transparent),
    radial-gradient(
      2px 2px at 360px 40px,
      rgba(255, 255, 255, 0.8),
      transparent
    );
  background-repeat: repeat;
  background-size: 400px 100px;
  animation: sparkle 20s linear infinite;
  opacity: 0.8;
  pointer-events: none;
}

.certificate-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(1px 1px at 50px 20px, #ffd700, transparent),
    radial-gradient(2px 2px at 100px 60px, rgba(255, 215, 0, 0.7), transparent),
    radial-gradient(1px 1px at 150px 10px, #ffd700, transparent),
    radial-gradient(2px 2px at 220px 80px, rgba(255, 215, 0, 0.6), transparent),
    radial-gradient(1px 1px at 270px 30px, #ffd700, transparent),
    radial-gradient(1px 1px at 330px 90px, rgba(255, 215, 0, 0.8), transparent);
  background-repeat: repeat;
  background-size: 380px 110px;
  animation: sparkle 25s linear infinite reverse;
  opacity: 0.6;
  pointer-events: none;
}

.certificate-section > * {
  position: relative;
  z-index: 3;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

@keyframes sparkle {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(400px);
  }
}

/* Certificate Gallery Swiper */
.certificate-gallery-slider {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.certificate-gallery-slider .swiper-slide {
  width: 100%;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.certificate-gallery-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.certificate-gallery-slider .swiper-button-next,
.certificate-gallery-slider .swiper-button-prev {
  background: rgba(0, 0, 0, 0.8);
  color: #ffd700;
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  transition: all 0.3s ease;
}

.certificate-gallery-slider .swiper-button-next:after,
.certificate-gallery-slider .swiper-button-prev:after {
  font-size: 16px;
  font-weight: bold;
}

.certificate-gallery-slider .swiper-button-next:hover,
.certificate-gallery-slider .swiper-button-prev:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: #ffd700;
  transform: scale(1.1);
}

.certificate-gallery-slider .swiper-pagination {
  bottom: 20px;
}

.certificate-gallery-slider .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 12px;
  height: 12px;
  margin: 0 6px;
  transition: all 0.3s ease;
}

.certificate-gallery-slider .swiper-pagination-bullet-active {
  background: #ffd700;
  transform: scale(1.3);
}

.gallery-slideshow .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.gallery-slideshow .swiper-slide img {
  width: 100%;
  max-width: 600px;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.gallery-slideshow .swiper-slide img:hover {
  transform: scale(1.05);
}

.gallery-slideshow .swiper-button-next,
.gallery-slideshow .swiper-button-prev {
  color: #ffd700;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
}

.gallery-slideshow .swiper-button-next:hover,
.gallery-slideshow .swiper-button-prev:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: #ffd700;
  transform: scale(1.1);
}

.gallery-slideshow .swiper-button-next:after,
.gallery-slideshow .swiper-button-prev:after {
  font-size: 20px;
  font-weight: bold;
}

.gallery-slideshow .swiper-pagination {
  bottom: 20px;
}

.gallery-slideshow .swiper-pagination-bullet {
  background: #ffd700;
  opacity: 0.5;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  transition: all 0.3s ease;
}

.gallery-slideshow .swiper-pagination-bullet-active {
  background: #ffd700;
  opacity: 1;
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .gallery-slideshow .swiper-slide img {
    height: 300px;
  }

  .gallery-slideshow .swiper-button-next,
  .gallery-slideshow .swiper-button-prev {
    width: 40px;
    height: 40px;
  }

  .gallery-slideshow .swiper-button-next:after,
  .gallery-slideshow .swiper-button-prev:after {
    font-size: 16px;
  }
}

/* Brand New Mobile Menu - Clean & Simple */
@media (max-width: 1279px) {
  /* Hide original mobile nav toggle */
  .mobile-nav-toggle {
    display: none !important;
  }

  /* Mobile Menu Button */
  .mobile-menu-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgb(10, 65, 25);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    position: relative;
    transition: 0.3s;
  }

  .mobile-menu-btn span::before,
  .mobile-menu-btn span::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
  }

  .mobile-menu-btn span::before {
    top: -8px;
  }

  .mobile-menu-btn span::after {
    top: 8px;
  }

  /* Menu active state */
  .mobile-menu-btn.active span {
    background: transparent;
  }

  .mobile-menu-btn.active span::before {
    transform: rotate(45deg);
    top: 0;
  }

  .mobile-menu-btn.active span::after {
    transform: rotate(-45deg);
    top: 0;
  }

  /* Mobile Menu Container */
  .mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    z-index: 999;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }

  .mobile-menu.active {
    left: 0;
  }

  /* Menu Header */
  .mobile-menu-header {
    padding: 20px;
    background: var(--color-primary);
    color: white;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
  }

  /* Menu Items */
  .mobile-menu-items {
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .mobile-menu-items li {
    border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.1);
  }

  .mobile-menu-items a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s;
  }

  .mobile-menu-items a:hover {
    background: #f8f9fa;
    color: var(--color-primary);
  }

  .mobile-menu-items i {
    margin-right: 10px;
    color: var(--color-primary);
    width: 20px;
  }

  /* Menu Overlay */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Hide original mobile navbar */
  .mobile-nav-toggle {
    display: none !important;
  }

  /* Prevent body scroll when menu is open */
  body.mobile-menu-open {
    overflow: hidden;
  }
}

/* Hide mobile menu elements on desktop */
@media (min-width: 1280px) {
  .mobile-menu-btn,
  .mobile-menu,
  .mobile-menu-overlay {
    display: none !important;
  }
}

/*--------------------------------------------------------------
# Download DM Button
--------------------------------------------------------------*/
.download-dm-container {
  margin-top: 40px;
  text-align: center;
  clear: both;
}

/* Desktop specific adjustments */
@media (min-width: 992px) {
  .download-dm-container {
    margin-top: 30px;
    text-align: left;
  }
}

.download-dm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-dark)
  );
  color: var(--color-white);
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(var(--color-primary-rgb), 0.3);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.download-dm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--color-primary-rgb), 0.4);
  background: linear-gradient(
    135deg,
    var(--color-primary-dark),
    var(--color-primary)
  );
  color: var(--color-white);
}

.download-dm-btn i {
  font-size: 18px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/*--------------------------------------------------------------
# Partners Section
--------------------------------------------------------------*/
.partners {
  padding: 40px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.partners .section-header {
  margin-bottom: 60px;
}

.partners .featured-partners h3,
.partners .other-partners h3 {
  color: var(--color-secondary);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

.partners .featured-partners h3:after,
.partners .other-partners h3:after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  width: 80px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 3px;
}

.partner-card {
  background: var(--color-white);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  border: 2px solid transparent;
  margin-bottom: 30px;
}

.partner-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--color-primary);
}

.partner-card.featured {
  background: linear-gradient(
    135deg,
    rgba(var(--color-primary-rgb), 0.05) 0%,
    rgba(255, 255, 255, 1) 100%
  );
}

.partner-image {
  margin-bottom: 25px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-image img {
  max-height: 100px;
  max-width: 200px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: all 0.3s ease;
}

.partner-card:hover .partner-image img {
  filter: none;
  transform: scale(1.05);
}

.partner-info h4 {
  color: var(--color-secondary);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.partner-info p {
  color: var(--color-gray);
  font-size: 14px;
  margin-bottom: 12px;
  font-style: italic;
}

.partner-type {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 15px;
}

.partner-features {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.feature-tag {
  background: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-primary);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(var(--color-primary-rgb), 0.2);
}

.other-partners {
  margin-top: 60px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.partner-item {
  position: relative;
  background: var(--color-white);
  border-radius: 15px;
  padding: 20px 15px;
  text-align: center;
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.partner-item img {
  max-height: 50px;
  max-width: 90%;
  object-fit: contain;
  filter: grayscale(50%);
  transition: all 0.3s ease;
}

.partner-item:hover img {
  filter: none;
  transform: scale(1.1);
}

.partner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-dark)
  );
  color: var(--color-white);
  padding: 8px;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.partner-item:hover .partner-overlay {
  transform: translateY(0);
}

.partner-overlay span {
  font-size: 12px;
  font-weight: 600;
}

.partners-cta {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background: linear-gradient(
    135deg,
    rgba(var(--color-primary-rgb), 0.05) 0%,
    rgba(255, 255, 255, 0.8) 100%
  );
  border-radius: 20px;
  border: 2px solid rgba(var(--color-primary-rgb), 0.1);
}

.partners-cta p {
  color: var(--color-secondary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.btn-partners {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-dark)
  );
  color: var(--color-white);
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.3);
}

.btn-partners:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--color-primary-rgb), 0.4);
  color: var(--color-white);
}

/* 大螢幕優化 */
@media (min-width: 1400px) {
  .partners-grid {
    max-width: 1200px;
  }
}

/* 中等螢幕調整 */
@media (max-width: 1200px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 800px;
  }
}

@media (max-width: 900px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .partner-card {
    padding: 20px;
  }

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

  .partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .partner-item {
    flex: 0 0 calc(50% - 7.5px);
    padding: 15px;
  }

  .partner-item:nth-child(5) {
    flex: 0 0 calc(100% - 15px);
    max-width: calc(50% - 7.5px);
    margin: 0 auto;
  }

  .partner-item img {
    max-height: 50px;
  }

  .download-dm-btn {
    padding: 12px 25px;
    font-size: 14px;
  }

  .download-dm-container {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .partner-item {
    flex: 0 0 calc(50% - 6px);
    padding: 12px;
  }

  .partner-item:nth-child(5) {
    flex: 0 0 calc(100% - 12px);
    max-width: calc(50% - 6px);
    margin: 0 auto;
  }

  .partner-overlay span {
    font-size: 10px;
  }
}

/* Desktop/Mobile Display Control - 現在都使用輪播 */
.desktop-only {
  display: none;
}

.mobile-only {
  display: block;
}

/* 全新合作夥伴區域樣式 */
.global-partners-hub {
  padding: 30px 0;
  background: linear-gradient(135deg, #fafbfc 0%, #f0f3f7 100%);
  position: relative;
  overflow: hidden;
}

.global-partners-hub::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e9ecef" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  pointer-events: none;
}

/* 頂部標題區域 */
.partners-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
  position: relative;
}

.header-content {
  flex: 1;
  text-align: center;
}

.header-subtitle {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary), #27ae60);
  color: white;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(46, 139, 87, 0.25);
  transition: all 0.3s ease;
}

.header-subtitle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 139, 87, 0.35);
}

.header-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 25px;
  line-height: 1.2;
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-content p {
  font-size: 1.2rem;
  color: #64748b;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 500;
}

.partners-stats {
  display: flex;
  gap: 40px;
  align-items: center;
}

.stat-item {
  text-align: center;
  padding: 25px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.stat-number {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 8px;
}

/* 主要合作夥伴區域 */
.featured-partners-grid {
  margin-bottom: 50px;
}

.partner-tier-title {
  text-align: center;
  margin-bottom: 30px;
}

.partner-tier-title h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 10px;
}

.tier-subtitle {
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.featured-partners-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.premium-partner-card {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: all 0.5s ease;
  padding: 8px;
  text-align: center;
  height: 200px;
  width: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.premium-partner-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, var(--color-primary), #27ae60, #3498db);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.premium-partner-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.15);
  background: linear-gradient(145deg, #ffffff, #f1f5f9);
}

.premium-partner-card:hover::before {
  opacity: 1;
}

.partner-logo-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.main-partner-logo {
  max-width: 240px;
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(1.05) contrast(1.02);
  transition: all 0.4s ease;
  border-radius: 8px;
  padding: 10px;
}

.premium-partner-card:hover .main-partner-logo {
  transform: scale(1.08);
  filter: brightness(1.1) contrast(1.08);
}

.programs-offered {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.program {
  background: linear-gradient(135deg, var(--color-primary), #27ae60);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
  transition: all 0.3s ease;
}

.premium-partner-card:hover .program {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 139, 87, 0.4);
}

/* 策略夥伴區域 */
.strategic-partners-section {
  margin-bottom: 50px;
}

.section-divider {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.divider-text {
  background: white;
  padding: 0 30px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.strategic-partners-slider {
  position: relative;
  padding: 0 20px 60px;
}

.strategic-partner-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  height: 100px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f1f5f9;
}

.strategic-partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary);
}

.strategic-logo {
  max-width: 140px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(1.05) contrast(1.02);
  transition: all 0.3s ease;
}

.strategic-partner-card:hover .strategic-logo {
  transform: scale(1.08);
  filter: brightness(1.1) contrast(1.05);
}

/* 合作亮點區域 */
.partnership-highlights {
  margin-top: 80px;
}

.highlights-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 300px;
  margin: 0 auto;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 20px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border-left: 4px solid var(--color-primary);
}

.highlight-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12);
}

.highlight-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--color-primary), #27ae60);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-icon i {
  font-size: 1.8rem;
  color: white;
}

.highlight-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 8px;
}

.highlight-content p {
  color: #64748b;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Swiper 樣式 */
.strategic-partners-slider .swiper-pagination {
  bottom: 20px;
}

.strategic-partners-slider .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  opacity: 0.3;
  transition: all 0.3s ease;
}

.strategic-partners-slider .swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.3);
  background: linear-gradient(135deg, var(--color-primary), #27ae60);
}

/* 響應式設計 */
@media (max-width: 1024px) {
  .partners-header {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .partners-stats {
    gap: 30px;
  }

  .featured-partners-container {
    max-width: 350px;
  }
}

@media (max-width: 768px) {
  .global-partners-hub {
    padding: 60px 0;
  }

  .header-content h2 {
    font-size: 2rem;
  }

  .header-content p {
    font-size: 1rem;
    padding: 0 20px;
  }

  .header-subtitle {
    font-size: 0.9rem;
    padding: 8px 18px;
    margin-bottom: 15px;
  }

  .partners-stats {
    flex-direction: column;
    gap: 20px;
  }

  .stat-item {
    padding: 20px;
  }

  .partner-tier-title h3 {
    font-size: 2rem;
  }

  .featured-partners-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .premium-partner-card {
    height: 250px;
    width: 250px;
    padding: 15px;
  }

  .main-partner-logo {
    max-width: 200px;
    max-height: 120px;
  }

  .strategic-partner-card {
    height: 160px;
    padding: 20px;
  }

  .strategic-logo {
    max-width: 120px;
    max-height: 70px;
  }

  .highlights-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .highlight-item {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .header-content h2 {
    font-size: 1.7rem;
  }

  .header-content p {
    font-size: 0.9rem;
    padding: 0 15px;
  }

  .header-subtitle {
    font-size: 0.8rem;
    padding: 6px 15px;
    margin-bottom: 12px;
  }

  .global-partners-hub {
    padding: 40px 0;
  }

  .premium-partner-card {
    height: 220px;
    width: 220px;
    padding: 15px;
  }

  .main-partner-logo {
    max-width: 180px;
    max-height: 100px;
  }

  .strategic-partner-card {
    height: 140px;
    padding: 15px;
  }

  .strategic-logo {
    max-width: 100px;
    max-height: 60px;
  }

  .programs-offered {
    justify-content: center;
    gap: 8px;
  }

  .program {
    padding: 5px 12px;
    font-size: 0.8rem;
  }
}

/*--------------------------------------------------------------
# Recent Blog Posts / Courses Section
--------------------------------------------------------------*/
.recent-blog-posts {
  position: relative;
  padding: 80px 0;
}

/* 課程標題區域 */
.courses-header {
  margin-bottom: 60px;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(
    135deg,
    rgba(var(--color-primary-rgb), 0.1),
    rgba(var(--color-primary-rgb), 0.2)
  );
  padding: 8px 20px;
  border-radius: 25px;
  border: 1px solid rgba(var(--color-primary-rgb), 0.3);
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-badge i {
  font-size: 16px;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-description {
  font-size: 18px;
  color: rgba(var(--color-secondary-dark-rgb), 0.7);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 課程網格布局 */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

/* 課程卡片設計 */
.course-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid rgba(var(--color-primary-rgb), 0.1);
  backdrop-filter: blur(10px);
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  border-color: var(--color-primary);
}

/* 課程徽章 */
.course-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

.badge-text {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    rgba(var(--color-primary-rgb), 0.8)
  );
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.3);
}

.course-card.premium .badge-text {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #333;
}

.course-card.doctorate .badge-text {
  background: linear-gradient(135deg, #6b46c1, #9333ea);
}

/* 課程圖片區域 */
.course-image {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-card:hover .course-image img {
  transform: scale(1.05);
}

/* 課程覆蓋層 */
.course-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(var(--color-primary-rgb), 0.8),
    rgba(var(--color-primary-rgb), 0.6)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.course-card:hover .course-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  color: white;
}

.overlay-content i {
  font-size: 40px;
  margin-bottom: 10px;
  display: block;
}

.overlay-content span {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* 課程內容區域 */
.course-content {
  padding: 30px;
}

.course-header {
  margin-bottom: 20px;
}

.course-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.university-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.university-flag {
  font-size: 20px;
  width: 28px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.university-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.course-description {
  font-size: 15px;
  color: rgba(var(--color-secondary-dark-rgb), 0.8);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* 課程特色標籤 */
.course-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(var(--color-primary-rgb), 0.08);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 500;
}

.feature-item i {
  font-size: 14px;
}

/* 課程按鈕 */
.course-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    rgba(var(--color-primary-rgb), 0.8)
  );
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.course-btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.course-btn:hover:before {
  left: 100%;
}

.course-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--color-primary-rgb), 0.3);
  color: white;
}

.course-btn i {
  transition: transform 0.3s ease;
}

.course-btn:hover i {
  transform: translateX(3px);
}

/* 課程底部特色說明 */
.courses-footer {
  margin-top: 40px;
}

.courses-highlights-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 40px;
  background: rgba(var(--color-primary-rgb), 0.03);
  border-radius: 20px;
  border: 1px solid rgba(var(--color-primary-rgb), 0.1);
}

.feature-highlight {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.feature-highlight:hover {
  transform: translateY(-5px);
}

.feature-highlight i {
  font-size: 24px;
  color: var(--color-primary);
  margin-top: 5px;
  min-width: 24px;
}

.feature-highlight h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 5px;
}

.feature-highlight p {
  font-size: 14px;
  color: rgba(var(--color-secondary-dark-rgb), 0.7);
  margin: 0;
  line-height: 1.5;
}

/* 響應式設計 */
@media (max-width: 1200px) {
  .courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .recent-blog-posts {
    padding: 60px 0;
  }

  .courses-header {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: 32px;
  }

  .section-description {
    font-size: 16px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .course-image {
    height: 220px;
  }

  .course-content {
    padding: 25px;
  }

  .course-title {
    font-size: 20px;
  }

  .courses-highlights-content {
    grid-template-columns: 1fr;
    padding: 30px;
    gap: 20px;
  }

  .feature-highlight {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .course-card {
    border-radius: 15px;
  }

  .course-content {
    padding: 20px;
  }

  .course-title {
    font-size: 18px;
  }

  .section-title {
    font-size: 28px;
  }

  .header-badge {
    padding: 6px 16px;
    font-size: 11px;
  }
}

/* 保留舊的樣式以防其他地方使用 */
.recent-blog-posts .post-box {
  transition: 0.3s;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px;
}
.recent-blog-posts .post-box .post-img {
  overflow: hidden;
  position: relative;
  border-radius: 10px;
}
.recent-blog-posts .post-box .post-img img {
  transition: 0.5s;
}
.recent-blog-posts .post-box .meta {
  margin-top: 15px;
}
.recent-blog-posts .post-box .meta .post-date {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-primary);
}
.recent-blog-posts .post-box .meta .post-author {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-secondary);
}
.recent-blog-posts .post-box .post-title {
  font-size: 24px;
  color: var(--color-secondary);
  font-weight: 700;
  margin: 15px 0 0 0;
  position: relative;
  transition: 0.3s;
}
.recent-blog-posts .post-box p {
  margin: 15px 0 0 0;
  color: rgba(var(--color-secondary-dark-rgb), 0.7);
}
.recent-blog-posts .post-box .readmore {
  display: flex;
  align-items: center;
  font-weight: 600;
  line-height: 1;
  transition: 0.3s;
  margin-top: 15px;
}
.recent-blog-posts .post-box .readmore i {
  line-height: 0;
  margin-left: 4px;
  font-size: 18px;
}
.recent-blog-posts .post-box:hover {
  transform: translateY(-10px);
  border-color: var(--color-primary);
  box-shadow: 0 15px 35px rgba(46, 139, 87, 0.15);
}
.recent-blog-posts .post-box:hover .post-title {
  color: var(--color-primary);
}
.recent-blog-posts .post-box:hover .post-img img {
  transform: scale(1.05);
}

/*--------------------------------------------------------------
# 驗證碼樣式
--------------------------------------------------------------*/
#captcha-section {
  margin: 15px 0;
  padding: 15px;
  background: rgba(46, 139, 87, 0.05);
  border: 1px solid rgba(46, 139, 87, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

#captcha-section:hover {
  background: rgba(46, 139, 87, 0.08);
  border-color: rgba(46, 139, 87, 0.2);
}

#captcha-section label {
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 8px;
}

.captcha-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  flex-wrap: wrap;
}

#captcha-image {
  border: 2px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#captcha-image:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 8px rgba(46, 139, 87, 0.2);
  transform: translateY(-1px);
}

.captcha-refresh-btn {
  padding: 8px 15px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.captcha-refresh-btn:hover {
  background: rgba(var(--color-primary-rgb), 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(46, 139, 87, 0.3);
}

.captcha-refresh-btn:active {
  transform: translateY(0);
}

#captcha-input {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  border: 2px solid #ddd;
  border-radius: 6px;
  padding: 12px 15px;
  transition: all 0.2s ease;
  background: white;
}

#captcha-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
  outline: none;
}

.captcha-help-text {
  font-size: 12px;
  color: var(--color-secondary-light);
  margin-top: 5px;
  font-style: italic;
}

/* 響應式設計 */
@media (max-width: 576px) {
  .captcha-container {
    flex-direction: column;
    align-items: stretch;
  }

  #captcha-image {
    align-self: center;
    max-width: 120px;
  }

  .captcha-refresh-btn {
    align-self: center;
    width: fit-content;
  }
}

/*--------------------------------------------------------------*/
/* Privacy Policy Page Custom Styles */
/*--------------------------------------------------------------*/
.privacy-hero {
  min-height: 35vh;
  padding: 100px 0 40px;
}

/* Soften background overlays for privacy page banner */
.privacy-hero::before,
.privacy-hero::after {
  opacity: 0.35 !important;
  filter: grayscale(100%);
}

/* Main content container */
#privacy-policy {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 15px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  line-height: 1.8;
  color: #444444;
}

#privacy-policy p {
  margin-bottom: 1rem;
}

#privacy-policy .d-flex {
  margin-top: 24px;
  align-items: flex-start;
}

#privacy-policy .d-flex i {
  font-size: 20px;
  color: var(--color-primary);
  margin-right: 8px;
  line-height: 1.2;
}

#privacy-policy h6 {
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  #privacy-policy {
    padding: 40px 20px;
  }
}

/* Improve hero title legibility on Privacy page */
.privacy-hero .container {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(5px);
  padding: 30px 40px;
  border-radius: 12px;
}

.privacy-hero h2 {
  font-size: 3rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
}

/*--------------------------------------------------------------
# IP Restriction Message Styles
--------------------------------------------------------------*/
.ip-restriction-message {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  animation: fadeInUp 0.6s ease-out;
}

.ip-restriction-message .icon {
  font-size: 64px;
  margin-bottom: 20px;
  display: block;
}

.ip-restriction-message h2 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 600;
}

.ip-restriction-message p {
  color: #34495e;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.ip-restriction-contacts {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  margin: 20px 0;
  border-left: 4px solid #3498db;
  text-align: left;
}

.ip-restriction-contacts h3 {
  color: #2980b9;
  margin-bottom: 15px;
  font-size: 20px;
}

.ip-restriction-contacts p {
  margin: 10px 0;
  color: #2c3e50;
}

.ip-restriction-contacts a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
}

.ip-restriction-contacts a:hover {
  color: #2980b9;
  text-decoration: underline;
}

.ip-restriction-footer {
  color: #7f8c8d;
  font-size: 14px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .ip-restriction-message {
    padding: 30px 20px;
    margin: 0 20px;
  }

  .ip-restriction-message h2 {
    font-size: 24px;
  }

  .ip-restriction-message p {
    font-size: 16px;
  }

  .ip-restriction-contacts {
    padding: 20px;
  }
}
