.hero-section {
    position: relative; /* 👈 مهم جداً */
    background-image: url('../../jazan_assets/images/hero-section.png');
    width: 100%;
   min-height: 738px;

    background-size: 100% auto;
    background-position: 70% 35%;
    background-repeat: no-repeat;
}

/* Gradient Layer */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0; /* top:0 right:0 bottom:0 left:0 */
    background: linear-gradient(270deg, #1F3871 0%, rgba(31, 56, 113, 0.4) 168.76%);

    z-index: 1;
}

/* Content above overlay */
.hero-section > .container {
    position: relative;
    z-index: 2;
}


.hero-section-content span {
    color: #fff;
    font-size: 64px;
    font-weight: 700;
}

.hero-section-content p {
    max-width: 656px;
   color: rgba(255, 255, 255, 0.70);
    font-size: 18px;
    font-weight: 400;
}

@media (max-width: 992px) and (min-width: 769px) {
    .hero-section {
        min-height: 600px;
        background-position: 65% 35%;
    }

    .hero-section-content span {
        font-size: 48px;
    }

    .hero-section-content p {
        font-size: 16px;
        max-width: 550px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        background-size: cover;
        background-position: center;
        min-height: 500px;
    }

    .hero-section-content span {
        font-size: 36px;
    }

    .hero-section-content p {
        font-size: 15px;
        max-width: 100%;
    }
}

/* about section */
.about-section-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
}
.about-section{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 69px;
    padding-top: 80px;
}


@media (max-width: 992px) and (min-width: 769px) {
    .about-section {
        gap: 32px;
        padding-top: 50px;
    }

    .about-section-content {
        gap: 18px;
    }

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

    .about-section-content-title span {
        font-size: 15px;
    }

    .about-section-content-text p {
        font-size: 15px;
        max-width: 420px;
    }

    .about-section-image {
      
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        position: relative;
    }

    .about-section-image-1 {
        max-width: 280px;
        max-height: 220px;
        width: 100%;
        display: block;
    }


}

@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
        gap: 40px;
        padding-top: 40px;
    }

    .about-section-content {
        gap: 20px;
        align-items: center;
        text-align: center;
    }

    .about-section-content-title {
        align-items: center;
    }

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

    .about-section-content-title span {
        font-size: 15px;
    }

    .about-section-content-text p {
        font-size: 15px;
        max-width: 100%;
    }

    .about-section-image {
        min-width: auto;
        min-height: auto;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: center;
        
    }

    .about-section-image-1 {
        max-width: 100%;
        max-height: 240px;
        width: 100%;
        display: block;
    }

}
.about-section-content-title{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
}

.about-section-content-title span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    direction: rtl;

    color: var(--primary-color);
    font-size: 18px;
    font-weight: 500;
}

.about-section-content-title span::before {
    content: '';
    width: 2px;
    height: 20px;
    background: #25376D;
}


.about-section-content-title h1{
    color: #161616;
    font-size: 48px;
    font-weight: 700;
}

.about-section-content-text p{
    color: #5C5C5C;
    font-size: 18px;
    font-weight: 300;
    max-width: 641px;
    margin-bottom: 24px;
}
.about-section-image {
    width: 100%;
    max-width: 530px;
    min-height: 407px;
    position: relative;
    display: block;
    flex-shrink: 0;
}


.about-section-image-1 {
    max-width: 332px;
    max-height: 276px;
    object-fit: cover;
    object-position: center;
    border-radius: 24px;
    display: block;
}

.about-section-image-2 {
    border: 8px solid #FFF;
    position: absolute;
    bottom: 80px;
    left: 20px;
    max-width: 332px;
    max-height: 276px;
    object-fit: cover;
    object-position: center;
    border-radius: 24px;
    display: block;
}

