body {
  background: url("../IMG/rsz_mock-up-poster-frame-childs-room.jpg");
  background-size: cover;        /* تخلي الصورة تغطي كل الشاشة */
  background-repeat: no-repeat;  /* تمنع تكرار الصورة */
  background-position: center;   /* تخلي الصورة في المنتصف */
  background-attachment: fixed;  /* دي اللي بتثبت الصورة */
  min-height: 100vh;             /* عشان الخلفية تمتد بطول الصفحة */
  scroll-behavior: smooth;       /* سكرول ناعم */
  overflow-y:scroll ;
  max-width: 100%;
  overflow-X: hidden;
}
h2{
    font-size: 32px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-align: center;
  padding-top: 40px;
}
main{
    margin-top: 150px;
    max-width: 100%;
    overflow-X: hidden;
}
.hero{
    min-height:80vh ;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-width: 800px ;
    margin: auto;
    text-align: center;
}
.hero h1{
    color: var(--secondary-color);
    font-size: 50px;
    font-weight: 600;
}
.hero p{
    font-size: 20px;
    word-spacing: 3px;
    font-weight: 500;
}
.trusted-section {
  padding: 10px 0 50px;
}
.trusted-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.trusted-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 15px;
  object-fit: cover;
}

.trusted-text {
  flex: 1;
  min-width: 300px;
}

.trusted-text h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.trusted-text p {
  color: #fffdfd;
  margin-bottom: 40px;
  font-size: 18px;
  line-height: 1.6;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.stat h3 {
  color: var(--primary-color);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat p {
  color: white;
  font-size: 15px;
}

.cta-section {
  color: var(--dark-color);
  text-align: center;
  padding: 10px 20px 30px ;
  min-height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-section h2 {
    font-size: 37px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: white;
}

.cta-btn {
    background: var(--primary-color);
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: #ff5400;
  color: #fff;
  border: 2px solid #fff;
}


@media (max-width:600px){
    .hero h1{
        font-size: 30px;
    }
    .hero p{
        font-size: 17px;
    }
    .cta-section h2 {
        font-size: 30px;
    }
    .stats {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}


/* FAQ */
.careers-frame {
    padding: 40px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25);
}

@media (max-width: 768px) {
    .careers-frame {
        padding: 24px;
    }
}

main {
    max-width: 1200px;
    margin: 150px auto 50px;
    padding: 20px;
    
    min-height: 80vh;
    overflow-x: hidden;
    width: 100%;
}
body {
    font-family: 'Cairo', sans-serif;
    /* background-color: #fafafa; */
    margin: 0;
    padding: 0;
    /* color: #333; */
}
.faq-filter {
    text-align: center;
    margin: 30px 0;
    animation: fadeSlideUp 1.5s ease forwards;
}
.faq-filter .filter-btn.active {
    background-color: black;
}
.faq-filter .filter-btn {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    border: none;
    outline: none;
    transition: .5s;
    cursor: pointer;
}
.faq-filter .filter-btn:hover {
    background-color: var(--dark-color);
}
/* FAQ SECTION */
.faq-section1 {
    max-width: 1000px;
    margin: auto;
    padding: 20px;
    margin-bottom: 3.5cm;
}

.faq-section1 .faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd; 
    color: var(--text-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards;
}

.faq-section1 .faq-item:nth-child(1) {
    animation-delay: 0.2s;
}

.faq-section1 .faq-item:nth-child(2) {
    animation-delay: 0.4s;
}

.faq-section1 .faq-item:nth-child(3) {
    animation-delay: 0.6s;
}

.faq-section1 .faq-item:nth-child(4) {
    animation-delay: 0.8s;
}

.faq-section1 .faq-item:nth-child(5) {
    animation-delay: 1s;
}

.faq-section1 .faq-question {
    width: 100%;
    text-align: left;
    padding: 15px;
    background: var(--apec-blue);
    border: none;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    transition: background 0.3s ease;
    color: #fff;
}

.faq-section1 .faq-question:hover {
    background: #eef5ff;
    color: var(--apec-blue);
}

/* + and - icon */
.faq-section1 .faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 20px;
    transition: transform 0.3s ease, content 0.3s ease;
}

.faq-section1 .faq-item.active > .faq-question::after,
.faq-section1 .faq-sub-item.active > .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

/* Answer transition */
.faq-section1 .faq-answer1 {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    background: #fff;
    transition: max-height 0.5s ease, opacity 0.4s ease, padding 0.4s ease;
    opacity: 0;
}

.faq-section1 .faq-item.active > .faq-answer1 {
    max-height: 1000px; /* big enough to fit any dropdown */
    padding: 15px;
    opacity: 1;
}

.faq-section1 .faq-sub-item {
    margin: 10px 0;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

    .faq-section1 .faq-sub-item .faq-question {
        background: var(--apec-light-blue);
        font-weight: normal;
        padding: 12px;
        border: none;
        color: var(--apec-blue);
    }

    .faq-section1 .faq-sub-item .faq-answer1 {
        background: #fafafa;
        padding: 0 12px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.5s ease, opacity 0.4s ease, padding 0.4s ease;
    }

    /* when sub-item active */
    .faq-section1 .faq-sub-item.active > .faq-answer1 {
        max-height: 500px;
        opacity: 1;
        padding: 12px;
    }

.faq-section1 .faq-item {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.faq-section1 .faq-item.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}
.design-team-container{
    display: flex;
    justify-content: center;
    gap: 20px;
}
.design-team-container .design-team-content,.design-team-container  .design-team-photo{
    width: 50%;
}
@media (min-width:992px){
    .design-team-photo {
        min-height: 25rem !important;
        max-height: 25rem !important;
        object-fit: cover !important;
    }

        .design-team-photo img {
            width: 100% !important;
            height: 100% !important;
        }
}
    .design-team-container .design-team-photo{
    border-radius: 10px;
    overflow: hidden;
}
.design-team-content h2{
    font-size: 3rem;
    font-weight: 600;
    margin-top: 30px;
    position: relative;
    width: fit-content;
    color: var(--primary-color);
}
.design-team-content p{
    font-size: 20px;
    word-spacing:2px;
}
.design-team-content a{
    background-color: var(--secondary-color);
    color: white;
    padding: 15px 10px;
}
.design-team-content a:hover{
    background-color: var(--accent-color);
}
@media (max-width:500px) {
    .design-team-container{
        flex-direction: column;
    }
    .design-team-container .design-team-content,.design-team-container  .design-team-photo{
        width: 100%;
    }
    .faq-section1 {
        max-width: 1000px;
        margin: auto;
        padding: 0px;
        margin-bottom: 2.5cm;
    }
}