

/* Swiper adjustments for responsiveness */
@media only screen and (max-width: 1280px) {
    .container {
        width: 100%;
        max-width: 1320px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .sec4home .swiper-slide {
        width: calc(45% - 20px);
    }
    .sec4home .swiper-slide.swiper-slide-active {
        width: calc(45% - 20px);
        min-width: 45%;
    }
    .sec4home .col .swiper-container {
        width: 100% !important;
        min-width: 100% !important;
    }
    .swiper-slide.swiper-slide-active .itemdepartments .pic:before {
    padding-top: 71%;
}
    .titleDept {
    font-size: 18px;
}
    
    .mainHeader .contact-info {
        display: flex
    ;
        flex-direction: column;
        gap: 5px;
    }
    .mainHeader .nav-menu .menu {
        display: flex
    ;
        list-style: none;
        gap: 10px;
    }
}
@media only screen and (max-width: 1024px) {
    
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    .swiper-container {
        width: 100% !important;
        overflow: hidden;
    }

    .swiper-wrapper {
        display: flex;
        align-items: stretch;
    }

    .swiper-slide {
        width: 100% !important;
        flex-shrink: 0;
    }

    .customCarousel {
        /* Disable centered slides on mobile and tablet */
        --swiper-centered-slides: false;
    }

    .customCarousel .swiper-slide {
        width: 100% !important;
    }

    .carouselsec4 {
        max-width: 100% !important;
    }

    .carouselsec4 .swiper-slide {
        width: 100% !important;
    }
    
    .mainHeader {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
        max-height: 40px;
    }

    .mainHeader .logo img {
        width: 120px;
        height: auto;
    }
}

/* Tablet devices (768px to 1023px) */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    /* Header adjustments */
    header {
        height: auto;
        padding: 15px 0;
    }

    .mainHeader {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .mainHeader .logo img {
        width: 150px;
        height: auto;
    }

    .mainHeader .nav-menu {
        position: fixed;
        top: 0;
        right: -1px !important;
        width: 300px;
        height: 100%;
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        padding: 60px 20px;
        transition: all 0.3s ease;
        transform:translateX(400px);
        z-index: 1000;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    }

    .mainHeader .nav-menu.active {
        transform:translateX(0px);
    }

    .mainHeader .nav-menu .menu {
        flex-direction: column;
        gap: 5px;
        width: 100%;
        align-items: flex-start;
    }
    .mainHeader .nav-menu .menu li {
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .mainHeader .nav-menu .menu li a {
        font-size: 15px;
    }

    .mainHeader .nav-menu .menu li::after {
        display: none;
    }

    .mainHeader .contact-info {
        display: none;
    }

    .hamburger {
        display: block;
    }

    /* Section 1: Slider */
    /* .orgSlider1 {
        height: 60vh;
        max-height: 60vh;
    } */

    .orgSlider1 h2.topTitleSlide {
        font-size: 24px;
    }

    .orgSlider1 .TitleSlide {
        font-size: 16px;
        line-height: 30px;
    }

    .orgSlider1 .rowbtn {
        gap: 15px;
    }

    .btnCustom {
        padding: 12px 25px;
        font-size: 13px;
    }

    /* Section 2: History (reorder columns) */
    .sec2home .row2col {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "slider"
            "text";
    }

    .sec2home .row2col .col:nth-child(1) {
        grid-area: text;
        padding: 0;
    }

    .sec2home .row2col .col:nth-child(2) {
        grid-area: slider;
    }

    .textHistory .titleBlue {
        font-size: 22px;
        line-height: 45px;
    }

    .textHistory .description {
        font-size: 13px;
    }

    ul.tikul li {
        font-size: 13px;
    }

    .sliderSec2 {
        min-width: 100%;
        border-radius: 10px;
    }

    /* Section 3: Services */
    .sec3home .titleCenterSub .title {
        font-size: 26px;
    }

    .sec3home .titleCenterSub .subtitle {
        font-size: 17px;
    }

    .carouselsec3 {
        max-width: 100%;
    }

    .itemService .titleDept {
        font-size: 17px;
    }

    /* Section 4: Departments */
    .sec4home .titleRightSub .title {
        font-size: 22px;
    }

    .sec4home .titleRightSub .subtitle {
        font-size: 17px;
    }

    .carouselsec4 {
        max-width: 100%;
    }

    .sec4home .swiper-slide,
    .sec4home .swiper-slide.swiper-slide-active {
        width: 50% !important;
        min-width: 45%;
    }

    /* Section 5: Doctors */
    .sec5home .titleCenterSub .title {
        font-size: 26px;
    }

    .sec5home .titleCenterSub .subtitle {
        font-size: 17px;
    }

    .itemDoctor .titleDept {
        font-size: 19px;
    }

    .itemDoctor .subtitleDept {
        font-size: 15px;
    }

    /* Section 6: News */
    .sec6home .titleCenterSub .title {
        font-size: 26px;
    }

    .sec6home .titleCenterSub .subtitle {
        font-size: 17px;
    }

    .itemNews .titleDept {
        font-size: 15px;
    }

    .itemNews p.textDept {
        font-size: 12px;
    }

    /* Section 7: Articles */
    .articleSec .allArticle {
        grid-template-columns: 1fr 1fr;
    }

    .articleSec .allArticle .cardArticle:nth-child(1) {
        grid-area: 1 / 1 / 2 / 3;
    }

    .articleSec .allArticle .cardArticle:nth-child(2) {
        grid-area: 2 / 1 / 3 / 2;
    }

    .articleSec .allArticle .cardArticle:nth-child(3) {
        grid-area: 2 / 2 / 3 / 3;
    }

    .articleSec .allArticle .cardArticle:nth-child(1) .imgBoxes {
        height: auto;
    }

    /* Section 8: Guide */
    .guidFponSec {
        padding: 80px 0;
    }

    .guidFponSec h2.articleSecTitle {
        font-size: 22px;
    }

    .guidFponSec h4.articleSecText {
        font-size: 16px;
        text-align: center;
    }

    /* Footer */
    .foot .footerTop {
        flex-wrap: wrap;
        gap: 30px;
    }

    .foot .footCol {
        width: 45%;
    }

    .foot .titleColFoot {
        font-size: 19px;
    }

    .foot .txtColfoot {
        font-size: 13px;
    }
}
/* Mobile devices (up to 767px) */
@media only screen and (max-width: 768px) {
    
    .sec2home {
        padding: 30px 0;
    }
    .sec3home {
        padding: 30px 0;
    }
    .sec5home {
        padding: 30px 0;
    }
    .sec4home {
        padding: 30px 0 60px;
    }
    .sec6home {
        padding: 30px 0;
    }
    .articleSec {
        padding: 30px 0 30px 0;
    }
    .titleCenterSub {
        padding-bottom: 20px;
    }
    .swiper-button-prev{
        left: -10px;
    }

    /* Section 1: Slider */
    /* .orgSlider1 {
        height: 50vh;
        max-height: 50vh;
    } */

    .sec1.orgSlider1 .container {
        padding: 0 10px;
    }

    .orgSlider1 h2.topTitleSlide {
        font-size: 18px;
        padding-right: 25px;
    }

    .orgSlider1 .TitleSlide {
        font-size: 12px;
        line-height: 20px;
    }


    .btnCustom {
        padding: 10px 20px;
        font-size: 12px;
    }

    .orgSlider1 .swiper-button-next,
    .orgSlider1 .swiper-button-prev {
        display: none;
    }

    .itemSlideHome .pic img {
        object-fit: cover;
        height: 100%;
    }

    /* Section 2: History (reorder columns) */
    .sec2home .row2col {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "slider"
            "text";
    }

    .sec2home .row2col .col:nth-child(1) {
        grid-area: text;
        padding: 0;
    }

    .sec2home .row2col .col:nth-child(2) {
        grid-area: slider;
    }

    .textHistory .titleBlue {
        font-size: 20px;
        line-height: 40px;
    }

    .textHistory .description {
        font-size: 12px;
        line-height: 1.8;
    }

    ul.tikul li {
        font-size: 12px;
        padding-right: 25px;
    }

    .sliderSec2 {
        min-width: 100%;
        border-radius: 10px;
    }

    .sliderSec2 .itemSlideSec2 .pic:before {
        padding-top: 60%;
    }

    /* Section 3: Services */
    .sec3home .titleCenterSub .title {
        font-size: 24px;
    }

    .sec3home .titleCenterSub .subtitle {
        font-size: 16px;
    }

    .carouselsec3 {
        max-width: 100%;
    }

    .itemService .titleDept {
        font-size: 16px;
        padding-right: 20px;
    }

    .NextPrevSlider.arrowWhite .swiper-button-next,
    .NextPrevSlider.arrowWhite .swiper-button-prev {
        display: none;
    }

    /* Section 4: Departments */
    .sec4home .titleRightSub .title {
        font-size: 20px;
    }

    .sec4home .titleRightSub .subtitle {
        font-size: 16px;
    }

    .carouselsec4 {
        max-width: 100%;
    }

    .sec4home .swiper-slide,
    .sec4home .swiper-slide.swiper-slide-active {
        width: 100% !important;
        min-width: 100%;
    }

    .itemdepartments .pic:before {
        padding-top: 70%;
    }

    .carouselsec4 .swiper-pagination-progressbar {
        width: 100% !important;
    }

    /* Section 5: Doctors */
    .sec5home .titleCenterSub .title {
        font-size: 24px;
    }

    .sec5home .titleCenterSub .subtitle {
        font-size: 16px;
    }

    .itemDoctor .titleDept {
        font-size: 18px;
    }

    .itemDoctor .subtitleDept {
        font-size: 14px;
    }

    /* Section 6: News */
    .sec6home .titleCenterSub .title {
        font-size: 24px;
    }

    .sec6home .titleCenterSub .subtitle {
        font-size: 16px;
    }

    .itemNews .titleDept {
        font-size: 14px;
        padding: 0 15px;
    }

    .itemNews p.textDept {
        font-size: 12px;
        padding: 15px;
    }

    /* Section 7: Articles */
    .articleSec .allArticle {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .articleSec .allArticle .cardArticle:nth-child(1),
    .articleSec .allArticle .cardArticle:nth-child(2),
    .articleSec .allArticle .cardArticle:nth-child(3) {
        grid-area: auto;
    }

    .articleSec .allArticle .cardArticle:nth-child(1) .imgBoxes {
        height: auto;
    }

    .allArticle .cardArticle .articleTitle {
        font-size: 14px;
        line-height: 30px;
    }

    .articleSec a.articleMore {
        font-size: 12px;
        text-wrap: nowrap;
    }
    .articleSec h2.articleSecTitle {
        font-size: 26px;
        margin: 0px 0 30px 0;
    }
    /* Section 8: Guide */
    .guidFponSec {
        padding: 60px 0;
    }
    
    .guidFponSec h2.articleSecTitle {
        font-size: 20px;
    }
    
    .guidFponSec h4.articleSecText {
        font-size: 16px;
        line-height: 40px;
        text-align: center;
    }

    /* Footer */
    .foot .footerTop {
        flex-direction: column;
        gap: 20px;
    }

    .foot .titleColFoot {
        font-size: 18px;
    }

    .foot .txtColfoot {
        font-size: 12px;
        line-height: 28px;
    }
    
    .footerNamad .namads img {
        height: 80px;
        margin: 10px;
    }
    
    .copyText {
        font-size: 14px;
        text-align: center;
        margin: 0 20px;
    }
    .swiper-container-rtl .swiper-button-prev {
        right: 0px;
        left: auto;
    }
    .swiper-container-rtl .swiper-button-next {
        left: 0px;
        right: auto;
    }
    
    .orgSlider1 h2.topTitleSlide::after {
        width: 17px;
        height: 22px;
        background-size: 100%;
    }
}


@media only screen and (max-width: 480px) {
    .itemSlideHome:before {
        padding-top: 130%;
    }
    
    /* .orgSlider1 .rowbtn {
        justify-content: center;
    } */
     .articleSec h2.articleSecTitle {
        font-size: 22px;
        margin: 0px 0 30px 0;
    }
    .articleSec h4.articleSecText {
    font-size: 18px;
    color: var(--color1);
}
}