/* programs section */
.programs-section{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top:80px;
}
.programs-section-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;

}
.programs-section-content p{
    color: var(--Text-Medium);
text-align: right;
font-size: 16px;
font-weight: 300;
}
.programs-section-cards{
    display: flex;
    flex-direction: row;
  align-items: center;
    gap: 41px;
    width: 100%;
    justify-content: space-between;
}

@media (max-width: 992px) and (min-width: 769px) {
    .programs-section {
        margin-top: 60px;
        gap: 36px;
    }

    .programs-section-content h1 {
        font-size: 28px;
        text-align: center;
    }

    .programs-section-content p {
        font-size: 15px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .programs-section {
        margin-top: 50px;
        gap: 32px;
    }

    .programs-section-content h1 {
        font-size: 24px;
        text-align: center;
    }

    .programs-section-content p {
        font-size: 14px;
        text-align: center;
    }

    .programs-section-cards {
        flex-direction: column;
    }
}



/* news and events section */



.news-and-events-section-cards{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  
    gap: 40px;
}

.news-and-events-section{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top:80px;
}
.news-and-events-section-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}
.news-and-events-section-content p{
    color:  #5C5C5C;
    text-align: right;
    font-size: 16px;
    font-weight: 300;
}

.news-and-events-section-image-1 {
    position: relative;
    min-width: 412px;
    max-width: 412px;
    height: 540px;
    border-radius: 24px;
    overflow: hidden;
}

.news-and-events-section-image-1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-and-events-section-image-1::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(4, 47, 29, 0) -17.57%,
        #042F1D 100%
    );
    z-index: 1;
    pointer-events: none;
}

