/* assets/css/faq.css */

/* Page Banner */
.page-banner {
  background: url('/wp-content/themes/GlobalZT/assets/images/banner/faq-banner.webp') no-repeat fixed center / cover;
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  height: auto;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.banner-split {
  display: flex;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 2;
}

.banner-text {
  flex: 1;
  max-width: 600px;
}

.banner-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.banner-text h1 span {
    color: rgba(255, 255, 255, 0.5);
    display: block;
}

.banner-text p {
  font-size: 1.1rem;
  opacity: 0.9;
  /* margin-bottom: 40px; */
  line-height: 1.6;
}

/* FAQ Section (Accordion) */
.faq-section {
    padding: 50px 0;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.faq-header {
    padding: 25px 30px;
    background: #f9f9f9;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-black);
    margin: 0;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    position: relative;
}

.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    background: var(--primary-black);
    transition: all 0.3s ease;
}

.faq-toggle::before {
    width: 2px;
    height: 14px;
    top: 5px;
    left: 11px;
}

.faq-toggle::after {
    width: 14px;
    height: 2px;
    top: 11px;
    left: 5px;
}

.faq-item.active .faq-toggle::before {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-item.active .faq-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.faq-item.active .faq-header h3 {
    color: var(--primary-red);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
}

.faq-item.active .faq-content {
    max-height: 800px;
}

.faq-inner {
    padding: 30px;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
}

/* Service Section */
.service-section {
    background: #f7f7f7;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.service-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(226, 53, 10, 0.03) 0%, transparent 70%);
    z-index: 0;
}

.service-section .container {
    position: relative;
    z-index: 1;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-item {
    text-align: left;
    padding: 30px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.service-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(226, 53, 10, 0.1);
    border-color: rgba(226, 53, 10, 0.2);
}

.service-num {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.05);
    line-height: 1;
    transition: all 0.5s ease;
}

.service-item:hover .service-num {
    color: rgba(226, 53, 10, 0.3);
    transform: scale(1.1);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #fbebee 0%, #fff 100%);
    color: var(--primary-red);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 30px;
    transition: all 0.5s ease;
    box-shadow: 0 8px 20px rgba(226, 53, 10, 0.05);
}

.service-item:hover .service-icon {
    background: var(--primary-red);
    color: var(--white);
    transform: rotateY(180deg);
    box-shadow: 0 10px 25px rgba(226, 53, 10, 0.3);
}

.service-item h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--primary-black);
    position: relative;
}

.service-item p {
    font-size: 0.95rem;
    color: #777;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}

.service-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-red);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.service-item:hover .service-link {
    opacity: 1;
    gap: 12px;
}

/* Responsive */
@media (max-width: 1200px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .banner-split {
        flex-direction: column;
        text-align: center;
    }
    .banner-text {
        max-width: 100%;
    }
    .banner-text h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
    .faq-header h3 {
        font-size: 1.1rem;
    }
    .service-item {
        padding: 40px 25px;
    }
}