.news-and-events-section-card-1-container{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding:12px 12px 12px 20px;
    border-radius: 24px;
    border: 1px solid #E7EEF3;
    background: linear-gradient(205deg, #F6F8F7 0%, #FFF 78.02%);
    max-width: 788px;
    max-height: 250px;
}
.news-and-events-section-card{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 24px;
    width: 100%;
    overflow: hidden;
}
.news-and-events-section-card-1-image{
    max-width: 244px;
    max-height: 226px;
    width: 244px;
    height: 226px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    flex-shrink: 0;
}

.news-and-events-section-card-1-content{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    gap: 24px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.news-and-events-section-card-1-content h3{
    color: #161616;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-and-events-section-card-1-content p{
    color: #5C5C5C;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.card-footer{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.card-footer span{
    color: #757B80;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
}

@media (max-width: 992px) and (min-width: 769px) {
    .news-and-events-section {
        margin-top: 60px;
        gap: 32px;
    }

    .news-and-events-section-content h1 {
        font-size: 26px;
    }

    .news-and-events-section-content p {
        font-size: 14px;
    }

    .news-and-events-section-cards {
        gap: 28px;
    }

    .news-and-events-section-image-1 {
        min-width: 340px;
        max-width: 340px;
        height: 450px;
    }

    .news-and-events-section-card-1-container {
        max-width: 650px;
        max-height: 220px;
        padding: 10px 10px 10px 18px;
    }

    .news-and-events-section-card-1-image {
        max-width: 200px;
        max-height: 200px;
        width: 200px;
        height: 200px;
    }

    .news-and-events-section-card-1-content h3 {
        font-size: 16px;
    }

    .news-and-events-section-card-1-content p {
        font-size: 13px;
    }

    .card-footer span {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .news-and-events-section {
        margin-top: 50px;
        gap: 32px;
    }

    .news-and-events-section-content h1 {
        font-size: 24px;
    }

    .news-and-events-section-content p {
        font-size: 14px;
        text-align: center;
    }

    .news-and-events-section-cards {
        flex-direction: column;
    }
    
    .news-and-events-section-card {
        flex-direction: column;
    }
    
    .news-and-events-section-card-1-container {
        max-width: 100%;
        max-height: none;
    }
    
    .news-and-events-section-image-1 {
        min-width: 100%;
        max-width: 100%;
        height: 400px;
    }
}

/* questions section */
.questions-section{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top:80px;
    background: #F6F8F7;
    border-radius: 24px;
    padding: 60px 272px 50px 272px;
    min-width: 800px;
}
.questions-section-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.faq-accordion{
    width: 100%;
}

.faq-item {
    background: transparent;
    border: none;
    margin-bottom: 16px;
}

.faq-button{
    width: 100%;
    border-radius: 16px;
    background-color: white;
    padding: 20px;
    outline: none;
    box-shadow: none;
    border: none;
    color: #161616;
    font-size: 16px;
    font-weight: 500;
}

.faq-button:hover {
    background-color: white;
}

.faq-button:focus {
    background-color: white;
    box-shadow: none;
}

.accordion-body {
    background-color: #F6F8F7;
    border-radius: 16px;
    padding: 20px;
    margin-top: 12px;
    color: #5C5C5C;
    font-size: 16px;
    font-weight: 300;
}

.faq-icon {
    display: flex;
    width: 24px;
    height: 24px;
    padding: 4px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border-radius: 80px;
    color: white;
    font-size: 18px;
    font-weight: 400;
}

.faq-icon.plus {
    background: #25376D;
}

.faq-icon.minus {
    background: #B08E37;
}

@media (max-width: 992px) and (min-width: 769px) {
    .questions-section {
        padding: 45px 50px 40px 50px;
        min-width: auto;
        border-radius: 18px;
        gap: 32px;
        margin-top: 60px;
    }

    .questions-section-content h1 {
        font-size: 26px;
    }

    .questions-section-content p {
        font-size: 14px;
        text-align: center;
    }

    .faq-button {
        padding: 17px;
        font-size: 14px;
    }

    .accordion-body {
        padding: 17px;
        font-size: 14px;
    }

    .faq-item {
        margin-bottom: 13px;
    }
}

@media (max-width: 768px) {
    .questions-section {
        padding: 40px 24px;
        min-width: auto;
        border-radius: 16px;
        gap: 32px;
        margin-top: 60px;
    }

    .questions-section-content {
        gap: 8px;
    }

    .questions-section-content h1 {
        font-size: 24px;
        text-align: center;
    }

    .questions-section-content p {
        font-size: 14px;
        text-align: center;
    }

    .faq-button {
        padding: 16px;
        font-size: 14px;
        border-radius: 12px;
    }

    .accordion-body {
        padding: 16px;
        font-size: 14px;
        border-radius: 12px;
        margin-top: 8px;
    }

    .faq-icon {
        width: 20px;
        height: 20px;
        font-size: 16px;
    }

    .faq-item {
        margin-bottom: 12px;
    }
}


.gallery-section{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin:80px 0;
}
.gallery-section-content{
    display: flex;  
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
    justify-content: center;
}

.gallery-item {
    overflow: hidden;
    border-radius: 16px;
    flex-shrink: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.gallery-item:nth-child(1) {
    width: 408px;
    height: 267px;
}

.gallery-item:nth-child(2) {
    width: 492px;
    height: 267px;
}

.gallery-item:nth-child(3) {
    width: 290px;
    height: 267px;
}

.gallery-item:nth-child(4) {
    width: 290px;
    height: 267px;
}

.gallery-item:nth-child(5) {
    width: 492px;
    height: 267px;
}

.gallery-item:nth-child(6) {
    width: 408px;
    height: 267px;
}

@media (max-width: 992px) and (min-width: 769px) {
    .gallery-section {
        margin: 60px 0;
        gap: 32px;
    }

    .gallery-section-content h1 {
        font-size: 26px;
    }

    .gallery-section-content p {
        font-size: 14px;
    }

    .gallery-grid {
        justify-content: center;
    }
    
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(6) {
        width: 300px;
        height: 200px;
    }
    
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(5) {
        width: 360px;
        height: 200px;
    }
    
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4) {
        width: 220px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(5),
    .gallery-item:nth-child(6) {
        width: 100%;
        height: 250px;
    }
}

